/* =========================================================================
   TFS City Pages — events + hirings.
   Builds on base.css (the homepage stylesheet): same tokens, type, motion.
   ========================================================================= */

:root {
  --night: #121316;
  --night-2: #1b1c20;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-text: #f2f2f3;
  --night-muted: #a5a7ad;      /* 7.6:1 on --night */
  --live: #1f8a4c;             /* "this week" pulse only */
  --due: #9a3412;              /* deadlines; 6.9:1 on white */
}

/* Current page in nav / city chips */
.nav-link.is-current { background: var(--chip); color: var(--ink); }
.city-chip.is-current { background: var(--brand); color: #fff; }
.city-chip.is-current::before { opacity: 1; }
.chip.is-current { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand); }
.mobile-links a[aria-current="page"] { color: var(--muted); }

/* Section labels reuse the homepage's underline-draw label */
.tc-label { margin-bottom: clamp(24px, 3vw, 36px); }

/* Shared small type */
.tc-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.tc-empty { color: var(--muted); padding: 32px 0; }

/* =========================================================================
   HERO — big city name with a period, scribble underline, lede, switch
   ========================================================================= */
.tc-hero {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) var(--gutter) clamp(48px, 6vw, 80px);
  text-align: center;
  background: radial-gradient(56% 60% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 72%), var(--paper);
  overflow: hidden;
}
.tc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(20, 22, 26, 0.09) 1px, transparent 1.2px);
  background-size: 28px 28px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.3) 55%, transparent 85%);
  mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.3) 55%, transparent 85%);
}
.tc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.tc-hero-sep { width: 22px; height: 1px; background: currentColor; opacity: 0.5; }

.tc-city {
  position: relative;
  margin: clamp(14px, 2vw, 24px) 0 0;
  font-size: clamp(84px, 16.5vw, 248px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.065em;
  color: var(--ink);
}
.tc-hero--hirings { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px)); padding-bottom: clamp(28px, 3.4vw, 44px); }
.tc-hero--hirings .tc-city { font-size: clamp(64px, 9vw, 132px); }
.tc-hero--hirings .tc-hero-lede { display: none; }
.tc-hero--hirings .tc-hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: clamp(26px, 3vw, 36px); }
.tc-city-word { display: inline-flex; overflow: hidden; padding: 0.04em 0.06em 0.1em; margin: -0.04em -0.06em -0.1em; }
.tc-ch { display: inline-block; }
.tc-dot { color: var(--ink); }
.tc-scribble {
  position: absolute; left: 6%; right: 4%; bottom: -0.14em;
  width: 90%; height: 0.2em; overflow: visible;
}
.tc-scribble path {
  fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.tc-hero-lede {
  max-width: 46ch;
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.tc-hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}

/* Events / Hirings segmented switch with a sliding thumb */
.tc-switch {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.tc-switch a {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  min-width: 118px; min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.35s var(--ease-out);
}
.tc-switch a[aria-current="page"] { color: #fff; }
.tc-switch a:not([aria-current]):hover { color: var(--ink); }
.tc-switch a:focus-visible { border-radius: 999px; }
.tc-switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -8px rgba(20, 22, 26, 0.5);
  transition: transform 0.55s var(--ease-out);
}
.tc-switch[data-view="hirings"] .tc-switch-thumb { transform: translateX(100%); }
.tc-switch.is-leaving[data-view="events"] .tc-switch-thumb { transform: translateX(100%); }
.tc-switch.is-leaving[data-view="hirings"] .tc-switch-thumb { transform: none; }

.tc-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.tc-stats li { display: inline-flex; align-items: baseline; gap: 6px; }
.tc-stats strong { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .tc-ch { animation: tc-rise 1s var(--ease-out) both; animation-delay: calc(0.12s + var(--i) * 0.045s); }
  .tc-dot { animation: tc-dot 0.9s var(--ease-out) both; animation-delay: calc(0.3s + var(--i) * 0.045s); }
  .tc-scribble path { stroke-dashoffset: 1; animation: tc-draw 1.1s var(--ease-in-out) 0.75s forwards; }
  .tc-hero-eyebrow { animation: fade-up 0.9s var(--ease-out) 0.05s both; }
  .tc-hero-lede { animation: fade-up 1s var(--ease-out) 0.55s both; }
  .tc-hero-actions { animation: fade-up 1s var(--ease-out) 0.7s both; }
  .site-header { animation: header-in 0.9s var(--ease-out) 0.1s both; }
}
@keyframes tc-rise { from { transform: translateY(108%); } }
@keyframes tc-dot { 0% { transform: translateY(108%) scale(0.6); } 70% { transform: translateY(-6%) scale(1.08); } 100% { transform: none; } }
@keyframes tc-draw { to { stroke-dashoffset: 0; } }

/* =========================================================================
   MEDIA (2:1 thumbnails everywhere, like the site's cards)
   ========================================================================= */
.tc-media {
  position: relative; display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--band);
}
.tc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.6s; }
.tc-media--logo { display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tc-media--logo img { width: auto; height: auto; max-width: 56%; max-height: 50%; object-fit: contain; }
.tc-media--empty { display: grid; place-items: center; background: linear-gradient(135deg, #f0f0f2, #e4e4e8); color: rgba(20, 22, 26, 0.18); }
.tc-media-mark { width: 26%; height: auto; }

/* Company logo boxes */
.tc-logo {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.tc-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.tc-logo.is-clear { background: transparent; border-color: transparent; }
.tc-logo--sm { width: 72px; height: 30px; padding: 4px 7px; border-radius: 7px; }
.tc-logo--sm.is-clear { padding: 2px 0; justify-content: flex-end; }
.tc-logo--md { width: 52px; height: 52px; padding: 7px; border-radius: 14px; }
.tc-logo--lg { width: 72px; height: 72px; padding: 10px; border-radius: 18px; }
.tc-logo--initials {
  font-weight: 600; letter-spacing: -0.03em; color: hsl(var(--hue) 30% 26%);
  background: hsl(var(--hue) 40% 94%); border-color: hsl(var(--hue) 30% 86%);
}
.tc-logo--sm.tc-logo--initials { width: 28px; font-size: 11px; }
.tc-logo--md.tc-logo--initials { font-size: 17px; }
.tc-logo--lg.tc-logo--initials { font-size: 24px; }

/* date | price | logo row */
.tc-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 30px;
  margin-top: auto;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
}
.tc-row-date { white-space: nowrap; }
.tc-row-price { white-space: nowrap; color: var(--text); }
.tc-row-price small { font-size: 0.78em; font-weight: 400; color: var(--muted); }
.tc-row-date + .tc-row-price::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 2px 0; border-radius: 50%; background: currentColor; opacity: 0.45; vertical-align: middle; }
.tc-row-logo { margin-left: auto; display: inline-flex; }

/* =========================================================================
   THIS WEEK — spotlight + 4 cards
   ========================================================================= */
.tc-week { padding-top: clamp(24px, 4vw, 48px); }

.tc-spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 52px);
  margin-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line-strong);
}
.tc-spot-media { order: 2; position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); }
.tc-spot-media .tc-media { aspect-ratio: 2 / 1; }
.tc-spot-date {
  position: absolute; top: 16px; left: 16px;
  display: grid; justify-items: center;
  min-width: 72px; padding: 10px 12px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 24px -10px rgba(20, 22, 26, 0.4);
  color: var(--ink);
  line-height: 1;
}
.tc-spot-dow, .tc-spot-mon { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tc-spot-day { margin: 4px 0 3px; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; }
.tc-spot-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tc-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
@media (prefers-reduced-motion: no-preference) {
  .tc-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: tc-ping 2s var(--ease-out) infinite; }
}
@keyframes tc-ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.tc-spot-title {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-spot-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.6s var(--ease-out); }
.tc-spot:hover .tc-spot-title a, .tc-spot-title a:focus-visible { background-size: 100% 2px; }
.tc-spot-excerpt {
  font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px;
  margin: 4px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.tc-facts div { min-width: 0; }
.tc-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tc-facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.tc-spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.tc-spot:hover .tc-media img { transform: scale(1.04); }

.tc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.tc-grid > li { display: flex; }
.tc-card {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.tc-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 16px; }
.tc-card-title, .tc-li-title, .tc-rel-title, .tc-wk-title, .tc-job-title, .tc-jd-title, .tc-art-title { overflow-wrap: anywhere; }
.tc-card-title {
  font-size: 16.5px; font-weight: 500; line-height: 1.32; letter-spacing: -0.015em; color: var(--ink);
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.tc-card:focus-visible { border-radius: 18px; outline-offset: 4px; }
@media (hover: hover) {
  .tc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
  .tc-card:hover .tc-media img { transform: scale(1.06); }
}
.tc-card:active { transform: translateY(-2px) scale(0.99); }

/* =========================================================================
   WEEKLY — dark band with a draggable rail
   ========================================================================= */
.tc-weekly {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
  background: var(--night);
  color: var(--night-text);
  overflow: hidden;
  isolation: isolate;
}
.tc-weekly::before {
  /* faint light from the top edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.tc-weekly .section-label h2 { color: var(--night-text); }
.tc-weekly .section-label h2::after { background: var(--night-text); }
.tc-weekly .section-label p { color: var(--night-muted); }
.tc-weekly-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tc-weekly-head .section-label { flex: 1; }
.tc-rail-ctrls { display: flex; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.tc-rail-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--night-text);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.3s, transform 0.3s var(--ease-out);
}
.tc-rail-btn svg { width: 16px; height: 16px; }
.tc-rail-btn:hover:not(:disabled) { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.tc-rail-btn:active:not(:disabled) { transform: scale(0.94); }
.tc-rail-btn:disabled { opacity: 0.3; cursor: default; }
.tc-rail-btn:focus-visible { border-radius: 50%; outline-color: var(--night-text); }

.tc-rail-wrap {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.tc-rail {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 24vw, 330px);
  gap: 16px;
  padding: 6px var(--pad) 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
}
.tc-rail::-webkit-scrollbar { display: none; }
.tc-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tc-rail.is-dragging a { pointer-events: none; }
.tc-rail:focus-visible { outline-offset: -2px; border-radius: 0; }
.tc-wk-item { scroll-snap-align: start; display: flex; }
.tc-wk-card {
  flex: 1;
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  user-select: none; -webkit-user-select: none;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.tc-wk-card .tc-media { background: #24262b; }

.tc-wk-card .tc-media--logo { background: #f2f2f3; box-shadow: none; }
.tc-wk-card .tc-media--logo img { filter: none; }
.tc-wk-card .tc-media--empty { background: linear-gradient(135deg, #24262b, #1b1c20); color: rgba(255, 255, 255, 0.12); }
.tc-wk-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 16px; }
.tc-wk-when {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--night-muted);
}
.tc-wk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--night-text); opacity: 0.6; }
.tc-wk-title {
  font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--night-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-wk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.tc-wk-price { font-size: 13.5px; font-weight: 500; color: var(--night-muted); }
.tc-wk-card .tc-logo, .tc-wk-card .tc-logo.is-clear { background: transparent; border-color: transparent; padding: 0; }
@media (hover: hover) {
  .tc-wk-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); background: #212227; }
  .tc-wk-card:hover .tc-media img { transform: scale(1.06); }
}
.tc-wk-card:focus-visible { border-radius: 18px; outline-color: var(--night-text); outline-offset: 3px; }

.tc-rail-progress {
  position: relative; height: 2px; margin-top: 28px;
  background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden;
}
.tc-rail-progress span {
  position: absolute; inset: 0 auto 0 0; width: 25%;
  border-radius: 2px;
  background: var(--night-text);
  transition: transform 0.2s linear, width 0.3s;
}

/* =========================================================================
   LATEST — Monocle-style list + sticky aside
   ========================================================================= */
.tc-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tc-list { border-top: 1px solid var(--line-strong); }
.tc-li { border-bottom: 1px solid var(--line); }
.tc-li-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 300px);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: start;
  padding: clamp(20px, 2.2vw, 28px) 0;
}
.tc-li-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 100%; }
.tc-li-title {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--ink);
  text-wrap: pretty;
}
.tc-li-title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.55s var(--ease-out); }
.tc-li-excerpt {
  font-size: 15px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-li-link .tc-row { margin-top: 6px; }
.tc-li-link .tc-media { border-radius: 14px; }
.tc-li-link:focus-visible { border-radius: 14px; outline-offset: 6px; }
@media (hover: hover) {
  .tc-li-link:hover .tc-li-title span { background-size: 100% 1.5px; }
  .tc-li-link:hover .tc-media img { transform: scale(1.05); }
}

.tc-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); }
.tc-pg {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 6px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
a.tc-pg:hover { background: var(--chip); color: var(--ink); }
a.tc-pg:active { transform: scale(0.94); }
.tc-pg.is-current { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(20, 22, 26, 0.5); }
.tc-pg--arrow { border: 1px solid var(--line-strong); }
.tc-pg--gap { min-width: 24px; color: var(--muted); }
.tc-pg:focus-visible { border-radius: 999px; }

.tc-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.tc-aside-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.tc-aside-card .eyebrow { color: var(--muted); }
.tc-aside-card .btn { align-self: flex-start; }
.tc-aside-empty { color: var(--muted); font-size: 15px; }
.tc-mini-jobs { display: flex; flex-direction: column; }
.tc-mini-jobs li + li { border-top: 1px solid var(--line); }
.tc-mini-jobs a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px; margin: 0 -6px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.tc-mini-jobs a:hover { background: var(--paper); }
.tc-mini-jobs .tc-logo--sm { width: 40px; height: 40px; padding: 5px; border-radius: 10px; }
.tc-mini-jobs .tc-logo--sm.tc-logo--initials { width: 40px; font-size: 13px; }
.tc-mini-jobs span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tc-mini-jobs strong { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-mini-jobs em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-aside-link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--band);
  border: 1px solid var(--line);
  transition: background-color 0.25s, transform 0.4s var(--ease-out);
}
.tc-aside-link .eyebrow { grid-column: 1; color: var(--muted); font-size: 11px; }
.tc-aside-link strong { grid-column: 1; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tc-aside-link > span[aria-hidden] { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); transition: transform 0.45s var(--ease-out), background-color 0.3s, color 0.3s; }
.tc-aside-link:hover { background: var(--chip-hover); }
.tc-aside-link:hover > span[aria-hidden] { transform: rotate(45deg); background: var(--brand); color: #fff; }
.tc-aside-link:focus-visible { border-radius: 22px; }

/* =========================================================================
   HIRINGS BOARD
   ========================================================================= */
.tc-board { padding: 0 0 clamp(56px, 6vw, 88px); }
.tc-board-bar {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.tc-search {
  position: relative; flex: 0 1 340px;
  display: flex; align-items: center;
}
.tc-search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.tc-search input {
  width: 100%; min-height: 48px; padding: 0 18px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.tc-search input::placeholder { color: var(--muted); }
.tc-search input:hover { border-color: rgba(20, 22, 26, 0.32); }
.tc-search input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 46, 49, 0.14); }
.tc-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14.5px; font-weight: 500; color: var(--text);
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.tc-filter span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); transition: color 0.2s; }
.tc-filter:hover { background: var(--chip-hover); color: var(--ink); }
.tc-filter:active { transform: scale(0.96); }
.tc-filter.is-on { background: var(--brand); color: #fff; }
.tc-filter.is-on span { color: rgba(255, 255, 255, 0.7); }
.tc-filter:focus-visible { border-radius: 999px; }

.tc-split {
  --board-h: max(560px, calc(100svh - var(--header-h) - 32px));
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  height: var(--board-h);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tc-jobs-col { position: relative; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fbfbfc; }
.tc-jobs-count {
  padding: 14px 20px 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.tc-jobs {
  flex: 1; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 22, 26, 0.18) transparent;
}
.tc-jobs li[hidden] { display: none; }
.js .tc-later { display: none; }
.tc-more-row { list-style: none; padding: 10px 6px 14px; }
.tc-more { width: 100%; justify-content: center; cursor: pointer; }
.tc-detail-inner.is-loading { opacity: 0.45; transition: opacity 0.15s; }
.tc-job {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px;
  align-items: start;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  transition: background-color 0.2s, box-shadow 0.25s;
}
.tc-job + .tc-job, .tc-jobs li + li .tc-job { margin-top: 2px; }
.tc-job:hover { background: var(--paper); }
.tc-job.is-active {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 24px -14px rgba(20, 22, 26, 0.35);
}
.tc-job.is-active::before {
  content: ""; position: absolute; left: -8px; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.tc-job:focus-visible { border-radius: 16px; outline-offset: -2px; }
.tc-job-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-job-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-job-co { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-job-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-job-tags span, .tc-jd-tags li {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 9px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 12px; font-weight: 500; color: var(--text);
}
.tc-job-tags .is-due, .tc-jd-tags .is-due { background: #fdf0e8; color: var(--due); }
.tc-job-age { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.tc-job-age.is-new { padding: 3px 8px; border-radius: 999px; background: #e6f4ec; color: #17633a; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.tc-jobs-none { padding: 32px 20px; color: var(--muted); text-align: center; }

.tc-detail { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(20, 22, 26, 0.18) transparent; }
.tc-detail:focus { outline: none; }
.tc-detail-back { display: none; }
.tc-detail-inner { padding: clamp(24px, 3vw, 44px) clamp(24px, 3.4vw, 52px) 48px; }
.tc-jd { max-width: 760px; }
.tc-jd-head { display: flex; align-items: center; gap: 18px; }
.tc-jd-titles { min-width: 0; }
.tc-jd-co { font-size: 15px; font-weight: 500; color: var(--muted); }
.tc-jd-title { margin-top: 4px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.tc-jd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tc-jd-tags li { min-height: 30px; padding: 0 12px; font-size: 13px; }
.tc-jd-tags .is-muted { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.tc-jd-actions {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px calc(-1 * clamp(24px, 3.4vw, 52px)) 0;
  padding: 14px clamp(24px, 3.4vw, 52px);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tc-btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.tc-btn-ghost:hover { background: var(--chip); border-color: transparent; color: var(--ink); }
.tc-btn-ghost:active { transform: scale(0.97); }
.tc-btn-ghost:focus-visible { border-radius: 999px; }
.tc-icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.tc-icon-btn svg { width: 18px; height: 18px; }
.tc-icon-btn:hover { background: var(--chip); }
.tc-icon-btn:active { transform: scale(0.94); }
.tc-icon-btn:focus-visible { border-radius: 50%; }
.tc-copied {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.tc-copied.is-on { opacity: 1; transform: translate(-50%, 0); }
.tc-jd-note { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Swap animation when a new job opens */
@media (prefers-reduced-motion: no-preference) {
  .tc-jd.is-entering { animation: tc-jd-in 0.5s var(--ease-out) both; }
}
@keyframes tc-jd-in { from { opacity: 0; transform: translateY(10px); } }

/* Post body typography */
.tc-prose { margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.tc-prose > * + * { margin-top: 1em; }
.tc-prose h1, .tc-prose h2, .tc-prose h3, .tc-prose h4 { margin-top: 1.6em; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.tc-prose h2 { font-size: 21px; }
.tc-prose ul, .tc-prose ol { padding-left: 1.3em; }
.tc-prose ul { list-style: disc; }
.tc-prose ol { list-style: decimal; }
.tc-prose li + li { margin-top: 0.35em; }
.tc-prose li::marker { color: var(--subtle); }
.tc-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(20, 22, 26, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.tc-prose a:hover { text-decoration-color: currentColor; }
.tc-prose strong { color: var(--ink); font-weight: 600; }
.tc-prose img, .tc-prose figure { max-width: 100%; height: auto; border-radius: 14px; }
.tc-prose figure { margin: 1.4em 0; }
.tc-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tc-prose th, .tc-prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tc-prose hr { border: 0; border-top: 1px solid var(--line); }
.tc-prose .tfs-end-note, .tc-prose .tfs-posted-date { display: none; }

.tc-empty-board {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: clamp(48px, 8vw, 96px) 24px;
  text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 24px;
}
.tc-empty-board p:not(.eyebrow) { max-width: 46ch; color: var(--muted); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-latest-grid { grid-template-columns: 1fr; }
  .tc-aside { position: static; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 900px) {
  .tc-spot { grid-template-columns: 1fr; }
  .tc-spot-media { order: 0; }
  .tc-weekly-head { align-items: flex-start; }

  /* Board becomes a list; the description slides in as a full-screen sheet */
  .tc-split { display: block; height: auto; border-radius: 20px; overflow: visible; box-shadow: var(--shadow-sm); }
  .tc-jobs-col { border-right: 0; border-radius: 20px; background: var(--surface); }
  .tc-jobs { overflow: visible; }
  .tc-job.is-active { background: transparent; box-shadow: none; }
  .tc-job.is-active::before { display: none; }
  .tc-detail {
    position: fixed; inset: 0; z-index: 300;
    background: var(--surface);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }
  .tc-detail.is-open { transform: none; visibility: visible; transition: transform 0.5s var(--ease-out), visibility 0s; }
  .no-js-board .tc-detail, html:not(.js) .tc-board .tc-detail { position: static; transform: none; visibility: visible; margin-top: 16px; border: 1px solid var(--line); border-radius: 20px; }
  .tc-detail-back {
    position: sticky; top: 0; z-index: 3;
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 56px; padding: 0 20px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    font-size: 15px; font-weight: 500;
  }
  .tc-detail-back svg { width: 16px; height: 16px; }
  .no-js-board .tc-detail-back, html:not(.js) .tc-board .tc-detail-back { display: none; }
  .tc-detail-inner { padding: 22px 20px 48px; }
  .tc-jd-actions { top: 56px; margin-inline: -20px; padding-inline: 20px; }
  .no-js-board .tc-jd-actions, html:not(.js) .tc-board .tc-jd-actions { top: 0; }
}
@media (max-width: 640px) {
  .tc-grid { grid-template-columns: 1fr; gap: 16px; }
  .tc-aside { grid-template-columns: 1fr; }
  .tc-li-link { grid-template-columns: minmax(0, 1fr) 112px; }
  .tc-li-link .tc-media { aspect-ratio: 1 / 1; border-radius: 12px; }
  .tc-li-excerpt { display: none; }
  .tc-facts { grid-template-columns: 1fr 1fr; }
  .tc-spot-foot .tc-logo { display: none; }
  .tc-rail-ctrls { display: none; }
  .tc-rail { grid-auto-columns: 78%; }
  .tc-search { flex-basis: 100%; }
  .tc-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .tc-filters::-webkit-scrollbar { display: none; }
  .tc-filter { flex-shrink: 0; }
  .tc-jd-head { align-items: flex-start; }
  .tc-logo--lg { width: 56px; height: 56px; padding: 8px; border-radius: 14px; }
}
body.sheet-open { overflow: hidden; }
/* The job sheet is position:fixed, so nothing around it may be transformed on phones */
@media (max-width: 900px) {
  .js .tc-split[data-reveal] { transform: none !important; opacity: 1 !important; }
}

/* =========================================================================
   ARTICLE (single post)
   ========================================================================= */
.tc-article { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }
.tc-art-head, .tc-art-body, .tc-art-foot {
  width: 100%; max-width: calc(760px + var(--gutter) * 2);
  margin-inline: auto; padding-inline: var(--gutter);
}
.tc-art-head { display: flex; flex-direction: column; gap: 16px; }
.tc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tc-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.tc-crumbs li + li::before { content: "/"; color: var(--subtle); }
.tc-crumbs a { color: var(--muted); transition: color 0.2s; }
.tc-crumbs a:hover { color: var(--ink); }
.tc-crumbs li:last-child a { color: var(--ink); }
.tc-art-head .tc-kind { margin-top: clamp(8px, 2vw, 20px); }
.tc-art-title {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 650; font-weight: 600;
  line-height: 1.02; letter-spacing: -0.05em;
  color: var(--ink);
  text-wrap: balance;
}
.tc-art-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px;
  margin: 8px 0 0; padding: 18px 0;
  border-block: 1px solid var(--line-strong);
}
.tc-art-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tc-art-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.tc-art-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-art-actions .tc-logo { margin-left: auto; }
.tc-art-media {
  width: 100%; max-width: calc(1120px + var(--gutter) * 2);
  margin: clamp(32px, 4vw, 52px) auto 0; padding-inline: var(--gutter);
}
.tc-art-media img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); }
.tc-art-body { margin-top: clamp(32px, 4vw, 52px); font-size: 17.5px; line-height: 1.75; }
.tc-art-body > p:first-child { font-size: 1.12em; color: var(--ink); }
.tc-art-body .tfs-end-note, .tc-art-body .tfs-posted-date { display: block; font-size: 13.5px !important; line-height: 1.5; color: var(--muted) !important; }
.tc-art-body .tfs-end-note { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid var(--line); }
.tc-art-body .tfs-posted-date { margin-top: 6px !important; font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.06em; text-transform: uppercase; }
.tc-art-body .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; }
.tc-art-foot { margin-top: clamp(28px, 4vw, 44px); }
.tc-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; color: var(--ink); }
.tc-back span { transition: transform 0.35s var(--ease-out); }
.tc-back:hover span { transform: translateX(-4px); }

@media (prefers-reduced-motion: no-preference) {
  .tc-art-head > * { animation: fade-up 0.9s var(--ease-out) both; }
  .tc-art-head > :nth-child(2) { animation-delay: 0.05s; }
  .tc-art-head > :nth-child(3) { animation-delay: 0.1s; }
  .tc-art-head > :nth-child(4) { animation-delay: 0.18s; }
  .tc-art-head > :nth-child(5) { animation-delay: 0.24s; }
  .tc-art-media { animation: tc-media-in 1.2s var(--ease-out) 0.25s both; }
}
@keyframes tc-media-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }

/* =========================================================================
   RELATED — heavy rule, three columns with hairlines between
   ========================================================================= */
.tc-related { padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.tc-related-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-top: 14px; margin-bottom: clamp(20px, 2.4vw, 28px);
  border-top: 3px solid var(--ink);
}
.tc-related-head h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); }
.tc-related-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.tc-related-more span { transition: transform 0.35s var(--ease-out); }
.tc-related-more:hover span { transform: translateX(4px); }
.tc-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-related-grid > li { display: flex; padding: 0 clamp(14px, 1.6vw, 24px); }
.tc-related-grid > li:first-child { padding-left: 0; }
.tc-related-grid > li:last-child { padding-right: 0; }
.tc-related-grid > li + li { border-left: 1px solid var(--line-strong); }
.tc-rel { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tc-rel .tc-media { border-radius: 14px; margin-bottom: 4px; }
.tc-rel-title { font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; margin-bottom: 4px; }
.tc-rel-title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.55s var(--ease-out); }
.tc-rel:focus-visible { border-radius: 14px; outline-offset: 6px; }
@media (hover: hover) {
  .tc-rel:hover .tc-rel-title span { background-size: 100% 1.5px; }
  .tc-rel:hover .tc-media img { transform: scale(1.05); }
}

/* Category pages */
.tc-hero--archive { padding-bottom: clamp(16px, 2vw, 28px); }
.tc-hero--archive .tc-city { font-size: clamp(56px, 9vw, 140px); }
.tc-city--words { max-width: 14ch; text-wrap: balance; }
.tc-city--words .tc-city-word { margin-right: 0; vertical-align: top; }
.tc-switch[data-view="none"] { grid-template-columns: 1fr 1fr; }
.tc-switch[data-view="none"] a { color: var(--text); }
.tc-archive { padding-top: clamp(24px, 3vw, 40px); }
.tc-archive-wrap { max-width: calc(980px + var(--gutter) * 2); }
.tc-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .tc-related-grid { grid-template-columns: 1fr; }
  .tc-related-grid > li { padding: 22px 0; }
  .tc-related-grid > li + li { border-left: 0; border-top: 1px solid var(--line-strong); }
  .tc-related-grid > li:first-child { padding-top: 0; }
  .tc-rel { display: grid; grid-template-columns: minmax(0, 1fr) 132px; grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 8px; }
  .tc-rel .tc-media { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 1 / 1; margin: 0; border-radius: 12px; }
  .tc-rel .tc-kind, .tc-rel-title, .tc-rel .tc-row { grid-column: 1; }
}
@media (max-width: 640px) {
  .tc-art-actions .tc-logo { display: none; }
  .tc-art-media { padding-inline: 0; }
  .tc-art-media img { border-radius: 0; box-shadow: none; }
}

/* Job details without a description: facts grid, note, more roles */
.tc-jd-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0;
  margin: 28px 0 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.tc-jd-facts div { padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.tc-jd-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tc-jd-facts dd { margin: 5px 0 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.tc-jd-lede { margin-top: 20px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tc-jd-lede strong { color: var(--ink); font-weight: 500; }
.tc-jd-sub { margin-top: 36px; }
.tc-jd-sub h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.tc-jd-more li + li { border-top: 1px solid var(--line); }
.tc-jd-more a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 8px; margin: 0 -8px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.tc-jd-more a:hover { background: var(--paper); }
.tc-jd-more .tc-logo--sm { width: 40px; height: 40px; padding: 5px; border-radius: 10px; }
.tc-jd-more .tc-logo--sm.tc-logo--initials { width: 40px; font-size: 13px; }
.tc-jd-more strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.tc-jd-more em { display: block; font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-jd-more-go { color: var(--muted); transition: transform 0.35s var(--ease-out), color 0.2s; }
.tc-jd-more a:hover .tc-jd-more-go { transform: translateX(4px); color: var(--ink); }

/* Emoji pictures (if a browser still gets them) stay text-sized */
img.emoji, img.wp-smiley {
  display: inline !important; width: 1em !important; height: 1em !important;
  margin: 0 0.07em !important; padding: 0 !important; vertical-align: -0.1em !important;
  border: 0 !important; box-shadow: none !important; background: none !important;
}

/* TFS thumbnails v2 (Toronto events). Default = zoom to fill (cover). Per-image exceptions below (matched on the image file name) show the whole image (contain) on a colour fill taken from the image itself, or shift the crop so side text stays in view. Applies to event cards, This-week feature, weekly carousel, Latest list, related cards (.tc-media) and the single-event hero (.tc-art-media). Job logos and other pages are untouched. */
.tc-media:not(.tc-media--logo) img { object-fit: cover; object-position: center; padding: 0; background: none; box-sizing: border-box; }
.tc-art-media img { object-fit: cover; object-position: center; padding: 0; background: none; box-sizing: border-box; }
/* rule 3: contain + fill */
.tc-media:has(img[src*="tfs-2573-economic-club-tiff-macklem-poster"]) { background: linear-gradient(180deg,#2e60b2 0%,#255bad 11%,#1a52a6 22%,#1f57ac 33%,#2255a8 44%,#1c4497 56%,#4667ab 67%,#b0b4bf 78%,#c6cbd6 89%,#e0d1da 100%); }
.tc-media img[src*="tfs-2573-economic-club-tiff-macklem-poster"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-2573-economic-club-tiff-macklem-poster"] { object-fit: contain; padding: 0; background: linear-gradient(180deg,#2e60b2 0%,#255bad 11%,#1a52a6 22%,#1f57ac 33%,#2255a8 44%,#1c4497 56%,#4667ab 67%,#b0b4bf 78%,#c6cbd6 89%,#e0d1da 100%); }
.tc-media:has(img[src*="1786734962885_w1080_h1080"]) { background: linear-gradient(180deg,#0a286c 0%,#022167 11%,#012167 22%,#012167 33%,#012167 44%,#022167 56%,#012167 67%,#909ebd 78%,#ffffff 89%,#fefefe 100%); }
.tc-media img[src*="1786734962885_w1080_h1080"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="1786734962885_w1080_h1080"] { object-fit: contain; padding: 0; background: linear-gradient(180deg,#0a286c 0%,#022167 11%,#012167 22%,#012167 33%,#012167 44%,#022167 56%,#012167 67%,#909ebd 78%,#ffffff 89%,#fefefe 100%); }
.tc-media:has(img[src*="startup-connect-proptech-ai-networking-evening"]) { background: linear-gradient(180deg,#023284 0%,#0e347f 11%,#12234e 22%,#212a48 33%,#303358 44%,#20151d 56%,#01050e 67%,#121123 78%,#050812 89%,#010610 100%); }
.tc-media img[src*="startup-connect-proptech-ai-networking-evening"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="startup-connect-proptech-ai-networking-evening"] { object-fit: contain; padding: 0; background: linear-gradient(180deg,#023284 0%,#0e347f 11%,#12234e 22%,#212a48 33%,#303358 44%,#20151d 56%,#01050e 67%,#121123 78%,#050812 89%,#010610 100%); }
.tc-media:has(img[src*="tfs-34f006a8db"]) { background: linear-gradient(180deg,#072c67 0%,#0a3779 11%,#174c97 22%,#3068b4 33%,#5885c7 44%,#a0a2c8 56%,#eab9b3 67%,#68575f 78%,#392a2d 89%,#684846 100%); }
.tc-media img[src*="tfs-34f006a8db"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-34f006a8db"] { object-fit: contain; padding: 0; background: linear-gradient(180deg,#072c67 0%,#0a3779 11%,#174c97 22%,#3068b4 33%,#5885c7 44%,#a0a2c8 56%,#eab9b3 67%,#68575f 78%,#392a2d 89%,#684846 100%); }
.tc-media:has(img[src*="tfs-2407-open-banking-expo-canada-2027-banner"]) { background: linear-gradient(90deg,#583c44 0%,#49374d 11%,#1c224a 22%,#26295b 33%,#292a5f 44%,#37306b 56%,#34305e 67%,#392d61 78%,#41354d 89%,#a36842 100%); }
.tc-media img[src*="tfs-2407-open-banking-expo-canada-2027-banner"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-2407-open-banking-expo-canada-2027-banner"] { object-fit: contain; padding: 0; background: linear-gradient(90deg,#583c44 0%,#49374d 11%,#1c224a 22%,#26295b 33%,#292a5f 44%,#37306b 56%,#34305e 67%,#392d61 78%,#41354d 89%,#a36842 100%); }
.tc-media:has(img[src*="tfs-2286-capitalize-for-kids-c4k-banner-trimmed"]) { background: linear-gradient(90deg,#000000 0%,#000000 11%,#000000 22%,#000000 33%,#120d0c 44%,#4c3c39 56%,#36282b 67%,#323340 78%,#807f84 89%,#706e9d 100%); }
.tc-media img[src*="tfs-2286-capitalize-for-kids-c4k-banner-trimmed"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-2286-capitalize-for-kids-c4k-banner-trimmed"] { object-fit: contain; padding: 0; background: linear-gradient(90deg,#000000 0%,#000000 11%,#000000 22%,#000000 33%,#120d0c 44%,#4c3c39 56%,#36282b 67%,#323340 78%,#807f84 89%,#706e9d 100%); }
.tc-media:has(img[src*="tfs-how-to-land-the-promotion-nextup-mentorship-event"]) { background: #2d236f; }
.tc-media img[src*="tfs-how-to-land-the-promotion-nextup-mentorship-event"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-how-to-land-the-promotion-nextup-mentorship-event"] { object-fit: contain; padding: 0; background: #2d236f; }
.tc-media:has(img[src*="tfs-2553-realcapital-logo"]) { background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media img[src*="tfs-2553-realcapital-logo"] { object-fit: contain; padding: 0 12%; }
.tc-art-media img[src*="tfs-2553-realcapital-logo"] { object-fit: contain; padding: 0 12%; background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media:has(img[src*="tfs-2390-global-property-market-logo"]) { background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media img[src*="tfs-2390-global-property-market-logo"] { object-fit: contain; padding: 0 10%; }
.tc-art-media img[src*="tfs-2390-global-property-market-logo"] { object-fit: contain; padding: 0 10%; background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media:has(img[src*="tfs-2369-toronto-real-estate-forum-logo"]) { background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media img[src*="tfs-2369-toronto-real-estate-forum-logo"] { object-fit: contain; padding: 0 8%; }
.tc-art-media img[src*="tfs-2369-toronto-real-estate-forum-logo"] { object-fit: contain; padding: 0 8%; background: linear-gradient(135deg,#f4f7fc,#dce6f5); }
.tc-media:has(img[src*="tfs-2684-access-mba-logo"]) { background: linear-gradient(135deg,#f7effb,#e6d3f1); }
.tc-media img[src*="tfs-2684-access-mba-logo"] { object-fit: contain; padding: 0 18%; }
.tc-art-media img[src*="tfs-2684-access-mba-logo"] { object-fit: contain; padding: 0 18%; background: linear-gradient(135deg,#f7effb,#e6d3f1); }
.tc-media:has(img[src*="tfs-2214-ciro-office-of-the-investor-logo"]) { background: linear-gradient(135deg,#f3f9d8,#dcefe6); }
.tc-media img[src*="tfs-2214-ciro-office-of-the-investor-logo"] { object-fit: contain; padding: 0 14%; }
.tc-art-media img[src*="tfs-2214-ciro-office-of-the-investor-logo"] { object-fit: contain; padding: 0 14%; background: linear-gradient(135deg,#f3f9d8,#dcefe6); }
.tc-media:has(img[src*="tfs-hip-haus-networking-event-for-professionals-november-19"]) { background: linear-gradient(180deg,#cecece 0%,#7c7b7b 11%,#727170 22%,#706e6d 33%,#787675 44%,#a6a491 56%,#989880 67%,#9d9e86 78%,#b5b6a2 89%,#f2f2f2 100%); }
.tc-media img[src*="tfs-hip-haus-networking-event-for-professionals-november-19"] { object-fit: contain; padding: 0; }
.tc-art-media img[src*="tfs-hip-haus-networking-event-for-professionals-november-19"] { object-fit: contain; padding: 0; background: linear-gradient(180deg,#cecece 0%,#7c7b7b 11%,#727170 22%,#706e6d 33%,#787675 44%,#a6a491 56%,#989880 67%,#9d9e86 78%,#b5b6a2 89%,#f2f2f2 100%); }
/* rule 1: wide banners with text on one side keep that side in view */
.tc-media img[src*="tfs-2211-ontario-economic-summit-2026-banner"], .tc-art-media img[src*="tfs-2211-ontario-economic-summit-2026-banner"] { object-position: left center; }
.tc-media img[src*="tfs-2696-rotman-chad-bown-book-launch"], .tc-art-media img[src*="tfs-2696-rotman-chad-bown-book-launch"] { object-position: left center; }
.tc-media img[src*="tfs-2698-rotman-eric-so-event-banner"], .tc-art-media img[src*="tfs-2698-rotman-eric-so-event-banner"] { object-position: left center; }
