/* Manager review, 15 November 2026. The accepted home hero is intentionally excluded. */

/* A heading and its useful explanation form one reading block. */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 14px;
  margin-bottom: 32px;
}
.section-heading > p {
  max-width: 68ch;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
}
.portal-showcase .section-heading h2 {
  max-width: none;
  font-size: clamp(44px, 4.45vw, 64px);
  line-height: 1.04;
  text-wrap: wrap;
}
.review-quote .review-context {
  display: block;
  flex-basis: 100%;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Keep one underline. The hero's approved calculator link retains its own rules. */
main > :not(.hero) .text-link {
  border-bottom: 0;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
  transition: color 140ms ease;
}
main > :not(.hero) .text-link:hover {
  color: var(--text);
  text-decoration-thickness: 2px;
}
main > :not(.hero) .text-link:active {
  color: var(--focus);
}
main > :not(.hero) .text-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

/* Benefit cards share a left edge and a small set of Golos text roles. */
.proposal-grid {
  gap: 24px;
}
.proposal-card {
  padding: 28px;
  text-align: left;
}
.proposal-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
}
.proposal-title .feature-icon {
  width: 34px;
  height: 34px;
}
.proposal-title h3 {
  font-family: Golos, Arial, sans-serif;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.proposal-visual {
  min-height: 0;
  margin-top: 22px;
}
.benefit-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.benefit-facts > .benefit-fact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 16px;
  padding: 12px 0;
  border: 0;
  text-align: left;
}
.benefit-facts > .benefit-fact + .benefit-fact {
  border-top: 1px solid var(--line);
  border-left: 0;
}
.benefit-facts strong,
.ev-focus strong,
.analytics-pair strong {
  font-family: Golos, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.benefit-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.proposal-description {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.proposal-link {
  margin-top: 14px;
  font-size: 14px;
}
.analytics-composition {
  gap: 18px;
}
.ev-focus {
  display: block;
}
.ev-focus .ev-mark {
  display: none;
}
.ev-focus p,
.analytics-pair span {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.analytics-pair {
  gap: 18px;
  padding-top: 16px;
}
.schedule-composition {
  justify-content: flex-start;
}
.schedule-composition text {
  font-size: 18px;
}
.schedule-composition .session-label {
  font-size: 20px;
}

/* Coach cards describe the person's role before their evidence or experience. */
.coach-grid {
  gap: 24px;
}
.coach-card {
  display: flex;
  flex-direction: column;
}
.coach-portrait { flex-shrink: 0; }
.coach-copy {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 20px;
  padding: 24px;
  flex: 1;
}
.coach-copy h3 {
  font-family: Golos, Arial, sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.coach-name {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
}
.coach-role {
  min-height: 2.9em;
  margin-top: 13px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.coach-card .coach-copy > p.coach-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.coach-card .coach-copy > p.coach-experience {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.coach-experience a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.coach-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}
.coach-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.5;
}
.coach-links a:hover,
.coach-links a:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
.coach-experience a:hover { color: var(--gold); }
.coach-links a:focus-visible,
.coach-experience a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }


/* Gallery captions follow the same heading-and-description order. */
.trainer-caption {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 24px 28px;
}
.trainer-caption h3 {
  font-family: Golos, Arial, sans-serif;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.trainer-caption p {
  max-width: 68ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.trainer-tabs button {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.portal-material-grid h3 {
  font-family: Golos, Arial, sans-serif;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
}
.portal-material-grid p {
  font-size: 15px;
  line-height: 1.6;
}
.portal-material-grid li {
  font-size: 14px;
}

/* Ocean remains one button; only its explanatory action has lost the arrow. */
.ocean-section .tool-copy,
.tool-card-ocean .tool-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}
.tool-card-ocean .tool-action {
  margin: 0;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.tool-card-ocean .art-ocean {
  transition: border-color 160ms ease;
}
.tool-card-ocean:focus-visible .art-ocean {
  border-color: var(--focus);
}
@media (hover: hover) {
  .tool-card-ocean:hover .art-ocean {
    border-color: var(--gold);
  }
  .tool-card-ocean:hover .tool-action {
    text-decoration-thickness: 2px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .trainer-panels [data-study-panel]:not([hidden]) {
    animation: manager-portal-in 160ms ease-out;
  }
}
@keyframes manager-portal-in {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .proposal-card { padding: 24px; }
  .proposal-title h3 { font-size: 26px; }
  .benefit-facts > .benefit-fact { gap: 12px; }
  .benefit-facts strong { font-size: 15px; }
  .coach-grid { gap: 18px; }
  .coach-copy { padding: 20px; }
  .schedule-composition text { font-size: 24px; }
  .schedule-composition .session-label { font-size: 24px; }
}

@media (max-width: 700px) {
  .section-heading {
    gap: 12px;
    margin-bottom: 26px;
  }
  .section-heading > p {
    max-width: 60ch;
    margin: 0;
    font-size: 15px;
  }
  .portal-showcase .section-heading h2 {
    font-size: clamp(38px, 10vw, 44px);
  }
  .proposal-grid { gap: 18px; }
  .proposal-card { padding: 22px; }
  .proposal-title { gap: 12px; }
  .proposal-title h3 { font-size: 25px; }
  .proposal-title .feature-icon { width: 32px; height: 32px; }
  .proposal-visual { margin-top: 18px; }
  .benefit-facts > .benefit-fact {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 14px;
    padding-block: 11px;
  }
  .benefit-facts strong { font-size: 15px; }
  .benefit-facts p { font-size: 14px; }
  .proposal-description { margin-top: 18px; font-size: 15px; }
  .schedule-composition text { font-size: 22px; }
  .schedule-composition .session-label { font-size: 24px; }

  .trainer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .trainer-tabs button {
    flex: 1 1 100px;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 1.4;
  }
  .trainer-caption { display: grid; gap: 10px; padding: 20px; }
  .trainer-caption h3 { font-size: 24px; }
  .trainer-caption p { margin: 0; font-size: 15px; }
  .portal-material-grid article { padding: 22px; }
  .portal-material-grid h3 { font-size: 25px; }
  .portal-material-grid p { font-size: 14px; line-height: 1.6; }
  .portal-material-grid li { font-size: 14px; padding: 6px 9px; }
  .learning-steps h3 { font-size: 28px; line-height: 1.2; }
  .learning-steps p { font-size: 15px; line-height: 1.6; }
  .review-quote figcaption { font-size: 14px; }

  /* These headings, outside the approved home hero, overflowed at 320–390px. */
  .learning-hero h1 {
    font-size: clamp(39px, 11vw, 54px);
    line-height: 1.06;
    letter-spacing: -.035em;
  }
  .level-test-copy h2 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  .practice-intro h2,
  .course-alternative h2 {
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  .support-directions h3 {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.15;
  }
}

@media (max-width: 359px) {
  .proposal-card { padding: 20px; }
  .proposal-title h3 { font-size: 24px; }
  .benefit-facts > .benefit-fact { gap: 12px; }
  .schedule-composition text { font-size: 26px; }
  .schedule-composition .session-label { font-size: 26px; }
  .portal-material-grid article { padding: 20px; gap: 0 14px; }
  .portal-material-grid h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  main > :not(.hero) .text-link,
  .trainer-tabs button,
  .tool-card-ocean .art-ocean {
    transition: none;
  }
  .js .trainer-panels [data-study-panel] { animation: none; }
}

/* Keep long approved biographies readable before three columns become narrow. */
@media (max-width: 1000px) {
  .coach-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .coach-card {
    display: grid;
    grid-template-columns: clamp(88px, 24vw, 112px) minmax(0, 1fr);
    gap: 18px 16px;
    align-items: start;
    padding: 20px;
  }
  .coach-portrait {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 5 / 6;
    border-radius: 6px;
  }
  .coach-portrait img { object-position: 50% 18%; }
  .coach-copy { display: contents; }
  .coach-identity {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }
  .coach-copy h3 { font-size: clamp(26px, 7.5vw, 32px); }
  .coach-name { font-size: 14px; margin-top: 6px; }
  .coach-role { min-height: 0; font-size: 14px; margin-top: 10px; line-height: 1.45; }
  .coach-card .coach-copy > p.coach-description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 15px;
  }

  .coach-card .coach-copy > p.coach-experience {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 18px;
  }
  .coach-links {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: -6px;
  }

}
@media (max-width: 359px) {
  .coach-card { padding: 18px; gap: 16px 14px; }
}
.coach-prize { white-space: nowrap; }

/* The monthly amount is a separate result, not another oversized percentage. */
.calculator-money {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.calculator-money h3 {
  font-family: Golos, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}
.calculator-money .calculator-money-value {
  display: block;
  color: var(--gold);
  font-family: Golos, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.calculator-explanation > .calculator-bonus {
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  line-height: 1.6;
}

/* Compact coach cards approved for publication by Pavel, 16 Nov. */
@media (min-width: 1001px) {
  #coaches.coaches-section {
    padding-top: 18px; padding-bottom: 18px;
    /* html already reserves 120px: total anchor offset must equal the header. */
    scroll-margin-top: calc(var(--home-header-height, 99px) - 120px);
  }
  #coaches .section-heading { margin-bottom: 18px; }
  #coaches .section-heading h2 { font-size: 48px; line-height: 1.05; }
  #coaches .section-heading h2 br { display: none; }
  #coaches .coach-grid { gap: 20px; }
  #coaches .coach-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
    padding: 18px;
    gap: 14px 16px;
  }
  #coaches .coach-portrait {
    grid-column: 1;
    grid-row: 1;
    width: 104px;
    height: 128px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 5px;
  }
  #coaches .coach-portrait img { object-fit: cover; object-position: 50% 18%; }
  #coaches .coach-copy { display: contents; }
  #coaches .coach-identity { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
  #coaches .coach-copy h3 { font-size: 29px; line-height: 1.05; }
  #coaches .coach-name { font-size: 14px; line-height: 1.45; margin-top: 5px; }
  #coaches .coach-role { font-size: 14px; line-height: 1.4; min-height: 0; margin-top: 8px; }
  #coaches .coach-card .coach-copy > p.coach-description {
    grid-column: 1 / -1; grid-row: 2;
    font-size: 15px; line-height: 1.5;
  }
  #coaches .coach-card .coach-copy > p.coach-experience {
    grid-column: 1 / -1; grid-row: 3;
    padding-top: 14px; font-size: 15px; line-height: 1.5;
  }
  #coaches .coach-links { grid-column: 1 / -1; grid-row: 4; margin-top: -4px; }
  #coaches .coach-links a { min-height: 36px; font-size: 14px; }
}

@media(min-width:1001px){
 #coaches .coach-portrait{margin:0;overflow:hidden;isolation:auto}
 #coaches .coach-portrait::after{display:none}
 #coaches .coach-portrait img{position:static;inset:auto;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
 #coaches .coach-identity{position:static;inset:auto;z-index:auto}
 #coaches .coach-identity h3{font-family:Golos,Arial,sans-serif;font-size:29px;line-height:1.05;font-weight:650;letter-spacing:-.025em}
}

#coaches .coach-portrait { position: relative; display: block; padding: 0; border: 0; cursor: pointer; }
#coaches .coach-portrait:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Let headings use the available desktop width; wrap naturally when space is tight. */
@media (min-width: 701px) {
  .section-heading h2 { max-width: none; }
}
