/* USPS Direct Mail Guide (independent). Look: a Swiss railway timetable. White, black and signal red on a
   strict grid; huge numerals; rate tables set like departure boards; a transit-line step diagram. Prefix tt-. */
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --tt-bg: #ffffff;
  --tt-bg-2: #f2f2f0;
  --tt-ink: #111111;
  --tt-ink-2: #5c5c5c;
  --tt-red: #e2001a;
  --tt-rule: #d9d9d6;
  --tt-board: #111111;
  --tt-board-ink: #f5f5f0;
  --tt-amber: #ffc21a;
  --tt-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tt-mono: "Space Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tt-bg: #0d0d0d;
    --tt-bg-2: #1a1a1a;
    --tt-ink: #f2f2f0;
    --tt-ink-2: #a3a3a0;
    --tt-red: #ff3b4e;
    --tt-rule: #2e2e2e;
    --tt-board: #000000;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tt-bg); color: var(--tt-ink); font: 17px/1.6 var(--tt-sans); overflow-x: clip; }
a { color: var(--tt-ink); text-decoration-color: var(--tt-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tt-red); }
:focus-visible { outline: 3px solid var(--tt-red); outline-offset: 2px; }
.tt-skip { position: absolute; left: -999px; }
.tt-skip:focus { left: 10px; top: 10px; z-index: 40; background: var(--tt-bg); padding: 8px 12px; }
.tt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: block; }

/* header */
.tt-header { border-bottom: 4px solid var(--tt-ink); }
.tt-header__in { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 14px; }
.tt-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; }
.tt-brand__sq { width: 26px; height: 26px; background: var(--tt-red); position: relative; }
.tt-brand__sq::before, .tt-brand__sq::after { content: ""; position: absolute; background: #fff; }
.tt-brand__sq::before { left: 5px; top: 7px; width: 16px; height: 4px; }
.tt-brand__sq::after { left: 5px; top: 15px; width: 10px; height: 4px; }
.tt-menu { display: none; font: 700 .8rem var(--tt-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--tt-ink); color: var(--tt-bg); border: 0; padding: 8px 14px; cursor: pointer; }
.tt-nav { border-top: 1px solid var(--tt-rule); }
.tt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tt-nav a { display: flex; gap: 8px; align-items: baseline; padding: 10px 16px 10px 0; margin-right: 6px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.tt-nav a span { font: 400 .78rem var(--tt-mono); color: var(--tt-red); }
.tt-nav a[aria-current] { color: var(--tt-red); box-shadow: inset 0 -4px 0 var(--tt-red); }
.tt-indep { margin: 0; background: var(--tt-ink); color: var(--tt-bg); font: 400 .78rem var(--tt-mono); padding: 6px 0; }

/* hero */
.tt-hero { border-bottom: 1px solid var(--tt-ink); }
.tt-hero__grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: end; padding-top: 40px; padding-bottom: 36px; }
.tt-hero__no { margin: 0; font: 700 clamp(5rem, 13vw, 10rem)/.8 var(--tt-sans); color: var(--tt-red); letter-spacing: -.05em; }
.tt-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 14px; max-width: 16em; }
.tt-lede { font-size: 1.2rem; max-width: 38em; margin: 0; color: var(--tt-ink); }
.tt-checked { font: 400 .8rem var(--tt-mono); color: var(--tt-ink-2); margin: 16px 0 0; }

/* body: article offset on the grid */
.tt-body { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 32px; padding-bottom: 80px; }
.tt-article { grid-column: 2; padding-top: 10px; min-width: 0; }
.tt-hero__grid > div { min-width: 0; }
.tt-article h2 { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.015em; margin: 2em 0 .6em; padding-top: 14px; border-top: 4px solid var(--tt-ink); position: relative; }
.tt-article h2::before { content: ""; position: absolute; left: 0; top: -4px; width: 60px; height: 4px; background: var(--tt-red); }
.tt-article h3 { font-size: 1.15rem; margin: 1.6em 0 .3em; }
.tt-article li { margin: .35em 0; }
.tt-article ul { list-style: none; padding-left: 1.2em; }
.tt-article ul li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--tt-red); margin: 0 10px 2px -18px; }
.tt-article ol li::marker { font-family: var(--tt-mono); color: var(--tt-red); }
.tt-fine { font: 400 .78rem/1.5 var(--tt-mono); color: var(--tt-ink-2); margin: 8px 0 1.4em; }

/* tables */
.tt-table, .tt-board { overflow-x: auto; margin: 1.2em 0 .4em; }
.tt-table table, .tt-board table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tt-table th, .tt-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--tt-rule); text-align: left; vertical-align: top; }
.tt-table thead th { border-bottom: 2px solid var(--tt-ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tt-board { background: var(--tt-board); color: var(--tt-board-ink); }
.tt-board th, .tt-board td { padding: 10px 14px; border-bottom: 1px solid #2a2a2a; text-align: left; font-family: var(--tt-mono); font-size: .88rem; }
.tt-board thead th { color: #9a9a96; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; border-bottom: 2px solid var(--tt-red); }
.tt-board tbody th { font-family: var(--tt-sans); font-weight: 700; font-size: .95rem; }
.tt-board tbody td { color: var(--tt-amber); }
.tt-board a { color: var(--tt-board-ink); text-decoration-color: var(--tt-red); }
.tt-board--dep .tt-num { text-align: right; }
.tt-board .tt-hi { color: #fff; font-weight: 700; }
.tt-board tbody tr:hover { background: #1c1c1c; }
.tt-board__t { display: flex; justify-content: space-between; margin: 0; padding: 10px 14px; background: var(--tt-red); color: #fff; font: 700 .78rem var(--tt-mono); text-transform: uppercase; letter-spacing: .08em; }

/* chooser */
.tt-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--tt-ink); margin: 1.2em 0 1.6em; }
.tt-chooser fieldset { border: 0; border-bottom: 1px solid var(--tt-rule); border-right: 1px solid var(--tt-rule); margin: 0; padding: 14px 16px 12px; }
.tt-chooser legend { float: left; width: 100%; display: flex; gap: 10px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.tt-chooser legend span { flex: none; font: 700 .8rem var(--tt-mono); background: var(--tt-red); color: #fff; width: 24px; height: 24px; display: grid; place-items: center; }
.tt-chooser label { display: inline-flex; gap: 6px; align-items: center; margin: 4px 16px 4px 0; cursor: pointer; font-size: .95rem; clear: both; }
.tt-chooser input { accent-color: var(--tt-red); width: 18px; height: 18px; }
.tt-answer { grid-column: 1 / -1; background: var(--tt-ink); color: var(--tt-bg); padding: 16px 18px; }
.tt-answer p { margin: 0; }
.tt-answer__k { font: 400 .74rem var(--tt-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--tt-amber); }
.tt-answer__v { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 !important; }
.tt-answer__v a { color: var(--tt-bg); }
.tt-answer__why { font-size: .95rem; opacity: .85; }

/* transit line */
.tt-line { list-style: none; padding: 0 !important; margin: 1.4em 0 1.6em; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.tt-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 6px; background: var(--tt-red); }
.tt-line li { margin: 0; position: relative; padding-top: 32px; font-weight: 700; font-size: .9rem; line-height: 1.3; padding-right: 8px; }
.tt-line li::before { display: none !important; }
.tt-stop { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--tt-bg); border: 5px solid var(--tt-ink); }
.tt-line b { display: block; font: 400 .75rem var(--tt-mono); color: var(--tt-red); }

/* faq, sources */
.tt-faq { border-top: 4px solid var(--tt-ink); margin-top: 2.2em; }
.tt-faq details { border-bottom: 1px solid var(--tt-rule); }
.tt-faq summary { cursor: pointer; padding: 13px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tt-faq summary::-webkit-details-marker { display: none; }
.tt-faq summary::after { content: "→"; color: var(--tt-red); font-family: var(--tt-mono); }
.tt-faq details[open] summary::after { content: "↓"; }
.tt-faq details p { margin: 0 0 14px; }
.tt-sources { margin-top: 2.6em; background: var(--tt-bg-2); padding: 16px 18px; font-size: .9rem; }
.tt-sources__t { font: 700 .75rem var(--tt-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--tt-red); margin: 0 0 6px; }
.tt-sources ol { margin: 0 0 6px; padding-left: 1.2em; }
.tt-sources .tt-fine { margin: 0; }

/* footer */
.tt-foot { background: var(--tt-ink); color: var(--tt-bg); padding: 40px 0 26px; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .tt-foot { background: #000; color: #e8e8e4; } }
.tt-foot a { color: inherit; }
.tt-foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tt-foot__name { font-weight: 700; font-size: 1.3rem; margin: 0 0 6px; }
.tt-foot__list { list-style: none; padding: 0; margin: 0; columns: 2; }
.tt-foot__list li { margin: 0 0 6px; }
.tt-foot__list span { font-family: var(--tt-mono); color: var(--tt-red); margin-right: 8px; }
.tt-foot__legal { font: 400 .74rem/1.5 var(--tt-mono); opacity: .7; border-top: 1px solid rgba(128,128,128,.4); margin: 24px 0 0; padding-top: 14px; }

@media (max-width: 900px) {
  .tt-hero__grid, .tt-body { grid-template-columns: 1fr; gap: 6px; }
  .tt-article { grid-column: 1; }
  .tt-hero__no { font-size: 4.5rem; }
  .tt-menu { display: inline-block; }
  .tt-nav { display: none; }
  .tt-nav.is-open { display: block; }
  .tt-nav ul { flex-direction: column; }
  .tt-chooser { grid-template-columns: 1fr; }
  .tt-line { grid-template-columns: 1fr 1fr 1fr; row-gap: 20px; }
  .tt-line::before { display: none; }
}
@media (max-width: 600px) {
  .tt-wrap { padding-left: 16px; padding-right: 16px; }
  .tt-line { grid-template-columns: 1fr 1fr; }
  .tt-foot__grid { grid-template-columns: 1fr; }
  .tt-brand { font-size: 1.1rem; }
}
