/* phone.css: generated by _gen/phone.py (mobile pass 2026-10-24). Phones and tablets only; desktop never loads it.
   1) the door's desktop rules, copied verbatim; 2) the shared header/menu; 3) the phone layout. */
@media (max-width: 1023.98px) {
  :root { --ph-hdr-in: 4rem; --ph-hdr: 4rem; --ph-menu-bg: var(--color-bg); --ph-menu-line: color-mix(in srgb, var(--color-accent) 45%, transparent); }
  /* ---- copied from hours.css (its >= 64rem rules) ---- */

  #hours, .nav-phone { display: none; }
  .visit-hours { display: block; }
  .nav-desk { display: list-item; }
  #visit .grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* ---- copied from frame.css (its >= 64rem rules) ---- */

  :root {
    --pad: clamp(24px, 5vw, 80px); --cmax: 1440px;
    --gold-line: color-mix(in srgb, var(--color-accent) 45%, transparent);
    --step--2: 0.8125rem;
    --step--1: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
    --step-0: clamp(1rem, 0.8rem + 0.35vw, 1.1875rem);
    --step-1: clamp(1.25rem, 0.95rem + 0.55vw, 1.5rem);
    --step-2: clamp(1.625rem, 1.1rem + 0.9vw, 2.125rem);
    --step-3: clamp(2.5rem, 1.5rem + 1.5vw, 3.25rem);
    --step-4: clamp(3.75rem, 2rem + 2.6vw, 5rem);
    --space-6: clamp(2rem, 1rem + 1.4vw, 2.75rem);
    --space-7: clamp(3rem, 1rem + 4vw, 6rem);
    --space-8: clamp(4.5rem, 2rem + 4vw, 7rem);
  }
  main, .site-header, .door-footer { container-type: inline-size; }
  .wrap { --edge: max(var(--pad), (100cqw - var(--cmax)) / 2); max-width: none; padding-inline: var(--edge); }

  /* Buttons (Howard / Teton Tiger): square-cornered, small letterspaced caps; Order online = gold, filled */
  .site-header .btn, .hero--frame .btn { border-radius: 2px; border-width: 1px; padding: 0.95em 1.7em; font-family: var(--font-ui); font-size: var(--step--2); font-weight: var(--font-ui-weight); letter-spacing: var(--font-ui-tracking); text-transform: var(--font-ui-transform); line-height: 1; }
  .site-header .btn--primary, .hero--frame .btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }

  /* Header (v2 layout kept: nav | mark | Order online, mark centred): caps nav, no rule under it (the hero band continues up) */
  .site-header { border-bottom: 0; }
  /* v7 (Caelan 2026-10-22: "the skull logo on top being a middle crown"): more room above the skull so the horns and all six
     arrows sit clear of the top edge; nav left, Order online right, one row; the skull stays on the page centre line. */
  .site-header .wrap { padding-top: clamp(1.5rem, 2vw, 2.25rem); padding-bottom: var(--space-3); }
  .site-nav ul { flex-wrap: nowrap; white-space: nowrap; gap: clamp(1rem, 4vw - 1.75rem, 2.75rem); font-family: var(--font-ui); font-size: var(--step--2); font-weight: var(--font-ui-weight); letter-spacing: var(--font-ui-tracking); text-transform: var(--font-ui-transform); }   /* 1024: 16px gaps keep it one row beside the 364px mark */
  .site-nav a { color: color-mix(in srgb, var(--color-fg) 82%, transparent); }

  /* Hero band (Howard split): badge (v3 size, 326 x 526) + tagline + button left, then a rule and the hours / address line;
     the framed photo right, vertically centred. Photo width clamp(300px, 32vw, 466px) -> 2x max 932 of the 944 px file. */
  .hero--frame { padding: clamp(0.25rem, 0.5vw, 1rem) 0 clamp(3rem, 5vw, 6rem);   /* v7: top trimmed (was clamp(1rem, 2vw, 2.5rem)) for the taller header, keeps Order online on a 1440x900 first screen */
  border-bottom: 1px solid var(--gold-line); }
  /* v6 (Caelan 2026-10-21: "closer to the middle of the page and 10% bigger"): badge 359 x 580 (was 326 x 526); the badge +
     tagline + button + hours line are one 36rem group, centred text, set against the photo side of the left column (gutter
     clamp(3rem, 5vw, 6rem), was clamp(3rem, 6vw, 8rem)), so group + photo read as one unit near the page's centre line. */
  /* v7 (Caelan 2026-10-22: "the logo and picture as a unit being centered"): the 36rem group + the photo frame are one unit,
     centred on the page (equal outer margins); the group column shrinks below 36rem only when the window is too narrow. */
  .hero--frame .wrap { display: grid; grid-template-columns: minmax(0, 36rem) auto; justify-content: center; grid-template-rows: 1fr auto auto 1fr; row-gap: 0; column-gap: clamp(3rem, 5vw, 6rem); align-items: start; }
  .hero--frame .hero-media--graphic, .hero--frame .wrap > div { width: 100%; }
  .hero--frame .hero-media--graphic { grid-column: 1; grid-row: 2; margin: 0 0 var(--space-5); }
  .hero--frame .hero-media--sized img { margin-inline: auto; }
  .hero--frame .wrap > div { grid-column: 1; grid-row: 3; text-align: center; }
  .hero--frame .wrap > div > p { margin-inline: auto; }
  .hero--frame .actions { justify-content: center; }
  .tt-facts { display: block; max-width: 36rem; margin: var(--space-6) auto 0; padding-top: 0; border-top: 0; color: var(--color-muted); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; width: 100%; }
  .tt-facts__line { display: block; text-align: center; }  /* Caelan 2026-11-03: drop thin rule above hours/address; keep row + balanced margin */
  .hero--frame .wrap > .tt-hero-side { grid-column: 2; grid-row: 1 / -1; align-self: stretch; width: auto; margin: 0; text-align: initial; display: flex; flex-direction: column; }   /* Caelan 2026-11-03: stretch column so sym can sit midway in leftover space under skull */
  .tt-hero-photo { display: block; }
  /* hero symbols (Caelan 2026-10-25 11:08 PM: "together closely but tastefully ... centered below the bison skull photo"):
     noodle bowl + clinking mugs as a pair under the photo frame, same cream art and 160px height, bottoms aligned.
     Measured from the art (h = symbol height): bowl box 0.956h wide with ink from 21.78% to 94.88% of it; mugs ink = its box.
     Box gap 0.201h + the bowl's 0.0512 x 0.956h right margin = 0.25h ink gap (40px at 160). The bowl's 0.2178 x 0.956h left
     margin would push the ink right by half of it, so the pair shifts left 0.1041h: the pair's INK box centres on the frame. */
  .tt-hero-sym { --h: 160px; display: flex; justify-content: center; align-items: flex-end; gap: calc(var(--h) * 0.201); margin-top: auto; margin-bottom: auto; transform: translateX(calc(var(--h) * -0.1041)); }  /* Caelan 2026-11-03 pt807u: midway in empty space under skull (was fixed 2–2.5rem); ink-centred */
  .tt-hero-sym img { display: block; height: var(--h); width: auto; }
  .tt-frame { margin: 0; padding: 8px; border: 1px solid var(--gold-line); }
  .tt-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--color-surface); }
  .tt-hero-photo img { width: clamp(300px, 32vw, 466px); aspect-ratio: 3 / 4; }   /* v7: driggs_03 neon skull, whole frame (no crop) */

  /* Food band (surface): four framed photos edge to edge (8px off the window edge) up to 1888px, as the TYGR Mart food strip.
     Tile at 1920 = 448 CSS px -> 2x 896 of the 944 px files. */
  .tt-gallery { display: block; background: var(--color-surface); padding: var(--space-7) 0; }
  .tt-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); width: min(100cqw - 16px, 1888px); margin-inline: calc((100% - min(100cqw - 16px, 1888px)) / 2); }

  /* Rest of the page: gold hairlines between sections, alternating bands edge to edge, gold dividers between columns */
  section { border-bottom: 1px solid var(--gold-line); }
  #visit { background: var(--color-surface); }
  .grid--2 { column-gap: 0; }
  .grid--2 > div:not(:first-child) { border-left: 1px solid var(--gold-line); padding-left: clamp(2rem, 4vw, 5rem); }
  .grid--2 > div:not(:last-child) { padding-right: clamp(2rem, 4vw, 5rem); }
  .door-footer .sisters { border-top-color: var(--gold-line); }


  /* Shared phone header: logo + actions + menu button on one row; the section links drop down under it */
  .site-header { position: relative; z-index: 40; }
  .site-header .wrap { flex-wrap: nowrap; min-height: var(--ph-hdr-in); padding-top: 0; padding-bottom: 0; gap: 0.75rem; }
  .site-header:not(.ph-js) .wrap { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .ph-burger { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem;
               margin: 0 -0.55rem 0 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ph-burger:not(.ph-ready) { display: none; }
  .ph-burger span, .ph-burger span::before, .ph-burger span::after { display: block; width: 1.375rem; height: 2px; background: currentColor; border-radius: 1px; }
  .ph-burger span { position: relative; }
  .ph-burger span::before, .ph-burger span::after { content: ""; position: absolute; left: 0; }
  .ph-burger span::before { top: -7px; } .ph-burger span::after { top: 7px; }
  .ph-open .ph-burger span { background: transparent; }
  .ph-open .ph-burger span::before { top: 0; transform: rotate(45deg); }
  .ph-open .ph-burger span::after { top: 0; transform: rotate(-45deg); }
  .ph-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .ph-js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-menu-bg);
                     border-bottom: 1px solid var(--ph-menu-line); box-shadow: 0 14px 28px rgba(0,0,0,0.35); padding: 0.25rem var(--gutter) 0.75rem; }
  .ph-js.ph-open .site-nav { display: block; }
  .ph-js .site-nav ul { display: block; max-width: 36rem; margin: 0 auto; }
  .ph-js .site-nav li { border-bottom: 1px solid var(--ph-menu-line); }
  .ph-js .site-nav li:last-child { border-bottom: 0; }
  .ph-js .site-nav a { display: block; padding: 0.95rem 0; opacity: 1; }

  .ph-js .site-nav .social-links {
    display: flex;
    max-width: 36rem;
    margin: 0.35rem auto 0;
    padding-top: 0.15rem;
    color: inherit;
  }
  .ph-js .site-nav .social-links li { border-bottom: 0; }
  .ph-js .site-nav .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  /* ---- Teton Thai phone layout ---- */
  :root { --pad: var(--gutter); }
  .site-header .site-logo { margin-right: auto; }
  .site-header .site-logo img { width: 7.5rem; }
  .site-header .hdr-order { display: inline-block; flex: none; padding: 0.95em 1.15em; font-size: 0.6875rem; }
  .site-nav ul { font-size: 0.8125rem; }

  /* Hero: the badge left, the framed neon skull right; tagline, Order online and the fact line under them; one first screen */
  .hero--frame { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--ph-hdr)); padding: 1rem 0 1.75rem; }
  @supports (height: 1svh) { .hero--frame { min-height: calc(100svh - var(--ph-hdr)); } }
  .hero--frame .wrap { width: 100%; max-width: calc(36rem + 2 * var(--gutter)); grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); grid-template-rows: auto; justify-content: stretch; column-gap: 1rem; align-items: center; }
  .hero--frame .hero-media--graphic { grid-column: 1; grid-row: 1; margin: 0; }
  .hero--frame .hero-media--sized img { width: 100%; }
  .hero--frame .wrap > .tt-hero-side { grid-column: 2; grid-row: 1; margin: 0; container-type: inline-size; }
  /* hero symbols (11:08 PM): the pair under the photo here too, sized to the photo column (box row = 1.945h, so h <= 50cqw),
     128px at most; same ink-centring maths as desktop (--h drives gap and shift) */
  .tt-hero-sym { --h: min(128px, 50cqw); margin-top: 3rem; }
  /* tth7 (2:31-2:32 PM): photo column wider (0.82fr/1fr -> 0.66fr/1fr, photo ~+10%), symbol pair ~-20%, a little less gap */
  .hero--frame .wrap { grid-template-columns: minmax(0, 0.66fr) minmax(0, 1fr); }
  .tt-hero-sym { --h: min(102px, 40cqw); margin-top: 2.25rem; }  /* Caelan 2026-11-03 pt807u: a bit more under skull on phone (was 2rem); keep CTAs above fold */
  .tt-hero-photo img { width: 100%; }
  .hero--frame .wrap > div { grid-column: 1 / -1; grid-row: 2; margin-top: 1.25rem; }
  .tt-facts { margin-top: 1.25rem; padding-top: 0; border-top: 0; text-align: center; width: 100%; }
  .tt-facts__line { display: block; text-align: center; }  /* Caelan 2026-11-03: no thin rule above hours/address on phone */
  .tt-facts__reach { display: flex; margin-top: 0.05rem; column-gap: 1.1rem; }
  .tt-facts__reach a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.35rem 0.35rem; }

  /* Food band: the four framed photos 2 x 2 */
  .tt-gallery { padding: 2.5rem 0; }
  .tt-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(calc(100% - 2 * var(--gutter)), 36rem); margin-inline: auto; }

  @media (max-width: 39.99rem) {
    #visit .grid--2 { grid-template-columns: minmax(0, 1fr); }
    .grid--2 > div:not(:first-child) { border-left: 0; padding-left: 0; border-top: 1px solid var(--ph-menu-line); padding-top: var(--space-5); }
    .grid--2 > div:not(:last-child) { padding-right: 0; }
  }
  @media (min-width: 40rem) {
    .grid--2 > div:not(:first-child) { padding-left: 1.5rem; }
    .grid--2 > div:not(:last-child) { padding-right: 1.5rem; }
  }

}
