/*
Theme Name: Tamilworldtoday
Theme URI: https://tamilworldtoday.com/
Author: Tamilworldtoday
Description: Tamil-first digital news theme with WordPress post publishing, categories, article archives, search, and responsive layouts.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tamilworldtoday
License: GPL-2.0-or-later
*/

:root {
  --ink: #241f1d;
  --ink-soft: #625a56;
  --muted: #8d8580;
  --paper: #ffffff;
  --paper-deep: #f3eee8;
  --line: #e6dfd7;
  --line-dark: #d2c9bf;
  --brand: #ef681b;
  --brand-dark: #bf4b10;
  --brand-light: #f8dcc5;
  --gold: #f1bc68;
  --sans: 'Noto Sans Tamil', 'Latha', sans-serif;
  --serif: var(--sans);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topline { background: var(--ink); color: #d6cec6; font-size: 11px; letter-spacing: .035em; }
.topline-inner { width: min(1200px, calc(100% - 64px)); height: 34px; margin: auto; display: flex; align-items: center; gap: 12px; }
.topline-divider { display: inline-block; width: 1px; height: 12px; background: #756d67; }
.topline-date { margin-left: auto; color: #f1e8de; }
.site-header { background: var(--paper); }
.masthead { min-height: 157px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
.brand-symbol { display: block; flex: 0 0 auto; width: 60px; height: 60px; object-fit: contain; }
.brand-lockup { display: flex; flex-direction: column; gap: 4px; }
.brand-wordmark { display: flex; align-items: baseline; white-space: nowrap; font-family: var(--sans); font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.brand-tamil, .brand-today { color: var(--brand); }
.brand-world { color: #173b65; }
.brand-domain { margin-left: 2px; color: var(--ink-soft); font-size: .48em; font-weight: 700; letter-spacing: -.01em; }
.brand-tagline { margin: 0; color: var(--ink-soft); font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1.35; letter-spacing: .02em; }
.brand:hover .brand-symbol { opacity: .96; }
.footer-brand .brand-symbol { width: 48px; height: 48px; }
.footer-brand .brand-wordmark { font-size: 20px; }
.footer-brand .brand-tagline { font-size: 9px; }
.masthead-right { display: flex; align-items: center; gap: 16px; }
.social-links { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.social-link { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #423b37; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.social-link:hover, .social-link:focus-visible { border-color: var(--brand); background: var(--brand); color: #fff; }
.social-link svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.social-link:last-child svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-link .social-dot { fill: currentColor; stroke: none; }
.edition-tag { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.edition-tag b { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--brand); border-radius: 50%; vertical-align: 1px; }
.search-form { width: 235px; height: 42px; display: flex; align-items: center; border-bottom: 1px solid var(--line-dark); }
.search-form input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-form input::placeholder { color: #9f9690; }
.search-form button, .search-mobile-toggle { border: 0; background: transparent; padding: 7px; cursor: pointer; }
.search-form svg, .search-mobile-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-mobile-toggle { display: none; }
.primary-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-inner { height: 52px; display: flex; align-items: center; gap: 34px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { font-size: 13px; font-weight: 600; color: #49423e; transition: color .2s ease; }
.nav-inner a:hover, .nav-inner a:focus-visible { color: var(--brand); }
.nav-inner .home-link { font-size: 22px; line-height: 1; color: var(--brand); margin-right: -10px; }
.ticker { background: #f46a1b; border-bottom: 1px solid #db5a10; color: #fff8ef; }
.ticker-inner { display: flex; align-items: center; min-height: 43px; gap: 13px; font-size: 12px; }
.ticker-label { color: #fff8ef; font-weight: 800; white-space: nowrap; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff8ef; flex: 0 0 auto; }
.ticker-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tickerCrawl 44s linear infinite; }
.ticker-group { display: flex; align-items: center; flex: 0 0 auto; }
.ticker-item { display: inline-block; padding: 0 2px; color: #fff8ef; white-space: nowrap; }
.ticker-separator { margin: 0 16px; color: #ffe0c8; font-size: 10px; }
.ticker-marquee:hover .ticker-track, .ticker-marquee:focus-within .ticker-track { animation-play-state: paused; }
.ticker-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #fff0df; font-size: 10px; white-space: nowrap; }
.ticker-live i { width: 6px; height: 6px; border-radius: 50%; background: #6d9c62; }
@keyframes tickerCrawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-marquee { overflow-x: auto; scrollbar-width: none; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

.page-content { padding-top: 24px; padding-bottom: 90px; }
.lead-layout { width: 100vw; margin-left: calc(50% - 50vw); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(315px, .9fr); min-height: 460px; padding: 40px max(32px, calc((100vw - 1200px) / 2)); background: #ff6819; }
.lead-story { position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 28px 28px; overflow: hidden; color: #fff; background-image: linear-gradient(180deg, #17141122 0%, #1e191656 35%, #160f0de8 100%), var(--lead-image); background-size: cover; background-position: center; isolation: isolate; }
.lead-story::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #120d0c28, transparent 70%); transition: opacity .3s ease; }
.lead-story:hover::after { opacity: .75; }
.lead-topline { display: flex; align-items: center; justify-content: space-between; }
.section-kicker { margin: 0; color: var(--brand); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.lead-topline .section-kicker { color: #fff8ef; }
.sample-tag { padding: 3px 10px; border: 1px solid #ffffff86; border-radius: 2px; color: #fff8ef; font-size: 10px; white-space: nowrap; }
.lead-copy { max-width: 710px; }
.lead-category { margin: 0 0 8px; color: #f4c982; font-size: 11px; font-weight: 600; }
.lead-category i { display: inline-block; width: 4px; height: 4px; margin: 0 9px 3px; border-radius: 50%; background: #f4c982; }
.lead-copy h1 { margin: 0; max-width: 720px; font-family: var(--serif); font-size: clamp(27px, 3vw, 39px); line-height: 1.55; font-weight: 700; text-wrap: pretty; }
.lead-summary { max-width: 670px; margin: 10px 0 15px; color: #e5ddd6; font-size: 12px; line-height: 1.8; }
.read-more { display: inline-flex; align-items: center; gap: 10px; color: #ffe2ac; font-size: 11px; font-weight: 700; }
.read-more b { font-size: 17px; transition: transform .2s ease; }
.lead-story:hover .read-more b { transform: translate(3px, -2px); }
.latest-panel { padding: 0 0 0 22px; border-left: 1px solid #ffffff78; color: #fff; }
.latest-panel .section-kicker { color: #ffe5d0; }
.latest-panel .section-heading h2 { color: #fff; }
.latest-panel .section-heading.compact { border-bottom-color: #ffffff70; }
.latest-panel .heading-mark { color: #ffe5d0; }
.section-heading { display: flex; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.45; font-weight: 700; }
.section-heading.compact { align-items: center; justify-content: space-between; padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.section-heading.compact h2 { font-size: 20px; }
.heading-mark { color: var(--brand); font-size: 10px; font-weight: 700; }
.latest-list { display: flex; flex-direction: column; }
.mini-story { display: grid; grid-template-columns: 88px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 98px; padding: 11px 0; border-bottom: 1px solid #ffffff70; transition: padding .2s ease; }
.mini-story:hover { padding-left: 4px; }
.mini-thumb { position: relative; width: 88px; height: 74px; overflow: hidden; background: #ffffff30; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mini-story:hover .mini-thumb img { transform: scale(1.05); }
.mini-number { position: absolute; top: 4px; left: 4px; padding: 0 4px; background: #e75d14; color: #fff; font-family: var(--sans); font-size: 9px; line-height: 1.5; }
.mini-copy { display: flex; flex-direction: column; }
.mini-category { color: #ffe5d0; font-size: 9px; font-weight: 700; }
.mini-copy strong { margin-top: 3px; color: #fff; font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.65; }
.mini-copy small { margin-top: 4px; color: #ffe0c8; font-size: 9px; }
.mini-arrow { margin-top: 12px; color: #ffe5d0; font-size: 13px; transition: color .2s, transform .2s; }
.mini-story:hover .mini-arrow { color: #fff; transform: translate(2px, -2px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-link span { font-size: 17px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.latest-panel > .text-link { margin-top: 14px; color: #fff; }
.ad-banner { width: 100%; max-width: 900px; margin: 36px auto 0; }
.ad-banner-label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ad-banner-label span:first-child { color: var(--brand); }
.ad-banner-label::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.ad-banner-link { display: block; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ad-banner img { display: block; width: 100%; height: auto; }
.ad-banner-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.section-block { padding-top: 43px; }
.section-block .section-heading { margin-bottom: 20px; }
.section-rule { height: 1px; flex: 1; margin-bottom: 12px; background: var(--line-dark); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.story-card { display: flex; flex-direction: column; min-width: 0; background: #fffdf9; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.story-card:hover { transform: translateY(-4px); border-color: #d3c1b0; box-shadow: 0 10px 24px #33271b0d; }
.story-image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover img { transform: scale(1.035); }
.image-caption { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; background: #1a1715a8; color: white; font-size: 8px; line-height: 1.6; }
.story-card-copy { padding: 15px 17px 18px; }
.story-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 9px; }
.story-meta span { color: var(--brand); font-weight: 700; }
.story-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c4b7aa; }
.story-card h3 { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.65; font-weight: 700; }
.story-excerpt { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.topic-strip { display: grid; grid-template-columns: .85fr 1.5fr; gap: 60px; margin-top: 54px; padding: 36px 42px; background: #2c2927; color: #fff7ee; }
.topic-intro .section-kicker { color: #e9bb78; }
.topic-intro h2 { margin: 12px 0; font-family: var(--serif); font-size: 27px; line-height: 1.6; }
.topic-intro h2 em { color: #e7b66e; font-style: normal; }
.topic-intro > p:last-child { margin: 0; color: #c6bdb6; font-size: 11px; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; column-gap: 30px; }
.topic-link { min-height: 52px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ffffff26; font-size: 13px; transition: color .2s ease; }
.topic-link:hover { color: #f2c77e; }
.topic-index { color: #c3a881; font-family: var(--sans); font-size: 10px; }
.topic-link b { margin-left: auto; color: #ceab7c; font-size: 15px; font-weight: 400; }
.story-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.story-grid-four .story-card-copy { padding: 12px 13px 15px; }
.story-grid-four .story-card h3 { font-size: 14px; }
.story-grid-four .story-excerpt { display: none; }

.inner-page { min-height: 500px; }
.page-title-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 13px 0 29px; border-bottom: 1px solid var(--line-dark); margin-bottom: 26px; }
.page-title-row h1 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.4; }
.title-period { color: var(--brand); }
.page-intro { max-width: 670px; margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.category-count { display: flex; flex-direction: column; align-items: end; color: var(--brand); font-family: var(--sans); font-size: 33px; line-height: 1.1; }
.category-count small { margin-top: 4px; color: var(--muted); font-family: var(--sans); font-size: 10px; }
.more-categories, .search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 35px; padding-top: 19px; border-top: 1px solid var(--line); }
.more-categories > span, .search-suggestions > span { margin-right: 6px; color: var(--muted); font-size: 10px; }
.more-categories a, .search-suggestions a { padding: 5px 11px; border: 1px solid var(--line-dark); color: var(--ink-soft); font-size: 10px; transition: color .2s, border-color .2s; }
.more-categories a:hover, .search-suggestions a:hover { border-color: var(--brand); color: var(--brand); }
.more-categories b, .search-suggestions b { margin-left: 5px; color: var(--brand); font-weight: 400; }

.article-page > article { max-width: 900px; margin: 0 auto; }
.article-topline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.article-topline a { color: var(--brand); font-weight: 700; }
.article-topline .sample-tag { margin-left: auto; border-color: #dac7af; color: #87643b; }
.article-page article > h1 { max-width: 830px; margin: 17px 0 9px; font-family: var(--serif); font-size: clamp(30px, 4.1vw, 47px); line-height: 1.65; text-wrap: pretty; }
.article-deck { max-width: 810px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 19px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-family: var(--serif); font-size: 20px; font-weight: 700; }
.byline > span:nth-child(2) { display: flex; flex-direction: column; }
.byline strong { font-size: 11px; }
.byline small { color: var(--muted); font-size: 9px; }
.byline-spacer { flex: 1; }
.share-label { color: var(--muted); font-size: 10px; }
.article-hero { margin: 0; background: var(--paper-deep); }
.article-hero img { width: 100%; max-height: 530px; aspect-ratio: 16 / 8.7; object-fit: cover; }
.article-hero figcaption { padding: 7px 10px; color: var(--muted); font-size: 9px; text-align: right; }
.article-body { max-width: 720px; margin: 34px auto 0; color: #413a36; font-size: 15px; line-height: 2.15; }
.article-body p { margin: 0 0 22px; }
.article-body .article-lead { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 2; }
.article-callout { margin: 32px 0; padding: 19px 22px; border-left: 3px solid var(--brand); background: #f3eee6; }
.article-callout span { color: var(--brand); font-size: 10px; font-weight: 800; }
.article-callout p { margin: 6px 0 0; font-size: 12px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 17px; border-top: 1px solid var(--line); }
.article-tags span { color: var(--muted); font-size: 10px; }
.article-tags a { color: var(--brand); font-size: 10px; }
.related-section { margin-top: 56px; padding-top: 29px; border-top: 1px solid var(--line-dark); }

.search-page .page-title-row { border-bottom: 0; padding-bottom: 12px; margin-bottom: 5px; }
.search-page-form { max-width: 760px; display: flex; gap: 0; margin: 0 0 35px; border: 1px solid var(--line-dark); background: #fffdf9; }
.search-page-form input { flex: 1; min-width: 0; padding: 15px 18px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-page-form button { min-width: 145px; border: 0; background: var(--brand); color: white; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s; }
.search-page-form button:hover { background: var(--brand-dark); }
.search-page-form button span { margin-left: 8px; font-size: 16px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); margin-bottom: 17px; }
.results-heading h2 { margin: 0; font-family: var(--serif); font-size: 18px; }
.results-heading > span { color: var(--muted); font-size: 10px; }
.empty-state { padding: 42px 20px; text-align: center; border: 1px dashed var(--line-dark); }
.empty-state > span { color: var(--brand); font-family: var(--sans); font-size: 36px; }
.empty-state h3 { margin: 8px 0; font-family: var(--serif); font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { max-width: 680px; font-family: var(--serif); font-size: 36px; }

.site-footer { border-top: 1px solid var(--line-dark); background: #f2ede6; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 50px; padding-top: 42px; padding-bottom: 38px; }
.footer-brand > p { max-width: 290px; margin: 14px 0 0; color: var(--ink-soft); font-size: 11px; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); align-content: start; gap: 7px 20px; }
.footer-links > span { grid-column: 1 / -1; margin-bottom: 6px; color: var(--ink); font-size: 11px; font-weight: 800; }
.footer-links a { color: var(--ink-soft); font-size: 10px; }
.footer-links a:hover { color: var(--brand); }
.footer-note > span { color: var(--brand); font-size: 10px; font-weight: 800; }
.footer-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-bottom .wrap { min-height: 42px; display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 980px) {
  .wrap, .topline-inner { width: min(100% - 42px, 1200px); }
  .lead-layout { grid-template-columns: minmax(0, 1.25fr) minmax(285px, .9fr); }
  .lead-story { min-height: 440px; padding-inline: 23px; }
  .lead-copy h1 { font-size: 30px; }
  .latest-panel { padding-left: 20px; }
  .nav-inner { gap: 26px; }
  .story-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap, .topline-inner { width: calc(100% - 32px); }
  .topline-inner { height: 31px; gap: 8px; font-size: 9px; }
  .topline-inner > span:nth-child(3) { display: none; }
  .topline-divider { display: none; }
  .topline-date { font-size: 9px; }
  .masthead { min-height: 108px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-symbol { width: 44px; height: 44px; }
  .brand-wordmark { font-size: 18px; }
  .brand-tagline { font-size: 8.5px; }
  .masthead-right { gap: 8px; }
  .social-links { gap: 4px; }
  .social-link { width: 27px; height: 27px; }
  .edition-tag { display: none; }
  .search-form { display: none; }
  .search-form.is-open { position: absolute; z-index: 4; top: 78px; left: 16px; right: 16px; display: flex; width: auto; height: 46px; padding: 0 10px; border: 1px solid var(--line-dark); background: #fffdf9; box-shadow: 0 8px 20px #241f1d14; }
  .search-mobile-toggle { display: block; padding: 8px; }
  .primary-nav { border-bottom-color: var(--line-dark); }
  .nav-inner { width: 100%; height: 47px; padding: 0 16px; gap: 24px; }
  .nav-inner a { font-size: 12px; }
  .nav-inner .home-link { font-size: 19px; }
  .ticker-inner { min-height: 39px; gap: 9px; font-size: 10px; }
  .ticker-live { display: none; }
  .page-content { padding-top: 16px; padding-bottom: 60px; }
  .lead-layout { display: flex; flex-direction: column; border: 0; }
  .ad-banner { margin-top: 24px; }
  .lead-story { min-height: 430px; padding: 18px 19px 22px; }
  .lead-copy h1 { font-size: clamp(25px, 7vw, 34px); }
  .lead-summary { font-size: 11px; }
  .latest-panel { padding: 22px 0 0; border-top: 1px solid #ffffff70; border-left: 0; }
  .section-block { padding-top: 34px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 20px; }
  .section-rule { display: none; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .story-card-copy { padding: 11px 12px 13px; }
  .story-card h3 { font-size: 14px; line-height: 1.7; }
  .story-excerpt { font-size: 10px; }
  .story-meta { flex-wrap: wrap; gap: 5px; font-size: 8px; }
  .topic-strip { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; padding: 26px 22px; }
  .topic-intro h2 { font-size: 24px; }
  .topic-list { column-gap: 16px; }
  .topic-link { min-height: 47px; font-size: 11px; }
  .story-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title-row { padding-top: 5px; padding-bottom: 20px; margin-bottom: 19px; }
  .page-title-row h1 { font-size: 36px; }
  .page-intro { font-size: 11px; }
  .category-count { font-size: 27px; }
  .article-page article > h1 { font-size: 30px; line-height: 1.7; }
  .article-deck { font-size: 12px; }
  .article-hero img { aspect-ratio: 4 / 3; }
  .article-body { margin-top: 25px; font-size: 13px; }
  .article-body .article-lead { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 30px; padding-bottom: 27px; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .topline-inner { width: calc(100% - 28px); }
  .topline-inner > span:first-child { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .masthead { min-height: 94px; }
  .brand { gap: 6px; }
  .brand-symbol { width: 32px; height: 32px; }
  .brand-wordmark { font-size: 15px; }
  .brand-tagline { font-size: 8px; }
  .social-link { width: 25px; height: 25px; }
  .lead-story { min-height: 400px; }
  .lead-copy h1 { font-size: 25px; }
  .lead-summary { display: -webkit-box; overflow: hidden; line-clamp: 3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .story-grid, .story-grid-four { grid-template-columns: 1fr; gap: 15px; }
  .story-card { display: grid; grid-template-columns: 39% 1fr; min-height: 135px; }
  .story-image-wrap { min-height: 100%; aspect-ratio: auto; }
  .story-card-copy { padding: 12px 13px; }
  .story-card h3 { font-size: 13px; }
  .story-excerpt { display: none; }
  .story-grid-four .story-card { min-height: 115px; }
  .story-grid-four .story-card-copy { padding: 10px 12px; }
  .topic-strip { padding: 23px 17px; }
  .topic-list { grid-template-columns: 1fr; }
  .section-heading { align-items: center; }
  .section-heading .text-link { margin-left: auto; }
  .article-topline { flex-wrap: wrap; }
  .article-topline .sample-tag { margin-left: 0; }
  .article-page article > h1 { font-size: 26px; }
  .byline { gap: 9px; }
  .share-label { font-size: 8px; }
  .search-page-form { flex-direction: column; }
  .search-page-form input { min-height: 52px; }
  .search-page-form button { min-height: 45px; }
  .results-heading h2 { font-size: 15px; }
  .footer-main { grid-template-columns: 1fr; gap: 23px; }
  .footer-note { grid-column: auto; }
  .footer-bottom .wrap { gap: 12px; font-size: 8px; }
}

/* WordPress-specific layout and editor-content additions. */
.primary-menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.primary-menu .menu-item { flex: 0 0 auto; }
.primary-menu a { display: block; color: #49423e; font-size: 13px; font-weight: 600; transition: color .2s ease; }
.primary-menu a:hover, .primary-menu a:focus-visible, .primary-menu .current-menu-item > a { color: var(--brand); }
.primary-menu .home-link { font-size: 22px; line-height: 1; color: var(--brand); }
.social-links:empty { display: none; }
.story-card { overflow: hidden; }
.story-card-link { display: flex; height: 100%; min-width: 0; flex-direction: column; color: inherit; }
.story-card-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.article-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 80px; place-items: center; background: linear-gradient(135deg, #f3eee8, #e6d9ca); color: #9a6b32; font-size: 13px; font-weight: 700; }
.lead-story { background-image: linear-gradient(180deg, #17141122 0%, #1e191656 35%, #160f0de8 100%), var(--lead-image, linear-gradient(135deg, #493b31, #a64a18)); }
.twt-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.twt-pagination .page-numbers { min-width: 38px; padding: 7px 11px; border: 1px solid var(--line-dark); color: var(--ink-soft); text-align: center; font-size: 11px; }
.twt-pagination .page-numbers.current, .twt-pagination a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.article-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.5em 0 .6em; font-family: var(--sans); line-height: 1.7; }
.article-body ul, .article-body ol { padding-inline-start: 1.5em; margin: 0 0 22px; }
.article-body blockquote { margin: 28px 0; padding: 14px 20px; border-left: 3px solid var(--brand); background: #f3eee6; color: var(--ink-soft); }
.article-body figure { max-width: 100%; margin: 24px auto; }
.article-body figure img { height: auto; }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px; border: 1px solid var(--line-dark); text-align: start; }
.article-body .wp-block-embed { margin: 24px 0; }
.article-body .wp-block-image figcaption { color: var(--muted); font-size: 10px; text-align: center; }
.homepage-empty { margin-top: 25px; }
.homepage-empty h1 { margin-bottom: 8px; font-size: clamp(24px, 4vw, 38px); }
.search-form.is-open { display: flex; }
@media (max-width: 980px) {
  .primary-menu { gap: 26px; }
  .primary-menu a { font-size: 12px; }
}
@media (max-width: 760px) {
  .primary-menu { gap: 24px; }
  .primary-menu a { font-size: 12px; }
  .primary-menu .home-link { font-size: 19px; }
  .story-card-link { display: grid; grid-template-columns: 39% 1fr; grid-template-rows: minmax(0, 1fr); }
  .story-card .story-image-wrap { min-height: 100%; aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .primary-menu { gap: 24px; }
  .primary-menu a { font-size: 11px; }
  .story-card-link { min-height: 135px; }
  .story-grid-four .story-card-link { min-height: 115px; }
}

/* Final WordPress card/ticker behavior. */
.story-card { display: block; }
.ticker-track.ticker-static { animation: none; }
