/* Terminal City Times — design system (terminalcity template). Toronto
   Telegraph's layout, by the owner's order of 1 Dec 2026, in Terminal
   City's own identity: the railway-era palette (brick red, ink, cream
   stock and aged gold), the station roundel, and Newsreader for titles,
   the wordmark and body text, with Archivo for the interface. Both are
   self-hosted in /assets/css/fonts.css (every family this file names
   resolves to a face the page loads).

   As on Citadel Courier, whose sheet this one is built from, links and
   actions (brick red) are apart from the dark grounds (ink): the utility
   strip, lead panel, subscribe box and footer band paint with --tc-deep,
   accents on them with --tc-glint, and buttons on them with --tc-primary.
   Brick red is never set on the ink grounds (1.9:1). Aged gold is the
   current section's underline, the rule over a card without art and the
   footer's headings. */
@import url('/assets/css/fonts.css');

body.t-terminalcity {
  --tc-ink:       #262220;  /* ink: all type (13.8:1 on the stock) */
  --tc-paper:     #F4EFE4;  /* cream stock: the page; type on dark grounds */
  --tc-surface:   #FBF8F0;  /* light stock: cards and soft panels */
  --tc-primary:   #8C2F1B;  /* brick red: links, buttons, chips, the masthead rule, "Terminal City" (7.2:1 on the stock) */
  --tc-deep:      #262220;  /* ink: the dark grounds (utility strip, lead panel, subscribe box, footer band) */
  --tc-secondary: #5E1F12;  /* dark brick: hovers and small accents on light grounds */
  --tc-glint:     #D4AE5E;  /* light gold: accents on the dark grounds (kickers, separators; 7.5:1) */
  --tc-gold:      #C29A4A;  /* aged gold: the section underline, the rule over a card without art, the footer's headings (6.0:1 on ink) */
  --tc-signal:    #8C2F1B;  /* brick red: the breaking strip */
  --tc-muted:     #625B55;  /* meta text (5.8:1 on the stock) */
  --tc-line:      #D6CCB6;  /* borders */
  --tc-rule:      #E4DCCB;  /* hairlines between rows */
  --tc-on-dark:   #E9E2D2;  /* text on the dark grounds (12.2:1) */
  --tc-foot-text: #E9E2D2;  /* footer links */
  --tc-head: 'Newsreader', Georgia, 'Times New Roman', serif;  /* titles, the wordmark and body text */
  --tc-ui:   'Archivo', 'Helvetica Neue', Arial, sans-serif;   /* interface: nav, chips, buttons, meta */
  margin: 0;
  background: var(--tc-paper);
  color: var(--tc-ink);
  font-family: var(--tc-head);
  font-size: 17px;
  line-height: 1.65;
}
.t-terminalcity a { color: var(--tc-primary); text-decoration: none; }
.t-terminalcity a:hover { color: var(--tc-secondary); }
.t-terminalcity img { max-width: 100%; height: auto; display: block; }
.tc-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- utility strip ---- */
.tc-util { background: var(--tc-deep); color: var(--tc-on-dark); font-family: var(--tc-ui); font-size: 13px; letter-spacing: .04em; }
.tc-util .in { max-width: 1140px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tc-util a { color: var(--tc-paper); }
.tc-util a:hover { color: var(--tc-paper); text-decoration: underline; text-underline-offset: 3px; }
.tc-util .sep { margin: 0 8px; color: var(--tc-glint); }

/* ---- masthead ---- */
.tc-head { background: var(--tc-paper); border-bottom: 4px solid var(--tc-primary); }
.tc-head .in { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* The lockup: the station roundel, then the wordmark set in Newsreader,
   "Terminal City" in brick red and "Times" in ink, over the tagline in
   Archivo capitals. Sizes are in em of .tc-lock's font-size, so one value
   scales the lockup. */
.tc-lock { display: inline-flex; align-items: center; gap: 1.5em; font-size: 10px; line-height: 1; }
.tc-lock .mk { display: block; width: 5.6em; height: 5.6em; }   /* the station roundel (42 x 42) */
.tc-name { display: flex; flex-direction: column; align-items: flex-start; }
.tc-name .wm { font-family: var(--tc-head); font-weight: 700; font-size: 4.6em; line-height: .95; letter-spacing: -.005em; color: var(--tc-ink); white-space: nowrap; }
.tc-name .wm .tct { color: var(--tc-primary); }
.tc-name .sub { font-family: var(--tc-ui); font-weight: 600; font-size: 1.2em; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; color: var(--tc-ink); white-space: nowrap; margin-top: .6em; }
/* Seven desks do not fit beside the logotype, so the nav is the
   masthead's second row: a full-width section bar under a hairline,
   with Subscribe at its right end. */
.tc-nav { flex: 1 0 100%; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--tc-rule); font-family: var(--tc-ui); font-weight: 600; font-size: 15px; }
.tc-nav a { color: var(--tc-ink); padding: 4px 0; border-bottom: 3px solid transparent; }
.tc-nav a:hover { color: var(--tc-primary); }
.tc-nav a[aria-current="page"] { color: var(--tc-primary); border-bottom-color: var(--tc-gold); }
.tc-sub-btn { display: inline-block; flex-shrink: 0; white-space: nowrap; background: var(--tc-primary); color: var(--tc-paper) !important; font-family: var(--tc-ui); font-weight: 600; font-size: 15px; padding: 10px 22px; border-radius: 4px; }
.tc-sub-btn:hover { background: var(--tc-secondary); }
.tc-nav a.tc-sub-btn { padding: 10px 22px; border-bottom: 0; margin-left: auto; }
.tc-btn { display: inline-block; background: var(--tc-primary); color: var(--tc-paper) !important; font-family: var(--tc-ui); font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 4px; }
.tc-btn:hover { background: var(--tc-secondary); }

/* ---- breaking (brick red; shown only while pp_breaking_live()) ---- */
.tc-brk { background: var(--tc-signal); color: var(--tc-paper); font-family: var(--tc-ui); }
.tc-brk .in { max-width: 1140px; margin: 0 auto; padding: 9px 20px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tc-brk .lbl { font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.tc-brk a { color: var(--tc-paper); font-weight: 600; font-size: 15.5px; }
.tc-brk a:hover { color: var(--tc-paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---- hero ---- */
.tc-hero { position: relative; background: var(--tc-deep); color: var(--tc-paper); overflow: hidden; }
.tc-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-hero .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--tc-deep) 28%, color-mix(in srgb, var(--tc-deep) 82%, transparent) 52%, color-mix(in srgb, var(--tc-deep) 6%, transparent) 100%); }
.tc-hero .pad { position: relative; max-width: 1140px; margin: 0 auto; padding: 62px 20px 66px; display: flex; flex-direction: column; gap: 15px; }
.tc-hero .pad > * { max-width: 600px; }
.tc-hero .kick { font-family: var(--tc-ui); font-weight: 700; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--tc-glint); }
.tc-hero h1 { margin: 0; font-family: var(--tc-head); font-weight: 600; font-size: 48px; line-height: 1.08; letter-spacing: -.01em; }
.tc-hero h1 a { color: var(--tc-paper); }
.tc-hero h1 a:hover { color: var(--tc-paper); text-decoration: underline; text-decoration-color: var(--tc-glint); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tc-hero .meta { font-family: var(--tc-ui); font-size: 17.5px; line-height: 1.6; color: var(--tc-on-dark); }
.tc-hero .tc-btn { align-self: flex-start; }
/* The station roundel at a tenth of its strength, centred on the
   panel's right. */
.tc-hero--noart .wm { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); width: 300px; opacity: .10; }

/* ---- section title ---- */
.tc-ttl { display: flex; align-items: center; gap: 14px; margin: 32px 0 18px; }
.tc-ttl h2 { margin: 0; font-family: var(--tc-head); font-weight: 600; font-size: 26px; color: var(--tc-ink); }
.tc-ttl::after { content: ""; flex: 1; height: 1px; background: var(--tc-line); }

/* ---- two-column home ---- */
.tc-home { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }

/* ---- featured cards ---- */
.tc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tc-card { background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.tc-card .txt { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; }
.tc-card h3 { margin: 0; font-family: var(--tc-head); font-weight: 600; font-size: 21px; line-height: 1.2; }
.tc-card h3 a { color: var(--tc-ink); }
.tc-card h3 a:hover { color: var(--tc-primary); }
.tc-chip { align-self: flex-start; display: inline-block; background: var(--tc-primary); color: var(--tc-paper); font-family: var(--tc-ui); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; }
.tc-card .meta, .tc-row .meta, .tc-rail .meta { font-family: var(--tc-ui); font-size: 13px; color: var(--tc-muted); }
.tc-card.noart .txt { border-top: 4px solid var(--tc-gold); }

/* ---- story rows ---- */
.tc-row { display: grid; grid-template-columns: 1fr 200px; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--tc-rule); align-items: start; }
.tc-row.noart { grid-template-columns: 1fr; }
.tc-row h3 { margin: 5px 0 6px; font-family: var(--tc-head); font-weight: 600; font-size: 23px; line-height: 1.2; }
.tc-row h3 a { color: var(--tc-ink); }
.tc-row h3 a:hover { color: var(--tc-primary); }
.tc-row p { margin: 0 0 6px; font-size: 15.5px; color: var(--tc-muted); }
.tc-row img { border-radius: 4px; }

/* ---- rail ---- */
.tc-rail { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.tc-box { border: 1px solid var(--tc-line); border-radius: 4px; padding: 16px 18px; }
.tc-box .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tc-box .hd h3 { margin: 0; font-family: var(--tc-head); font-weight: 600; font-size: 21px; color: var(--tc-ink); }
.tc-box .hd a { font-family: var(--tc-ui); font-size: 13.5px; color: var(--tc-secondary); font-weight: 600; }
.tc-weather .now { display: flex; align-items: baseline; gap: 12px; }
.tc-weather .temp { font-family: var(--tc-ui); font-weight: 800; font-size: 38px; color: var(--tc-primary); }
.tc-weather .cond { font-family: var(--tc-ui); font-size: 15px; color: var(--tc-muted); }
.tc-weather .src { margin-top: 10px; font-family: var(--tc-ui); font-size: 12px; line-height: 1.45; color: var(--tc-muted); }
.tc-weather .src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tc-trend ol { list-style: none; margin: 0; padding: 0; }
.tc-trend li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--tc-rule); }
.tc-trend li:last-child { border-bottom: 0; }
.tc-trend .n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 4px; background: var(--tc-primary); color: var(--tc-paper); font-family: var(--tc-ui); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tc-trend a { font-family: var(--tc-head); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--tc-ink); }
.tc-trend a:hover { color: var(--tc-primary); }
.tc-subbox { background: var(--tc-deep); border-radius: 4px; color: var(--tc-paper); padding: 20px 18px; }
.tc-subbox h3 { margin: 0 0 6px; font-family: var(--tc-head); font-weight: 600; font-size: 22px; }
.tc-subbox p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--tc-on-dark); }
.tc-subbox .tc-btn { background: var(--tc-primary); }
.tc-subbox .tc-btn:hover { background: var(--tc-paper); color: var(--tc-primary) !important; }

/* ---- article ---- */
.tc-article { max-width: 760px; margin: 30px auto 0; }
.tc-article h1 { margin: 8px 0 12px; font-family: var(--tc-head); font-weight: 600; font-size: 42px; line-height: 1.12; letter-spacing: -.01em; color: var(--tc-ink); }
.tc-article .lede { font-size: 20px; line-height: 1.5; color: var(--tc-muted); margin: 0 0 10px; }
.tc-byline { font-family: var(--tc-ui); font-size: 13.5px; letter-spacing: .04em; color: var(--tc-muted); text-transform: uppercase; border-top: 3px solid var(--tc-primary); border-bottom: 1px solid var(--tc-rule); padding: 8px 0; margin: 0 0 16px; }
.tc-article .body { font-size: 17.5px; }
.tc-article .body a { border-bottom: 1px solid var(--tc-secondary); }
.tc-article .body blockquote { margin: 26px 0; padding: 16px 22px; border-left: 4px solid var(--tc-secondary); background: var(--tc-surface); font-size: 19px; }
.tc-article figure { margin: 18px 0; }
.tc-article figcaption { font-family: var(--tc-ui); font-size: 13px; color: var(--tc-muted); padding-top: 6px; }
.tc-related { max-width: 760px; margin: 30px auto 0; }

/* ---- section front ---- */
.tc-section { padding-bottom: 12px; }
.tc-more { margin: 22px 0; }

/* ---- empty state ---- */
.tc-empty { background: var(--tc-surface); border-left: 4px solid var(--tc-primary); padding: 18px 20px; font-size: 16px; margin: 26px 0; }

/* ---- footer ---- */
.tc-foot { background: var(--tc-deep); color: var(--tc-foot-text); margin-top: 46px; }
.tc-foot .cols { max-width: 1140px; margin: 0 auto; padding: 34px 20px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
/* At 85% the lockup fits the footer's first column down to the
   two-column breakpoint. */
.tc-foot a.tc-lock { display: inline-flex; font-size: 8.5px; padding: 0; }
.tc-foot .tc-name .wm, .tc-foot .tc-name .wm .tct { color: var(--tc-paper); }
.tc-foot .tc-name .sub { color: var(--tc-foot-text); }
.tc-foot h4 { margin: 0 0 10px; font-family: var(--tc-ui); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-gold); }
.tc-foot a { display: block; color: var(--tc-foot-text); font-family: var(--tc-ui); font-size: 14.5px; padding: 3px 0; }
.tc-foot a:hover { color: var(--tc-paper); }
.tc-foot .legal { max-width: 1140px; margin: 0 auto; padding: 14px 20px 24px; border-top: 1px solid color-mix(in srgb, var(--tc-paper) 16%, transparent); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--tc-ui); font-size: 13.5px; }
.tc-foot .legal .strong { color: var(--tc-glint); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .tc-home { grid-template-columns: 1fr; }
  .tc-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-foot .cols { grid-template-columns: 1fr 1fr; }
  .tc-foot .cols > div:first-child { grid-column: 1 / -1; }
  .tc-hero h1 { font-size: 38px; }
  .tc-hero--noart .wm { right: 20px; width: 180px; }
}
@media (max-width: 620px) {
  .tc-grid { grid-template-columns: 1fr; }
  .tc-row { grid-template-columns: 1fr; }
  .tc-row img { order: -1; }
  .tc-foot .cols { grid-template-columns: 1fr; }
  .tc-hero h1 { font-size: 31px; }
  .tc-article h1 { font-size: 31px; }
  .tc-lock, .tc-foot a.tc-lock { font-size: 7.2px; }
}
