/*
Theme Name:        The Consumer News
Theme URI:         https://theconsumernews.com
Author:            The Consumer News
Description:       Classic newspaper-style theme exactly matching The Consumer News HTML design. Features utility bar, triple-column masthead, light paper nav, 970x90 leaderboard ad below header, breaking news ticker, hero grid, story cards, ratings strip, opinion section, full sidebar with 300x250 and 300x600 ads, and dark footer.
Version:           3.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       consumer-news
Tags:              news, magazine, blog, custom-logo, custom-menu, featured-images, footer-widgets, two-columns, right-sidebar
*/

/* =============================================
   THE CONSUMER NEWS — EXACT HTML MATCH v3
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ink:        #111209;
  --ink-mid:    #3a3a35;
  --ink-muted:  #6b6b63;
  --ink-faint:  #9a9a90;
  --paper:      #faf9f5;
  --paper-warm: #f3f1ea;
  --paper-dark: #eae7dc;
  --rule:       #d8d5cb;
  --rule-dark:  #b8b5aa;
  --accent:     #1a5c32;
  --accent-lt:  #22773f;
  --accent-pale:#e8f2ec;
  --danger:     #c0392b;
  --warning:    #d4860a;
  --info:       #1a4a7c;
  --ad-bg:      #f7f5ef;
  --ad-border:  #d0cec5;
  --serif:      'Playfair Display', Georgia, serif;
  --body-font:  'Source Serif 4', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --max-w:      1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Prevent the body from being wider than the screen.
     overflow-x on body (not html) keeps sticky positioning working. */
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1.1em; }

.tcn-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─────────────────────────────────────
   CATEGORY LABELS  (soft pill style)
───────────────────────────────────── */
.cat-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.cat-label--recall  { background:#fde8e8; color:#a32d2d; }
.cat-label--money   { background:#e6f1fb; color:#1a4a7c; }
.cat-label--tech    { background:#eeecfc; color:#4a3bb0; }
.cat-label--health  { background:#eaf3de; color:#265a10; }
.cat-label--food    { background:#faeeda; color:#6b3a0a; }
.cat-label--travel  { background:#e1f5ee; color:#0a5040; }
.cat-label--invest  { background:#fff3e0; color:#8a4a00; }
.cat-label--review  { background:#f0eeff; color:#3a2a90; }
.cat-label--opinion { background:#fef3e2; color:#7a4a00; }
.cat-label--default { background:#eeede8; color:#5a5a52; }

/* ─────────────────────────────────────
   TOP UTILITY BAR
───────────────────────────────────── */
.tcn-util-bar {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  font-family: var(--sans);
  font-size: 11px;
  padding: 7px 0;
}
.tcn-util-bar .tcn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tcn-util-bar__links { display: flex; gap: 20px; }
.tcn-util-bar__links a { color: rgba(255,255,255,.65); transition: color .15s; }
.tcn-util-bar__links a:hover { color: #fff; }

/* ─────────────────────────────────────
   MASTHEAD  (3-column grid)
───────────────────────────────────── */
.tcn-masthead {
  background: var(--paper);
  padding: 20px 0 0;
  border-bottom: 3px double var(--ink);
}
.tcn-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
}
.tcn-masthead__left {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .3px;
  line-height: 1.6;
}
.tcn-masthead__left strong { display: block; color: var(--ink); font-weight: 500; }

/* Centre brand */
.tcn-masthead__brand { text-align: center; }
.tcn-masthead__brand .site-title,
.tcn-masthead__brand h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}
.tcn-masthead__brand .site-title a { color: var(--ink); }
.tcn-masthead__brand .site-description,
.tcn-masthead__brand .tagline {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 5px;
  letter-spacing: .2px;
}

/* Right side: search + subscribe */
.tcn-masthead__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tcn-masthead__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  overflow: hidden;
}
.tcn-masthead__search input[type="search"] {
  border: none; outline: none; padding: 6px 12px;
  font-family: var(--sans); font-size: 12px;
  background: transparent; color: var(--ink); width: 180px;
}
.tcn-masthead__search button {
  background: var(--ink); color: #fff; border: none;
  padding: 6px 12px; cursor: pointer; font-size: 13px; transition: background .15s;
}
.tcn-masthead__search button:hover { background: var(--accent); }
.tcn-masthead__subscribe {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 2px;
  letter-spacing: .5px; transition: background .15s;
}
.tcn-masthead__subscribe:hover { background: var(--accent-lt); }

/* ─────────────────────────────────────
   PRIMARY NAVIGATION  (light paper bar)
───────────────────────────────────── */
.tcn-nav-wrap {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--rule);
}
.tcn-nav { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tcn-nav::-webkit-scrollbar { display: none; }
.tcn-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.tcn-nav ul li a {
  display: block;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--ink-mid); padding: 12px 16px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; letter-spacing: .3px;
}
.tcn-nav ul li a:hover { color: var(--ink); border-bottom-color: var(--rule-dark); }
.tcn-nav ul li.current-menu-item > a,
.tcn-nav ul li.current-menu-ancestor > a { color: var(--accent); border-bottom-color: var(--accent); }
.tcn-nav ul li.menu-home > a,
.tcn-nav ul li:first-child > a {
  font-weight: 700; color: var(--ink);
  border-right: 1px solid var(--rule); margin-right: 4px;
}
/* Dropdown */
.tcn-nav ul li { position: relative; }
.tcn-nav ul li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--paper); border: 1px solid var(--rule); min-width: 200px; z-index: 200; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.tcn-nav ul li:hover > ul { display: block; }
.tcn-nav ul li ul li a { border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; padding: 9px 14px; }
.tcn-nav ul li ul li a:hover { border-left-color: var(--accent); }

/* ─────────────────────────────────────
   AD UNITS
───────────────────────────────────── */
.tcn-ad-wrap {
  background: var(--ad-bg);
  border-top: 1px solid var(--ad-border);
  border-bottom: 1px solid var(--ad-border);
  padding: 10px 0;
}
.tcn-ad-wrap .tcn-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tcn-ad-label { font-family: var(--sans); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); }
.tcn-ad-slot {
  background: #e8e6df; border: 1px dashed var(--ad-border);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-family: var(--sans); font-size: 11px; position: relative;
}
.tcn-ad-slot ins.adsbygoogle { display: block !important; }
/* Sizes */
.tcn-ad-970x90  { width: 970px; max-width: 100%; height: 90px; }
.tcn-ad-970x250 { width: 970px; max-width: 100%; height: 250px; }
.tcn-ad-728x90  { width: 728px; max-width: 100%; height: 90px; }
.tcn-ad-300x250 { width: 300px; height: 250px; }
.tcn-ad-300x600 { width: 300px; height: 600px; }
.tcn-ad-320x50  { width: 320px; max-width: 100%; height: 50px; }

/* ─────────────────────────────────────
   BREAKING TICKER
───────────────────────────────────── */
.tcn-ticker { background: var(--danger); padding: 7px 0; overflow: hidden; }
.tcn-ticker .tcn-wrap { display: flex; align-items: center; gap: 14px; }
.tcn-ticker__label {
  font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; background: #fff; color: var(--danger);
  padding: 3px 8px; border-radius: 2px; white-space: nowrap; flex-shrink: 0;
}
.tcn-ticker__track { overflow: hidden; flex: 1; }
.tcn-ticker__text {
  font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.95);
  white-space: nowrap; display: inline-block;
  animation: tcnTicker 40s linear infinite;
}
@keyframes tcnTicker { 0%{transform:translateX(100vw);} 100%{transform:translateX(-100%);} }

/* ─────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────── */
.tcn-content-wrap { padding: 28px 0; }
.tcn-content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.tcn-main { min-width: 0; }
.tcn-sidebar-col { min-width: 0; }

/* ─────────────────────────────────────
   SECTION HEADER  (rule + label + more)
───────────────────────────────────── */
.tcn-section-hdr {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px; margin-top: 28px;
}
.tcn-section-hdr h2, .tcn-section-hdr__title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.tcn-section-hdr__line { flex: 1; height: 1px; background: var(--rule); }
.tcn-section-hdr__more { font-family: var(--sans); font-size: 11px; color: var(--accent); cursor: pointer; white-space: nowrap; }
.tcn-section-hdr__more:hover { text-decoration: underline; }

/* ─────────────────────────────────────
   HERO BLOCK  (lead + right stack)
───────────────────────────────────── */
.tcn-hero { margin-bottom: 28px; }
.tcn-hero__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 0; border: 1px solid var(--rule); }
.tcn-hero__lead { border-right: 1px solid var(--rule); padding: 24px 28px 24px 0; }
.tcn-hero__img {
  width: 100%; height: 280px; border-radius: 1px; margin-bottom: 16px;
  overflow: hidden; position: relative;
  background: linear-gradient(145deg,#0f3020,#1c5535,#0d2818);
}
.tcn-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.tcn-hero__img-cat { position: absolute; top: 14px; left: 14px; }
.tcn-hero__cat { margin-bottom: 10px; }
.tcn-hero__headline {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; line-height: 1.2; margin-bottom: 10px;
  color: var(--ink); letter-spacing: -.3px;
}
.tcn-hero__headline a { color: var(--ink); transition: color .15s; }
.tcn-hero__headline a:hover { color: var(--accent); }
.tcn-hero__deck { font-size: 15px; color: var(--ink-mid); line-height: 1.65; margin-bottom: 12px; font-weight: 300; }
.tcn-hero__meta { font-family: var(--sans); font-size: 11px; color: var(--ink-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcn-hero__meta .byline { color: var(--accent); font-weight: 500; }
.tcn-hero__meta .divider { color: var(--rule-dark); }

/* Right stack column */
.tcn-hero__stack { display: flex; flex-direction: column; padding: 24px 0 24px 24px; }
.tcn-hero__stack-item { padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.tcn-hero__stack-item:last-child { border-bottom: none; }
.tcn-hero__stack-item:hover .tcn-hero__stack-title a { color: var(--accent); }
.tcn-hero__stack-label { margin-bottom: 6px; }
.tcn-hero__stack-title { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.tcn-hero__stack-title a { color: var(--ink); transition: color .15s; }
.tcn-hero__stack-meta { font-family: var(--sans); font-size: 11px; color: var(--ink-faint); margin-top: 5px; }

/* ─────────────────────────────────────
   STORY CARDS  (3-col grid)
───────────────────────────────────── */
.tcn-cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 8px; }
.tcn-cards-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.tcn-card { cursor: pointer; display: flex; flex-direction: column; }
.tcn-card:hover .tcn-card__title a { color: var(--accent); }
.tcn-card__img {
  width: 100%; height: 160px; border-radius: 1px; margin-bottom: 12px;
  overflow: hidden; position: relative; background: var(--paper-dark);
}
.tcn-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tcn-card:hover .tcn-card__img img { transform: scale(1.04); }
.tcn-card__img-cat { position: absolute; top: 10px; left: 10px; }
.tcn-card__label { margin-bottom: 7px; }
.tcn-card__title { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.tcn-card__title a { color: var(--ink); transition: color .15s; }
.tcn-card__desc { font-size: 13px; color: var(--ink-muted); line-height: 1.55; flex: 1; }
.tcn-card__meta { font-family: var(--sans); font-size: 10px; color: var(--ink-faint); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; }

/* ─────────────────────────────────────
   LIST STORIES
───────────────────────────────────── */
.tcn-story-list { border-top: 1px solid var(--rule); }
.tcn-story-list-item { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.tcn-story-list-item:hover .tcn-story-list-item__title a { color: var(--accent); }
.tcn-story-list-item__thumb { width: 90px; height: 65px; border-radius: 1px; overflow: hidden; background: var(--paper-dark); flex-shrink: 0; }
.tcn-story-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tcn-story-list-item__label { margin-bottom: 4px; }
.tcn-story-list-item__title { font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.tcn-story-list-item__title a { color: var(--ink); transition: color .15s; }
.tcn-story-list-item__meta { font-family: var(--sans); font-size: 10px; color: var(--ink-faint); margin-top: 4px; }

/* ─────────────────────────────────────
   RATINGS STRIP
───────────────────────────────────── */
.tcn-ratings-strip { background: var(--ink); padding: 20px 0; margin: 28px 0; }
.tcn-ratings-strip .tcn-wrap { display: grid; grid-template-columns: auto repeat(4,1fr); align-items: center; }
.tcn-ratings-strip__heading { font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(255,255,255,.5); padding-right: 32px; border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.tcn-rating-item { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.08); }
.tcn-rating-item:last-child { border-right: none; }
.tcn-rating-item__score { font-family: var(--serif); font-size: 36px; font-weight: 700; color: #7ec99a; line-height: 1; }
.tcn-rating-item__stars { color: #f0c040; font-size: 10px; margin: 3px 0; }
.tcn-rating-item__product { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.7); line-height: 1.3; }
.tcn-rating-item__cat { font-family: var(--sans); font-size: 9px; letter-spacing: 1.5px; color: rgba(255,255,255,.3); margin-top: 2px; text-transform: uppercase; }

/* ─────────────────────────────────────
   OPINION / ANALYSIS CARDS
───────────────────────────────────── */
.tcn-opinion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.tcn-opinion-card {
  background: var(--paper-warm); border: 1px solid var(--rule); padding: 20px;
  border-radius: 1px; cursor: pointer; transition: border-color .15s; display: flex; flex-direction: column;
}
.tcn-opinion-card:hover { border-color: var(--accent); }
.tcn-opinion-card__type { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tcn-opinion-card:nth-child(2) .tcn-opinion-card__type { color: var(--info); }
.tcn-opinion-card__title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; flex: 1; }
.tcn-opinion-card__title a { color: var(--ink); transition: color .15s; }
.tcn-opinion-card__title a:hover { color: var(--accent); }
.tcn-opinion-card__excerpt { font-size: 13px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 14px; }
.tcn-opinion-card__author { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule); }
.tcn-author-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 11px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.tcn-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-green { background: var(--accent-pale); color: var(--accent); }
.av-blue  { background: #e0eaf8; color: #1a4a7c; }
.tcn-author-name { font-family: var(--sans); font-size: 12px; font-weight: 500; }
.tcn-author-role { font-family: var(--sans); font-size: 10px; color: var(--ink-muted); }

/* ─────────────────────────────────────
   SIDEBAR WIDGETS
───────────────────────────────────── */
.tcn-sidebar-widget {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: 1px; padding: 18px; margin-bottom: 20px;
}
.tcn-sidebar-widget .widget-title,
.tcn-sidebar-widget__title {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-mid);
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px;
}
.tcn-sidebar-widget ul { list-style: none; }
.tcn-sidebar-widget ul li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; }
.tcn-sidebar-widget ul li:last-child { border-bottom: none; }
.tcn-sidebar-widget ul li a { color: var(--ink); transition: color .15s; }
.tcn-sidebar-widget ul li a:hover { color: var(--accent); }

/* Sidebar story items */
.tcn-sidebar-story { padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.tcn-sidebar-story:last-child { border-bottom: none; }
.tcn-sidebar-story__label { margin-bottom: 4px; }
.tcn-sidebar-story__title { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color .15s; }
.tcn-sidebar-story__title a { color: var(--ink); transition: color .15s; }
.tcn-sidebar-story__title a:hover,
.tcn-sidebar-story:hover .tcn-sidebar-story__title { color: var(--accent); }
.tcn-sidebar-story__meta { font-family: var(--sans); font-size: 10px; color: var(--ink-faint); margin-top: 3px; }

/* Sidebar ad slot */
.tcn-sidebar-ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; }

/* ─────────────────────────────────────
   NEWSLETTER WIDGET
───────────────────────────────────── */
.tcn-newsletter {
  background: var(--accent); padding: 20px; border-radius: 1px; margin-bottom: 20px;
}
.tcn-newsletter__title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.tcn-newsletter__desc { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: 14px; }
.tcn-newsletter input[type="email"] {
  width: 100%; padding: 9px 12px; border: none; border-radius: 2px;
  font-family: var(--sans); font-size: 12px; margin-bottom: 8px;
  outline: none; background: rgba(255,255,255,.95); color: var(--ink);
}
.tcn-newsletter input[type="email"]::placeholder { color: var(--ink-muted); }
.tcn-newsletter button,
.tcn-newsletter input[type="submit"] {
  width: 100%; padding: 9px; background: var(--ink); color: #fff; border: none;
  border-radius: 2px; font-family: var(--sans); font-size: 12px; font-weight: 500;
  cursor: pointer; letter-spacing: .5px; transition: background .15s;
}
.tcn-newsletter button:hover,
.tcn-newsletter input[type="submit"]:hover { background: #2a2a25; }

/* ─────────────────────────────────────
   ARTICLE / SINGLE
───────────────────────────────────── */
.tcn-article-kicker { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tcn-article-headline { font-family: var(--serif); font-size: clamp(28px,4vw,48px); font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 14px; letter-spacing: -.5px; }
.tcn-article-standfirst { font-size: 18px; font-weight: 300; font-style: italic; color: var(--ink-mid); line-height: 1.6; margin-bottom: 18px; }
.tcn-article-byline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 24px; flex-wrap: wrap; }
.tcn-article-byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-pale); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--accent); flex-shrink: 0; overflow: hidden; }
.tcn-article-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcn-article-byline__name { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.tcn-article-byline__meta { font-family: var(--sans); font-size: 11px; color: var(--ink-muted); margin-top: 1px; }
.tcn-article-share { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tcn-article-share a { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border: 1px solid var(--rule-dark); border-radius: 2px; color: var(--ink-mid); transition: all .15s; }
.tcn-article-share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tcn-article-hero-img { width: 100%; max-height: 420px; overflow: hidden; border-radius: 1px; margin-bottom: 10px; }
.tcn-article-hero-img img { width: 100%; height: 420px; object-fit: cover; }
.tcn-article-caption { font-family: var(--sans); font-size: 11px; color: var(--ink-muted); margin-bottom: 24px; font-style: italic; }
.tcn-article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.tcn-article-body {
  font-size: 17px; line-height: 1.75; color: var(--ink);
  /* Prevent ANY child from escaping the column width */
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}
.tcn-article-body p { margin-bottom: 1.2em; }
.tcn-article-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 32px 0 14px; color: var(--ink); letter-spacing: -.3px; }
.tcn-article-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.tcn-article-body blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 28px 0; background: var(--accent-pale); border-radius: 0 2px 2px 0; font-style: italic; font-size: 18px; color: var(--ink-mid); }
.tcn-article-body ul, .tcn-article-body ol { padding-left: 24px; margin-bottom: 1.2em; }
.tcn-article-body li { margin-bottom: 6px; }
/* Lock every child element inside the article body */
.tcn-article-body img,
.tcn-article-body video,
.tcn-article-body iframe,
.tcn-article-body embed,
.tcn-article-body object,
.tcn-article-body figure { max-width: 100%; height: auto; display: block; }
.tcn-article-body table { max-width: 100%; display: block; overflow-x: auto; word-break: normal; }
.tcn-article-body pre  { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.tcn-article-body code { word-break: break-all; }
.tcn-article-inline-ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 32px 0; }

/* ─────────────────────────────────────
   CATEGORY / ARCHIVE HEADER
───────────────────────────────────── */
.tcn-cat-header { padding: 28px 0; }
.tcn-cat-header--recall  { background: var(--danger); }
.tcn-cat-header--money   { background: var(--info); }
.tcn-cat-header--tech    { background: #3a2a90; }
.tcn-cat-header--health  { background: var(--accent); }
.tcn-cat-header--food    { background: var(--warning); }
.tcn-cat-header--travel  { background: #0a5040; }
.tcn-cat-header--default { background: var(--ink); }
.tcn-cat-header__eyebrow { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.tcn-cat-header__name { font-family: var(--serif); font-size: clamp(28px,4vw,48px); font-weight: 700; color: #fff; letter-spacing: -.5px; }
.tcn-cat-header__desc { font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ─────────────────────────────────────
   PAGINATION
───────────────────────────────────── */
.tcn-pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; flex-wrap: wrap; }
.tcn-pagination .page-numbers { font-family: var(--sans); font-size: 13px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-mid); transition: all .15s; }
.tcn-pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tcn-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
.tcn-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 48px; }
.tcn-footer__top { padding: 40px 0 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tcn-footer__grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; }
.tcn-footer__brand h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -.5px; }
.tcn-footer__brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.tcn-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.tcn-footer__social a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.15); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-family: var(--sans); font-size: 11px; font-weight: 700; transition: all .15s; }
.tcn-footer__social a:hover { background: rgba(255,255,255,.08); color: #fff; }
.tcn-footer__col h4 { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tcn-footer__col ul { list-style: none; }
.tcn-footer__col ul li { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.55); padding: 4px 0; }
.tcn-footer__col ul li a { color: rgba(255,255,255,.55); transition: color .15s; }
.tcn-footer__col ul li a:hover { color: rgba(255,255,255,.9); }
.tcn-footer__bottom { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }
.tcn-footer__bottom a { color: rgba(255,255,255,.3); transition: color .15s; margin-left: 18px; }
.tcn-footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ─────────────────────────────────────
   404 / SEARCH
───────────────────────────────────── */
.tcn-404 { text-align: center; padding: 80px 20px; }
.tcn-404 h1 { font-family: var(--serif); font-size: 96px; font-weight: 700; color: var(--rule); line-height: 1; }
.tcn-404 h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.tcn-404 p { font-family: var(--sans); font-size: 15px; color: var(--ink-muted); margin-bottom: 24px; }
.tcn-404 a { background: var(--accent); color: #fff; padding: 10px 24px; border-radius: 2px; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.tcn-search-header { padding: 24px 0; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.tcn-search-header h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.tcn-search-header p { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

/* ─────────────────────────────────────
   COMMENTS
───────────────────────────────────── */
.tcn-comments { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--ink); }
.tcn-comments h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.comment-author b { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.comment-metadata { font-family: var(--sans); font-size: 11px; color: var(--ink-muted); margin-bottom: 8px; }
.comment-content p { font-size: 15px; line-height: 1.7; }
.comment-form label { font-family: var(--sans); font-size: 12px; font-weight: 500; display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--rule-dark); border-radius: 2px; font-family: var(--body-font); font-size: 15px; margin-bottom: 14px; outline: none; background: var(--paper); color: var(--ink); transition: border-color .15s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form input[type="submit"] { background: var(--accent); color: #fff; border: none; padding: 10px 22px; border-radius: 2px; font-family: var(--sans); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.comment-form input[type="submit"]:hover { background: var(--accent-lt); }

/* ─────────────────────────────────────
   WORDPRESS CORE
───────────────────────────────────── */
.alignleft  { float: left;  margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.wp-caption-text { font-family: var(--sans); font-size: 11px; color: var(--ink-muted); margin-top: 4px; font-style: italic; }
.sticky { border-left: 3px solid var(--accent); padding-left: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }


/* ─────────────────────────────────────
   MOBILE NAV ELEMENTS
   Hidden on desktop, shown via @media below
───────────────────────────────────── */
.tcn-mobile-bar   { display: none; }
.tcn-mobile-search { display: none; }

/* Hamburger button — always rendered, hidden on desktop */
.tcn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tcn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
.tcn-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tcn-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tcn-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tcn-mobile-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcn-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tcn-mobile-search.is-open {
  display: block;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 10px 14px;
}
.tcn-mobile-search form { display: flex; }
.tcn-mobile-search input[type="search"] {
  flex: 1; min-width: 0;
  border: 1px solid var(--rule-dark); border-right: none;
  border-radius: 2px 0 0 2px; padding: 10px 12px;
  font-family: var(--sans); font-size: 15px; outline: none;
  background: #fff; color: var(--ink); -webkit-appearance: none;
}
.tcn-mobile-search button {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 16px; font-family: var(--sans); font-size: 14px;
  font-weight: 600; border-radius: 0 2px 2px 0; cursor: pointer;
  white-space: nowrap;
}

/* Ad visibility — desktop shows wide units, mobile shows 320x50 */
.tcn-ad--mobile { display: none; }

/* Ad containers — never wider than viewport */
.tcn-ad-wrap  { overflow: hidden; }
.tcn-ad-slot  { max-width: 100%; overflow: hidden; }
ins.adsbygoogle { max-width: 100% !important; }

/* ─────────────────────────────────────
   TABLET LANDSCAPE  ≤1024px
───────────────────────────────────── */
@media (max-width: 1024px) {
  .tcn-content-grid   { grid-template-columns: 1fr 260px; }
  .tcn-article-layout { grid-template-columns: 1fr 260px; }
  .tcn-cards-3        { grid-template-columns: repeat(2, 1fr); }
  .tcn-footer__grid   { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
  .tcn-footer__grid > .tcn-footer__col:last-child { display: none; }
  .tcn-ratings-strip .tcn-wrap { grid-template-columns: repeat(4, 1fr); }
  .tcn-ratings-strip__heading  { display: none; }
}

/* ─────────────────────────────────────
   MOBILE  ≤768px
───────────────────────────────────── */
@media (max-width: 768px) {

  /* Hide desktop chrome */
  .tcn-util-bar { display: none; }
  .tcn-masthead { display: none; }

  /* Mobile bar is now sticky on its own */
  .tcn-mobile-bar {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 14px;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
  }
  .tcn-hamburger  { display: flex; }
  .tcn-search-btn { display: flex; }

  /* Nav wrap: no longer sticky, just a normal block */
  .tcn-nav-wrap {
    position: relative;
    z-index: 490;
    background: var(--paper);
  }

  /* Desktop horizontal nav: hidden by default on mobile */
  .tcn-nav {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--paper);
    border-top: 2px solid var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 450;
    overflow-y: auto;
    max-height: 65vh;
    -webkit-overflow-scrolling: touch;
  }
  .tcn-nav.is-open { display: block; }

  /* Nav items: full-width stacked list */
  .tcn-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0; padding: 0;
    width: 100%;
  }
  .tcn-nav ul li { border-bottom: 1px solid var(--rule); width: 100%; }
  .tcn-nav ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-mid);
    border-left: 3px solid transparent;
    border-bottom: none;
  }
  .tcn-nav ul li a:hover,
  .tcn-nav ul li.current-menu-item > a {
    border-left-color: var(--accent);
    color: var(--accent);
    background: var(--paper-warm);
  }
  .tcn-nav ul li:first-child > a { font-weight: 700; border-right: none; margin-right: 0; }
  .tcn-nav ul li ul { display: block; position: static; box-shadow: none; background: var(--paper-warm); border-top: 1px solid var(--rule); }
  .tcn-nav ul li ul li a { padding-left: 36px; font-size: 14px; font-weight: 400; }

  /* Ad swap */
  .tcn-ad--desktop { display: none !important; }
  .tcn-ad--mobile  { display: block !important; }
  .tcn-ad-970x90, .tcn-ad-970x250, .tcn-ad-728x90 { display: none !important; }
  .tcn-ad-320x50  { max-width: 320px; width: 100%; height: 50px; }
  .tcn-ad-300x600 { height: 250px; }

  /* Single-column page layout */
  .tcn-content-grid,
  .tcn-article-layout { grid-template-columns: 1fr; }
  .tcn-sidebar-col { border-top: 2px solid var(--rule); padding-top: 22px; margin-top: 4px; }

  /* Hero */
  .tcn-hero__grid { grid-template-columns: 1fr; border: none; }
  .tcn-hero__lead { border-right: none; padding: 0 0 18px 0; border-bottom: 1px solid var(--rule); }
  .tcn-hero__img  { height: 220px; }
  .tcn-hero__headline { font-size: clamp(20px, 5vw, 28px); }
  .tcn-hero__deck { font-size: 15px; }
  .tcn-hero__stack { padding: 16px 0 0 0; }
  .tcn-hero__stack-item { padding: 12px 0; }

  /* Cards: 2-col */
  .tcn-cards-3,
  .tcn-cards-2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tcn-card__img { height: 150px; }

  /* Ratings: 2×2 */
  .tcn-ratings-strip .tcn-wrap { grid-template-columns: repeat(2, 1fr); }
  .tcn-rating-item { padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.08); }
  .tcn-rating-item:nth-child(even) { border-right: none; }
  .tcn-rating-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.08); }
  .tcn-rating-item__score { font-size: 28px; }

  /* Opinion */
  .tcn-opinion-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Article layout: collapse to single column */
  .tcn-article-layout { grid-template-columns: 1fr; }
  .tcn-article-body   { font-size: 16px; max-width: 100%; overflow: hidden; }
  .tcn-article-body h2    { font-size: 20px; }
  .tcn-article-headline   { font-size: clamp(22px, 6vw, 34px); }
  .tcn-article-standfirst { font-size: 16px; }
  .tcn-article-hero-img img { height: 220px; }
  .tcn-article-byline  { flex-wrap: wrap; gap: 10px; }
  .tcn-article-share   { margin-left: 0; width: 100%; margin-top: 8px; }

  /* Footer */
  .tcn-footer { margin-top: 24px; }
  .tcn-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tcn-footer__brand { grid-column: 1 / -1; }
  .tcn-footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .tcn-footer__bottom a { margin-left: 8px; }

  /* Spacing */
  .tcn-content-wrap { padding: 18px 0; }
  .tcn-wrap { padding: 0 16px; }
  .tcn-section-hdr { margin-top: 20px; margin-bottom: 14px; }
}

/* ─────────────────────────────────────
   PHONE  ≤600px
───────────────────────────────────── */
@media (max-width: 600px) {

  .tcn-cards-3,
  .tcn-cards-2 { grid-template-columns: 1fr; gap: 18px; }
  .tcn-card__img { height: 190px; }
  .tcn-card__title { font-size: 16px; }
  .tcn-card__desc  { font-size: 14px; }

  .tcn-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .tcn-footer__brand { grid-column: auto; }

  .tcn-opinion-card { padding: 16px; }
  .tcn-opinion-card__title { font-size: 16px; }

  .tcn-story-list-item { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; }
  .tcn-story-list-item__thumb { width: 80px; height: 60px; }
  .tcn-story-list-item__title { font-size: 14px; }
}

/* ─────────────────────────────────────
   SMALL PHONE  ≤480px
───────────────────────────────────── */
@media (max-width: 480px) {
  .tcn-wrap { padding: 0 14px; }
  .tcn-mobile-bar { padding: 0 10px; gap: 4px; }
  .tcn-mobile-title { font-size: 16px; }

  .tcn-hero__img { height: 185px; }
  .tcn-hero__headline { font-size: clamp(18px, 6vw, 24px); }
  .tcn-hero__deck { font-size: 14px; }
  .tcn-hero__stack-title { font-size: 14px; }

  .tcn-card__img  { height: 170px; }
  .tcn-card__body { padding: 14px; }

  .tcn-rating-item__score   { font-size: 24px; }
  .tcn-rating-item__product { font-size: 11px; }

  .tcn-article-headline { font-size: clamp(20px, 7vw, 26px); }
  .tcn-article-hero-img img { height: 190px; }
  .tcn-article-body { font-size: 15px; }
  .tcn-article-body h2 { font-size: 18px; }
  .tcn-article-body blockquote { font-size: 15px; padding: 10px 14px; }
  .tcn-article-share a { padding: 6px 8px; font-size: 10px; }

  .tcn-footer__top { padding: 22px 0 16px; }
  .tcn-footer__brand h3 { font-size: 22px; }
}

/* ─────────────────────────────────────
   VERY SMALL PHONE  ≤380px
───────────────────────────────────── */
@media (max-width: 380px) {
  .tcn-wrap { padding: 0 12px; }
  .tcn-mobile-title { font-size: 15px; }
  .tcn-hero__img { height: 165px; }
  .tcn-hero__headline { font-size: 18px; }
  .tcn-card__img { height: 160px; }
  .tcn-article-headline { font-size: 18px; }
}

/* ─────────────────────────────────────
   TOUCH DEVICES — bigger targets, no broken hovers
───────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .tcn-newsletter button,
  .tcn-newsletter input[type="submit"] { min-height: 48px; font-size: 15px; }
  .tcn-newsletter input[type="email"]  { min-height: 48px; font-size: 16px; }
  .tcn-card:hover          { transform: none; box-shadow: none; }
  .tcn-opinion-card:hover  { transform: none; box-shadow: none; }
  .tcn-card:hover .tcn-card__img img { transform: none; }
  .tcn-card:active         { opacity: .88; }
}
