/* Landing mobile P1: readable content, natural section heights and touch navigation. */
@media (max-width: 700px) {
  #hero-scope .hero-import-hint {
    font-size: 14px;
    line-height: 1.5;
  }

  #hero-scope .hero-coach {
    height: auto;
    min-height: 290px;
  }

  #hero-scope .hero-coach p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Size containers on desktop must not constrain the mobile reading flow. */
  #story-canvas #journey .screen {
    height: auto;
    min-height: 0;
    padding: 36px 20px;
    overflow: visible;
    content-visibility: visible;
    contain-intrinsic-block-size: none;
  }

  #journey .screen > .shell {
    display: block;
    height: auto;
    min-height: 0;
  }

  #journey .screen .layout,
  #journey .screen.is-reversed .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "copy" "functional";
    height: auto;
    min-height: 0;
    gap: 28px;
  }

  #journey .screen .copy,
  #journey .screen .functional,
  #journey .screen.is-reversed .functional {
    width: 100%;
    min-width: 0;
    max-width: 550px;
    height: auto;
    min-height: 0;
  }

  #journey .screen .functional {
    display: block;
    container-type: inline-size;
  }

  #journey .screen .eyebrow {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .08em;
  }

  #journey .screen .import-hint,
  #journey .screen .small-note {
    font-size: 13px;
    line-height: 1.5;
  }

  #journey .screen .copy-actions .cta {
    min-height: 48px;
    font-size: 15px;
  }

  #journey .screen .panel,
  #journey .screen .review,
  #journey .screen .puzzle-side {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  #journey .screen .review .board-frame,
  #journey .screen .puzzle-side .board-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
  }

  #journey .screen .panel-toolbar {
    height: auto;
    min-height: 44px;
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.4;
  }

  #journey .screen .panel-toolbar small,
  #journey .screen .review-toolbar,
  #journey .screen .review-toolbar .example-label,
  #journey .screen .micro {
    font-size: 12px;
    line-height: 1.4;
  }

  #journey .screen .review-footer {
    height: auto;
    min-height: 80px;
    padding: 14px 12px;
    gap: 12px;
  }

  #journey .screen .review-footer p,
  #journey .screen .puzzle-response p,
  #journey .screen .bot-identity p {
    font-size: 14px;
    line-height: 1.5;
  }

  #journey .screen .bot-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: auto;
    min-height: 0;
    gap: 12px;
    padding: 16px 12px;
  }

  #journey .screen .bot-art-wrap { height: 240px; }
  #journey .screen .bot-identity > strong { font-size: 12px; }
  #journey .screen .bot-levels button { height: auto; min-height: 96px; }
  #journey .screen .bot-levels button span { font-size: 13px; }

  #journey #plan-demo .focus-header { padding: 16px 14px 12px; }
  #journey #plan-demo .focus-header h2 { font-size: 24px; line-height: 1.2; }
  #journey #plan-demo .plan-list {
    height: auto;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px;
    margin-top: 16px;
  }

  #journey #plan-demo .plan-list li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: start;
    height: auto;
    min-height: 76px;
    padding: 12px 10px;
    gap: 8px;
  }

  #journey #plan-demo .plan-node { width: 32px; height: 32px; font-size: 12px; }
  #journey #plan-demo .plan-list strong { font-size: 15px; line-height: 1.35; }
  #journey #plan-demo .plan-list small {
    display: block;
    position: static;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 4px 0 0;
    overflow: visible;
    white-space: normal;
    font-size: 14px;
    line-height: 1.45;
  }

  #journey #plan-demo .plan-time { font-size: 12px; line-height: 1.5; }
  #journey #plan-demo .plan-action {
    grid-template-rows: auto auto;
    height: auto;
    gap: 14px;
    padding: 16px 14px;
  }

  #journey #plan-demo .plan-action p {
    height: auto;
    max-height: none;
    font-size: 14px;
    line-height: 1.5;
  }

  #journey #plan-demo .flat-button { min-height: 48px; font-size: 14px; }
  #journey #original-path.path { width: 100%; height: 560px; margin: 0 auto; }
  #journey #original-path .node button { width: 52px; height: 48px; }
  #journey #original-path .node .lab { max-width: 130px; font-size: 14px; line-height: 1.3; }
  #journey #original-path .node .lab small { font-size: 13px; line-height: 1.4; }
  #journey .screen .path-status { height: auto; font-size: 14px; line-height: 1.5; }
  #journey .screen .path-status strong,
  #journey .screen .path-status span { font-size: 14px; line-height: 1.5; }

  #journey .screen .faq-list { width: 100%; height: auto; }
  #journey .screen .faq-list summary {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    height: auto;
    min-height: 52px;
    padding-block: 14px;
    font-size: 16px;
    line-height: 1.4;
  }

  #journey .screen .faq-number { font-size: 12px; }
  #journey .screen .faq-list details p {
    margin: 0 10px 18px 28px;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  #journey .screen .contact-link { font-size: 14px; line-height: 1.5; }
  #journey .screen .closing-photo { width: 100%; max-width: 500px; }
  #journey .screen .photo-window { height: auto; aspect-ratio: 4 / 5; }
  #journey .screen .closing-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
  #journey .screen .closing-photo figcaption { font-size: 13px; line-height: 1.5; }

  #journey #rating.screen { height: auto; min-height: 0; padding: 36px 20px; }
  #journey #rating .shell { height: auto; grid-template-rows: auto auto auto; gap: 20px; }
  #journey #rating .rating-panel { display: block; height: auto; }
  #journey #rating .chart { flex: none; height: 340px; min-height: 280px; margin: 18px 12px 0 4px; }
  #journey #rating .panel-footer { flex-wrap: wrap; gap: 8px; min-height: 44px; font-size: 12px; }
  #journey #rating .axis-label { font-size: 12px; }
  #journey #rating .panel-footer span { font-size: 12px; }

  /* Keep all chart data available while giving the selected opening a usable board. */
  #story-canvas #overview { height: auto; min-height: 0; overflow: visible; }
  #overview .overview {
    height: auto;
    min-height: 0;
    grid-template-rows: none;
    gap: 20px;
    padding: 32px 16px;
  }

  #overview .section-topline { flex-wrap: wrap; height: auto; gap: 8px; }
  #overview .eyebrow { font-size: 12px; line-height: 1.4; letter-spacing: .06em; }
  #overview .example-label { font-size: 12px; line-height: 1.4; }
  #overview .period-control button { font-size: 14px; }
  #overview .metrics { gap: 10px; }
  #overview .metric { padding: 14px 12px; }
  #overview .metric-label { font-size: 13px; line-height: 1.4; }
  #overview .metric-value { font-size: 32px; }
  #overview .metric-delta { font-size: 12px; }
  #overview .charts { height: auto; min-height: 0; }
  #overview .chart-card { height: auto; min-height: 0; padding: 68px 12px 16px; }
  #overview .chart-tabs { top: 12px; left: 12px; right: 64px; }
  #overview .chart-tabs button { font-size: 14px; }
  #overview .opening-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    flex: none;
    container-type: normal;
    gap: 16px;
  }

  #overview .opening-scene { align-self: auto; width: 100%; min-height: 0; margin: 0; padding: 0; gap: 8px; }
  #overview .opening-board { width: min(100%, 260px); height: auto; max-width: 100%; aspect-ratio: 1; }
  #overview .opening-scene figcaption { font-size: 14px; line-height: 1.4; }
  #overview .opening-notation { font-size: 13px; line-height: 1.5; }
  #overview .opening-list { grid-template-rows: none; grid-auto-rows: auto; gap: 6px; align-self: auto; }
  #overview .opening-row { height: auto; min-height: 76px; padding: 12px 10px; }
  #overview .opening-meta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  #overview .opening-name { font-size: 15px; line-height: 1.35; }
  #overview .opening-side-note { margin-top: 4px; font-size: 13px; line-height: 1.4; }
  #overview .opening-rate { font-size: 26px; }
  #overview .opening-rate small { font-size: 13px; }
  #overview .opening-track { margin: 8px 0 0; }
  #overview .opening-detail { flex-wrap: wrap; height: auto; gap: 10px; margin-top: 14px; padding-top: 14px; font-size: 13px; }
  #overview .opening-outcomes { font-size: 13px; gap: 10px; }
  #overview .results-body {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    flex: none;
    container-type: normal;
    gap: 16px;
  }

  #overview .win-gauge { width: min(100%, 260px); justify-self: center; }
  #overview .result-row { min-height: 44px; }
  #overview .result-row dt { font-size: 14px; }
  #overview .result-row dd { font-size: 26px; }
  #overview .results-summary { font-size: 14px; line-height: 1.5; }
  #overview .section-footer { height: auto; min-height: 44px; }
  #overview .analysis-cta { min-height: 48px; font-size: 15px; }
  #overview .footer-caption { font-size: 13px; line-height: 1.5; }

  #journey .site-footer { padding: 36px 20px 24px; }
  #journey .site-footer .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #journey .site-footer .footer-brand { grid-column: auto; }
  #journey .site-footer .footer-brand p { font-size: 16px; line-height: 1.5; }
  #journey .site-footer .footer-nav { border-top: 1px solid var(--line); padding-top: 20px; }
  #journey .site-footer .footer-nav h2 { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
  #journey .site-footer .footer-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
  }

  #journey .site-footer .socials a { width: 44px; height: 44px; }
  #journey .site-footer .footer-bottom { gap: 12px; font-size: 12px; line-height: 1.5; }
  #journey .site-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 14px; }
}

/* Review card: reserve two lines so the page does not jump when the example text changes. */
@media (max-width: 700px) {
  #review .position-copy {
    min-height: calc(2 * 1lh);
  }
}

/* Mobile display font: Impact is not installed on Android and iOS, so phones get a self-hosted condensed face (Oswald Bold, OFL). */
@font-face{font-family:"PoodleChess Display";font-style:normal;font-weight:400;font-display:swap;src:url(./oswald-700-cyrillic-ext.cb6d7f885adb.woff2)format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"PoodleChess Display";font-style:normal;font-weight:400;font-display:swap;src:url(./oswald-700-cyrillic.92867238f947.woff2)format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"PoodleChess Display";font-style:normal;font-weight:400;font-display:swap;src:url(./oswald-700-latin-ext.ceb8c34b47b9.woff2)format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"PoodleChess Display";font-style:normal;font-weight:400;font-display:swap;src:url(./oswald-700-latin.aae665c75af8.woff2)format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@media (max-width: 700px) {
  #journey, #rating, #overview { --display: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; }
  #hero-scope .hero-v11 .hero-copy h1 { font-family: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; } [id="journey"] { --display: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; } [id="rating"] { --display: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; } [id="overview"] { --display: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; } :where(#hero-scope) .hero-v11 .hero-copy h1 { font-family: "PoodleChess Display", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif; }
}
