/* ==========================================================================
   New York Seafood — menu page

   Built on the same design system as the home page. Colors, fonts, borders
   and shadows all come from ../css/tokens.css — do not invent new ones here.

   Layer order (not file order) wins:  base < components < utilities
   ========================================================================== */

@layer base, components, utilities;

@import url("../css/tokens.css");
@import url("../css/base.css");
@import url("../css/buttons.css");

/* ==========================================================================
   PAGE SHELL
   ========================================================================== */
@layer base {
    :root {
        /* the brand bar and the category strip both pin to the top, so the
           strip and the order pad offset themselves off this */
        --topbar-h: 40px;
    }

    /* base.css uses overflow-x: hidden, which turns <body> into a scroll
       container and kills position: sticky. clip does the same job safely. */
    body {
        overflow-x: clip;
        -webkit-text-size-adjust: 100%;
    }

    /* Several components below set display, which outranks the browser's
       [hidden] { display: none } rule. menu.js drives visibility through the
       hidden attribute, so it has to win. */
    [hidden] {
        display: none !important;
    }

    ::selection {
        background: var(--sun);
        color: var(--ink);
    }

    :focus-visible {
        outline: 3px solid var(--sea);
        outline-offset: 2px;
    }
}

@layer components {

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--sun);
    color: var(--ink);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.skip:focus {
    left: 12px;
    top: 12px;
}

/* ==========================================================================
   BRAND BAR
   ========================================================================== */
/* Ink ground, like the footer — it bookends the page and keeps the bar to
   one thin line so the board is what you notice. */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--topbar-h);
    background: var(--ink);
}

.topbar-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    text-decoration: none;
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.15s var(--ease);
}

.backlink svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.backlink:hover {
    color: var(--sun);
}

/* on ink, a paper-colored hard border reads the way the ink one does on
   paper — same idiom the home page uses in its dark sections */
.topbar-call {
    flex-shrink: 0;
    padding: 0.34rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
    border-color: var(--paper);
    box-shadow: none;
    font-variant-numeric: tabular-nums;
}

.topbar-call:hover {
    transform: translate(-1px, -1px);
    background: var(--coral-hot);
    border-color: var(--paper);
    box-shadow: 2px 2px 0 var(--paper);
}

.topbar-call:active {
    transform: translate(0, 0);
    box-shadow: none;
}

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.masthead {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

/* The badge IS the brand here, so nothing crops, tints or boxes it: it draws
   its own white outline, and a chip behind it only fights that. Its detail
   (wheel, torch, banner) needs real size to read at all. */
.masthead-mark {
    display: block;
    width: clamp(112px, 24vw, 164px);
    height: auto;
    aspect-ratio: 320 / 287;
}

.masthead-copy {
    max-width: 46ch;
}

.masthead .kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.9rem;
}

.masthead h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.3rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.masthead h1 em {
    font-style: normal;
    color: var(--coral);
}

.masthead .lead {
    margin-top: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- hours card: real content in what was empty space ---------- */
.hours-card {
    width: 100%;
    max-width: 380px;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper);
    border-radius: var(--radius);
}

.hours-card h2 {
    padding: 0.42rem 0.75rem;
    background: var(--sun);
    border-bottom: 2px solid var(--paper-edge);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.hours-card > dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px dotted rgba(10, 22, 40, 0.18);
    font-size: 0.84rem;
}

.hours-card > dl > div:last-child {
    border-bottom: none;
}

.hours-card dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.hours-card dd {
    color: var(--muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.hours-card .is-today {
    background: rgba(255, 193, 7, 0.2);
}

.hours-card .is-today dd {
    color: var(--ink);
    font-weight: 700;
}

.hours-card.is-vacation h2 {
    background: var(--sun);
}

.hours-vacay {
    margin: 0;
    padding: 0.7rem 0.75rem 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    background: rgba(255, 193, 7, 0.22);
    border-bottom: 2px dotted rgba(10, 22, 40, 0.18);
}

.vacay-banner {
    background: var(--sun);
    border-bottom: 2px solid var(--paper-edge);
    padding: 0.95rem 1.25rem 1.05rem;
    text-align: center;
}

.vacay-banner-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.55rem;
}

.vacay-banner-copy {
    margin: 0 auto;
    max-width: 42ch;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}

.vacay-banner-copy strong {
    font-weight: 800;
}

.today {
    padding: 0.1rem 0.34rem;
    background: var(--coral);
    color: var(--white);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ==========================================================================
   STICKY CATEGORY STRIP
   ========================================================================== */
.strip {
    position: sticky;
    top: var(--topbar-h);
    z-index: 50;
    background: var(--paper-2);
    border-top: 2px solid var(--paper-edge);
    border-bottom: 2px solid var(--paper-edge);
}

.strip-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tabs {
    display: flex;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 2px 4px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.navlink {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    border-radius: var(--radius);
    padding: 0.38rem 0.72rem;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.navlink em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.navlink:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--paper-edge);
}

.navlink.is-on {
    background: var(--coral);
    color: var(--white);
}

.navlink.is-on em {
    color: rgba(255, 255, 255, 0.75);
}

.find {
    position: relative;
    flex: 0 0 auto;
    width: min(260px, 32vw);
    display: flex;
    align-items: center;
}

.find-ico {
    position: absolute;
    left: 0.6rem;
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

.find input {
    width: 100%;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    border-radius: var(--radius);
    padding: 0.48rem 1.9rem 0.48rem 2rem;
    -webkit-appearance: none;
    appearance: none;
}

.find input::-webkit-search-cancel-button {
    display: none;
}

.find input::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

#searchClear {
    position: absolute;
    right: 0.4rem;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--muted);
}

#searchClear:hover {
    color: var(--coral);
}

/* ==========================================================================
   PAGE GRID
   ========================================================================== */
.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: start;
}

.board {
    min-width: 0;
}

.state {
    padding: 3rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.6;
}

.state a {
    color: var(--coral);
    font-weight: 700;
}

/* ==========================================================================
   CATEGORY HEADINGS
   ========================================================================== */
.cat-head {
    margin: 2.5rem 0 1.25rem;
}

.cat-head:first-child {
    margin-top: 0;
}

.cat-head h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.cat-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin: 0.6rem 0 0.75rem;
    background: var(--coral);
    border: 1.5px solid var(--paper-edge);
    border-radius: 2px;
    box-shadow: 2px 2px 0 var(--paper-edge);
}

.cat-head p {
    max-width: 60ch;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--muted);
}

/* ==========================================================================
   THE BOARD — printed-menu columns of paper cards
   ========================================================================== */
.panels {
    columns: 320px 2;
    column-gap: 1.15rem;
}

.panel {
    break-inside: avoid;
    margin: 0 0 1.15rem;
    padding: 1.05rem 1.1rem 1.15rem;
    background: var(--white);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper);
    border-radius: var(--radius);
}

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--paper-edge);
}

.panel-head h3 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.panel-head span {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---------- single-price row: the whole row is the tap target ---------- */
.row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: 100%;
    padding: 0.42rem 0.45rem;
    /* pull the hover fill out to the card padding while keeping the item name
       on the same left edge as the note underneath it */
    margin: 0 -0.45rem 0 calc(-0.45rem - 3px);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.94rem;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.12s ease;
}

.row:hover {
    background: var(--foam);
}

.nm {
    font-weight: 500;
}

.row .nm {
    flex-shrink: 0;
    max-width: 78%;
}

/* dotted leader — the one thing every printed menu has. Sits on the first
   baseline so it still lines up with the price when a long name wraps. */
.dots {
    flex: 1;
    height: 0;
    align-self: baseline;
    position: relative;
    top: 2px;
    border-bottom: 2px dotted rgba(10, 22, 40, 0.22);
    min-width: 1rem;
}

.pr {
    flex-shrink: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.qty {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    background: var(--coral);
    color: var(--white);
    border: 2px solid var(--paper-edge);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.row.in-cart {
    background: rgba(255, 77, 46, 0.09);
    border-left-color: var(--coral);
}

.row.in-cart .pr {
    color: var(--coral);
}

/* ---------- multi-size group ---------- */
.grp {
    padding: 0.5rem 0 0.15rem;
}

.grp .nm {
    display: block;
    font-size: 0.94rem;
}

.inc {
    font-size: 0.79rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
    padding: 0 0 0.35rem;
}

.grp .inc {
    padding-top: 0.15rem;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.sz {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    border-radius: var(--radius);
    padding: 0.34rem 0.55rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sz b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sz:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--paper-edge);
}

.sz.in-cart {
    background: var(--coral);
    color: var(--white);
}

.sz.in-cart .qty {
    background: var(--white);
    color: var(--coral);
}

.pop {
    animation: pop 0.22s var(--ease);
}

@keyframes pop {
    50% { transform: scale(0.96); }
}

/* ---------- sauces + heat ---------- */
.chips,
.heat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.chip {
    background: var(--foam);
    border: 2px solid var(--paper-edge);
    border-radius: var(--radius);
    padding: 0.26rem 0.5rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink);
}

.heat-row .lab {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 0.15rem;
}

.heat {
    border: 2px solid var(--paper-edge);
    border-radius: var(--radius);
    padding: 0.26rem 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink);
}

.heat-mild   { background: var(--foam); }
.heat-medium { background: var(--sun); }
.heat-spicy  { background: var(--sun-hot); }
.heat-xtra   { background: var(--coral); color: var(--white); }

/* ==========================================================================
   THE ORDER PAD — the one signature object on this page
   ========================================================================== */
.pad {
    position: sticky;
    top: calc(var(--topbar-h) + 68px);
}

.pad-sheet {
    background: var(--white);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper);
    border-radius: var(--radius);
}

.pad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: var(--coral);
    border-bottom: 2px solid var(--paper-edge);
}

.pad-head h2 {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
}

.pad-close {
    display: none;
    width: 28px;
    height: 28px;
    place-items: center;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--paper-edge);
    border-radius: var(--radius);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.pad-stamp {
    padding: 0.55rem 0.9rem 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.pad-lines {
    padding: 0.35rem 0.9rem 0.6rem;
    max-height: min(38vh, 340px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.r-empty {
    padding: 1.15rem 0;
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.r-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 2px dotted rgba(10, 22, 40, 0.18);
}

.r-line:last-child {
    border-bottom: none;
}

.r-line-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.r-line-amt {
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    text-align: right;
}

.r-line-sub {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
}

.r-stepper {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    margin-top: 0.3rem;
    border: 2px solid var(--paper-edge);
    border-radius: var(--radius);
    overflow: hidden;
}

.r-stepper button {
    width: 26px;
    height: 24px;
    background: var(--paper);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.r-stepper button:hover {
    background: var(--sun);
}

.r-stepper .q {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 24px;
    border-left: 2px solid var(--paper-edge);
    border-right: 2px solid var(--paper-edge);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pad-totals {
    padding: 0.7rem 0.9rem 0.9rem;
    border-top: 2px solid var(--paper-edge);
}

.pad-totals > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0.16rem 0;
}

.pad-totals dd {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.pad-grand {
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 2px solid var(--paper-edge);
}

.pad-grand dt {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.pad-grand dd {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--coral);
}

/* the tear-off perforation */
.perf {
    position: relative;
    height: 0;
    border-top: 2px dashed var(--paper-edge);
}

.perf::before,
.perf::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 14px;
    height: 14px;
    background: var(--paper);
    border: 2px solid var(--paper-edge);
    border-radius: 50%;
}

.perf::before { left: -9px; }
.perf::after  { right: -9px; }

.pad-actions {
    padding: 0.9rem;
}

.pad-call {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.pad-call svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.pad-mini {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.pad-mini .btn {
    flex: 1;
    padding: 0.5rem 0.35rem;
    font-size: 0.76rem;
}

.pad-mini .danger {
    color: var(--coral);
}

.pad-note {
    margin-top: 0.7rem;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.pad-phone {
    margin-top: 0.35rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   MOBILE ORDER BAR + SCRIM + TOAST
   ========================================================================== */
.orderbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: var(--coral);
    color: var(--white);
    border: none;
    border-top: 2px solid var(--paper-edge);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.ob-count {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: var(--white);
    color: var(--coral);
    border: 2px solid var(--paper-edge);
    border-radius: 999px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.ob-label {
    flex: 1;
    text-align: left;
}

.ob-total {
    font-variant-numeric: tabular-nums;
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(10, 22, 40, 0.5);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 5.5rem;
    z-index: 200;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    border: 2px solid var(--paper-edge);
    box-shadow: var(--shadow-paper-sm);
    border-radius: var(--radius);
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
    background: var(--ink);
    border-top: 2px solid var(--paper-edge);
}

.foot-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(227, 246, 255, 0.7);
}

.foot-inner a {
    color: var(--sun);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.foot-inner a:hover {
    border-bottom-color: var(--sun);
}

.foot-inner span {
    margin-left: auto;
}

}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@layer utilities {

@media (max-width: 1079px) {
    .page {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 6rem;
    }

    /* pad becomes a sheet that slides up from the order bar */
    .pad {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 100;
        max-height: 88vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 0 env(safe-area-inset-bottom);
        background: var(--white);
        border-top: 2px solid var(--paper-edge);
        box-shadow: 0 -6px 0 rgba(10, 22, 40, 0.12);
        animation: sheet-up 0.24s var(--ease);
    }

    .pad-sheet {
        border: none;
        box-shadow: none;
    }

    .pad-head {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .pad-close {
        display: grid;
    }

    .pad-lines {
        max-height: none;
    }

    /* the sheet runs edge to edge, so there is no card edge left to notch */
    .perf::before,
    .perf::after {
        display: none;
    }
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
}

@media (min-width: 1080px) {
    .orderbar,
    .scrim {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .masthead {
        gap: 1.05rem;
    }
}

@media (max-width: 720px) {
    /* only one thing pins on a phone — the strip. The bar scrolls away so the
       board keeps as much screen as possible. */
    .topbar {
        position: static;
    }

    .topbar-inner {
        padding: 0 1rem;
    }

    .strip {
        top: 0;
    }

    .masthead {
        padding: 1.6rem 1rem 1.35rem;
    }

    .strip-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .find {
        width: 100%;
        order: -1;
    }

    .page {
        padding: 1.5rem 1rem 6rem;
    }

    .panels {
        columns: 1;
    }

    .toast {
        bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .backlink {
        font-size: 0.78rem;
    }

    .topbar-call {
        padding: 0.32rem 0.6rem;
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

}

/* ==========================================================================
   PRINT — the pad prints as a clean order slip, nothing else
   ========================================================================== */
@media print {
    .topbar,
    .masthead,
    .strip,
    .board,
    .foot,
    .orderbar,
    .scrim,
    .toast,
    .pad-close,
    .pad-mini,
    .perf {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page {
        display: block;
        padding: 0;
    }

    .pad {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .pad-sheet {
        border: 1px solid #000;
        box-shadow: none;
    }

    .pad-head {
        background: #fff;
        color: #000;
    }

    .pad-head h2 {
        color: #000;
    }

    .pad-lines {
        max-height: none;
        overflow: visible;
    }

    .r-stepper {
        display: none;
    }
}
