/* Email Preview Tool, direction C ("Gate"): signed like an airport. Sign yellow is kept for wayfinding only:
   the nav band, the screen chain and the count sign. Sign black carries the type on yellow and the pictogram
   squares. A grey concourse holds the phone; white panels hold the writing. Square corners, panels meet at
   rules, no shadows except the device's own. One authored motion: the count flips like a split-flap board. */
:root {
  --yellow: #ffd100; --sign: #0b0b0b; --sign-2: #4d4000; --flap: #f0c300;
  --ground: #e4e5e7; --paper: #ffffff; --well: #ffffff;
  --ink: #0b0b0b; --ink-2: #3f4247; --ink-3: #575b61;
  --rule: #0b0b0b; --line: #c4c6ca; --line-2: #8e9196;
  --field: #0b0b0b; --hover: #eeeff1;
  --focus: #0b0b0b; --caret: #0b0b0b;
  --act: #0b0b0b; --act-ink: #ffd100;
  --danger: #b0151f; --danger-ink: #ffffff;
  --seen: #ffd100; --seen-ink: #0b0b0b;
  --thumb: #6b6e74; --track: #e4e5e7;
  --picto: #0b0b0b; --picto-ink: #ffffff;
  --board: #0b0b0b; --board-ink: #f4f4f4; --board-label: #b8bbc1; --board-dim: #8d9096; --board-rule: #2e3035; --board-edge: #0b0b0b;
  --info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect width='34' height='34' fill='%230b0b0b'/%3E%3Cpath d='M17 15.5v9M17 10.5v.01' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --blue: rgba(11, 11, 11, 0.2);
  --shadow: 0 18px 40px rgba(11, 11, 11, 0.2), 0 3px 8px rgba(11, 11, 11, 0.12);
  --font: 'Signika', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mail: 'Roboto', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1c1e; --paper: #121314; --well: #0b0b0c;
    --ink: #f4f4f4; --ink-2: #c9cbcf; --ink-3: #a3a6ac;
    --rule: #45484e; --line: #303236; --line-2: #45484e;
    --field: #8f9298; --hover: #1f2023;
    --focus: #ffd100; --caret: #ffd100;
    --act: #f4f4f4; --act-ink: #0b0b0b;
    --danger: #ff8a8a; --danger-ink: #0b0b0b;
    --thumb: #6b6e74; --track: #121314;
    --picto: #f4f4f4; --picto-ink: #121314; --board-edge: #3a3c41;
    --info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect width='34' height='34' fill='%23f4f4f4'/%3E%3Cpath d='M17 15.5v9M17 10.5v.01' fill='none' stroke='%23121314' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --blue: rgba(255, 255, 255, 0.26);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 22px 48px rgba(0, 0, 0, 0.62);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--thumb) var(--track); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--font); font-synthesis: none; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--sign); }
.top ::selection, .sign ::selection { background: var(--sign); color: var(--yellow); }
input, textarea, select { caret-color: var(--caret); }
::placeholder { color: var(--ink-3); opacity: 1; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--thumb); border: 3px solid var(--track); }
::-webkit-scrollbar-track { background: var(--track); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1456px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--sign); color: var(--yellow); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.glyph { display: block; width: 24px; height: 24px; flex: none; }
.picto { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--picto); color: var(--picto-ink); }
.top, .sign { --picto: #0b0b0b; --picto-ink: #ffffff; }
.picto .glyph { width: 20px; height: 20px; }

/* The nav band: one yellow sign across the top */
.top { background: var(--yellow); color: var(--sign); border-bottom: 1px solid var(--sign); --focus: var(--sign); }
.top-in { display: flex; align-items: stretch; justify-content: space-between; gap: 6px; min-height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--sign); text-decoration: none; font: 600 14px/1.1 var(--font); letter-spacing: -0.005em; white-space: nowrap; }
.mark .picto { width: 26px; height: 26px; }
.mark .picto .glyph { width: 18px; height: 18px; }
.nav { display: flex; align-items: stretch; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; padding: 6px 3px 8px; color: var(--sign); text-decoration: none; font: 500 13px/1.1 var(--font); }
.nav a .picto { width: 24px; height: 24px; }
.nav a .picto .glyph { width: 18px; height: 18px; }
.nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -1px; height: 4px; }
.nav a:hover::after { background: rgba(11, 11, 11, 0.32); }
.nav a[aria-current="page"] { font-weight: 650; }
.nav a[aria-current="page"]::after { background: var(--sign); }
.n-long { display: none; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 2px solid var(--field); border-radius: 0; background: transparent; color: var(--ink); font: 600 16px/1.15 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn .glyph { width: 20px; height: 20px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); padding-inline: 20px; }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.quiet { border-color: transparent; }
.btn.danger { color: var(--danger); }
.confirm { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 15px/1.2 var(--font); }
.confirm .btn { padding-inline: 12px; }
.confirm .btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field label, .grp legend { font: 600 15px/1.3 var(--font); color: var(--ink); }
.grp legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--ink-3); }
.hint { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.field input, .field select, .field textarea, .ed-top select, .ctl select { width: 100%; min-height: 48px; border: 2px solid var(--field); border-radius: 0; background-color: var(--well); color: var(--ink); padding: 10px 12px; font: 400 17px/1.4 var(--mail); }
.field textarea { resize: vertical; font-size: 16px; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; background-image: var(--chev); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 42px !important; cursor: pointer; }
.two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.seg { display: inline-flex; border: 2px solid var(--field); max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 8px 14px; min-height: 44px; font: 600 15px/1.1 var(--font); cursor: pointer; color: var(--ink); white-space: nowrap; }
.seg button + button { border-left: 2px solid var(--field); }
.seg button:hover { background: var(--hover); }
.seg button[aria-pressed="true"] { background: var(--act); color: var(--act-ink); }
.seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.ctl { display: grid; gap: 6px; min-width: 0; }
.ctl > span { font: 600 14px/1.2 var(--font); color: var(--ink-3); }
.ctl .seg { justify-self: start; }
.vbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; }

/* Home: the title band */
.intro { background: var(--paper); border-bottom: 1px solid var(--rule); }
.intro-in { max-width: 1456px; margin-inline: auto; padding: 18px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; }
.intro h1 { font: 600 38px/1.02 var(--font); letter-spacing: -0.014em; }
.lede { font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
#write { margin-top: 10px; }

/* Home: the concourse (phone), the sign (where and how much) and the editor, in that order at every width */
.cc { display: grid; grid-template-columns: minmax(0, 1fr); }
.stage { background: var(--ground); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; row-gap: 12px; padding: 16px; min-width: 0; }
.stage .frame.phone { max-width: 300px; }
.desk-note { display: none; justify-self: start; font-size: 14px; color: var(--ink-3); }
@media (hover: none) { #v-phone { --blue: transparent; } }

.sign { position: relative; background: var(--yellow); color: var(--sign); --focus: var(--sign); --act: var(--sign); --act-ink: var(--yellow); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.sign > * { padding: 18px 16px; min-width: 0; }
.sign > * + * { border-top: 1px solid var(--sign); }
.sign .btn { border-color: var(--sign); color: var(--sign); }
.sign .btn:hover, .s-chain button:hover, .tgs button:hover { background: rgba(11, 11, 11, 0.08); }
.s-chain { display: flex; align-items: center; gap: 5px; }
.s-chain > .glyph { width: 18px; height: 18px; }
.s-chain button { flex: 1 1 auto; min-height: 48px; padding: 8px 8px; border: 2px solid var(--sign); background: transparent; color: var(--sign); font: 600 16px/1.1 var(--font); cursor: pointer; white-space: nowrap; }
.s-chain button[aria-pressed="true"], .s-chain button[aria-pressed="true"]:hover { background: var(--sign); color: var(--yellow); }
.s-chain button:disabled { border-style: dashed; color: rgba(11, 11, 11, 0.5); cursor: not-allowed; background: transparent; }
.s-set { display: grid; gap: 14px; }
.tg { display: grid; gap: 6px; min-width: 0; }
.tg-l { font: 600 14px/1.2 var(--font); color: var(--ink-3); }
.sign .tg-l { color: var(--sign-2); }
.tgs { display: flex; gap: 6px; }
.tgs button { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 6px 6px; border: 2px solid var(--sign); background: transparent; color: var(--sign); font: 600 16px/1 var(--font); cursor: pointer; white-space: nowrap; }
.tgs button .picto { width: 32px; height: 32px; }
.tgs button[aria-pressed="true"], .tgs button[aria-pressed="true"]:hover { background: var(--sign); color: var(--yellow); }
.tgs button[aria-pressed="true"] .picto { background: var(--yellow); color: var(--sign); }

.s-count { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 14px; align-items: start; }
.s-arrow { grid-column: 1; grid-row: 1; width: 48px; height: 48px; display: grid; place-items: center; background: var(--sign); color: #ffffff; }
.s-arrow .glyph { width: 30px; height: 30px; transform: rotate(-90deg); }
.flaps { grid-column: 2; grid-row: 1; display: flex; gap: 0.05em; height: 0.86em; font: 650 112px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--sign); }
.flap { position: relative; width: 0.6em; height: 0.86em; perspective: 2.4em; }
.flap .h { position: absolute; left: 0; right: 0; overflow: hidden; background: var(--flap); }
.flap .t { top: 0; height: calc(50% - 0.01em); }
.flap .b { bottom: 0; height: calc(50% - 0.01em); }
.flap i { position: absolute; left: 0; right: 0; height: 0.86em; line-height: 0.86em; text-align: center; font-style: normal; transform: translateY(-0.022em); }
.flap .t i { top: 0; }
.flap .b i { bottom: 0; }
.flap .fl { z-index: 2; }
.flap .t.fl { transform-origin: 50% 100%; }
.flap .b.fl { transform-origin: 50% 0; }
.s-say { grid-column: 2; font: 500 19px/1.3 var(--font); max-width: 28ch; text-wrap: pretty; }
.s-cut { grid-column: 2; font: 600 15px/1.35 var(--font); color: var(--sign-2); }
.s-count.is-empty .s-say { font-size: 21px; }
.s-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.next { flex: 1 1 auto; justify-content: space-between; min-height: 56px; padding: 4px 4px 4px 16px; font-size: 18px; }
.next .picto { width: 44px; height: 44px; }
.next .picto .glyph { width: 26px; height: 26px; }
.next.back { flex-direction: row-reverse; padding: 4px 16px 4px 4px; }
.next.back .picto .glyph { transform: rotate(180deg); }
#fs-btn { flex: none; min-height: 56px; padding-inline: 14px; }
.t-long { display: none; }
.s-all { grid-column: 1 / -1; display: grid; gap: 4px; }
.s-board { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; border-top: 2px solid var(--sign); border-bottom: 2px solid var(--sign); }
.s-board caption { caption-side: top; text-align: left; padding-bottom: 8px; font: 500 14px/1.3 var(--font); color: var(--sign-2); }
.s-board th { padding: 8px 8px 0; border: 0; border-left: 1px solid var(--sign); text-align: left; font: 500 13px/1.2 var(--font); color: var(--sign-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-board td { padding: 2px 8px 9px; border: 0; border-left: 1px solid var(--sign); font: 650 26px/1.05 var(--font); }
.s-board th:first-child, .s-board td:first-child { border-left: 0; }
.s-board .on { background: var(--sign); color: var(--yellow); }
.s-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/1.2 var(--font); color: var(--sign); }
.s-link .glyph { width: 18px; height: 18px; }
.counts { display: none; }

.editor { position: relative; background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; padding: 22px 16px 30px; min-width: 0; }
#f-body { field-sizing: content; min-height: calc(6lh + 24px); max-height: 75vh; }
.ed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin-top: -10px; }
.save { font-size: 14px; color: var(--ink-3); min-height: 20px; }
.save.err { color: var(--danger); }
.ver { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.ed-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ed-top select { flex: 1 1 0; width: 0; min-width: 0; font: 600 16px/1.2 var(--font); }
.ed-top .btn { flex: none; padding-inline: 14px; }
.ed-top:has(.confirm) #new, .ed-top:has(.confirm) #dup { display: none; }
#del-wrap { display: inline-flex; flex: none; }
details.more { border-top: 1px solid var(--line); }
details.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding-block: 6px; cursor: pointer; font: 600 17px/1.3 var(--font); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary small { display: block; margin-top: 3px; font: 400 14px/1.3 var(--font); color: var(--ink-3); }
details.more summary .chev { width: 22px; height: 22px; transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
details.more[open] summary .chev { transform: rotate(180deg); }
.more-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 2px 0 6px; }
.grp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Frames: each screen is laid out at its real size, then scaled to fit */
.frame { position: relative; width: 100%; }
.frame .fit { position: relative; overflow: hidden; width: 100%; }
.frame .fit > .scr { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.frame.phone { max-width: 412px; border: 11px solid #0d0f0e; border-radius: 56px; background: #0d0f0e; box-shadow: var(--shadow); cursor: pointer; }
.frame.phone .fit { border-radius: 45px; }
.frame.phone:hover { box-shadow: 0 0 0 3px var(--blue), var(--shadow); }
.frame.strip { max-width: 390px; border-radius: 14px; box-shadow: var(--shadow); }
.frame.strip .fit { border-radius: 14px; }
.frame.strip.wide { max-width: 1280px; }
.frame.desk { max-width: 1282px; border: 1px solid var(--line-2); border-radius: 12px; background: #dee3ea; box-shadow: var(--shadow); }
.frame.desk .fit { border-radius: 0 0 11px 11px; }
.winbar { height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #dee3ea; border-radius: 11px 11px 0 0; color: #3c4043; font: 400 13px/1 'Roboto', Arial, sans-serif; }
.winbar .dots { display: flex; gap: 7px; }
.winbar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.winbar .dots i:nth-child(2) { background: #febc2e; } .winbar .dots i:nth-child(3) { background: #28c840; }
.winbar .tab { background: #fff; border-radius: 8px 8px 0 0; align-self: end; height: 27px; display: flex; align-items: center; padding: 0 12px; min-width: 0; max-width: 320px; }
.winbar .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab { position: fixed; left: -30000px; top: 0; visibility: hidden; pointer-events: none; }

/* Full screen try-out */
.fs { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; }
.fs-screen { position: relative; width: min(100vw, 430px); height: 100%; max-height: 932px; overflow: hidden; }
.fs-screen > .scr { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.fs .fs-close { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5; border: 0; border-radius: 999px; padding: 9px 18px; min-height: 40px; background: rgba(20, 20, 20, 0.72); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fs-hint { position: absolute; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 5; color: #fff; background: rgba(20, 20, 20, .72); border-radius: 999px; padding: 6px 12px; font: 500 13px/1.2 var(--font); white-space: nowrap; pointer-events: none; transition: opacity .4s; }

/* The other pages: title band, then the tool on the concourse */
.hero { background: var(--paper); border-image: conic-gradient(var(--paper) 0 0) fill 0 // 0 100vmax; padding-block: 26px 24px; display: grid; gap: 8px; }
.hero h1 { font: 600 36px/1.04 var(--font); letter-spacing: -0.014em; text-wrap: balance; }
.hero .lede { max-width: 62ch; }
.page-tool { display: grid; gap: 20px; padding-block: 24px 44px; }
.checker-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel { background: var(--paper); padding: 18px 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.panel .field textarea { min-height: 160px; }
.sumtab { background: var(--paper); overflow: hidden; }
.sumtab table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sumtab th, .sumtab td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sumtab thead th { font-weight: 600; color: var(--ink-3); font-size: 14px; border-bottom: 2px solid var(--ink); }
.sumtab tbody th { font-weight: 600; }
.sumtab tbody tr:last-child > * { border-bottom: 0; }
.sumtab .all { font-weight: 650; background: var(--seen); color: var(--seen-ink); padding: 1px 5px; }
.sizes { font-size: 14px; color: var(--ink-3); padding: 12px 12px 14px; border-top: 1px solid var(--line); }
.checks { display: grid; gap: 32px; }
.check { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.check h2 { font: 600 20px/1.2 var(--font); }
.readout { display: grid; gap: 10px; align-content: start; min-width: 0; }
.opening { font: 15px/1.6 var(--mail); overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; }
.opening .lbl { display: block; margin-bottom: 4px; font: 600 14px/1.4 var(--font); color: var(--ink-2); }
.seen { background: var(--seen); color: var(--seen-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.unseen { color: var(--ink-3); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { border: 2px solid var(--field); background: var(--paper); padding: 9px 14px; min-height: 44px; font: 600 15px/1.2 var(--font); color: var(--ink); cursor: pointer; }
.pick button:hover { background: var(--hover); }
.pick button[aria-pressed="true"] { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.cmp { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.cmp-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cmp-col h2 { font: 600 20px/1.2 var(--font); }
.cmp-col .cap { font-size: 14px; color: var(--ink-3); }
.cmp-col .opening { display: grid; gap: 8px; }
.cmp-col .nums { font: 14px/1.5 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Reading sections */
.prose { background: var(--paper); border-top: 1px solid var(--rule); }
.prose .wrap { padding-block: 40px 56px; display: grid; gap: 44px; }
.prose section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pc { display: grid; gap: 12px; max-width: 70ch; min-width: 0; }
.prose h2 { font: 600 26px/1.15 var(--font); letter-spacing: -0.01em; text-wrap: balance; }
.prose h3 { font: 600 18px/1.3 var(--font); }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--ink); }
.prose table { border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; width: 100%; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.prose thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }
.prose .tw { overflow-x: auto; }
.faq .pc { gap: 20px; }
.faq .pc > div { display: grid; gap: 4px; align-content: start; }

/* Footer */
.foot { background: var(--ground); border-top: 1px solid var(--rule); }
.foot .wrap { padding-block: 18px 30px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 600 15px/1.2 var(--font); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

@media (max-width: 719px) {
  #v-desk:not([hidden]) ~ .desk-note { display: block; }
  /* Phones: keep the sign short so the fields sit one short scroll under the phone */
  .sign > * { padding: 12px 16px; }
  .s-chain { display: none; }
  .flaps { font-size: 88px; }
  .s-set .tg-sw { display: grid; gap: 6px; align-content: start; }
  .s-set .sw button, .cmp-bar .sw button { flex-direction: column; gap: 3px; min-width: 58px; min-height: 50px; padding: 5px 4px 4px; font-size: 13px; line-height: 1.1; }
  .next, #fs-btn { min-height: 52px; }
  .next .picto { width: 40px; height: 40px; }
  .cc .editor { padding-top: 16px; }
  .s-set { grid-template-columns: auto auto; justify-content: space-between; column-gap: 12px; }
  .tgs { gap: 4px; }
  .tgs button { flex-direction: column; justify-content: center; gap: 3px; min-width: 66px; min-height: 50px; padding: 5px 4px 4px; font-size: 13px; line-height: 1.1; }
  .tgs button .picto { width: 24px; height: 24px; }
  .tgs button .picto .glyph { width: 18px; height: 18px; }
  .s-count { row-gap: 10px; }
  .s-all { display: none; }
}
@media (min-width: 720px) {
  .wrap { padding-inline: 28px; }
  .top-in { min-height: 64px; }
  .mark { font-size: 19px; gap: 12px; }
  .mark .picto { width: 34px; height: 34px; }
  .mark .picto .glyph { width: 22px; height: 22px; }
  .nav { gap: 4px; }
  .nav a { min-width: 60px; padding: 6px 6px 8px; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro-in { padding: 22px 28px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
  .intro h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  #write { margin: 0; }
  .cc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editor { grid-column: 1 / -1; padding: 28px; }
  .editor > * { max-width: 760px; }
  .stage { padding: 28px; }
  .stage .frame.phone { max-width: 330px; }
  .sign > * { padding: 22px 28px; }
  .s-count { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .s-arrow { width: 56px; height: 56px; }
  .s-arrow .glyph { width: 34px; height: 34px; transform: rotate(180deg); }
  .next { display: none; }
  .t-long { display: inline; }
  .t-short { display: none; }
  .s-act { grid-column: 2; }
  .hero { padding-block: 36px 30px; }
  .hero h1 { font-size: 46px; }
  .panel { padding: 22px 22px 24px; }
  /* Laptop selected: the window needs the width, so the sign moves under it */
  .cc:has(#v-desk:not([hidden])) .stage, .cc:has(#v-desk:not([hidden])) .sign { grid-column: 1 / -1; }
  .cc:has(#v-desk:not([hidden])) .s-arrow .glyph { transform: rotate(-90deg); }
}
@media (min-width: 900px) {
  .nav { gap: 2px; }
  .nav a { flex-direction: row; gap: 10px; padding: 0 12px; font-size: 16px; min-width: 0; }
  .nav a .picto { width: 28px; height: 28px; }
  .nav a .picto .glyph { width: 20px; height: 20px; }
  .nav a::after { left: 12px; right: 12px; }
}
@media (min-width: 1200px) {
  .n-long { display: inline; }
  .n-short { display: none; }
}
@media (min-width: 1000px) {
  .prose section { grid-template-columns: minmax(0, 28.6%) minmax(0, 70ch); column-gap: 0; align-items: start; }
  .prose section > h2 { padding-right: 40px; }
  .faq .pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 24px; max-width: none; }
  .check { grid-template-columns: 400px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .check h2 { grid-column: 1 / -1; }
  .check.wide { grid-template-columns: minmax(0, 1fr); }
  .cmp { grid-template-columns: repeat(var(--n, 3), minmax(0, 390px)); justify-content: center; gap: 28px; }
  .checker-grid { grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (min-width: 1280px) {
  /* Three columns on one grid, each band bleeding to its edge: concourse | sign | editor */
  .cc { grid-template-columns: [full-start] minmax(28px, 1fr) [c-start] minmax(0, calc(min(1400px, 100% - 56px) * 0.2857)) [sign-start] minmax(0, calc(min(1400px, 100% - 56px) * 0.3143)) [ed-start] minmax(0, calc(min(1400px, 100% - 56px) * 0.4)) [c-end] minmax(28px, 1fr) [full-end]; }
  .cc .stage { grid-column: full-start / sign-start; grid-row: 1; grid-template-columns: subgrid; padding: 28px 0 32px; }
  .cc .stage > * { grid-column: 2; }
  .cc .sign { grid-column: sign-start / ed-start; grid-row: 1; border-inline: 1px solid var(--sign); }
  .cc .editor { grid-column: ed-start / full-end; grid-row: 1; grid-template-columns: subgrid; padding: 26px 0 32px 32px; }
  .cc .editor > * { grid-column: 1; max-width: none; }
  .cc .flaps { font-size: 160px; }
  .cc .s-say { font-size: 24px; line-height: 1.25; }
  .cc .s-count.is-empty .s-say { font-size: 26px; }
  .cc:has(#v-desk:not([hidden])) .stage { grid-column: full-start / ed-start; grid-row: 1; }
  .cc:has(#v-desk:not([hidden])) .stage > * { grid-column: 2 / 4; }
  .cc:has(#v-desk:not([hidden])) .sign { grid-column: c-start / ed-start; grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-inline: 0; border-top: 1px solid var(--sign); }
  .cc:has(#v-desk:not([hidden])) .s-chain { grid-column: 1; grid-row: 1; }
  .cc:has(#v-desk:not([hidden])) .s-set { grid-column: 1; grid-row: 2; }
  .cc:has(#v-desk:not([hidden])) .s-count { grid-column: 2; grid-row: 1 / 3; border-top: 0; border-left: 1px solid var(--sign); }
  .cc:has(#v-desk:not([hidden])) .editor { grid-row: 1 / 3; }
  .cc:has(#v-desk:not([hidden])) .flaps { font-size: 128px; }
}
@media (prefers-reduced-motion: reduce) { .fs-hint { transition: none; } }
@media (prefers-reduced-motion: reduce) { details.more summary .chev { transition: none; } }

/* Their phone, light or dark: a compact two-way switch */
.tg-sw { display: grid; gap: 6px; justify-items: start; align-content: start; }
.sw { display: inline-flex; justify-self: start; border: 2px solid var(--field); }
.sw button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 14px 6px 12px; border: 0; background: transparent; color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap; }
.sw button + button { border-left: 2px solid var(--field); }
.sw .glyph { width: 18px; height: 18px; }
.sw button:hover { background: var(--hover); }
.sw button[aria-pressed="true"], .sw button[aria-pressed="true"]:hover { background: var(--act); color: var(--act-ink); }
.sign .sw { border-color: var(--sign); }
.sign .sw button { color: var(--sign); }
.sign .sw button + button { border-left-color: var(--sign); }
.sign .sw button:hover { background: rgba(11, 11, 11, 0.08); }
.sign .sw button[aria-pressed="true"], .sign .sw button[aria-pressed="true"]:hover { background: var(--sign); color: var(--yellow); }
/* A button that is a pictogram and a word, no box */
.btn.bare, .sign .btn.bare { border-color: transparent; padding: 4px 12px 4px 4px; }
.btn.bare .picto { width: 36px; height: 36px; }
.btn.bare .picto .glyph { width: 22px; height: 22px; }
.foot-name { font-weight: 600; color: var(--ink-2); }

/* Copy sections (filled later): the reading band under each tool */
[id$="-copy"] { background: var(--paper); border-top: 1px solid var(--rule); padding: 40px 16px 56px; display: grid; gap: 14px; }
[id$="-copy"]:empty { display: none; }
[id$="-copy"] > *, [id$="-copy"] section > * { max-width: 70ch; }
[id$="-copy"] section { display: grid; gap: 12px; }
[id$="-copy"] h2 { font: 600 26px/1.15 var(--font); letter-spacing: -0.01em; text-wrap: balance; margin-top: 18px; }
[id$="-copy"] > h2:first-child, [id$="-copy"] > section:first-child > h2:first-child { margin-top: 0; }
[id$="-copy"] h3 { font: 600 18px/1.3 var(--font); margin-top: 6px; }
[id$="-copy"] p, [id$="-copy"] li { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
[id$="-copy"] ul, [id$="-copy"] ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
[id$="-copy"] table { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
[id$="-copy"] th, [id$="-copy"] td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
[id$="-copy"] thead th { color: var(--ink); border-bottom: 2px solid var(--ink); }

/* Preview text checker and subject line length: the form, then the sign over the four gates */
.ck { display: grid; grid-template-columns: minmax(0, 1fr); }
.ck .f-lead label { font-size: 17px; }
.ck .f-lead input { min-height: 58px; font-size: 20px; }
.ck-sign .s-arrow .glyph { transform: rotate(90deg); }
.ck-sign .sumtab { background: transparent; overflow: visible; }
.ck-sign .sumtab table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid var(--sign); }
.ck-sign .sumtab th, .ck-sign .sumtab td { padding: 9px 8px; border-bottom: 1px solid var(--sign); text-align: left; vertical-align: baseline; color: var(--sign); }
.ck-sign .sumtab thead th { background: transparent; border-bottom: 2px solid var(--sign); font: 600 13px/1.2 var(--font); color: var(--sign-2); }
.ck-sign .sumtab tbody th { padding-left: 0; font: 600 15px/1.25 var(--font); }
.ck-sign .sumtab thead th:first-child { padding-left: 0; }
.ck-sign .sumtab td { font: 650 20px/1.1 var(--font); white-space: nowrap; }
.ck-sign .sumtab .all { background: var(--sign); color: var(--yellow); padding: 1px 6px; }
.ck-sign[data-what="preview"] .sumtab td:nth-of-type(1), .ck-sign[data-what="subject"] .sumtab td:nth-of-type(2) { font: 600 15px/1.25 var(--font); }
.ck-sign .sumtab .sizes { padding: 10px 0 0; border-top: 0; color: var(--sign-2); font-size: 14px; }
.check h2 { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule); font: 600 21px/1.2 var(--font); }
.gates .check:first-child h2 { padding-top: 0; border-top: 0; }
.check h2 .picto { width: 34px; height: 34px; }
.check h2 .picto .glyph { width: 22px; height: 22px; }

/* Compare: a sign band of choices, then each version as a gate */
.cmpw { display: grid; grid-template-columns: minmax(0, 1fr); }
.cmp-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 28px; padding: 16px; }
.cmp-bar > * { padding: 0; }
.cmp-bar > * + * { border-top: 0; }
.cmp-bar .tg-sw { display: grid; gap: 6px; }
.cmp-bar .tg-pick { flex: 1 1 100%; }
.cmp-bar .pick button { background: transparent; border-color: var(--sign); color: var(--sign); }
.cmp-bar .pick button:hover { background: rgba(11, 11, 11, 0.08); }
.cmp-bar .pick button[aria-pressed="true"], .cmp-bar .pick button[aria-pressed="true"]:hover { background: var(--sign); border-color: var(--sign); color: var(--yellow); }
.cmp-yard { display: grid; gap: 16px; padding: 18px 16px 44px; background: var(--ground); }
#note:empty { display: none; }
#note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.cmp-col h2 { padding: 10px 14px; background: var(--sign); color: #ffffff; border: 1px solid var(--board-edge); font: 600 20px/1.2 var(--font); }


@media (min-width: 720px) {
  [id$="-copy"] { padding: 48px max(28px, calc((100% - 1400px) / 2)) 64px; }
  .cmp-bar { padding: 20px max(28px, calc((100% - 1400px) / 2)); }
  .cmp-yard { padding: 24px max(28px, calc((100% - 1400px) / 2)) 56px; }
}
@media (min-width: 1000px) {
  .cmp { justify-content: start; }
}

/* Launch additions (16 Oct): a code sample in the reading sections, and a 44px close button on the full-screen try-out */
.prose pre.code { margin: 0; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); }
.fs .fs-close { min-height: 44px; }

/* Checker and subject line length: three bands that meet at rules, then the reading band */
.ck { display: grid; grid-template-columns: minmax(0, 1fr); }
.ck > * { min-width: 0; }
.ck-form { border-top: 1px solid var(--rule); padding: 22px 16px 26px; align-content: start; }
.ck-sign { border-top: 1px solid var(--sign); }
.gates { display: grid; gap: 28px; padding: 24px 16px 44px; background: var(--ground); border-top: 1px solid var(--rule); }
/* The readouts: a black departures board with the words that make it in yellow, no boxes */
.gates .readout, .cmp-col .opening { background: var(--board); color: var(--board-ink); border: 1px solid var(--board-edge); }
.gates .readout { gap: 0; padding: 2px 18px; }
.gates .opening { background: transparent; border: 0; padding: 14px 0 15px; color: var(--board-ink); }
.gates .opening + .opening { border-top: 1px solid var(--board-rule); }
.gates .opening .lbl, .cmp-col .opening .lbl { color: var(--board-label); }
.gates .seen, .cmp-col .seen { background: transparent; color: var(--yellow); }
.gates .unseen, .cmp-col .unseen { color: var(--board-dim); }
.cmp-col .opening { padding: 14px 16px 16px; }
.cmp-col .opening .nums { color: var(--board-label); padding-top: 10px; border-top: 1px solid var(--board-rule); }
/* Home: the versions disclosure names the version that's open */
.vname { font-weight: 400; color: var(--ink-2); }
/* Reading headings carry the information pictogram */
.prose h2 { display: flex; gap: 12px; align-items: flex-start; }
.prose h2::before { content: ""; flex: none; width: 32px; height: 32px; margin-top: -1px; background: var(--info) center / contain no-repeat; }
@media (max-width: 719px) {
  /* Phones: the mark alone, four nav tiles spread evenly */
  .top-in { gap: 12px; }
  .mark > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mark .picto { width: 32px; height: 32px; }
  .mark .picto .glyph { width: 22px; height: 22px; }
  .nav { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav a { padding-inline: 2px; }
}
@media (min-width: 720px) {
  .ck-form, .gates { padding-left: max(28px, calc((100% - 1400px) / 2)); padding-right: max(28px, calc((100% - 1400px) / 2)); }
  .ck-sign { padding-left: max(0px, calc((100% - 1400px) / 2 - 28px)); padding-right: max(0px, calc((100% - 1400px) / 2 - 28px)); }
  .ck-form { padding-top: 26px; padding-bottom: 30px; }
  .gates { padding-top: 32px; padding-bottom: 52px; }
}
@media (min-width: 1000px) {
  .intro h1 { font-size: 52px; }
  .hero h1 { font-size: 52px; }
  .ck-form { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
  .ck-form .f-body { grid-column: 1 / 3; grid-row: 2 / span 3; }
  .ck-subject .ck-form .f-lead, .ck-subject .ck-form details.more { grid-column: 1 / 3; }
  .ck-subject .ck-form .save { grid-column: 3; }
  .ck-sign { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .ck-sign > * { padding: 26px 28px; }
  .ck-sign > * + * { border-top: 0; border-left: 1px solid var(--sign); }
  .ck-sign .flaps { font-size: 136px; }
  .ck-sign .s-say { font-size: 22px; }
}
/* Checker at laptop width: keep the form band short so the sign and the first screen sit in the first view */
.ck:not(.ck-subject) .ck-form #f-body { min-height: calc(3lh + 18px); max-height: calc(3lh + 18px); padding-bottom: 4px; overflow-y: auto; }
@media (min-width: 1100px) { .ck:not(.ck-subject) .ck-form .save { grid-column: 3; grid-row: 2; align-self: end; } }
@media (min-width: 1100px) { .ck:not(.ck-subject) .ck-form .f-body { grid-row: 2; } .ck:not(.ck-subject) .ck-form details.f-more { grid-column: 3; grid-row: 2; align-self: start; } }
@media (min-width: 1100px) {
  .hero { padding-block: 28px 22px; }
  .hero .lede { max-width: 82ch; }
  .ck-form { padding-top: 22px; padding-bottom: 24px; }
  .ck-sign > * { padding-block: 20px; }
  .ck-sign .s-say { max-width: 40ch; }
}
