.print-finder {
    --print-ink: var(--brand-oxford-blue);   /* brand text: headings, labels, links */
    --print-band: var(--brand-oxford-blue);  /* the blue sections behind white text */
    --print-fill: var(--brand-oxford-blue);  /* buttons and selected chips */
    --print-surface: white;
    --print-text: var(--brand-raisin-black);
    --print-muted: var(--brand-american-blue);
    --print-line: var(--brand-light-gray);
    --print-field-border: var(--brand-american-blue);
    --print-soft: color-mix(in srgb, var(--brand-light-gray) 23%, white);
    background: var(--print-surface);
    color: var(--print-text);
    font-family: "Myriad Pro", var(--font-body);
}

/* Dark theme: the shared tokens from mysite.css. */
html[data-theme="dark"] .print-finder {
    --print-ink: var(--color-primary);
    --print-fill: var(--color-fill);
    --print-surface: var(--color-background-white);
    --print-text: var(--color-text-dark);
    --print-muted: var(--color-text-muted);
    --print-line: var(--color-border-soft);
    --print-field-border: var(--color-field-border);
    --print-soft: var(--color-background-ice);
}

/* The map keeps Leaflet's light popups and controls in both themes. */
html[data-theme="dark"] .print-finder .print-map {
    --print-ink: var(--brand-oxford-blue);
    --print-fill: var(--brand-oxford-blue);
}

.print-finder h1,
.print-finder h2,
.print-finder h3 {
    font-family: inherit;
    letter-spacing: -.045em;
    margin: 0;
}

.print-finder p { margin: 0; }
.print-finder [hidden] { display: none !important; }
.print-finder :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.print-wrap { width: min(100% - 3rem, 78rem); margin-inline: auto; }

.print-teaser {
    padding-block: clamp(2.75rem, 8vw, 7.5rem);
    background: var(--print-band);
    color: white;
}

.print-teaser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 7rem);
}

.print-teaser h1 {
    margin-block: .18em .22em;
    color: white;
    font-size: clamp(4.4rem, 10vw, 10.25rem);
    line-height: .83;
}

.print-teaser h1 span { color: color-mix(in srgb, var(--brand-french-wine) 75%, white); }
.print-teaser-deck { font-size: clamp(1.12rem, 2vw, 1.5rem); }

.print-teaser-date {
    padding: clamp(1.35rem, 3vw, 2.6rem);
    background: var(--print-surface);
    border-top: .42rem solid var(--brand-french-wine);
    box-shadow: .65rem .65rem 0 var(--brand-american-blue);
    color: var(--print-ink);
}

.print-teaser-date time {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem clamp(.55rem, 1.6vw, 1.3rem);
    margin-top: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--print-line);
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.25;
}

.print-teaser-day {
    font-size: clamp(6rem, 11vw, 10rem);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: .82;
}

.print-teaser-date time strong { font-size: clamp(1.75rem, 3.1vw, 3rem); letter-spacing: -.045em; }
.print-teaser-date time + p { margin-top: .85rem; }
.print-teaser-date .print-teaser-tba {
    margin-top: .45em;
    font-size: clamp(2rem, 4.2vw, 4rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.print-cover {
    background: var(--print-band);
    color: white;
    padding-block: clamp(2.25rem, 5vw, 5rem);
}

.print-cover-grid {
    display: grid;
    grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.35fr);
    gap: clamp(1.75rem, 4.5vw, 4.5rem);
}

.print-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.print-intro h1 { color: white; font-size: clamp(4rem, 7.7vw, 7.5rem); line-height: .83; margin: .28em 0 .24em; }
.print-intro h1 span { color: color-mix(in srgb, var(--brand-french-wine) 75%, white); }
.print-label { font-size: .82rem; line-height: 1.3; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 1.5rem; }
.print-actions a { color: white; text-decoration: underline; text-underline-offset: .25em; font-weight: 700; }
.print-location-status { font-size: .95rem; max-width: 40ch; }
.print-location-status:not(:empty) { margin-top: .65rem; }
.print-start { display: grid; gap: .25rem; margin-top: .8rem; max-width: 23rem; }
.print-start label { font-weight: 600; }
.print-start select {
    width: 100%;
    min-height: 44px;
    padding: .35rem .55rem;
    border: 1px solid var(--print-line);
    background: var(--print-surface);
    color: var(--print-ink);
    font: inherit;
}
.print-schedule { padding-top: 1.15rem; border-top: 1px solid var(--brand-american-blue); }
.print-schedule h2 { color: white; font-size: clamp(1.55rem, 2.5vw, 2.35rem); line-height: 1.08; margin-block: .32rem; }
.print-schedule p:last-child { font-variant-numeric: tabular-nums; }

.print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .65em 1.02em;
    min-height: 44px;
    border: 1px solid transparent;
    background: var(--print-fill);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.print-button-light { background: white; color: var(--print-band); }
.print-button:hover { background: var(--brand-american-blue); color: white; }
.print-button-light:hover { border-color: white; }
.print-button:disabled { opacity: .75; cursor: wait; }

.print-map-frame {
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--print-ink);
    background: var(--print-surface);
    padding: .55rem;
}

.print-map-stage { position: relative; min-height: clamp(23rem, 38vw, 34rem); flex: 1; background: var(--brand-american-blue); }
.print-map { position: absolute; inset: 0; background: var(--brand-american-blue); font-family: inherit; z-index: 0; }
.print-map-fallback { position: absolute; inset: auto 1rem 1rem; color: white; }

.print-footprint { stroke: white; stroke-opacity: .65; stroke-width: 1; fill: white; fill-opacity: .12; }
.print-footprint:hover { stroke-opacity: 1; stroke-width: 2; fill-opacity: .3; }
.print-pin {
    display: grid;
    place-items: center;
    background: var(--print-ink);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px var(--brand-raisin-black);
    border-radius: 50%;
    font: 700 14px/1 "Myriad Pro", var(--font-body);
}

.print-pin-out { background: var(--brand-french-wine); }
.print-pin-low { background: color-mix(in srgb, var(--brand-french-wine) 65%, white); }
.print-pin-unknown, .print-pin-ended, .print-pin-upcoming { background: var(--brand-light-gray); color: var(--print-ink); }
.print-user-pin {
    border: 2px solid white;
    border-radius: 50%;
    background: var(--brand-french-wine);
    box-shadow: 0 0 0 3px var(--brand-oxford-blue);
}
.print-map .print-user-label {
    border: 0;
    background: var(--print-ink);
    color: white;
    font: 700 .85rem/1.2 "Myriad Pro", var(--font-body);
}
.print-map .print-user-label::before { border-bottom-color: var(--print-ink); }
.print-map .leaflet-popup-content { font-size: .95rem; }
.print-popup-links { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .4rem; }
.print-map .print-popup-links a { color: var(--print-ink); text-decoration: underline; }
.print-building-start { margin-top: .35rem; }

.print-locations, .print-suggest-section { scroll-margin-top: 6rem; }
.print-locations { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.print-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .4rem 2rem;
    margin-bottom: 1.25rem;
}

.print-section-head h2, .print-suggest h2 { color: var(--print-ink); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; }
.print-stands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin: 0; padding: 0; list-style: none; gap: 1rem; }
.print-stand {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--print-line);
    border-top: 3px solid var(--print-ink);
    padding: 1.1rem 1.25rem;
    scroll-margin-top: 6rem;
    overflow-wrap: anywhere;
}

.print-stand:target { border-color: var(--color-accent); }
.print-stand-top { display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .65rem; }
.print-index { font-size: .9rem; font-weight: 700; color: var(--print-ink); font-variant-numeric: tabular-nums; }
.print-stock { font-size: .88rem; line-height: 1.25; padding: .22rem .55rem; font-weight: 700; background: var(--print-soft); color: var(--print-ink); }
.print-stock-available { background: var(--print-fill); color: white; }
.print-stock-out { color: var(--color-accent); }
.print-stock-low { background: var(--brand-french-wine); color: white; }
.print-checked { font-size: .85rem; color: var(--print-muted); }
.print-stand h3 { color: var(--print-ink); font-size: 1.75rem; line-height: 1.11; margin-bottom: .3rem; }
.print-stand-schedule { padding-block: .7rem; }
.print-stand-schedule time { font-weight: 700; }
.print-stand footer { width: 100%; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; column-gap: .85rem; border-top: 1px solid var(--print-line); }
.print-stand footer a, .print-map-link { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; color: var(--print-ink); text-decoration: underline; text-underline-offset: .2em; font: inherit; font-weight: 700; }
.print-map-link { border: 0; padding: 0; background: transparent; cursor: pointer; }
.print-distance { margin-left: auto; font-weight: 700; }

.print-suggest-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.print-suggest {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1.5rem clamp(1.5rem, 5vw, 5rem);
    background: var(--print-soft);
    border-top: 3px solid var(--brand-french-wine);
    padding: clamp(1.25rem, 4vw, 3rem);
}

.print-suggest h2 { max-width: 17ch; margin-bottom: .6rem; }
.print-suggest form { display: grid; align-content: start; gap: .35rem; }
.print-suggest label { color: var(--print-ink); font-weight: 700; }
.print-suggest label span { font-weight: 400; }
.print-suggest input[type=text], .print-suggest input[type=email], .print-suggest textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--print-field-border);
    border-radius: 0;
    padding: .6rem .72rem;
    margin-bottom: .35rem;
    font: inherit;
    color: var(--print-text);
    background: var(--color-surface-raised);
}

.print-suggest textarea { resize: vertical; }
.print-suggest .print-button { justify-self: start; margin-top: .35rem; }
.print-suggest .errorlist { color: var(--color-accent); margin: 0 0 .45rem; }
.print-form-message { color: var(--print-ink); font-weight: 700; }
.print-form-error { color: var(--color-accent); }
.print-distribute-form { width: 100%; }
.print-distribute-form > input { max-width: 28rem; }
.print-distribute-section { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; scroll-margin-top: 6rem; }
.print-distribute-section + .print-cover { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.print-distribute { border-top-color: var(--print-ink); }
.print-distribute-action { display: grid; align-content: center; justify-items: start; gap: .6rem; }
.print-distribute-action .print-button { text-decoration: none; }
.print-distribute-action form { display: grid; justify-items: start; gap: .6rem; }
.print-shifts { display: grid; gap: .35rem; width: 100%; min-width: 0; }
.print-shifts-title { margin: 0; color: var(--print-ink); font-weight: 700; }
.print-shifts-title span { font-weight: 400; }
.print-days-hint { margin: 0 0 .25rem; color: var(--print-ink); }
.print-shift-scroll { max-width: 100%; overflow-x: auto; }
.print-shift-table { border-collapse: collapse; width: 100%; max-width: 34rem; table-layout: fixed; }
.print-shift-table th { color: var(--print-ink); font-weight: 700; text-align: left; padding: .2rem .3rem; white-space: nowrap; }
.print-shift-table thead th { padding-bottom: .35rem; }
.print-shift-table thead th:first-child, .print-shift-table tbody th { width: 4.6rem; padding-left: 0; font-variant-numeric: tabular-nums; }
.print-shift-table abbr { text-decoration: none; }
.print-shift-table td { padding: .2rem; }
.print-shift-table select {
    width: 100%; min-height: 44px; padding: .3rem .35rem; border: 1px solid var(--print-field-border); border-radius: 0;
    background: var(--color-surface-raised); color: var(--print-ink); font: inherit; font-size: .95rem; text-overflow: ellipsis;
}
.print-shift-table select:has(option[value=""]:not(:checked)) { background: var(--print-fill); border-color: var(--print-fill); color: white; font-weight: 700; }
.print-shift-summary { margin-top: .35rem; color: var(--print-ink); }
.print-shift-summary p { margin: 0; font-weight: 700; }
.print-shift-summary ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.print-shift-table select option { background: var(--color-surface-raised); color: var(--print-ink); font-weight: 400; }
.print-distribute-action .print-map-link { text-align: left; }
.print-distribute-done { color: var(--print-ink); font-weight: 700; font-size: 1.1rem; }

@media (max-width: 760px) {
    .print-wrap { width: calc(100% - 2rem); }
    .print-cover-grid, .print-suggest, .print-teaser-grid { grid-template-columns: minmax(0, 1fr); }
    .print-map-stage { min-height: clamp(17rem, 64vw, 25rem); }
    #campus-map .print-map-stage { min-height: clamp(14rem, 48vh, 25rem); }
    .print-teaser-date { margin-right: .65rem; }
}
