/* Peak Season's own styles (server-ops/new_tool.py, 2026-11-10). The shared
   sheets beside this one are COPIES of phronon_common masters, kept in step by
   server-ops/sync_shared_assets.py: never edit those here. */

/* The reset every tool's own sheet carries; the shared sheets assume it.
   Without it .bo-content (width 100% plus padding) is wider than the screen,
   and the browser gate's nav check reports a page that scrolls sideways. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.peakseason-login {
  width: min(24rem, 100% - 2rem);
  margin: 2rem auto;
}
/* The messages the sign-in, reset and account pages show (the account kit's
   pages use the same classes). */
.alert {
  padding: .7rem 1rem;
  border-radius: var(--radius, 8px);
  margin-bottom: 1rem;
}
.alert-error   { background: var(--bo-danger-bg, #fdecea);  color: var(--bo-danger, #c0392b);  border-left: 3px solid var(--bo-danger, #c0392b); }
.alert-success { background: var(--bo-success-bg, #edfaf2); color: var(--bo-success, #276749); border-left: 3px solid var(--bo-success, #276749); }
/* The cards of the account kit's Manage account page and its e-mail
   confirmation (phronon_common/account_templates). */
.bo-form-card {
  background: var(--bo-surface, #fff);
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card, 0 1px 6px rgba(0,0,0,.07));
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bo-form-card h2 { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }
.bo-form-card input[type="text"],
.bo-form-card input[type="email"],
.bo-form-card input[type="password"],
.peakseason-login input[type="email"],
.peakseason-login input[type="password"] {
  display: block;
  width: 100%;
  padding: .5rem .6rem;
  font: inherit;
}

/* ── The students' pages ───────────────────────────────────────────────────
   One sheet for the start page, joining and the team's screen. Type is 16px
   at least in every field, so a phone does not zoom into it. */
:root {
  --ps-pine: #1f3a33;
  --ps-pine-soft: #e9f1ee;
  --ps-ground: #f3f4f2;
  --ps-card: #ffffff;
  --ps-line: #d5d9dd;
  --ps-ink: #14181a;
  --ps-ink-2: #4a5257;
  --ps-ink-3: #6f777c;
  --ps-accent: #f6c453;
  --ps-danger: #b3261e;
  --ps-ok: #128a60;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ps-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ps-ink);
  background: var(--ps-ground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ps-body a { color: #1f5fa8; }
.ps-top {
  background: var(--ps-pine);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.2rem;
  padding: .7rem 1.1rem;
}
.ps-top__brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-right: auto; }
.ps-body .ps-top__brand { color: #fff; }
.ps-top__hotel { font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.ps-top__where { color: #cfe0d9; font-size: .92rem; }
.ps-clock { background: var(--ps-accent); color: #3d2c00; border-radius: 999px; padding: .25rem .8rem; font-size: .92rem; }
.ps-clock--late { background: #ffd9d4; color: #7a130d; }
.ps-main { width: min(1240px, 100% - 1.6rem); margin: 1.2rem auto 2rem; flex: 1; }
.ps-footer { text-align: center; padding: 1rem; font-size: .85rem; color: var(--ps-ink-3); }
.ps-footer a { color: var(--ps-ink-2); }

.ps-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--ps-ink-3); margin: 0; }
.ps-lead { font-size: 1.12rem; color: var(--ps-ink-2); }
.ps-hint { color: var(--ps-ink-3); font-size: .9rem; }
.ps-center { text-align: center; }

.ps-card {
  background: var(--ps-card);
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.ps-card--narrow { max-width: 30rem; margin: 2rem auto; }
.ps-card h1 { font-size: 1.5rem; margin: 0 0 .6rem; }
.ps-card h2, .ps-card .ps-h2 { font-size: 1.08rem; margin: 0 0 .7rem; }

.ps-columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, .85fr); gap: 1rem; align-items: start; }
.ps-columns--two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 960px) {
  .ps-columns, .ps-columns--two { grid-template-columns: minmax(0, 1fr); }
  .ps-columns > div:nth-child(2) { order: -1; }
}

.ps-btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #b9c0c6;
  background: #fff;
  color: var(--ps-ink);
  cursor: pointer;
  text-decoration: none;
}
.ps-body a.ps-btn { color: var(--ps-ink); }
.ps-btn--primary, .ps-body a.ps-btn--primary { background: var(--ps-pine); border-color: var(--ps-pine); color: #fff; }
.ps-btn--small { padding: .25rem .6rem; font-size: .85rem; }
.ps-btn--danger, .ps-body a.ps-btn--danger { background: var(--ps-danger); border-color: var(--ps-danger); color: #fff; }
.ps-btn--wide { display: block; width: 100%; padding: .75rem 1rem; margin-top: .8rem; }
.ps-btn:focus-visible, .ps-input:focus-visible, .ps-house input:focus-visible { outline: 3px solid #1f5fa8; outline-offset: 2px; }

.ps-form label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
.ps-form--row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.ps-form--row label { flex-basis: 100%; margin-bottom: 0; }
.ps-input {
  font: inherit;
  font-size: 16px;
  padding: .5rem .6rem;
  border: 1px solid #b9c0c6;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  max-width: 100%;
}
.ps-form--row .ps-input { flex: 1; width: auto; }
.ps-input--code { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.ps-input--number { width: 5.2rem; text-align: center; font-weight: 600; }
.ps-alert { background: #fdecea; color: var(--ps-danger); border-left: 3px solid var(--ps-danger); padding: .6rem .8rem; border-radius: 6px; }
.ps-alert--ok { background: #e9f7f1; color: #0d5c41; border-left-color: var(--ps-ok); }

.ps-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: #888; flex: none; }
.ps-dot--0 { background: #2a78d6; } .ps-dot--1 { background: #eb6834; } .ps-dot--2 { background: #1baf7a; }
.ps-dot--3 { background: #eda100; } .ps-dot--4 { background: #e87ba4; } .ps-dot--5 { background: #6250d6; }
.ps-dot--6 { background: #008300; } .ps-dot--7 { background: #d03b3b; }

.ps-picture svg { display: block; width: 100%; height: auto; }
.ps-hotels { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .3rem .8rem; font-size: .9rem; }
.ps-hotels li { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.ps-hotels small { color: var(--ps-ink-3); flex-basis: 100%; padding-left: 1.2rem; }
.ps-hotels__mine { font-weight: 700; }
.ps-reviews, .ps-news, .ps-rules { margin: 0; padding: 0; list-style: none; }
.ps-reviews li { margin-bottom: .7rem; }
.ps-reviews q { display: block; }
.ps-stars { display: inline-flex; gap: 3px; margin-top: .25rem; }
.ps-star { width: .6rem; height: .6rem; border-radius: 50%; background: #dcdfe1; }
.ps-star--on { background: #eda100; }
.ps-news li, .ps-rules li { padding: .3rem 0 .3rem 1rem; position: relative; }
.ps-news li::before, .ps-rules li::before { content: ""; position: absolute; left: 0; top: .8rem; width: .4rem; height: .4rem; border-radius: 50%; background: #9aa6b1; }

.ps-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.ps-tile { background: var(--ps-ground); border-radius: 8px; padding: .6rem .7rem; }
.ps-tile dt { font-size: .82rem; color: var(--ps-ink-2); }
.ps-tile dd { margin: .15rem 0 0; font-size: 1.45rem; font-weight: 700; }

.ps-team__list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.ps-team__person { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.ps-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ps-pine-soft); color: #0d5c41; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ps-team__person--manager .ps-avatar { background: var(--ps-pine); color: #fff; }
.ps-team__name { flex: 1; font-weight: 600; }
.ps-team__name small { display: block; font-weight: 400; color: var(--ps-ink-3); }
.ps-inline { display: inline; }

.ps-decisions fieldset { border: 0; border-top: 1px solid var(--ps-line); margin: 0; padding: .8rem 0; min-width: 0; }
.ps-decisions fieldset:first-of-type { border-top: 0; padding-top: 0; }
.ps-decisions legend { font-weight: 700; font-size: .92rem; color: var(--ps-ink-2); padding: 0; margin-bottom: .5rem; }
.ps-decisions fieldset:disabled { opacity: .78; }
.ps-scale { display: grid; grid-template-columns: 4.5fr 6fr 5fr 4.5fr; margin: 0 8.4rem 0 5.2rem; font-size: .72rem; color: var(--ps-ink-3); text-align: center; }
.ps-scale span { border-left: 1px solid #e3e6e8; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.ps-scale span:first-child { border-left: 0; }
.ps-house { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) 3rem 4.6rem; gap: .4rem; align-items: center; padding: .28rem 0; }
.ps-house > label:first-child { font-size: .92rem; }
.ps-house input[type="range"] { width: 100%; accent-color: var(--ps-pine); height: 1.6rem; margin: 0; }
.ps-house__out { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ps-house--all { border-bottom: 1px dashed var(--ps-line); padding-bottom: .5rem; margin-bottom: .3rem; color: var(--ps-ink-2); }
.ps-house--closed input[type="range"] { opacity: .35; }
.ps-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; }
.ps-check input { width: 1.1rem; height: 1.1rem; }
.ps-tag { background: var(--ps-accent); color: #3d2c00; border-radius: 4px; font-size: .7rem; padding: 0 .3rem; font-weight: 700; }
.ps-field { display: flex; align-items: center; gap: .6rem; }
.ps-field--wrap { flex-wrap: wrap; margin-bottom: .5rem; }
.ps-field label, .ps-field span { color: var(--ps-ink-2); font-size: .92rem; }
.ps-auction { background: #fdf6e3; border-radius: 8px; border-top: 0 !important; padding: .7rem .8rem !important; margin: .4rem 0 !important; }
.ps-more { border-top: 1px solid var(--ps-line); padding: .6rem 0; }
.ps-more summary { cursor: pointer; color: var(--ps-ink-2); font-size: .92rem; }
.ps-more fieldset { border-top: 0; }

.ps-table { width: 100%; border-collapse: collapse; margin-bottom: .8rem; }
.ps-table caption { text-align: left; color: var(--ps-ink-3); font-size: .85rem; padding-bottom: .3rem; }
.ps-table th, .ps-table td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--ps-line); font-weight: 400; }
.ps-table thead th { font-size: .82rem; color: var(--ps-ink-2); font-weight: 600; }

/* The join sheet stands alone on the page: the participant column must not squeeze the card. */
.page-share .ps-main { width: min(1040px, 100% - 1.6rem); }
.share-actions { display: flex; gap: .5rem; }

/* ── The backoffice's session pages ────────────────────────────────────────
   The shared sheets give the nav, the dashboard table, the buttons and the
   tabs; what follows is this tool's own. */
.ps-bo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ps-bo-sub { color: var(--bo-muted, #6b7280); margin: .2rem 0 0; }
.ps-bo-name { font-weight: 600; }
.ps-num { text-align: right; font-variant-numeric: tabular-nums; }
.ps-bo-card {
  background: var(--bo-surface, #fff);
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card, 0 1px 6px rgba(0,0,0,.07));
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.ps-bo-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ps-bo-card h3 { font-size: .92rem; margin: 1rem 0 .4rem; }
.ps-bo-hint { color: var(--bo-muted, #6b7280); font-size: .85rem; margin: .25rem 0 0; }
.ps-bo-form { max-width: 40rem; }
.ps-bo-field { margin-bottom: .9rem; }
.ps-bo-field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.ps-bo-field input, .ps-bo-field select, .repair-form input, .repair-form select {
  font: inherit; font-size: 16px; padding: .45rem .6rem; border: 1px solid #c3c8cc; border-radius: 6px; max-width: 100%;
}
.ps-bo-field input[type="number"] { width: 7rem; }
.ps-bo-field input:not([type="number"]):not([type="date"]) { width: 100%; }
.ps-bo-set { border: 1px solid #e3e6e8; border-radius: 8px; padding: .9rem 1rem; margin: 0 0 1rem; }
.ps-bo-set legend { font-weight: 700; padding: 0 .4rem; }
.ps-bo-set:disabled { opacity: .7; }
.ps-bo-check { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; }
.ps-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel { margin-top: 1rem; }

.ps-control__clock { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #e9f7f1; border-radius: 10px; padding: .8rem 1rem; margin-bottom: .9rem; }
.ps-control__clock h2 { margin: 0 0 .2rem; }
.ps-control__clock p { margin: 0; }
.ps-bigclock { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-levers { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: end; }
.ps-levers .ps-bo-field { margin-bottom: 0; }
.ps-chip { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .12rem .6rem; background: #eef0ee; color: #4a5257; }
.ps-chip--ok { background: #e9f7f1; color: #0d5c41; }
.ps-chip--warn { background: #fdf1d6; color: #7a5600; }
.ps-valley__grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-bottom: 1rem; }
@media (max-width: 800px) { .ps-valley__grid { grid-template-columns: minmax(0, 1fr); } }
.ps-valley__picture svg { display: block; width: 100%; height: auto; }
.ps-meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .7rem; margin: 0; }
.ps-meters > div { background: #f3f4f2; border-radius: 8px; padding: .6rem .75rem; }
.ps-meters dt { font-size: .8rem; color: var(--bo-muted, #6b7280); }
.ps-meters dd { margin: .15rem 0 0; font-weight: 700; }
.ps-meters progress { width: 100%; height: .6rem; margin-top: .35rem; accent-color: #128a60; }
.ps-log { margin: 0; padding-left: 1.1rem; }

/* Repair (README §9): a pop-up on an opaque ground, one open at a time. */
details.repair > summary {
  list-style: none; cursor: pointer; display: inline-block; font-size: .82rem; font-weight: 600;
  padding: .3rem .7rem; border: 1px solid #c3c8cc; border-radius: 6px; background: #fff;
}
details.repair > summary::-webkit-details-marker { display: none; }
details.repair.add-participant { margin-bottom: 1rem; }
details.repair.add-participant > summary { background: var(--bo-danger, #c0392b); border-color: var(--bo-danger, #c0392b); color: #fff; }
details.repair[open]::before { content: ""; position: fixed; inset: 0; background: #171717; z-index: 900; }
details.repair[open] > .repair-body {
  position: fixed; z-index: 901; left: 50%; top: 12vh; transform: translateX(-50%);
  width: min(30rem, 100vw - 2rem); max-height: 76vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 1.25rem 1.4rem; text-align: left;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.repair-head { font-size: 1.1rem; font-weight: 700; margin: 0 0 .8rem; }
.repair-head span { font-weight: 400; color: var(--bo-muted, #6b7280); }
.repair-form label { display: block; font-weight: 600; margin: .7rem 0 .25rem; }
.repair-form input, .repair-form select { width: 100%; }
.repair-form > button { margin-top: .8rem; }
.repair-row { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }
.repair-row--end { justify-content: flex-end; }
body.repair-open { overflow: hidden; }

/* ── Table search + sort: the fleet's control (dashboard-table.js) and its
   arrows, as in every other tool's backoffice ──────────────────────────── */
th.sortable-col {
  cursor: pointer; user-select: none;
  position: relative; padding-right: 1.4rem !important;
}
th.sortable-col:hover { color: var(--bo-primary); background: #f0f0f0; }
th.sortable-col::after {
  content: "⇅"; position: absolute; right: .55rem; top: 50%;
  transform: translateY(-50%); font-size: .8rem; opacity: .35;
}
th.sortable-col.is-sorted-asc::after  { content: "↑"; opacity: 1; color: var(--bo-primary); }
th.sortable-col.is-sorted-desc::after { content: "↓"; opacity: 1; color: var(--bo-primary); }

/* ── The debrief: one card per chart, and presentation mode ──────────────── */
.ps-debrief-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ps-debrief-bar h2 { margin-bottom: .2rem; }
.ps-slide {
  background: var(--bo-surface, #fff);
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card, 0 1px 6px rgba(0,0,0,.07));
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.ps-slide h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.ps-slide__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ps-slide__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--bo-muted, #6b7280); margin: 0 0 .2rem; }
.ps-slide__sub { color: var(--bo-muted, #6b7280); margin: .3rem 0 1rem; max-width: 60rem; }
.ps-chart { width: 100%; overflow-x: auto; }
.ps-chart .chart-data-table { margin-top: .8rem; }
.ps-chart .chart-data-table table { border-collapse: collapse; font-size: .85rem; }
.ps-chart .chart-data-table th, .ps-chart .chart-data-table td { padding: .25rem .6rem; border-bottom: 1px solid #e3e6e8; text-align: right; }
.ps-chart .chart-data-table th[scope="row"], .ps-chart .chart-data-table th:first-child { text-align: left; }
.ps-pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.ps-pictures figure { margin: 0; }
.ps-pictures svg { display: block; width: 100%; height: auto; }
.ps-pictures figcaption { font-size: .9rem; color: var(--bo-muted, #6b7280); margin-top: .4rem; }
.ps-pictures figcaption strong { color: var(--bo-text, #171717); }
.ps-sales { margin-top: 1rem; max-width: 40rem; }
.ps-sales caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.ps-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .7rem; margin: 1rem 0 0; }
.ps-facts > div { background: #f3f4f2; border-radius: 8px; padding: .6rem .75rem; }
.ps-facts dt { font-size: .82rem; color: var(--bo-muted, #6b7280); }
.ps-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.15rem; }

.pres-page { margin: 0; background: #171717; color: #171717; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.pres-bar { position: fixed; top: 0; left: 0; right: 0; height: 2.6rem; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; color: #d7dbde; font-size: .9rem; z-index: 5; }
.pres-title { font-weight: 600; color: #fff; }
.pres-hint { margin-left: auto; }
.pres-counter { font-variant-numeric: tabular-nums; }
.pres-close { color: #fff; font-size: 1.6rem; text-decoration: none; line-height: 1; padding: 0 .3rem; }
.pres-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 2.6rem; height: 2.6rem; font-size: 1.2rem; cursor: pointer; }
.pres-nav-prev { left: .6rem; }
.pres-nav-next { right: .6rem; }
.pres-nav:disabled { opacity: .25; cursor: default; }
.pres-page .ps-debrief { margin: 0; }
.pres-page .pres-slide { margin: 3.2rem 4rem 1.2rem; min-height: calc(100vh - 4.6rem); border-radius: 14px; padding: 2rem 2.4rem; box-sizing: border-box; }
.pres-page .pres-slide h2 { font-size: 1.9rem; }
.pres-page .ps-slide__sub { font-size: 1.1rem; }
.pres-page .chart-data-table, .pres-page .ps-sales { display: none; }
.pres-page .ps-facts dd { font-size: 1.5rem; }

/* ── A team's results page (templates/results.html) ──────────────────────── */
.ps-results { max-width: 72rem; margin: 0 auto; }
.ps-results__head h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
.ps-results .ps-card { margin-bottom: 1.25rem; }
.ps-table-scroll { overflow-x: auto; }
.ps-table--seasons { min-width: 44rem; }
.ps-table--seasons th[scope="row"] { font-weight: 600; }
.ps-table--seasons td, .ps-table--seasons th { white-space: nowrap; }

/* On paper (and in "Save as PDF"): the page without its frame and buttons, one
   chart per sheet where it fits. .print-hide means "not on paper" and must stay
   inside this block: outside it, it would hide the buttons on the screen. */
@media print {
  .print-hide { display: none !important; }
  .ps-body--results .ps-top, .ps-body--results .ps-footer { display: none; }
  .ps-body--results { background: #fff; }
  .ps-results .ps-card, .ps-results .ps-slide { box-shadow: none; border: 1px solid #d9dddf; }
  .ps-results .ps-slide, .ps-results tr, .ps-results .ps-facts > div { break-inside: avoid; }
  .ps-results h2 { break-after: avoid; }
  .ps-table-scroll, .ps-chart { overflow: visible; }
  .ps-table--seasons { min-width: 0; font-size: .8rem; }
  .ps-table--seasons td, .ps-table--seasons th { white-space: normal; }
}

/* ── /about ──────────────────────────────────────────────────────────────── */
.ps-about { max-width: 46rem; margin: 1.5rem auto; }
.ps-about h2 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; }
.ps-about ol { padding-left: 1.3rem; }
.ps-about li { margin-bottom: .35rem; }

/* ── The fleet's skip link ──────────────────────────────────────────────────
   The rule is phronon-tokens.css's own. It is repeated here because this
   tool's backoffice pages do not load the tokens sheet, and because the
   participant pages' link colour (.ps-body a) would otherwise win over the
   white text and leave blue on navy. */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 2000;
  width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; background: #041A36; color: #fff; font-weight: 600;
  text-decoration: none; border-radius: 0 0 4px 0;
}
.skip-link:focus {
  width: auto; height: auto; padding: 0.625rem 1rem; overflow: visible; clip-path: none;
  outline: 3px solid #ffbf47; outline-offset: 0;
}
.ps-body a.skip-link, .bo-body a.skip-link, .skip-link:visited { color: #fff; }


/* ── The start page: a postcard from the valley ─────────────────────────────
   Owner's choice of three mock-ups, 10 November 2026. Dark, like the valley
   at dusk; the card is the only bright thing on it. */
.ps-body--home { background: #17302a radial-gradient(1200px 600px at 78% 30%, #2a5348 0%, var(--ps-pine) 46%, #17302a 100%); color: #f4efe2; }
.ps-body--home a { color: #f4efe2; }
.ps-body--home a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
/* On a tall screen the card and its words sit in the middle, between the top and the footer. */
.ps-body--home .ps-main { display: grid; align-content: center; }
.ps-body--home .ps-footer { color: #9fb0a8; }
.ps-body--home .ps-footer a { color: #c9d5cf; }
.ps-welcome { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center;
  max-width: 1120px; margin: 2.2rem auto 3rem; }
.ps-welcome__brand { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.ps-welcome__mark { width: 34px; height: 28px; flex: none; }
.ps-welcome h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.03; letter-spacing: -.02em; margin: 2.2rem 0 .5rem; }
.ps-welcome__sub { font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-weight: 500; color: var(--ps-accent); margin: 0 0 1.1rem; }
.ps-welcome__lead { font-size: 1.06rem; color: #d7dfd9; max-width: 30rem; margin: 0 0 1.6rem; }
.ps-body--home a.ps-welcome__go { background: var(--ps-accent); border-color: var(--ps-accent); color: #17302a;
  font-weight: 700; font-size: 1.02rem; padding: .8rem 1.7rem; }
.ps-welcome__note { font-size: .9rem; color: #b9c7c0; margin: 1rem 0 0; }

/* The padding is the room the two tilted cards need: without it their corners reach past the page's edge. */
.ps-postcard-stack { position: relative; padding: 18px 30px 28px 14px; }
.ps-postcard { position: relative; margin: 0; padding: 14px 14px 0; background: #fbf8ef; color: #2b2a26; border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45); transform: rotate(-3deg); }
.ps-postcard--behind { position: absolute; inset: 18px 30px 28px 14px; padding: 0; background: #efe9d9;
  transform: rotate(4deg) translate(14px, 10px); }
.ps-postcard .valley-picture { display: block; width: 100%; height: auto; }
.ps-postcard__back { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 2px 14px 4px; }
.ps-postcard__words { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.ps-postcard__words p { margin: 0; }
.ps-postcard__words footer { margin-top: .4rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-style: normal; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: #5f5b50; }
.ps-postcard__stars { color: #9a6700; letter-spacing: .12em; margin-right: .3rem; }
.ps-postcard__post { display: block; width: 178px; height: auto; flex: none; }
.ps-stamp { filter: drop-shadow(0 1px 1.2px rgba(40, 30, 10, .45)); }
@media (max-width: 820px) {
  .ps-welcome { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; margin: 1rem auto 2rem; }
  .ps-welcome h1 { margin-top: 1.4rem; }
  .ps-postcard { transform: rotate(-1.5deg); }
  .ps-postcard-stack { padding: 14px 16px 24px 8px; }
  .ps-postcard--behind { inset: 14px 16px 24px 8px; transform: rotate(2.5deg) translate(8px, 8px); }
  .ps-postcard__post { width: 132px; }
  .ps-postcard__words { font-size: 1.02rem; }
}
