.cs-author-profile {
  --cs-ap-primary: #ff5a3d;
  --cs-ap-primary-dark: #e5462c;
  --cs-ap-heading: #151447;
  --cs-ap-text: #292944;
  --cs-ap-muted: #6f7087;
  --cs-ap-ivory: #fffdf9;
  --cs-ap-peach: #fff0e6;
  --cs-ap-card: #ffffff;
  --cs-ap-line: rgba(21, 20, 71, 0.12);
  --cs-ap-lavender: #9b7ce8;
  --cs-ap-green: #70b27c;
  --cs-ap-teal: #3aa6a0;
  --cs-ap-gold: #ffa22e;
  margin: 0;
  color: var(--cs-ap-text);
  background: var(--cs-ap-ivory);
  font-family: var(--wp--preset--font-family--hind-siliguri, var(--wp--preset--font-family--body, sans-serif));
}

.cs-author-profile * { box-sizing: border-box; }
.cs-author-profile svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-author-profile a { transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.cs-author-profile__wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.cs-author-profile h1,
.cs-author-profile h2,
.cs-author-profile h3 {
  margin: 0;
  color: var(--cs-ap-heading);
  font-family: var(--wp--preset--font-family--cormorant, Georgia, serif);
  font-weight: 800;
  letter-spacing: 0;
}

.cs-author-profile h1 { font-size: clamp(48px, 5.4vw, 76px); line-height: 1; }
.cs-author-profile h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.cs-author-profile h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; }

.cs-author-profile p { line-height: 1.72; }

.cs-author-profile__hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle, rgba(255, 90, 61, .22) 0 3px, transparent 4px) left 16px top 72px / 28px 28px repeat-y,
    radial-gradient(circle, rgba(255, 90, 61, .16) 0 5px, transparent 6px) right 80px top 190px / 34px 34px no-repeat,
    linear-gradient(108deg, var(--cs-ap-peach), var(--cs-ap-ivory) 55%, #fff7fb);
}

.cs-author-profile__hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: 46px;
  width: 180px;
  height: 82px;
  border-radius: 999px;
  transform: rotate(-28deg);
  background: repeating-linear-gradient(90deg, rgba(155, 124, 232, .3) 0 8px, transparent 8px 18px);
  pointer-events: none;
}

.cs-author-profile__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 590px);
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.cs-author-profile__portrait-column { display: flex; justify-content: center; }
.cs-author-profile__portrait-wrap {
  width: min(100%, 330px);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff4ec, #ffffff);
  box-shadow: 0 14px 28px rgba(21, 20, 71, .12);
}
.cs-author-profile__portrait { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-author-profile__intro { max-width: 590px; }
.cs-author-profile__headline { margin: 18px 0 16px; color: var(--cs-ap-primary); font-size: clamp(19px, 2vw, 24px); font-weight: 700; }
.cs-author-profile__rule,
.cs-author-profile__small-rule { display: block; width: 68px; height: 4px; margin: 0 0 26px; border-radius: 999px; background: linear-gradient(90deg, var(--cs-ap-primary) 0 52%, var(--cs-ap-lavender) 52% 100%); }
.cs-author-profile__small-rule { width: 56px; height: 3px; margin: 14px 0 28px; }
.cs-author-profile__summary { max-width: 560px; margin: 0 0 28px; font-size: 19px; }
.cs-author-profile__socials { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.cs-author-profile__socials a { display: inline-grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: var(--cs-ap-heading); text-decoration: none; }
.cs-author-profile__socials a:nth-child(1) { background: linear-gradient(135deg, #d82d7e, var(--cs-ap-primary)); }
.cs-author-profile__socials a:nth-child(2) { background: #315e9f; }
.cs-author-profile__socials a:nth-child(3) { background: var(--cs-ap-primary); }
.cs-author-profile__socials a:hover,
.cs-author-profile__socials a:focus-visible { transform: translateY(-2px); }
.cs-author-profile__socials svg { width: 21px; height: 21px; }

.cs-author-profile__button,
.cs-author-profile__secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.cs-author-profile__button { color: #fff; background: var(--cs-ap-primary); box-shadow: 0 10px 20px rgba(255, 90, 61, .18); }
.cs-author-profile__button:hover,
.cs-author-profile__button:focus-visible { color: #fff; background: var(--cs-ap-primary-dark); transform: translateY(-2px); }
.cs-author-profile__button svg { width: 21px; height: 21px; }
.cs-author-profile__secondary-button { color: var(--cs-ap-heading); background: #fff; border-color: var(--cs-ap-line); }

.cs-author-profile__about {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(320px, 430px);
  justify-content: center;
  gap: clamp(52px, 8vw, 112px);
  align-items: start;
  padding: 72px 0;
}
.cs-author-profile__about-copy p { max-width: 520px; margin: 0 0 22px; font-size: 17px; }
.cs-author-profile__stats { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 32px 38px; border: 1px solid rgba(255, 90, 61, .12); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.94), #fff5ee); }
.cs-author-profile__stat { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--cs-ap-line); }
.cs-author-profile__stat:first-child { padding-top: 0; }
.cs-author-profile__stat:last-child { padding-bottom: 0; border-bottom: 0; }
.cs-author-profile__stat-icon { display: inline-grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #fff; background: var(--cs-ap-gold); }
.cs-author-profile__stat-icon--group { background: var(--cs-ap-lavender); }
.cs-author-profile__stat-icon--star { background: var(--cs-ap-green); }
.cs-author-profile__stat-icon svg { width: 28px; height: 28px; }
.cs-author-profile__stat strong { display: block; margin-bottom: 4px; color: var(--cs-ap-heading); font-family: var(--wp--preset--font-family--cormorant, Georgia, serif); font-size: 27px; line-height: 1; }

.cs-author-profile__focus { padding: 0 0 72px; text-align: center; }
.cs-author-profile__focus .cs-author-profile__small-rule { margin-left: auto; margin-right: auto; }
.cs-author-profile__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.cs-author-profile__chip { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; padding: 14px 22px; border: 2px solid var(--cs-ap-line); border-radius: 999px; background: #fff; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.cs-author-profile__chip:hover { transform: translateY(-2px); background: #fffaf6; }
.cs-author-profile__chip svg { width: 21px; height: 21px; }
.cs-author-profile__chip--one { border-color: #ff83ad; color: #d82d7e; }
.cs-author-profile__chip--two { border-color: #78aeea; color: #2d72b8; }
.cs-author-profile__chip--three { border-color: #80c89b; color: #287947; }
.cs-author-profile__chip--four { border-color: #ffa747; color: #c85c18; }
.cs-author-profile__chip--five { border-color: #a98dec; color: var(--cs-ap-heading); }

.cs-author-profile__latest { padding: 72px 0; background: linear-gradient(180deg, #fff, #fff6ef); }
.cs-author-profile__section-head { max-width: 1020px; margin: 0 auto 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cs-author-profile__section-head a,
.cs-author-profile__read-more { color: var(--cs-ap-primary); text-decoration: none; font-size: 17px; font-weight: 800; }
.cs-author-profile__carousel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; padding-top: 10px; }
.cs-author-profile__carousel-btn { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--cs-ap-line); border-radius: 999px; color: var(--cs-ap-heading); background: #fff; cursor: pointer; }
.cs-author-profile__carousel-btn:hover { color: #fff; background: var(--cs-ap-primary); border-color: var(--cs-ap-primary); }
.cs-author-profile__carousel { max-width: 1020px; margin: 0 auto; overflow: hidden; padding: 4px 4px 18px; }
.cs-author-profile__carousel-track { display: flex; transition: transform 280ms ease; will-change: transform; }
.cs-author-profile__post { flex: 0 0 100%; width: 100%; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 34px; align-items: center; margin: 0; padding: 28px; border: 1px solid var(--cs-ap-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(21, 20, 71, .07); }
.cs-author-profile__post-badge { display: grid; width: 104px; height: 104px; place-items: center; border-radius: 16px; color: var(--cs-ap-lavender); background: linear-gradient(135deg, rgba(155,124,232,.13), rgba(255,90,61,.07)); text-decoration: none; }
.cs-author-profile__post-badge svg { width: 58px; height: 58px; }
.cs-author-profile__post-kicker { margin: 0 0 8px; color: var(--cs-ap-lavender); font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.cs-author-profile__post-copy h3 a { color: inherit; text-decoration: none; }
.cs-author-profile__post-copy p { max-width: 620px; margin: 12px 0 18px; font-size: 17px; }
.cs-author-profile__carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.cs-author-profile__carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(21,20,71,.2); cursor: pointer; }
.cs-author-profile__carousel-dot.is-active { width: 28px; background: var(--cs-ap-primary); }
.cs-author-profile__empty { max-width: 1020px; margin: 0 auto; padding: 28px; border: 1px solid var(--cs-ap-line); border-radius: 16px; background: #fff; }

.cs-author-profile__share { position: relative; overflow: hidden; padding: 72px 0; text-align: center; background: linear-gradient(115deg, #fff0e6, #fffdf9, #fff5ef); }
.cs-author-profile__share > .cs-author-profile__wrap > p { max-width: 680px; margin: 14px auto 34px; font-size: 16px; }
.cs-author-profile__steps { max-width: 1020px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cs-author-profile__steps > div { position: relative; min-height: 150px; padding: 28px 24px 24px 96px; border: 1px solid var(--cs-ap-line); border-radius: 16px; text-align: left; background: rgba(255,255,255,.9); }
.cs-author-profile__steps span { position: absolute; top: 22px; left: 62px; display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--cs-ap-primary); font-size: 13px; font-weight: 900; z-index: 1; }
.cs-author-profile__steps > div:nth-child(1) span { background: var(--cs-ap-lavender); }
.cs-author-profile__steps > div:nth-child(3) span { background: var(--cs-ap-gold); }
.cs-author-profile__steps > div > i { position: absolute; left: 24px; top: 42px; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: var(--cs-ap-lavender); background: rgba(155,124,232,.1); font-style: normal; }
.cs-author-profile__steps > div:nth-child(2) > i { color: var(--cs-ap-primary); background: rgba(255,90,61,.1); }
.cs-author-profile__steps > div:nth-child(3) > i { color: var(--cs-ap-gold); background: rgba(255,162,46,.13); }
.cs-author-profile__steps > div > i svg { width: 30px; height: 30px; }
.cs-author-profile__steps strong { display: block; color: var(--cs-ap-heading); font-size: 18px; }
.cs-author-profile__steps p { margin: 10px 0 0; font-size: 14px; }

.cs-author-profile__modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 22px; }
.cs-author-profile__modal.is-open { display: flex; }
.cs-author-profile__modal-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 38, .58); }
.cs-author-profile__modal-dialog { position: relative; width: min(720px, 100%); max-height: min(88vh, 820px); overflow: auto; padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.cs-author-profile__modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--cs-ap-line); border-radius: 50%; background: #fff; color: var(--cs-ap-heading); cursor: pointer; }
.cs-author-profile__modal-close svg { width: 20px; height: 20px; }
.cs-author-profile__modal-dialog > p { max-width: 610px; margin: 12px 0 22px; color: var(--cs-ap-muted); }
.cs-author-profile__submit-form { display: grid; gap: 16px; }
.cs-author-profile__field { display: grid; gap: 7px; text-align: left; }
.cs-author-profile__field label { color: var(--cs-ap-heading); font-weight: 800; }
.cs-author-profile__field input,
.cs-author-profile__field textarea { width: 100%; border: 1px solid var(--cs-ap-line); border-radius: 12px; padding: 12px 14px; color: var(--cs-ap-text); background: #fff; font: inherit; }
.cs-author-profile__field textarea { resize: vertical; }
.cs-author-profile__modal-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cs-author-profile__form-notice { display: none; padding: 12px 14px; border-radius: 12px; text-align: left; font-weight: 700; }
.cs-author-profile__form-notice.is-visible { display: block; }
.cs-author-profile__form-notice.is-success { color: #256b3a; background: rgba(112,178,124,.14); }
.cs-author-profile__form-notice.is-error { color: #a83228; background: rgba(255,90,61,.12); }

footer .subscription_form_footer p:empty { display: none; }
footer .subscription_form_footer .acf-subscriber-form { display: block; max-width: 420px; }
footer .subscription_form_footer .acf-subscriber-form .acf-fields { border: 0; background: transparent; }
footer .subscription_form_footer .acf-subscriber-form input[type="email"],
footer .subscription_form_footer .acf-subscriber-form input[type="text"] { min-height: 50px; }

@media (max-width: 980px) {
  .cs-author-profile__hero,
  .cs-author-profile__about,
  .cs-author-profile__latest,
  .cs-author-profile__share { padding-top: 48px; padding-bottom: 48px; }
  .cs-author-profile__hero-grid,
  .cs-author-profile__about,
  .cs-author-profile__steps { grid-template-columns: 1fr; }
  .cs-author-profile__hero-grid { max-width: 720px; text-align: center; }
  .cs-author-profile__portrait-wrap,
  .cs-author-profile__rule,
  .cs-author-profile__socials { margin-left: auto; margin-right: auto; }
  .cs-author-profile__socials { justify-content: center; }
  .cs-author-profile__intro { margin: 0 auto; }
  .cs-author-profile__stats { width: min(100%, 520px); margin: 0 auto; }
  .cs-author-profile__focus { padding-bottom: 48px; }
  .cs-author-profile__carousel-actions { justify-content: flex-start; margin-top: 12px; }
}

@media (max-width: 700px) {
  .cs-author-profile__wrap { width: min(100% - 28px, 1180px); }
  .cs-author-profile__hero,
  .cs-author-profile__about,
  .cs-author-profile__latest,
  .cs-author-profile__share { padding-top: 32px; padding-bottom: 32px; }
  .cs-author-profile__portrait-wrap { width: min(100%, 260px); border-width: 8px; }
  .cs-author-profile__section-head { display: block; }
  .cs-author-profile__post { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .cs-author-profile__post-badge { width: 86px; height: 86px; }
  .cs-author-profile__chips { gap: 12px; }
  .cs-author-profile__chip { width: 100%; min-width: 0; }
  .cs-author-profile__steps { gap: 16px; }
  .cs-author-profile__steps > div { padding-left: 92px; }
  .cs-author-profile__button,
  .cs-author-profile__secondary-button { width: 100%; max-width: 320px; }
  .cs-author-profile__modal-dialog { padding: 24px 18px; }
  .cs-author-profile__modal-actions { justify-content: center; }
}

/* Cross-site theme color + hero alignment refinements. */
.cs-author-profile {
  --cs-ap-primary: var(--wp--preset--color--theme-6, var(--wp--preset--color--primary, var(--wp--preset--color--accent, #ff5a3d)));
  --cs-ap-primary-dark: color-mix(in srgb, var(--cs-ap-primary) 82%, #111);
  --cs-ap-heading: var(--wp--preset--color--theme-1, var(--wp--preset--color--contrast, #151447));
  --cs-ap-text: var(--wp--preset--color--theme-2, var(--wp--preset--color--contrast, #292944));
  --cs-ap-muted: color-mix(in srgb, var(--cs-ap-text) 68%, var(--cs-ap-card));
  --cs-ap-ivory: var(--wp--preset--color--base, #fffdf9);
  --cs-ap-peach: color-mix(in srgb, var(--cs-ap-primary) 10%, var(--cs-ap-ivory));
  --cs-ap-card: var(--wp--preset--color--base, #ffffff);
  --cs-ap-line: color-mix(in srgb, var(--cs-ap-heading) 14%, transparent);
  --cs-ap-lavender: var(--wp--preset--color--theme-0, color-mix(in srgb, var(--cs-ap-primary) 55%, var(--cs-ap-heading)));
  --cs-ap-green: color-mix(in srgb, var(--cs-ap-primary) 35%, #3d8a56);
  --cs-ap-teal: color-mix(in srgb, var(--cs-ap-primary) 28%, #2f928d);
  --cs-ap-gold: color-mix(in srgb, var(--cs-ap-primary) 70%, #f4bd38);
}

.cs-author-profile__hero {
  padding: 64px 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--cs-ap-primary) 9%, var(--cs-ap-card)), var(--cs-ap-card) 62%);
}

.cs-author-profile__hero::after {
  opacity: .28;
  background: color-mix(in srgb, var(--cs-ap-primary) 28%, transparent);
}

.cs-author-profile__hero-grid {
  width: min(1080px, calc(100% - 40px));
  grid-template-columns: minmax(230px, 320px) minmax(0, 560px);
  gap: clamp(38px, 6vw, 76px);
  margin: 0 auto;
}

.cs-author-profile__portrait-wrap {
  width: min(100%, 300px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cs-ap-heading) 12%, transparent);
}

.cs-author-profile__intro {
  align-self: center;
}

.cs-author-profile__modal-dialog {
  width: min(860px, 100%);
}

.cs-author-profile__field--editor {
  display: block;
}

.cs-author-profile__field--editor > label {
  display: block;
  margin-bottom: 7px;
}

.cs-author-profile__field--editor .wp-editor-wrap {
  border: 1px solid var(--cs-ap-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cs-author-profile__field--editor .wp-editor-container {
  border: 0;
}

.cs-author-profile__field--editor textarea.wp-editor-area {
  border: 0;
  border-radius: 0;
}

@media (max-width: 980px) {
  .cs-author-profile__hero-grid {
    width: min(100% - 36px, 700px);
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .cs-author-profile__hero {
    padding: 36px 0;
  }

  .cs-author-profile__hero-grid {
    width: min(100% - 28px, 560px);
  }

  .cs-author-profile__portrait-wrap {
    width: min(100%, 240px);
  }
}

/* Hero typography alignment and carousel drag refinements. */
.cs-author-profile h1,
.cs-author-profile h2,
.cs-author-profile h3 {
  font-family: var(--wp--preset--font-family--heading, inherit);
}

.cs-author-profile {
  font-family: var(--wp--preset--font-family--body, inherit);
}

.cs-author-profile h1 {
  font-size: var(--wp--preset--font-size--xx-large, clamp(42px, 4.6vw, 64px));
  line-height: 1.08;
}

.cs-author-profile h2 {
  font-size: var(--wp--preset--font-size--x-large, clamp(30px, 3vw, 42px));
}

.cs-author-profile h3 {
  font-size: var(--wp--preset--font-size--large, clamp(25px, 2.3vw, 34px));
}

.cs-author-profile__hero-grid {
  align-items: center;
}

.cs-author-profile__intro {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.cs-author-profile__intro h1 {
  margin: 0 0 16px;
  padding: 0;
  transform: none;
}

.cs-author-profile__headline {
  margin-top: 0;
}

.cs-author-profile__carousel-btn {
  display: none !important;
}

.cs-author-profile__carousel {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.cs-author-profile__carousel.is-dragging {
  cursor: grabbing;
}

.cs-author-profile__carousel.is-dragging a {
  pointer-events: none;
}

.cs-author-profile__carousel-track {
  transition: transform 280ms ease;
}

@media (max-width: 980px) {
  .cs-author-profile__intro {
    min-height: 0;
    align-items: center;
  }
}

/* Small hero title/avatar sizing adjustment. */
.cs-author-profile__intro h1 {
  font-size: var(--wp--preset--font-size--x-large, clamp(34px, 3.4vw, 48px));
  line-height: 1.15;
}

.cs-author-profile__portrait-wrap {
  border-width: 14px;
}

@media (max-width: 700px) {
  .cs-author-profile__intro h1 {
    font-size: var(--wp--preset--font-size--x-large, clamp(32px, 9vw, 42px));
  }

  .cs-author-profile__portrait-wrap {
    border-width: 10px;
  }
}


/* Prevent site header/menu overlap on the author hero. */
.cs-author-profile__hero {
  padding-top: clamp(96px, 9vw, 128px);
}

@media (max-width: 980px) {
  .cs-author-profile__hero {
    padding-top: clamp(72px, 10vw, 96px);
  }
}

@media (max-width: 700px) {
  .cs-author-profile__hero {
    padding-top: 56px;
  }
}

/* Responsive stabilization pass for tablet and mobile. */
.cs-author-profile {
  overflow-x: clip;
}

.cs-author-profile__hero-grid,
.cs-author-profile__about,
.cs-author-profile__section-head,
.cs-author-profile__steps,
.cs-author-profile__post {
  min-width: 0;
}

.cs-author-profile__intro,
.cs-author-profile__about-copy,
.cs-author-profile__post-copy,
.cs-author-profile__stat > span:last-child,
.cs-author-profile__steps > div {
  min-width: 0;
}

.cs-author-profile__intro h1,
.cs-author-profile h2,
.cs-author-profile h3,
.cs-author-profile__headline,
.cs-author-profile__summary,
.cs-author-profile__post-copy p,
.cs-author-profile__steps p {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .cs-author-profile__wrap {
    width: min(100% - 48px, 1080px);
  }

  .cs-author-profile__hero-grid {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 58px);
  }

  .cs-author-profile__about {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .cs-author-profile__wrap {
    width: min(100% - 36px, 760px);
  }

  .cs-author-profile__hero {
    padding-top: 76px;
  }

  .cs-author-profile__hero-grid,
  .cs-author-profile__about,
  .cs-author-profile__steps {
    grid-template-columns: 1fr;
  }

  .cs-author-profile__hero-grid {
    text-align: center;
    gap: 28px;
  }

  .cs-author-profile__intro {
    align-items: center;
    text-align: center;
  }

  .cs-author-profile__summary {
    max-width: 620px;
  }

  .cs-author-profile__about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cs-author-profile__about-copy,
  .cs-author-profile__about-copy p,
  .cs-author-profile__stats {
    max-width: 620px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .cs-author-profile__focus,
  .cs-author-profile__latest,
  .cs-author-profile__share {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cs-author-profile__section-head {
    display: grid;
    justify-items: start;
  }

  .cs-author-profile__carousel-actions {
    justify-content: flex-start;
    padding-top: 0;
  }

  .cs-author-profile__steps > div {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .cs-author-profile__wrap {
    width: min(100% - 28px, 560px);
  }

  .cs-author-profile__hero {
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .cs-author-profile__portrait-wrap {
    width: min(72vw, 220px);
    border-width: 8px;
  }

  .cs-author-profile__intro h1 {
    font-size: var(--wp--preset--font-size--large, clamp(30px, 10vw, 40px));
  }

  .cs-author-profile__headline {
    font-size: 18px;
    line-height: 1.35;
  }

  .cs-author-profile__summary {
    font-size: 16px;
    line-height: 1.68;
  }

  .cs-author-profile__socials {
    justify-content: center;
  }

  .cs-author-profile__button,
  .cs-author-profile__secondary-button {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cs-author-profile__stats {
    padding: 22px 18px;
  }

  .cs-author-profile__stat {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .cs-author-profile__stat-icon {
    width: 48px;
    height: 48px;
  }

  .cs-author-profile__stat strong {
    font-size: 22px;
  }

  .cs-author-profile__chips {
    gap: 10px;
  }

  .cs-author-profile__chip {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .cs-author-profile__post {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .cs-author-profile__post-badge {
    width: 76px;
    height: 76px;
  }

  .cs-author-profile__post-badge svg {
    width: 42px;
    height: 42px;
  }

  .cs-author-profile__post-copy p {
    font-size: 16px;
  }

  .cs-author-profile__steps > div {
    min-height: 0;
    padding: 22px 18px 20px 82px;
  }

  .cs-author-profile__steps > div > i {
    left: 18px;
    top: 34px;
    width: 52px;
    height: 52px;
  }

  .cs-author-profile__steps span {
    left: 54px;
    top: 18px;
  }

  .cs-author-profile__modal {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .cs-author-profile__modal-dialog {
    width: 100%;
    max-height: none;
    margin: 10px 0;
    padding: 22px 16px;
  }

  .cs-author-profile__modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .cs-author-profile__wrap {
    width: min(100% - 22px, 560px);
  }

  .cs-author-profile__steps > div {
    padding-left: 18px;
    padding-top: 88px;
    text-align: center;
  }

  .cs-author-profile__steps > div > i {
    left: 50%;
    transform: translateX(-50%);
    top: 26px;
  }

  .cs-author-profile__steps span {
    left: calc(50% + 18px);
    top: 18px;
  }
}

/* Mobile header clearance for author hero. */
@media (max-width: 700px) {
  .cs-author-profile__hero {
    padding-top: 128px;
  }
}

@media (max-width: 390px) {
  .cs-author-profile__hero {
    padding-top: 142px;
  }
}

/* Targeted responsive fixes for laptop 1024px and tablet 768px. */
@media (max-width: 1024px) {
  .cs-author-profile__wrap,
  .cs-author-profile__hero-grid {
    width: min(960px, calc(100% - 40px));
  }

  .cs-author-profile__hero-grid {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 34px;
  }

  .cs-author-profile__portrait-wrap {
    width: min(100%, 260px);
  }

  .cs-author-profile__about {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 36px;
  }

  .cs-author-profile__steps {
    gap: 18px;
  }

  .cs-author-profile__steps > div {
    padding-right: 18px;
  }
}

@media (max-width: 768px) {
  .cs-author-profile__wrap,
  .cs-author-profile__hero-grid {
    width: min(700px, calc(100% - 32px));
  }

  .cs-author-profile__hero-grid,
  .cs-author-profile__about,
  .cs-author-profile__steps {
    grid-template-columns: 1fr;
  }

  .cs-author-profile__hero-grid,
  .cs-author-profile__intro {
    text-align: center;
  }

  .cs-author-profile__intro {
    align-items: center;
    min-height: 0;
  }

  .cs-author-profile__portrait-wrap {
    width: min(58vw, 240px);
  }

  .cs-author-profile__rule,
  .cs-author-profile__socials {
    margin-left: auto;
    margin-right: auto;
  }

  .cs-author-profile__socials {
    justify-content: center;
  }

  .cs-author-profile__about-copy,
  .cs-author-profile__about-copy p,
  .cs-author-profile__stats,
  .cs-author-profile__steps > div {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .cs-author-profile__section-head {
    display: grid;
    justify-items: start;
  }

  .cs-author-profile__post {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }

  .cs-author-profile__post-badge {
    width: 82px;
    height: 82px;
  }

  .cs-author-profile__post-badge svg {
    width: 46px;
    height: 46px;
  }
}

/* Extra author hero clearance for laptop and tablet headers. */
@media (min-width: 769px) and (max-width: 1024px) {
  .cs-author-profile__hero {
    margin-top: 36px;
  }
}

@media (min-width: 701px) and (max-width: 768px) {
  .cs-author-profile__hero {
    margin-top: 44px;
  }
}
