/* V3.1 stabilization: sticky boundaries, readability, footer, form and mobile polish. */

/* Keep the crisis notice in the scrolling content column on desktop. */
@media (min-width: 801px) {
  .topics-layout > .safety-notice {
    grid-column: 2;
    margin-top: 4px;
  }
}

/* Essential text must remain readable without weakening the editorial hierarchy. */
.section-kicker,
.eyebrow,
.language-switch,
.side-navigation a,
.side-navigation b,
.button,
.text-link,
.note-meta,
.article-meta {
  font-size: 13px;
}

.need-item p,
.topic-row p {
  font-size: 15px;
  line-height: 1.65;
}

.topics-intro p,
.section-heading-row > p,
.contact-copy > p,
.faq-answer > p {
  font-size: 16px;
  line-height: 1.75;
}

.about-portrait figcaption,
.diploma-frame figcaption,
.editorial-quote footer {
  font-size: 13px;
  line-height: 1.6;
}

.process-step h3 { font-size: 15px; }
.process-step p { font-size: 14px; line-height: 1.65; }
.article-body p,
.article-body li { font-size: 18px; line-height: 1.85; }
.article-aside p { font-size: 14px; line-height: 1.65; }

.contact-list strong,
.form-field label,
.field-error,
.form-consent,
.form-status {
  font-size: 13px;
}

.contact-note {
  font-size: 14px;
  line-height: 1.65;
}

.safety-notice {
  font-size: 15px;
  line-height: 1.75;
}

.footer-links,
.footer-meta,
.footer-bottom {
  font-size: 13px;
}

/* Sticky elements remain bounded by their own sections. */
.topics-intro,
.about-portrait,
.article-aside {
  top: 24px;
}

/* Mobile menu remains visually separated from content and easy to scan. */
@media (max-width: 800px) {
  .topics-layout > .safety-notice { grid-column: 1 / -1; }
  .topics-intro,
  .about-portrait,
  .article-aside { position: static; }
  .mobile-navigation {
    box-shadow: 0 18px 34px rgba(47, 48, 45, .12);
  }
  .mobile-navigation a { font-size: 13px; }
}

/* Portrait tablet and narrow-window corrections. */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "portrait"
      "body";
    min-height: 0;
    max-width: 720px;
    margin-inline: auto;
    gap: 28px;
  }

  .hero-heading,
  .hero-body {
    width: 100%;
    max-width: none;
  }

  .hero-heading { align-self: auto; }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(50px, 8vw, 66px);
    line-height: .94;
  }

  .hero-portrait {
    width: min(72vw, 470px);
    aspect-ratio: 4 / 5;
    justify-self: center;
    border-radius: 50% 50% 0 0 / 16% 16% 0 0;
  }

  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid p,
  .trust-grid p:nth-child(n+5),
  .trust-grid p:nth-child(5),
  .trust-grid p:last-child {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 1px solid var(--line);
  }
  .trust-grid p:nth-child(odd) { border-left: 0; }
  .trust-grid p:nth-child(-n+2) { border-top: 0; }
  .trust-grid p:last-child {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
  }

  .footer-bottom .maker-credit {
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-intro { font-size: 16px; }
  .need-item p,
  .topic-row p,
  .process-step p,
  .safety-notice { font-size: 15px; }
  .article-body p,
  .article-body li { font-size: 17px; }
  .contact-form-wrap { padding: 22px 18px; }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: start;
  }
  .footer-brand { grid-column: 1; grid-row: 1; width: 104px; }
  .footer-meta { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; font-size: 12px; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0 14px; font-size: 12px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(44px, 13vw, 52px); }
  .hero-portrait { width: min(84vw, 360px); }

  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
  }

  .footer-bottom .maker-credit {
    margin-left: 0;
    justify-self: end;
    white-space: nowrap;
  }
}

/* V3.2 author voice and working approach. */
.working-approach {
  margin-top: 40px;
  min-width: 0;
}

.working-approach > h3 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.05;
}

.approach-methods {
  border-top: 1px solid var(--line-strong);
}

.approach-method {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.approach-method h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.approach-method p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.editorial-quote--author {
  margin-top: 40px;
  padding-top: 28px;
}

.editorial-quote--author p {
  max-width: 650px;
  font-size: clamp(26px, 2.4vw, 33px);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "portrait"
      "copy";
    max-width: 720px;
    margin-inline: auto;
    gap: 28px;
  }

  .about-heading,
  .about-copy,
  .working-approach,
  .approach-methods,
  .approach-method {
    min-width: 0;
    max-width: 100%;
  }

  .about-portrait {
    position: static;
    width: min(100%, 470px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .working-approach { margin-top: 32px; }
  .working-approach > h3 { font-size: 30px; }

  .approach-method {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 18px 0;
  }

  .approach-method p { font-size: 15px; }
  .editorial-quote--author { margin-top: 32px; padding-top: 24px; }
  .editorial-quote--author p { font-size: 28px; }
}
