/* Phone overrides (up to 700px). */
@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --header-height: 64px;
    --section-space: 56px;
    --text-section: clamp(1.625rem, 6.9vw, 2rem);
    --text-feature: 1.375rem;
    --text-body: 1rem;
  }

  html { scroll-padding-top: 84px; scroll-behavior: auto; }
  body { line-height: 1.65; }
  :where(p, li, dd, a) { overflow-wrap: break-word; }
  h2 { max-inline-size: none; line-height: 1.25; }
  .button { min-height: 52px; font-size: .9375rem; font-weight: 600; box-shadow: none; }

  .site-header,
  .site-header.is-scrolled,
  .site-header.is-hidden {
    transform: none;
    background: var(--surface-glass);
    pointer-events: auto;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .header-inner,
  .site-header.is-scrolled .header-inner {
    width: calc(100% - var(--gutter) * 2);
    min-height: var(--header-height);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .brand img,
  .site-header.is-scrolled .brand img { width: 100px; }
  .site-header .brand { gap: 10px; }
  .menu-button { min-width: 84px; height: 44px; gap: 8px; padding: 0 12px; background: var(--paper); border-color: transparent; }
  .menu-button::after { content: "Menu"; font-size: .8125rem; font-weight: 600; }
  .menu-button[aria-expanded="true"]::after { content: "Close"; }
  .nav-ready .site-nav { top: calc(100% + 8px); max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); padding: 10px; border-radius: var(--radius-lg); }
  .nav-ready .site-nav.is-open { animation: none; }
  .site-nav > a { flex-shrink: 0; }
  .site-nav > a:not(.button) { min-height: 52px; padding: 14px 16px; font-size: .9375rem; }
  .nav-cta { min-height: 52px; margin-top: 6px; }

  .hero { padding-bottom: 0; }
  .hero-copy { padding-block: 40px 36px; }
  .hero h1 { max-inline-size: 24ch; margin: 0; font-size: clamp(1.6875rem, 7.1vw, 2.25rem); line-height: 1.3; letter-spacing: -.035em; text-wrap: pretty; }
  .hero-word { max-inline-size: 100%; white-space: normal; }
  .hero-line:nth-child(2) { margin-top: .2em; }
  .hero-intro { margin-top: 28px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
  .hero-intro .button { justify-content: space-between; width: 100%; min-height: 52px; padding: 7px 8px 7px 20px; }
  .hero-intro .hero-contact { display: inline-flex; gap: 12px; padding: 13px 20px; border-color: var(--control-line); color: var(--accent); background: var(--surface-soft); box-shadow: none; }
  .hero-intro .hero-contact::before { background: var(--tint); }
  .hero-intro .hero-apply { justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; }
  .button-arrow { width: 36px; height: 36px; }

  .about-section { container-type: inline-size; padding-top: 40px; }
  .about-grid { gap: 16px; }
  .national-impact { align-items: start; margin-top: 24px; padding: 20px 16px; gap: 18px 12px; border-radius: var(--radius-md); background: var(--paper); }
  .impact-intro { padding: 0; }
  .impact-intro strong { color: var(--muted); font-size: .8125rem; }
  .impact-stat { padding-left: 0; }
  .impact-stat > strong { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .impact-stat > span { margin-top: 8px; font-size: .8125rem; line-height: 1.5; }
  .benefits-section { padding-block: 28px 40px; }
  .benefit-grid { gap: 24px; }
  .benefit-card { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 6px 14px; padding: 0; }
  .benefit-card::before { display: none; }
  .benefit-card > .icon { display: block; grid-column: 1; grid-row: 1 / 3; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
  .benefit-card h3 { grid-column: 2; font-size: 1rem; line-height: 1.4; }
  .benefit-card p { font-size: .9375rem; line-height: 1.6; }

  .section-heading { margin-bottom: 24px; }
  .section-heading > .section-description { margin-top: 12px; }
  .section-description { line-height: 1.65; }

  .programme-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 14px; background: var(--tint-strong); }
  .programme-tabs::after { display: none; }
  .programme-tabs button { justify-content: center; min-width: 0; min-height: 48px; padding: 10px 8px; border-radius: 10px; font-size: .875rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
  .programme-tabs button .icon { display: none; }
  .programme-tabs button[aria-selected="true"] { color: var(--accent-dark); background: var(--surface); box-shadow: 0 1px 4px #153d4912; }
  .programme-tabs button:focus-visible { outline-offset: -3px; }
  .programme-panel { gap: 24px; }
  .programme-image img { aspect-ratio: 16 / 10; }
  .programme-copy > .programme-kicker { display: none; }
  .programme-copy h3 { max-inline-size: none; margin-bottom: 12px; }
  .programme-copy > p { line-height: 1.65; }
  .check-list { gap: 10px; margin-block: 18px 22px; }
  .check-list li { font-size: .9375rem; line-height: 1.6; }
  .programme-copy > .button { justify-content: space-between; width: 100%; padding-inline: 18px; }

  .apply-layout { gap: 24px; }
  .apply-section .section-heading > .text-link { margin-top: 8px; }
  .application-notice { padding: 24px 20px; }
  .application-programme { margin-bottom: 10px; font-size: .8125rem; font-weight: 500; line-height: 1.6; letter-spacing: 0; text-transform: none; }
  .application-notice h3 { font-size: 1.5rem; }
  .application-deadline { display: grid; justify-content: stretch; gap: 4px; margin-block: 20px; padding: 14px 16px; border-radius: 12px; background: var(--tint-strong); }
  .application-deadline > span { font-size: .8125rem; }
  .application-deadline time { font-size: 1.25rem; }
  .application-notice > p:not(.application-programme) { line-height: 1.65; }
  .application-requirements { gap: 10px; margin-block: 16px; font-size: .9375rem; line-height: 1.65; }
  .application-notice > .button { justify-content: space-between; width: 100%; margin-top: 20px; padding-inline: 18px; }
  .process-grid { gap: 28px; margin-top: 8px; }
  .process-grid > li,
  .process-grid > li:first-child { grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 6px 14px; min-height: 0; padding: 0; }
  .step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff14; color: white; font-size: .8125rem; letter-spacing: 0; }
  .process-grid h3 { padding-top: 4px; font-size: 1rem; line-height: 1.45; }
  .process-grid p { font-size: .9375rem; line-height: 1.65; }
  .timeline-block { margin-top: 32px; padding-top: 12px; }
  .timeline-header h3 { font-size: 1.125rem; }
  .timeline-header p { margin-top: 10px; font-size: .875rem; line-height: 1.65; }
  .timeline { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .timeline li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: baseline; padding: 0; }
  .timeline li::before { display: none; }
  .timeline-month { font-size: .875rem; line-height: 1.55; }
  .timeline h4 { margin: 0; font-size: .875rem; line-height: 1.55; }

  .documents-header { gap: 12px; margin-bottom: 24px; }
  .documents-table-wrap { container-type: inline-size; overflow: visible; border-radius: 0; background: transparent; }
  .documents-table { table-layout: fixed; }
  .documents-table tbody { display: grid; gap: 12px; }
  .documents-table tbody tr { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px 10px; padding: 20px 16px; border-radius: var(--radius-md); background: var(--paper); }
  .documents-table tbody tr:hover { background: var(--tint); }
  .document-number { color: var(--accent); font-size: .75rem; }
  .document-description strong { font-size: .9375rem; font-weight: 600; line-height: 1.5; }
  .document-description small { font-size: .875rem; line-height: 1.6; }
  .document-language { font-size: .8125rem; line-height: 1.5; }
  .document-language::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .75rem; color: var(--muted); }
  .document-download { min-height: 48px; padding-inline: 12px; gap: 6px; background: var(--surface); font-size: .8125rem; }
  .document-format { font-size: .6875rem; }
  .document-download:hover,
  .document-download:focus-visible { color: white; border-color: var(--accent); background: var(--accent); }
  .document-download:focus-visible .document-format { color: white; }
  .document-request { min-height: 48px; font-size: .8125rem; }
  .document-prepare { font-size: .8125rem; }
  .document-download:focus-visible { outline-offset: 2px; }

  .city-section { padding-block: 48px; }
  .city-heading { justify-content: start; margin-bottom: 8px; }
  .city-heading > span { font-size: .8125rem; }
  .city-scene { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; height: auto; padding: 0; overflow: visible; border-radius: 0; color: var(--ink); background: transparent; }
  .city-visual { position: relative; z-index: auto; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.8fr 1fr; gap: 4px; height: clamp(300px, 90vw, 420px); overflow: hidden; border-radius: var(--radius-lg); }
  .city-visual > img:first-child { grid-column: 1 / -1; grid-row: 1; object-position: center 40%; }
  .city-visual > img:nth-child(2) { grid-column: 1; grid-row: 2; }
  .city-visual > img:last-of-type { grid-column: 2; grid-row: 2; }
  .city-scene::after { display: none; }
  .city-copy { grid-column: 1; grid-row: 1; }
  .city-copy h2 { max-inline-size: none; font-size: var(--text-section); }
  .city-copy h2 em { color: var(--accent); }
  .city-programme { grid-column: 1; grid-row: 3; justify-content: space-between; width: 100%; gap: 14px; margin: 0; padding: 16px; border-radius: var(--radius-md); background: var(--surface); font-size: .9375rem; font-weight: 600; }
  .city-programme small { margin-top: 4px; color: var(--muted); font-size: .8125rem; font-weight: 400; }
  .city-programme .round-arrow { width: 44px; height: 44px; border-color: transparent; color: var(--accent); background: var(--tint); }
  .city-scene :focus-visible { outline-color: var(--accent); }
  .city-points { gap: 24px; margin-top: 28px; }
  .city-points li { gap: 14px; padding: 0; }
  .city-points li::before { padding-top: 3px; font-size: .75rem; }
  .city-points h3 { font-size: 1rem; }
  .city-points p { margin-top: 6px; font-size: .9375rem; line-height: 1.6; }

  .gallery-section .section-heading { flex-wrap: wrap; align-items: center; gap: 12px; }
  .gallery-navigation { gap: 8px; }
  .gallery-counter { margin-right: 2px; font-size: .8125rem; }
  .gallery-grid { grid-auto-columns: 88%; gap: 12px; }
  .gallery-item img { height: auto; aspect-ratio: 4 / 3; }
  .gallery-item > span { gap: 8px; min-height: 52px; padding-top: 10px; font-size: .9375rem; }

  .news-grid { gap: 20px; }
  .news-card { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; min-height: 88px; padding: 0; }
  .news-image { height: 80px; }
  .news-copy { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 8px; }
  .news-copy .tag { min-height: 0; font-size: .75rem; line-height: 1.5; }
  .news-copy h3 { font-size: 1rem; line-height: 1.45; }
  .news-copy .text-link { width: 20px; height: 44px; border: 0; }
  .partners-section { padding-block: 32px; --partner-item-width: 160px; }
  .partners-heading { padding-bottom: 8px; }
  .partners-viewport { padding-block: 12px; }
  .partner-card { padding: 12px 16px; }
  .partner-logo { height: 76px; }
  .partner-name { margin-top: 8px; font-size: .75rem; line-height: 1.5; }

  .faq-grid { gap: 24px; }
  .faq-list { gap: 10px; }
  .faq-list details { padding-inline: 16px; border-radius: 14px; background: var(--paper); }
  .faq-list summary { min-height: 64px; padding-block: 18px; gap: 14px; font-size: .9375rem; line-height: 1.55; }
  .faq-list summary > span { width: 26px; height: 26px; border: 0; background: var(--surface); }
  .faq-list details[open] summary { color: var(--accent); }
  .faq-answer { padding: 0 0 20px; font-size: .9375rem; line-height: 1.7; }
  .faq-list details::details-content { transition: none; }
  .faq-list summary:focus-visible { outline-offset: 3px; border-radius: 6px; }

  .contact-section { padding-block: 56px; }
  .contact-grid { gap: 24px; }
  .contact-copy > .button { justify-content: space-between; width: 100%; margin-top: 20px; padding-inline: 18px; }
  .contact-details { border: 0; display: grid; gap: 10px; }
  .contact-details > div { gap: 2px; padding: 16px 18px; border: 0; border-radius: 14px; background: var(--surface-soft); }
  .contact-details dt { grid-row: auto; font-size: .75rem; letter-spacing: .04em; }
  .contact-details a { display: flex; align-items: center; width: 100%; min-height: 48px; font-size: 1.125rem; letter-spacing: -.02em; }
  .contact-note { margin-top: 0; font-size: .8125rem; }
  .contact-map { overflow: visible; background: transparent; box-shadow: none; }
  .contact-map iframe { display: none; }
  .map-open { position: static; justify-content: space-between; width: 100%; min-height: 52px; padding: 14px 20px; border: 1px solid var(--control-line); border-radius: 999px; background: transparent; color: var(--accent); box-shadow: none; font-size: .9375rem; font-weight: 600; }
  .map-open .icon { width: 18px; height: 18px; }
  .map-open:hover { color: var(--accent-dark); background: var(--surface); box-shadow: none; transform: none; }

  .site-footer { padding-top: 36px; }
  .footer-main { gap: 24px 20px; padding-bottom: 24px; }
  .footer-column h3 { min-height: 28px; margin-bottom: 8px; font-size: .9375rem; }
  .social-links a,
  .footer-column > a { min-height: 44px; font-size: .875rem; }
  .footer-bottom { flex-direction: column; align-items: start; gap: 8px; padding-block: 20px; font-size: .75rem; }
  .footer-bottom > span { max-width: 34ch; }
  .back-to-top { font-size: .8125rem; }

  .lightbox { max-height: calc(100dvh - 24px); }
  .lightbox-bottom p { font-size: .8125rem; line-height: 1.6; }

  .hero-letter, .hero-intro { animation: none; }
  .lightbox[open], .lightbox[open]::backdrop,
  .faq-list details[open] .faq-answer,
  .programme-tabs:not([hidden]) ~ .programme-panel:not([hidden]) :is(.programme-image, .programme-copy) { animation: none; }
  .motion-ready .reveal,
  .motion-ready .reveal:not(.is-visible) { opacity: 1; translate: none; transition: none; }

  @container (width < 18rem) {
    .national-impact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  }

  /* Stack document metadata when text scaling narrows the container. */
  @container (width < 17rem) {
    .documents-table tbody tr { grid-template-columns: max(22px, 1.5rem) minmax(0, 1fr); }
    .document-number { grid-row: 1 / 4; }
    .document-language { grid-column: 2; grid-row: 2; }
    .document-download-cell { grid-column: 2; grid-row: 3; text-align: left; }
    .document-download,
    .document-request { max-width: 100%; flex-wrap: wrap; white-space: normal; }
  }

  @media (max-width: 380px) {
    :root { --gutter: 16px; }
    .national-impact { padding-inline: 12px; gap: 16px 10px; }
    .gallery-section .section-heading { flex-wrap: wrap; }
    .news-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
    .news-image { height: 72px; }
    .documents-table tbody tr { padding: 18px 14px; gap: 14px 8px; }
    .document-download { padding-inline: 10px; gap: 4px; }
    .document-language { font-size: .75rem; }
  }
}
