/* Hallmark · macrostructure: custom bespoke "Alley Walk" (horizontal numbered street strip, street-section band, sign-plate footer) · tone: editorial utilitarian · anchor hue: oxblood
 * theme: custom (paper warm band, display roman serif Rozha One, accent warm oxblood with teal signal) · genre: editorial
 * nav: single Walk control with sheet · footer: street-sign plates
 * pre-emit critique: P4 H4 E4 S4 R4 V5 */
:root {
  --paper: #f6efe3;
  --paper-2: #efe4d1;
  --white: #fffdf8;
  --ink: #2a1c1a;
  --ink-2: #55433f;
  --rule: #cdbfa8;
  --oxblood: #6e1f2a;
  --oxblood-2: #4f141d;
  --neon: #0c8b86;
  --neon-deep: #086a67;
  --font-display: "Rozha One", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-variant-numeric: lining-nums; margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { color: var(--oxblood-2); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.tfl-skip { position: absolute; left: -999px; top: 0; background: var(--oxblood); color: var(--paper); padding: 0.75rem 1rem; z-index: 100; }
.tfl-skip:focus { left: 0.5rem; top: 0.5rem; }
.tfl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Top rail */
.tfl-rail { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: 0.6rem var(--pad); background: var(--oxblood); color: var(--paper); border-bottom: 3px solid var(--neon); }
.tfl-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--paper); text-decoration: none; min-width: 0; }
.tfl-brand span { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; display: flex; flex-direction: column; }
.tfl-brand small { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.9; }
.tfl-walk-btn { margin-left: auto; font-family: var(--font-mono); font-size: 0.9rem; min-height: 44px; padding: 0 1.1rem; background: var(--paper); color: var(--oxblood); border: 2px solid var(--paper); border-radius: 0.35rem; cursor: pointer; }
.tfl-walk-btn:hover { background: var(--white); }
/* Walk sheet */
.tfl-sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 1rem var(--pad) 2rem; overflow-y: auto; display: none; }
.tfl-sheet.is-open { display: block; }
.tfl-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tfl-sheet-head a { font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; }
.tfl-sheet h2 { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 1.5rem 0 0.5rem; font-weight: 500; }
.tfl-stoplist { display: grid; gap: 0.5rem; }
.tfl-sheet-links { display: grid; gap: 0.15rem; }
.tfl-sheet-links a { display: block; padding: 0.7rem 0.25rem; min-height: 44px; border-bottom: 1px solid var(--rule); }
.tfl-stoplink { display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.4rem 0.75rem; background: var(--white); border: 2px solid var(--oxblood); border-radius: 0.4rem; color: var(--oxblood); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; }
.tfl-stoplink[aria-current="page"], .tfl-stoplink:hover { background: var(--oxblood); color: var(--paper); }
.tfl-n { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--oxblood); color: var(--paper); font-family: var(--font-mono); font-size: 0.85rem; flex: none; }
.tfl-stoplink[aria-current="page"] .tfl-n, .tfl-stoplink:hover .tfl-n { background: var(--paper); color: var(--oxblood); }

.tfl-wrap { max-width: var(--max); margin: 0 auto; padding: 1rem var(--pad) 3rem; }

/* Home: the Alley Walk */
.tfl-intro { padding: 1.5rem 0 0.5rem; max-width: 46rem; }
.tfl-intro h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.05; margin: 0 0 0.75rem; color: var(--oxblood); }
.tfl-intro p { font-size: 1.2rem; color: var(--ink-2); margin: 0; }
.tfl-hero-photo { margin: 1.25rem 0 0; }
.tfl-hero-photo img { width: 100%; max-height: 28rem; object-fit: cover; border-radius: 0.5rem; border: 3px solid var(--oxblood); }
.tfl-walk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 0.25rem; }
.tfl-walk-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin: 0; }
.tfl-walk-ctl { display: none; gap: 0.5rem; }
.tfl-walk-ctl button { min-height: 44px; min-width: 44px; padding: 0 1rem; font-family: var(--font-mono); background: var(--oxblood); color: var(--paper); border: 0; border-radius: 0.35rem; cursor: pointer; }
.tfl-walk-ctl button:hover { background: var(--oxblood-2); }
.tfl-walk-hint { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); margin: 0 0 0.5rem; }
.tfl-walk { list-style: none; margin: 0; padding: 0.5rem 0 1rem; display: block; }
.tfl-stop { position: relative; padding: 0 0 2rem 3.25rem; margin: 0; }
.tfl-stop::before { content: ""; position: absolute; left: 1.1rem; top: 2rem; bottom: 0; border-left: 3px dashed var(--oxblood); }
.tfl-stop:last-child::before { display: none; }
.tfl-stop-n { position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--oxblood); color: var(--paper); font-family: var(--font-mono); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--oxblood); }
.tfl-stop-card { height: 100%; background: var(--white); border: 2px solid var(--oxblood); border-radius: 0.5rem; overflow: hidden; }
.tfl-stop-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tfl-stop-body { padding: 1rem 1.1rem 1.2rem; }
.tfl-stop-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: 0 0 0.4rem; }
.tfl-stop-body h3 a { text-decoration: none; color: var(--oxblood); }
.tfl-stop-body p { margin: 0 0 0.6rem; color: var(--ink-2); }
.tfl-more { font-family: var(--font-mono); font-size: 0.88rem; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 56rem) {
  .tfl-walk-ctl { display: flex; }
  .tfl-walk { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0 1.25rem; scrollbar-width: thin; scrollbar-color: var(--oxblood) var(--paper-2); }
  .tfl-stop { flex: 0 0 min(25rem, 82vw); padding: 3.1rem 0 0; scroll-snap-align: start; display: flex; flex-direction: column; }
  .tfl-stop-card { flex: 1; }
  .tfl-stop::before { left: -1.5rem; right: 0; top: 1.15rem; bottom: auto; border-left: 0; border-top: 3px dashed var(--oxblood); width: auto; }
  .tfl-stop:first-child::before { left: 0; }
  .tfl-stop:last-child::before { display: block; right: 50%; }
  .tfl-stop-n { left: 0; top: 0; }
}

/* Sections on home */
.tfl-section { margin: 3rem 0 0; }
.tfl-section > h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin: 0 0 0.75rem; color: var(--oxblood); }
.tfl-guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tfl-guide-grid li:nth-child(odd) .tfl-guide-card { background: var(--white); }
.tfl-guide-card { display: grid; grid-template-columns: 7rem 1fr; gap: 0.9rem; align-items: center; padding: 0.75rem; border: 2px solid var(--rule); border-radius: 0.5rem; background: var(--paper-2); text-decoration: none; color: var(--ink); min-height: 44px; }
.tfl-guide-card:hover { border-color: var(--oxblood); }
.tfl-guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.3rem; }
.tfl-guide-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--oxblood); line-height: 1.2; }
.tfl-guide-card span { display: block; font-size: 0.95rem; color: var(--ink-2); margin-top: 0.15rem; }
@media (min-width: 40rem) { .tfl-guide-grid { grid-template-columns: repeat(2, 1fr); } .tfl-guide-grid li:nth-child(4n+1), .tfl-guide-grid li:nth-child(4n+4) { grid-column: span 1; } }
.tfl-lead { max-width: 46rem; }

/* Street band on guide and area pages */
.tfl-band { margin: 0.5rem 0 1.25rem; }
.tfl-band ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.4rem; }
.tfl-band a { display: flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.35rem 0.5rem; text-decoration: none; border: 2px solid var(--rule); border-radius: 0.35rem; background: var(--paper-2); color: var(--ink-2); font-family: var(--font-mono); font-size: 0.8rem; }
.tfl-band .tfl-n { background: var(--ink-2); }
.tfl-band li.is-lit a { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.tfl-band li.is-lit .tfl-n { background: var(--paper); color: var(--oxblood); }
.tfl-band a:hover { border-color: var(--oxblood); }
@media (min-width: 48rem) { .tfl-band a { font-size: 0.82rem; } }
.tfl-band-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 48rem) { .tfl-band-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; } }
.tfl-band a { justify-content: center; }
@media (min-width: 48rem) { .tfl-band a { justify-content: flex-start; } }

.tfl-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.08; margin: 0.25rem 0 0.6rem; color: var(--oxblood); }
.tfl-crumbs { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); margin: 0; }
.tfl-lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; margin: 0 0 1rem; }
.tfl-cols { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
@media (min-width: 56rem) { .tfl-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.tfl-photo { margin: 0; }
.tfl-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.5rem; border: 3px solid var(--oxblood); }
.tfl-key { background: var(--white); border: 2px solid var(--oxblood); border-radius: 0.5rem; padding: 1rem 1.1rem; }
.tfl-key h2 { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; color: var(--ink-2); font-weight: 500; }
.tfl-key dl { margin: 0; display: grid; gap: 0.6rem; }
.tfl-key dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }
.tfl-key dd { margin: 0; overflow-wrap: anywhere; }

.tfl-art { max-width: 50rem; }
.tfl-panel { border-top: 4px solid var(--oxblood); padding: 1.25rem 0 0.5rem; margin: 1.5rem 0 0; }
.tfl-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.15; margin: 0 0 0.6rem; }
.tfl-panel p { margin: 0 0 1rem; }
.tfl-panel ul { padding-left: 1.2rem; }
.tfl-panel li { margin-bottom: 0.4rem; }
.tfl-panel .tfl-places, .tfl-panel .tfl-chips { padding-left: 0; }
.tfl-panel .tfl-places li, .tfl-panel .tfl-chips li { margin-bottom: 0; }
.tfl-faq h3 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; color: var(--oxblood); }
.tfl-faq p { margin: 0 0 0.75rem; }
.tfl-sources { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); margin: 2rem 0 0; overflow-wrap: anywhere; }
.tfl-sources a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0.6rem 0 0; }

.tfl-chips { list-style: none; margin: 0.75rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tfl-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 2px solid var(--oxblood); border-radius: 2rem; text-decoration: none; background: var(--white); font-family: var(--font-mono); font-size: 0.84rem; }
.tfl-chips a:hover { background: var(--oxblood); color: var(--paper); }

.tfl-community { background: var(--paper-2); border: 2px solid var(--rule); border-radius: 0.5rem; padding: 1rem 1.15rem; margin: 2rem 0 0; }
.tfl-community h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 0.5rem; }
.tfl-community h3 { font-size: 1.05rem; margin: 1rem 0 0.2rem; }
.tfl-entry { margin: 0 0 0.8rem; }
.tfl-entry p { margin: 0; }
.tfl-entry address, .tfl-addr-inline { font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); }

.tfl-places { list-style: none; margin: 0.5rem 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; }
.tfl-places li { display: grid; gap: 0.1rem; padding: 0.8rem 1rem; background: var(--white); border: 2px solid var(--rule); border-radius: 0.4rem; }
.tfl-places strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--oxblood); }
.tfl-kind { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.tfl-facts { display: grid; gap: 0; margin: 0 0 1rem; border: 2px solid var(--rule); border-radius: 0.4rem; background: var(--white); }
.tfl-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rule); }
.tfl-facts div:last-child { border-bottom: 0; }
.tfl-facts dt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.tfl-facts dd { margin: 0; overflow-wrap: anywhere; }
.tfl-map { margin: 1rem 0; border: 3px solid var(--oxblood); border-radius: 0.5rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.tfl-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.tfl-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.5rem; }
.tfl-filter button { min-height: 44px; padding: 0 0.95rem; font-family: var(--font-mono); font-size: 0.84rem; background: var(--white); border: 2px solid var(--oxblood); color: var(--oxblood); border-radius: 2rem; cursor: pointer; }
.tfl-filter button[aria-pressed="true"] { background: var(--oxblood); color: var(--paper); }
.tfl-station { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1rem; align-items: center; background: var(--white); border: 2px solid var(--oxblood); border-radius: 0.5rem; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.tfl-station .tfl-n { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
.tfl-station p { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); }
.tfl-station nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tfl-station nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.8rem; border: 2px solid var(--oxblood); border-radius: 0.35rem; text-decoration: none; font-family: var(--font-mono); font-size: 0.82rem; }

.tfl-pager { display: grid; gap: 0.75rem; margin: 2.5rem 0 0; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .tfl-pager { grid-template-columns: 1fr 1fr; } }
.tfl-pager a { display: block; padding: 0.9rem 1.1rem; border: 2px solid var(--oxblood); border-radius: 0.5rem; text-decoration: none; background: var(--white); min-height: 44px; }
.tfl-pager span { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }
.tfl-next { text-align: right; }

.tfl-form { max-width: 34rem; display: grid; gap: 0.9rem; background: var(--white); border: 2px solid var(--oxblood); border-radius: 0.5rem; padding: 1.1rem; }
.tfl-form h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.tfl-form label { display: grid; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.84rem; }
.tfl-form input, .tfl-form textarea { font: inherit; font-family: var(--font-body); font-size: 1rem; padding: 0.7rem; min-height: 44px; border: 2px solid var(--rule); border-radius: 0.3rem; background: var(--paper); color: var(--ink); width: 100%; }
.tfl-btn { min-height: 48px; padding: 0 1.4rem; font-family: var(--font-mono); font-size: 0.95rem; background: var(--neon-deep); color: var(--white); border: 0; border-radius: 0.35rem; cursor: pointer; justify-self: start; }
.tfl-btn:hover { background: var(--oxblood); }
.tfl-note { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* Footer: street signs */
.tfl-footer { margin-top: 3rem; background: var(--oxblood-2); color: var(--paper); padding: 2rem var(--pad) 1.5rem; }
.tfl-footer a { color: var(--paper); }
.tfl-signs { list-style: none; margin: 0 auto 1.5rem; padding: 0; max-width: var(--max); display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
.tfl-signs a { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.4rem 0.7rem; background: var(--neon-deep); color: var(--white); text-decoration: none; border: 3px solid var(--white); border-radius: 0.35rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.tfl-signs a:hover { background: var(--neon); }
.tfl-sign-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; background: var(--white); color: var(--neon-deep); border-radius: 50%; font-family: var(--font-mono); font-size: 0.8rem; flex: none; }
@media (min-width: 36rem) { .tfl-signs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .tfl-signs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .tfl-signs { grid-template-columns: repeat(6, 1fr); } }
.tfl-foot-cols { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .tfl-foot-cols { grid-template-columns: 1fr 1fr; } }
.tfl-footer h3 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; font-weight: 500; }
.tfl-footer ul:not(.tfl-signs) { list-style: none; padding: 0; margin: 0; }
.tfl-foot-cols li a { display: inline-flex; align-items: center; padding: 0.35rem 0; min-height: 44px; }
.tfl-addr { font-family: var(--font-mono); font-size: 0.84rem; margin: 0.5rem 0 0; }
.tfl-fine { max-width: var(--max); margin: 1.5rem auto 0; font-size: 0.85rem; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
