/* 24London layout: header, homepage, the Street, borough tiles, footer.
   Tokens only. Square by default, rules instead of shadows. */

.tfl-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; box-sizing: border-box; }
.tfl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tfl-skip { position: absolute; left: -9999px; }
.tfl-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface-raised); padding: 12px 16px; border: 2px solid var(--ink); }

/* Header */
.tfl-header { background: var(--surface-raised); border-bottom: 2px solid var(--rule-strong); }
.tfl-header-inner { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.tfl-logo { text-decoration: none; display: inline-flex; }
.tfl-nav { display: flex; gap: 28px; flex-grow: 1; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.tfl-nav a { color: var(--ink); text-decoration: none; }
.tfl-nav a:hover { color: var(--accent); }
.tfl-header-cta { white-space: nowrap; }

/* The plaque */
.tfl-plaque { display: inline-flex; background: var(--plaque-field); border: 2px solid var(--plaque-frame); padding: 3px; border-radius: 0; }
.tfl-plaque > span { border: 1px solid var(--plaque-frame); padding: 8px 14px 9px; display: flex; flex-direction: column; gap: 3px; }
.tfl-plaque-top { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.tfl-plaque-borough { font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--pillar-red); text-transform: uppercase; }
.tfl-plaque-district { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.tfl-plaque-name { font-size: 24px; line-height: 24px; font-weight: 800; letter-spacing: 0.01em; color: var(--plaque-ink); }
.tfl-plaque-borough .tfl-plaque-name, .tfl-plaque-borough > span > .tfl-plaque-name { font-size: 24px; }
.tfl-plaque.tfl-plaque-borough .tfl-plaque-name { font-size: 54px; line-height: 52px; }
.tfl-plaque.tfl-plaque-compact > span { padding: 6px 12px; }
.tfl-plaque.tfl-plaque-compact .tfl-plaque-name { font-size: 20px; line-height: 20px; }

/* Buttons */
.tfl-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; font-family: var(--font-sans); }
.tfl-btn-accent { background: var(--accent); color: var(--plaque-field); border-color: var(--accent); }
.tfl-btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--plaque-field); }
.tfl-btn-ghost { background: transparent; color: var(--plaque-field); border-color: var(--plaque-field); }

/* Type helpers */
.tfl-label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.tfl-label.tfl-accent { color: var(--accent); }
.tfl-label.tfl-pink { color: var(--accent); }
.tfl-h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; margin: 0; color: var(--ink); text-wrap: balance; }
.tfl-h2 { font-size: clamp(27px, 3.2vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.tfl-lede { font-family: var(--font-serif); font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: 0; max-width: 52ch; }
.tfl-section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }

/* Hero */
.tfl-hero { background: var(--surface-raised); border-bottom: 1px solid var(--rule); }
.tfl-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; padding-block: 64px; }
.tfl-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.tfl-pc-form { display: flex; max-width: 520px; }
.tfl-pc-input { font-family: var(--font-mono); font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 16px; border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-raised); color: var(--ink); width: 100%; }
.tfl-pc-form .tfl-btn { height: auto; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tfl-quick { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.tfl-quick a { color: var(--accent); }
.tfl-unknown { color: var(--pending); font-size: 15px; margin: 0; }
.tfl-hero-plaque { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tfl-counts { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: 12px; width: 100%; }

/* The Street */
.tfl-street { padding-block: 56px; border-bottom: 2px solid var(--rule-strong); background: var(--surface); }
.tfl-street-grid { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: stretch; }
.tfl-street-head-odd { grid-column: 1; text-align: right; padding-bottom: 12px; }
.tfl-street-head-even { grid-column: 3; padding-bottom: 12px; }
.tfl-street-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); min-height: 108px; box-sizing: border-box; }
.tfl-street-odd { grid-column: 1; flex-direction: row; justify-content: flex-end; text-align: right; padding-right: 20px; }
.tfl-street-even { grid-column: 3; flex-direction: row-reverse; justify-content: flex-end; text-align: left; padding-left: 20px; }
.tfl-street-row .tfl-street-number { flex: none; width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--surface-raised); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); margin-inline: -37px; position: relative; z-index: 2; }
.tfl-street-odd .tfl-street-number { margin-right: -37px; }
.tfl-street-even .tfl-street-number { margin-left: -37px; }
.tfl-street-grid::before { content: ""; grid-column: 2; grid-row: 1 / -1; width: 2px; background: var(--ink); justify-self: center; }
.tfl-street-name { margin: 0 0 4px; font-size: 20px; line-height: 26px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tfl-street-odd .tfl-street-name { justify-content: flex-end; }
.tfl-street-name a { color: var(--ink); text-decoration: none; }
.tfl-street-name a:hover { color: var(--accent); }
.tfl-street-meta { margin: 0 0 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.tfl-street-note { margin: 0; font-family: var(--font-serif); font-size: 15px; line-height: 23px; color: var(--ink-muted); max-width: 46ch; }
.tfl-street-odd .tfl-street-note { margin-left: auto; }
.tfl-more { margin: 28px 0 0; text-align: center; font-size: 15px; font-weight: 600; }
.tfl-empty { font-family: var(--font-serif); color: var(--ink-muted); }

/* Badges */
.tfl-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; font-weight: 600; }
.tfl-badge-verified { background: var(--verified-wash); color: var(--verified); }
.tfl-badge-claimed { color: var(--pending); border: 1px solid var(--pending); }

/* The index of boroughs */
.tfl-index-band { padding-block: 56px; background: var(--surface); }
.tfl-borough-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tfl-borough-tile { text-decoration: none; background: var(--plaque-field); border: 2px solid var(--plaque-frame); padding: 3px; display: flex; }
.tfl-borough-tile > span { border: 1px solid var(--plaque-frame); flex-grow: 1; padding: 10px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 44px; box-sizing: border-box; }
.tfl-borough-name { font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: 0.02em; color: var(--plaque-ink); }
.tfl-borough-pc { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--pillar-red); }

/* Guides */
.tfl-guides { padding-block: 56px; background: var(--surface-raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tfl-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tfl-guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--rule); background: var(--surface-raised); text-decoration: none; }
.tfl-guide-card:hover { background: var(--surface-sunken); }
.tfl-guide-title { font-size: 19px; line-height: 25px; font-weight: 600; color: var(--ink); }
.tfl-guide-note { font-family: var(--font-serif); font-size: 15px; line-height: 23px; color: var(--ink-muted); }

/* For businesses */
.tfl-business-band { background: var(--plaque-frame); color: var(--plaque-field); padding-block: 64px; }
.tfl-business-grid { display: grid; gap: 20px; }
.tfl-invert { color: var(--plaque-field); }
.tfl-invert-muted { color: #c9ced8; }
.tfl-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; }

/* Footer */
.tfl-footer { background: var(--surface-raised); border-top: 2px solid var(--rule-strong); }
.tfl-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px 32px; }
.tfl-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tfl-footer-note { font-family: var(--font-serif); font-size: 15px; line-height: 23px; color: var(--ink-muted); margin: 0; max-width: 46ch; }
.tfl-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tfl-footer-col a { color: var(--ink); text-decoration: none; }
.tfl-footer-col a:hover { color: var(--accent); }
.tfl-footer-legal { border-top: 1px solid var(--rule); padding-block: 18px 28px; font-size: 13px; color: var(--ink-muted); }

/* Narrow */
@media (max-width: 860px) {
  .tfl-header-inner { flex-wrap: wrap; gap: 16px; padding-block: 16px; }
  .tfl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfl-street-grid { grid-template-columns: 44px 1fr; }
  .tfl-street-grid::before { grid-column: 1; }
  .tfl-street-head-odd, .tfl-street-head-even { display: none; }
  .tfl-street-row, .tfl-street-odd, .tfl-street-even { grid-column: 2; flex-direction: row-reverse; justify-content: flex-end; text-align: left; padding-left: 20px; padding-right: 0; }
  .tfl-street-odd .tfl-street-name { justify-content: flex-start; }
  .tfl-street-odd .tfl-street-note { margin-left: 0; }
  .tfl-street-row .tfl-street-number { margin-left: -37px; margin-right: 0; }
  .tfl-plaque.tfl-plaque-borough .tfl-plaque-name { font-size: 38px; line-height: 38px; }
}

/* Breadcrumbs */
.tfl-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); padding-block: 20px 0; }
.tfl-crumbs a { color: var(--ink-muted); }

/* Borough hub */
.tfl-hub-head { background: var(--surface-raised); border-bottom: 1px solid var(--rule); }
.tfl-hub-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-block: 32px 56px; }
.tfl-hub-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.tfl-facts { border: 2px solid var(--rule-strong); background: var(--surface-raised); }
.tfl-facts .tfl-label { padding: 14px 20px; background: var(--surface-sunken); border-bottom: 1px solid var(--rule-strong); margin: 0; }
.tfl-facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tfl-facts dt { padding: 14px 20px; font-size: 14px; color: var(--ink-muted); border-bottom: 1px solid var(--rule); }
.tfl-facts dd { margin: 0; padding: 14px 20px; font-size: 15px; border-bottom: 1px solid var(--rule); }
.tfl-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Chips */
.tfl-hub-cats { padding-block: 28px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.tfl-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tfl-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.tfl-chip:hover { background: var(--accent-wash); color: var(--ink); }
.tfl-chip .tfl-mono { color: var(--ink-muted); font-size: 13px; }

/* Pagination */
.tfl-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.tfl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: var(--surface-raised); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: 14px; }
.tfl-pagination .page-numbers.current { background: var(--ink); color: var(--plaque-field); border-color: var(--ink); }

/* Listing profile */
.tfl-listing { padding-block: 24px 64px; }
.tfl-listing-head { display: flex; flex-direction: column; gap: 12px; padding-block: 8px 28px; border-bottom: 2px solid var(--rule-strong); }
.tfl-listing-state { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.tfl-unverified { font-family: var(--font-serif); }
.tfl-claim-link { font-weight: 600; font-size: 14px; }
.tfl-listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 32px; align-items: start; }
.tfl-listing-body { display: flex; flex-direction: column; gap: 28px; }
.tfl-listing-photo { margin: 0; }
.tfl-listing-photo img { width: 100%; height: auto; display: block; }
.tfl-prose { font-family: var(--font-serif); font-size: 17px; line-height: 27px; color: var(--ink); }
.tfl-prose p { max-width: 68ch; }
.tfl-prose h2 { font-family: var(--font-sans); font-size: 27px; line-height: 32px; margin-top: 32px; }
.tfl-prose h3 { font-family: var(--font-sans); font-size: 20px; line-height: 26px; margin-top: 24px; }
.tfl-prose img { max-width: 100%; height: auto; }
.tfl-checked { border: 2px solid var(--rule-strong); background: var(--surface-raised); padding: 0 0 16px; }
.tfl-checked h2 { margin: 0; padding: 14px 20px; font-size: 18px; background: var(--verified-wash); color: var(--verified); border-bottom: 1px solid var(--rule-strong); }
.tfl-checked ul { list-style: none; margin: 0; padding: 8px 20px; display: flex; flex-direction: column; gap: 8px; }
.tfl-checked li { font-size: 16px; }
.tfl-checked-note { margin: 0; padding: 0 20px; font-family: var(--font-serif); font-size: 14px; color: var(--ink-muted); }
.tfl-listing-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.tfl-card { border: 2px solid var(--rule-strong); background: var(--surface-raised); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tfl-card-quiet { border: 1px solid var(--rule); }
.tfl-btn-block { width: 100%; }
.tfl-btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.tfl-btn-outline:hover { background: var(--surface-sunken); color: var(--ink); }
.tfl-aside-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tfl-aside-block { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule); padding-top: 12px; }
.tfl-aside-block p { margin: 0; font-size: 15px; }
.tfl-nearby { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 15px; }
.tfl-nearby:hover { color: var(--accent); }

/* Article */
.tfl-article { padding-block: 24px 64px; display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.tfl-article-head { display: flex; flex-direction: column; gap: 12px; }
.tfl-article-photo { margin: 0; }
.tfl-article-photo img { width: 100%; height: auto; display: block; }
.tfl-guides-archive { border: 0; }

@media (max-width: 900px) {
  .tfl-hub-grid, .tfl-listing-grid { grid-template-columns: 1fr; gap: 28px; }
  .tfl-listing-aside { position: static; }
}
/* Verification page */
.tfl-proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tfl-proof { border-top: 2px solid var(--rule-strong); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tfl-proof-n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.tfl-proof-t { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.tfl-proof-d { margin: 0; font-family: var(--font-serif); font-size: 16px; line-height: 25px; color: var(--ink-muted); }

/* Sell page */
.tfl-sell-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 40px 56px; }
.tfl-sell-hero > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.tfl-sell-plaque { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tfl-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--rule-strong); background: var(--surface-raised); }
.tfl-tier { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.tfl-tier:last-child { border-right: 0; }
.tfl-tier-featured { background: var(--verified-wash); }
.tfl-tier-head { padding: 24px 20px 20px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-height: 260px; box-sizing: border-box; }
.tfl-tier-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.tfl-tier-flag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--plaque-field); padding: 4px 8px; }
.tfl-tier-price { margin: 0; font-size: 15px; color: var(--ink-muted); }
.tfl-tier-price span { font-size: 44px; line-height: 46px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); display: inline-block; }
.tfl-tier-year { margin: 0; font-size: 13px; color: var(--ink-muted); }
.tfl-tier-founding { margin: 0; align-self: flex-start; font-size: 12px; line-height: 17px; font-weight: 600; background: var(--accent-wash); color: var(--accent); padding: 5px 9px; }
.tfl-tier-pitch { margin: 0; font-family: var(--font-serif); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.tfl-tier-items { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 15px; line-height: 21px; }
.tfl-tier-items li { padding-left: 22px; position: relative; }
.tfl-tier-items li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--verified); border-bottom: 2px solid var(--verified); transform: rotate(-45deg); }
.tfl-tier-cta { padding: 0 20px 20px; }
.tfl-tier-cta .tfl-btn { width: 100%; }
.tfl-guarantee { display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 2px solid var(--rule-strong); background: var(--surface-raised); padding: 18px 24px; margin-top: 24px; }
.tfl-guarantee > span:first-child { font-size: 17px; font-weight: 600; }
.tfl-guarantee-note { font-size: 14px; color: var(--ink-muted); max-width: 60ch; }
.tfl-faq details { border-top: 1px solid var(--rule); padding: 18px 0; }
.tfl-faq summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.tfl-faq p { margin: 10px 0 0; font-family: var(--font-serif); font-size: 16px; line-height: 25px; color: var(--ink-muted); max-width: 68ch; }

@media (max-width: 1000px) {
  .tfl-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfl-tier:nth-child(2) { border-right: 0; }
  .tfl-sell-hero { grid-template-columns: 1fr; }
  .tfl-guarantee { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 620px) {
  .tfl-tiers { grid-template-columns: 1fr; }
  .tfl-tier { border-right: 0; border-bottom: 1px solid var(--rule); }
}