/*
Theme Name: Hueman TPO (Tirupati Official)
Theme URI: https://tirupatiofficial.com/
Template: hueman
Description: Civic Editorial redesign for Tirupati Official. Newspaper-classic layout — navy + temple gold on warm cream paper. Playfair Display serif headlines + Source Sans 3 body. Drop caps, pull quotes, masthead-style nameplate, double-rule section dividers, editorial-tracked uppercase labels. Auth: News-traditional, civic, trustworthy.
Author: Tirupati Official Editorial
Author URI: https://tirupatiofficial.com/
Version: 3.0.0
Text Domain: hueman-tpo
*/

/* ====================================================================
   TIRUPATI OFFICIAL — CIVIC EDITORIAL 3.0
   Vibe: Newspaper of record. Authoritative, calm, well-set.
   Inspired by: NYT, The Hindu print, Eenadu masthead, FT Weekend.
   ==================================================================== */

/* ===== 1. Design tokens ===== */
:root {
  /* Brand */
  --c-ink: #131313;
  --c-ink-soft: #353535;
  --c-ink-muted: #6b6b6b;
  --c-ink-faint: #9c958a;

  --c-paper: #faf7f0; /* cream */
  --c-paper-deep: #f3eee2;
  --c-paper-band: #f5f0e5;
  --c-surface: #ffffff;

  --c-rule: #d8d2c4;
  --c-rule-soft: #e8e3d6;
  --c-rule-strong: #1a365d;

  --c-navy: #1a365d;
  --c-navy-dark: #0f2342;
  --c-gold: #c9a449;
  --c-gold-dark: #a88830;
  --c-gold-soft: #f5edd6;

  --c-vermillion: #c0392b; /* used ONLY for breaking news/alerts */
  --c-success: #1f7a3e;

  --c-link: var(--c-navy);
  --c-link-hover: var(--c-gold-dark);

  /* Category labels — all editorial text only, no color blocks */
  --cat-municipal: #1a365d;
  --cat-real-estate: #1f7a3e;
  --cat-temple: #973c2c;
  --cat-city: #1a365d;
  --cat-civic: #5a3270;

  /* Fonts */
  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-meta: "Source Sans 3", sans-serif;
  --f-italic: "Playfair Display", Georgia, serif;
  --f-telugu: "Tiro Telugu", "Noto Sans Telugu", serif;

  /* Numeric features */
  --num-tab: "tnum" 1;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 36px;
  --s-7: 52px;
  --s-8: 72px;
  --s-9: 104px;

  /* Layout */
  --w-page: 1280px;
  --w-wide: 1440px;
  --w-content: 700px;
  --w-narrow: 580px;
  --header-h: auto;

  /* Rules (newspaper dividers) */
  --rule-thin: 1px solid var(--c-rule);
  --rule-soft: 1px solid var(--c-rule-soft);
  --rule-medium: 2px solid var(--c-ink);
  --rule-strong: 4px solid var(--c-ink);
  --rule-double: 4px double var(--c-ink);

  /* Motion (subtle, classy) */
  --tr-fast: 0.1s ease;
  --tr-base: 0.16s ease;

  /* Z */
  --z-nav: 50;
  --z-drawer: 80;
  --z-modal: 100;
}

/* Dark mode: ink-and-paper inverted to inkwell */
:root[data-theme="dark"] {
  --c-ink: #ece6d6;
  --c-ink-soft: #c4bfb5;
  --c-ink-muted: #93897a;
  --c-ink-faint: #6e6759;

  --c-paper: #14171c;
  --c-paper-deep: #1c2028;
  --c-paper-band: #1a1d24;
  --c-surface: #1c2028;

  --c-rule: #2a2f3a;
  --c-rule-soft: #1f2329;

  --c-navy: #7e9ec9;
  --c-navy-dark: #b2c8e3;
  --c-gold: #e8c66a;
  --c-gold-dark: #d4a946;
  --c-gold-soft: #2a241a;

  --c-link: var(--c-gold);
  --c-link-hover: #ffe09b;

  --rule-medium: 2px solid var(--c-ink);
  --rule-strong: 4px solid var(--c-ink);
  --rule-double: 4px double var(--c-ink);
}

/* ===== 2. Reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  font-feature-settings: var(--num-tab);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--c-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--tr-base);
}
a:hover {
  color: var(--c-link-hover);
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}
input,
textarea,
select {
  font: inherit;
  color: var(--c-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 var(--s-4);
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
}
h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
}

p {
  margin: 0 0 var(--s-4);
}
ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
}
li {
  margin-bottom: var(--s-2);
}
strong,
b {
  font-weight: 700;
}

/* Telugu auto-switch */
[lang^="te"],
.te,
.telugu-content,
.has-telugu .tpo-article-body {
  font-family: var(--f-telugu);
  font-size: 1.04em;
  line-height: 1.85;
}

/* ===== 3. Layout primitives ===== */
.tpo-container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.tpo-content {
  max-width: var(--w-content);
  margin-inline: auto;
}
.tpo-skip {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: var(--s-3) var(--s-4);
  z-index: var(--z-modal);
}
.tpo-skip:focus {
  top: 0;
}

.tpo-grid {
  display: grid;
  gap: var(--s-5);
}
.tpo-grid--2,
.tpo-grid--3,
.tpo-grid--4,
.tpo-grid--side {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .tpo-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tpo-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tpo-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .tpo-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .tpo-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .tpo-grid--side {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--s-7);
  }
}

/* ===== 4. Masthead / Nameplate ===== */
.tpo-topbar {
  border-top: 4px solid var(--c-ink);
  background: var(--c-paper);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
}
.tpo-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding-block: 6px;
  gap: var(--s-4);
  flex-wrap: wrap;
  border-bottom: var(--rule-thin);
}
.tpo-topbar-meta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.tpo-topbar-meta .sep {
  color: var(--c-ink-faint);
}
.tpo-topbar-meta .edition {
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.tpo-topbar-actions {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
.tpo-lang-toggle,
.tpo-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: transparent;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  border: 0;
}
.tpo-lang-toggle:hover,
.tpo-theme-toggle:hover {
  color: var(--c-navy);
}
.tpo-lang-toggle .te {
  font-family: var(--f-telugu);
  text-transform: none;
}

/* Nameplate header */
.tpo-header {
  background: var(--c-paper);
  border-bottom: var(--rule-thin);
  text-align: center;
  padding: var(--s-5) 0 0;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: padding var(--tr-base);
}
.tpo-header.is-scrolled {
  padding-top: var(--s-3);
  border-bottom: var(--rule-medium);
  background: var(--c-paper);
}
.tpo-header.is-scrolled .tpo-nameplate {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.tpo-header.is-scrolled .tpo-nameplate-tag {
  display: none;
}

.tpo-header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.tpo-brand {
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.tpo-nameplate {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0;
  transition: font-size var(--tr-base);
}
.tpo-nameplate .te-mark {
  font-family: var(--f-telugu);
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--c-navy);
  vertical-align: 0.18em;
  margin-left: 0.2em;
}
.tpo-nameplate-tag {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-ink-muted);
  margin-top: var(--s-2);
}

/* Top-of-page nav (below nameplate) */
.tpo-nav-bar {
  border-top: var(--rule-medium);
  border-bottom: var(--rule-thin);
  background: var(--c-paper);
  margin-top: var(--s-4);
}
.tpo-nav-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  padding-block: var(--s-3);
  position: relative;
}
.tpo-nav {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .tpo-nav {
    display: flex;
  }
}
.tpo-nav a {
  color: var(--c-ink);
  font-family: var(--f-meta);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.tpo-nav a:hover,
.tpo-nav .current-menu-item > a {
  color: var(--c-navy);
  border-bottom-color: var(--c-gold);
}
.tpo-header-actions {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--s-2);
}
.tpo-iconbtn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--c-ink);
  border-radius: 0;
}
.tpo-iconbtn:hover {
  color: var(--c-navy);
}
.tpo-iconbtn svg {
  width: 16px;
  height: 16px;
}
.tpo-menu-toggle {
  display: grid;
}
@media (min-width: 960px) {
  .tpo-menu-toggle {
    display: none;
  }
}

/* ===== 5. Mobile drawer + search modal ===== */
.tpo-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 19, 19, 0.55);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-base);
}
.tpo-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}
.tpo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 92vw);
  background: var(--c-paper);
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: var(--rule-strong);
}
.tpo-drawer.is-open {
  transform: translateX(0);
}
.tpo-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--rule-thin);
}
.tpo-drawer-head .tpo-nameplate {
  font-size: 1.4rem;
}
.tpo-drawer-nav {
  padding: var(--s-3) 0;
}
.tpo-drawer-nav a {
  display: block;
  padding: var(--s-3) var(--s-5);
  color: var(--c-ink);
  font-family: var(--f-meta);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: var(--rule-soft);
}
.tpo-drawer-nav a:hover {
  background: var(--c-paper-band);
  color: var(--c-navy);
}
.tpo-drawer-foot {
  padding: var(--s-4) var(--s-5);
  border-top: var(--rule-thin);
  margin-top: auto;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.tpo-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(19, 19, 19, 0.6);
  z-index: var(--z-modal);
  display: grid;
  place-items: start center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-base);
}
.tpo-search-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.tpo-search-box {
  width: min(680px, 92vw);
  background: var(--c-paper);
  padding: var(--s-6);
  border-top: 4px solid var(--c-ink);
  border-bottom: 1px solid var(--c-rule);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.tpo-search-box input {
  width: 100%;
  padding: var(--s-3) 0;
  border: 0;
  border-bottom: 2px solid var(--c-ink);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  background: transparent;
  color: var(--c-ink);
}
.tpo-search-box input:focus {
  outline: 0;
  border-bottom-color: var(--c-gold);
}
.tpo-search-hint {
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== 6. Breaking news strip (only when needed) ===== */
.tpo-breaking {
  background: var(--c-vermillion);
  color: #fff;
  padding: var(--s-2) 0;
  font-size: 13px;
}
.tpo-breaking-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.tpo-breaking-label {
  background: #fff;
  color: var(--c-vermillion);
  font-family: var(--f-meta);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10.5px;
  padding: 3px 8px;
  flex-shrink: 0;
}

/* ===== 7. Section labels (editorial caps tracked) ===== */
.tpo-section {
  margin: var(--s-7) 0;
}
.tpo-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: var(--rule-double);
}
.tpo-section-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.tpo-section-link {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-navy);
  text-decoration: none;
}
.tpo-section-link:hover {
  color: var(--c-gold-dark);
}
.tpo-section-link::after {
  content: " →";
}

/* Eyebrow label above sections */
.tpo-eyebrow {
  display: inline-block;
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: var(--s-2);
}

/* ===== 8. Hero (newspaper top-of-fold) ===== */
.tpo-hero {
  display: grid;
  gap: var(--s-6);
  margin: var(--s-6) 0 var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-6);
  border-bottom: var(--rule-double);
}
@media (min-width: 960px) {
  .tpo-hero {
    grid-template-columns: 7fr 5fr;
  }
}

.tpo-hero-feature {
  display: flex;
  flex-direction: column;
}
.tpo-hero-feature .image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--c-paper-band);
  overflow: hidden;
  margin-bottom: var(--s-4);
}
.tpo-hero-feature .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpo-hero-feature .image-caption {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--c-ink-muted);
  margin: -8px 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: var(--rule-thin);
}
.tpo-hero-feature .eyebrow {
  margin-bottom: var(--s-2);
}
.tpo-hero-feature .title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.018em;
}
.tpo-hero-feature .title a {
  color: var(--c-ink);
  text-decoration: none;
}
.tpo-hero-feature .title a:hover {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.tpo-hero-feature .deck {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  margin: 0 0 var(--s-3);
  line-height: 1.5;
}
.tpo-hero-feature .byline {
  font-size: 12px;
  color: var(--c-ink-muted);
  font-family: var(--f-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tpo-hero-feature .byline .author {
  color: var(--c-ink);
}

/* Hero side list */
.tpo-hero-list {
  display: flex;
  flex-direction: column;
}
.tpo-hero-list-title {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  padding-bottom: var(--s-3);
  border-bottom: var(--rule-medium);
  margin: 0 0 var(--s-4);
}
.tpo-hero-list-item {
  padding: var(--s-3) 0;
  border-bottom: var(--rule-thin);
}
.tpo-hero-list-item:last-child {
  border-bottom: 0;
}
.tpo-hero-list-item .label {
  font-size: 11px;
}
.tpo-hero-list-item .ttl {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: var(--s-1) 0 var(--s-1);
}
.tpo-hero-list-item .ttl a {
  color: var(--c-ink);
  text-decoration: none;
}
.tpo-hero-list-item .ttl a:hover {
  color: var(--c-navy);
}
.tpo-hero-list-item .meta {
  font-size: 11.5px;
  color: var(--c-ink-muted);
  font-style: italic;
  font-family: var(--f-italic);
}

/* ===== 9. Article card (editorial style) ===== */
.tpo-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  border-bottom: var(--rule-thin);
}
.tpo-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--c-paper-band);
  overflow: hidden;
  text-decoration: none;
}
.tpo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tpo-card:hover .tpo-card-img img {
  transform: scale(1.03);
}
.tpo-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.tpo-card-title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.tpo-card-title a {
  color: var(--c-ink);
  text-decoration: none;
}
.tpo-card-title a:hover {
  color: var(--c-navy);
}
.tpo-card-excerpt {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpo-card-meta {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 12.5px;
  color: var(--c-ink-muted);
}
.tpo-card-meta .author {
  color: var(--c-ink);
  font-style: normal;
  font-weight: 600;
}

/* Row variant (sidebar most-read) */
.tpo-card--row {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: var(--rule-thin);
}
.tpo-card--row .tpo-card-img {
  width: 80px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.tpo-card--row .tpo-card-body {
  gap: var(--s-1);
}
.tpo-card--row .tpo-card-title {
  font-size: 0.95rem;
}
.tpo-card--row .tpo-card-excerpt {
  display: none;
}
.tpo-card--row .tpo-card-meta {
  font-size: 11.5px;
}

/* Text/numbered variant (most-read) */
.tpo-card--text {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: var(--rule-thin);
  align-items: start;
}
.tpo-card--text:last-child {
  border-bottom: 0;
}
.tpo-card--text .num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 0.9;
  font-feature-settings: "lnum" 1;
}
.tpo-card--text .tpo-card-body {
  gap: var(--s-1);
}
.tpo-card--text .tpo-card-title {
  font-size: 0.98rem;
}

/* Category badges — TEXT only, no blocks */
.tpo-cat-badge {
  display: inline-block;
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
  text-decoration: none;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 1px;
  margin-bottom: var(--s-2);
  background: transparent !important;
  border-radius: 0;
  align-self: flex-start;
}
.tpo-cat-badge:hover {
  color: var(--c-gold-dark);
  border-bottom-color: var(--c-navy);
}
/* Per-category color hint via border */
.tpo-cat-badge[data-cat="tirumala-news"],
.tpo-cat-badge[data-cat="tirumala-temple"] {
  color: var(--c-vermillion);
  border-bottom-color: var(--c-gold);
}
.tpo-cat-badge[data-cat="tuda-guide"] {
  color: var(--c-success);
}
.tpo-cat-badge[data-cat="editorial"] {
  color: var(--c-ink-soft);
}

/* ===== 10. Sidebar widgets ===== */
.tpo-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}
.tpo-widget {
}
.tpo-widget-title {
  font-family: var(--f-meta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: var(--rule-double);
}

/* Newsletter — gold-paper card */
.tpo-newsletter {
  background: var(--c-gold-soft);
  padding: var(--s-5);
  border-top: 4px solid var(--c-gold);
}
.tpo-newsletter .tpo-widget-title {
  color: var(--c-navy);
  border-bottom-color: var(--c-gold-dark);
}
.tpo-newsletter p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14.5px;
  color: var(--c-ink-soft);
}
.tpo-newsletter form {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.tpo-newsletter input[type="email"] {
  padding: 10px 14px;
  border: 1px solid var(--c-ink);
  background: var(--c-paper);
  font-size: 14px;
  border-radius: 0;
}
.tpo-newsletter input[type="email"]:focus {
  outline: 0;
  border-color: var(--c-navy);
  box-shadow: inset 0 -2px 0 var(--c-gold);
}
.tpo-newsletter button {
  padding: 10px 14px;
  background: var(--c-navy);
  color: var(--c-paper);
  font-family: var(--f-meta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--tr-fast);
}
.tpo-newsletter button:hover {
  background: var(--c-ink);
}

/* Topics list */
.tpo-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tpo-topics li {
  border-bottom: var(--rule-thin);
}
.tpo-topics li:last-child {
  border-bottom: 0;
}
.tpo-topics a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-family: var(--f-meta);
  font-size: 13.5px;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.tpo-topics a:hover {
  color: var(--c-navy);
}
.tpo-topics .count {
  font-size: 11px;
  color: var(--c-ink-muted);
  font-style: italic;
  font-family: var(--f-italic);
}

/* ===== 11. Article (single post) ===== */
.tpo-article-header {
  text-align: left;
  margin: var(--s-7) 0 var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: var(--rule-medium);
}
.tpo-article-eyebrow {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--f-meta);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-3);
}
.tpo-article-eyebrow .tpo-cat-badge {
  margin-bottom: 0;
}
.tpo-article-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}
.tpo-article-deck {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
  margin: 0 0 var(--s-5);
  max-width: 38em;
}
.tpo-article-meta {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--f-meta);
  font-size: 13px;
  color: var(--c-ink-muted);
}
.tpo-byline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-ink);
}
.tpo-byline img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-rule);
}
.tpo-byline a {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
}
.tpo-byline a:hover {
  color: var(--c-navy);
}

.tpo-article-hero {
  margin: 0 0 var(--s-5);
}
.tpo-article-hero img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}
.tpo-article-hero figcaption {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--c-ink-muted);
  padding: var(--s-2) 0;
  border-bottom: var(--rule-thin);
  margin: 0;
}

/* Body with drop cap on first paragraph */
.tpo-article-body {
  max-width: var(--w-content);
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-ink);
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1,
    "onum" 1;
}
.tpo-article-body > * {
  margin-block: 1em;
}
.tpo-article-body > *:first-child {
  margin-top: 0;
}
.tpo-article-body p {
  margin: 0 0 1.2em;
}

/* Drop cap on first paragraph */
.tpo-article-body > p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 5.4em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--c-navy);
  margin-top: 0.08em;
}

.tpo-article-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  margin: 2em 0 0.6em;
  padding-top: 0.4em;
  border-top: var(--rule-medium);
  letter-spacing: -0.012em;
}
.tpo-article-body h3 {
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
  color: var(--c-ink);
}
.tpo-article-body a {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tpo-article-body a:hover {
  color: var(--c-gold-dark);
}

/* Pull quote */
.tpo-article-body blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.4;
  border: 0;
  border-top: var(--rule-double);
  border-bottom: var(--rule-double);
  padding: var(--s-5) var(--s-2);
  margin: var(--s-6) 0;
  text-align: center;
  position: relative;
}
.tpo-article-body blockquote::before {
  content: '"';
  font-family: var(--f-display);
  font-size: 3em;
  line-height: 0;
  position: absolute;
  top: 0.35em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-gold);
}
.tpo-article-body blockquote p {
  margin-bottom: 0;
}
.tpo-article-body blockquote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--f-meta);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.tpo-article-body img,
.tpo-article-body figure {
  max-width: 100%;
  height: auto;
}
.tpo-article-body figure {
  margin: 1.5em 0;
}
.tpo-article-body figcaption {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13.5px;
  color: var(--c-ink-muted);
  margin-top: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: var(--rule-thin);
}

.tpo-article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-meta);
  font-size: 0.95em;
  margin: 1.5em 0;
}
.tpo-article-body th,
.tpo-article-body td {
  padding: 12px 16px;
  border-bottom: var(--rule-thin);
  text-align: left;
}
.tpo-article-body thead {
  border-top: var(--rule-medium);
  border-bottom: var(--rule-medium);
}
.tpo-article-body th {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Source citations (auto-injected) */
.tpo-sources {
  background: var(--c-paper-band);
  padding: var(--s-5);
  margin: var(--s-7) 0;
  border-top: var(--rule-medium);
  border-bottom: var(--rule-thin);
  font-size: 14px;
}
.tpo-sources-title {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin: 0 0 var(--s-3);
}
.tpo-sources-title::before {
  content: "§ ";
  color: var(--c-gold);
}
.tpo-sources ol {
  margin: 0;
  padding-left: var(--s-5);
  counter-reset: src-count;
  list-style: none;
}
.tpo-sources li {
  margin-bottom: var(--s-2);
  position: relative;
  font-family: var(--f-meta);
  color: var(--c-ink-soft);
  counter-increment: src-count;
  padding-left: var(--s-3);
}
.tpo-sources li::before {
  content: counter(src-count) ".";
  position: absolute;
  left: -16px;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-navy);
}
.tpo-sources a {
  color: var(--c-navy);
}
.tpo-sources a:hover {
  color: var(--c-gold-dark);
}

/* See-also inline */
.tto-see-also,
.tpo-see-also {
  font-family: var(--f-meta);
  font-style: normal !important;
  font-size: 13.5px !important;
  background: transparent !important;
  border: 0 !important;
  border-top: var(--rule-thin) !important;
  border-bottom: var(--rule-thin) !important;
  padding: 10px 0 !important;
  margin: var(--s-5) 0 !important;
  border-radius: 0;
  color: var(--c-ink-soft);
}
.tto-see-also strong,
.tpo-see-also strong {
  color: var(--c-ink-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
}
.tto-see-also a,
.tpo-see-also a {
  color: var(--c-navy);
  font-weight: 600;
}

/* Author bio */
.tpo-author-bio {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: transparent;
  border-top: var(--rule-medium);
  border-bottom: var(--rule-thin);
  margin: var(--s-7) 0 var(--s-5);
}
.tpo-author-bio img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--c-rule);
}
.tpo-author-bio-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 var(--s-1);
}
.tpo-author-bio-role {
  font-family: var(--f-meta);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin: 0 0 var(--s-2);
}
.tpo-author-bio-desc {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-soft);
  margin: 0;
}

/* Share row */
.tpo-share {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-block: var(--rule-thin);
  margin: var(--s-5) 0;
  font-family: var(--f-meta);
}
.tpo-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-right: var(--s-2);
}
.tpo-share a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--c-ink);
  background: transparent;
  border-radius: 0;
  transition: color var(--tr-fast);
}
.tpo-share a:hover {
  color: var(--c-navy);
}
.tpo-share svg {
  width: 14px;
  height: 14px;
}

/* Tags row */
.tpo-tags {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin: var(--s-5) 0;
  font-family: var(--f-meta);
}
.tpo-tags a {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--c-rule);
  padding-bottom: 1px;
}
.tpo-tags a:hover {
  color: var(--c-navy);
  border-bottom-color: var(--c-navy);
}
.tpo-tags a::before {
  content: "#";
  color: var(--c-gold);
}

/* FAQ */
.tpo-faq,
.schema-faq-section {
  margin: var(--s-6) 0;
  padding: var(--s-5) 0;
  border-top: var(--rule-medium);
  border-bottom: var(--rule-thin);
}
.tpo-faq h3,
.schema-faq-question h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.2em 0 0.4em;
}
.tpo-faq h3:first-child,
.schema-faq-question:first-child h3 {
  margin-top: 0;
}
.schema-faq-question {
  margin-bottom: var(--s-4);
}
.schema-faq-question:last-child {
  margin-bottom: 0;
}

/* ===== 12. Breadcrumbs ===== */
.tpo-breadcrumbs {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--f-meta);
  font-size: 11.5px;
  color: var(--c-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: var(--s-5) 0 var(--s-3);
  padding-top: var(--s-3);
}
.tpo-breadcrumbs a {
  color: var(--c-ink-muted);
  text-decoration: none;
}
.tpo-breadcrumbs a:hover {
  color: var(--c-navy);
}
.tpo-breadcrumbs .sep {
  color: var(--c-rule);
}
.tpo-breadcrumbs .current {
  color: var(--c-ink);
  font-weight: 600;
}

/* ===== 13. Archive / category ===== */
.tpo-archive-header {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: var(--rule-double);
  margin-bottom: var(--s-6);
  text-align: center;
}
.tpo-archive-eyebrow {
  display: inline-block;
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: var(--s-3);
}
.tpo-archive-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.018em;
}
.tpo-archive-desc {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 17px;
  color: var(--c-ink-soft);
  max-width: 36em;
  margin: 0 auto;
}

/* Pagination */
.tpo-pagination {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: var(--s-7) 0;
  font-family: var(--f-meta);
  border-top: var(--rule-medium);
  border-bottom: var(--rule-thin);
  padding: var(--s-3) 0;
}
.tpo-pagination a,
.tpo-pagination span {
  padding: 8px 14px;
  margin: 0 4px;
  font-size: 13px;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-radius: 0;
  border: 0;
}
.tpo-pagination a:hover {
  color: var(--c-navy);
  background: var(--c-paper-band);
}
.tpo-pagination .current {
  color: var(--c-gold-dark);
  font-weight: 700;
}

/* ===== 14. Hub pages ===== */
.tpo-hub-header {
  text-align: center;
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: var(--rule-double);
  margin-bottom: var(--s-6);
}
.tpo-hub-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.02em;
}
.tpo-hub-intro {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 17px;
  color: var(--c-ink-soft);
  max-width: 38em;
  margin: 0 auto;
  line-height: 1.6;
}
.tpo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s-5);
  margin: var(--s-5) 0;
}
.tpo-hub-card {
  display: block;
  padding: var(--s-5);
  background: var(--c-surface);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--c-rule);
  transition: all var(--tr-base);
}
.tpo-hub-card:hover {
  border-color: var(--c-ink);
  transform: translateY(-2px);
}
.tpo-hub-card-cat {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
  display: inline-block;
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 1px;
}
.tpo-hub-card-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--s-3) 0 var(--s-2);
  line-height: 1.3;
}
.tpo-hub-card-excerpt {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ===== 15. Footer ===== */
.tpo-footer {
  margin-top: var(--s-8);
  background: var(--c-ink);
  color: #d0c9bd;
  padding: var(--s-7) 0 var(--s-5);
  border-top: 6px solid var(--c-gold);
}
:root[data-theme="dark"] .tpo-footer {
  background: #07090c;
}
.tpo-footer-mast {
  text-align: center;
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid #2a2e36;
}
.tpo-footer-mast .nameplate {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #faf7f0;
  margin: 0;
  letter-spacing: -0.02em;
}
.tpo-footer-mast .tag {
  font-family: var(--f-italic);
  font-style: italic;
  color: #a89e8c;
  font-size: 14px;
  margin: var(--s-2) 0 0;
}
.tpo-footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-6);
}
@media (min-width: 720px) {
  .tpo-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tpo-footer h3 {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #faf7f0;
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-gold);
  display: inline-block;
}
.tpo-footer p {
  color: #a89e8c;
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--f-italic);
  font-style: italic;
}
.tpo-footer a {
  color: #d0c9bd;
  text-decoration: none;
}
.tpo-footer a:hover {
  color: var(--c-gold);
}
.tpo-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tpo-footer-links li {
  margin-bottom: var(--s-2);
}
.tpo-footer-links a {
  font-family: var(--f-meta);
  font-size: 13.5px;
}

.tpo-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid #2a2e36;
  font-family: var(--f-meta);
  font-size: 12px;
  color: #8a8474;
  letter-spacing: 0.04em;
}
.tpo-social {
  display: flex;
  gap: var(--s-3);
}
.tpo-social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #d0c9bd;
  border: 1px solid #2a2e36;
  transition: all var(--tr-fast);
}
.tpo-social a:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.tpo-social svg {
  width: 13px;
  height: 13px;
}

/* ===== 16. Utilities ===== */
.u-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;
}
.u-hidden {
  display: none !important;
}
@media (max-width: 719px) {
  .u-hide-mobile {
    display: none !important;
  }
}
@media (min-width: 720px) {
  .u-hide-desktop {
    display: none !important;
  }
}

/* ===== 17. Print ===== */
@media print {
  .tpo-topbar,
  .tpo-header,
  .tpo-footer,
  .tpo-share,
  .tpo-sidebar,
  .tpo-breaking,
  .heateor_sss_sharing_container,
  #wpadminbar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .tpo-article-body {
    max-width: 100%;
    font-size: 11pt;
    line-height: 1.45;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ===== 18. Hueman parent neutralization ===== */
#header.s1,
#header-aside,
#sidebar,
.heateor_sss_sharing_container {
  display: none !important;
}

/* ===== 19. Focus / Accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}
[id] {
  scroll-margin-top: 90px;
}

/* ====================================================================
   TIRUPATI OFFICIAL — MAGAZINE PREMIUM 4.0 (polish layer)
   Adds: category color-stripe cards, photo-overlay hero, gold ornaments,
   reading-progress bar, mobile bottom-nav, smooth reveals, refined dark.
   All v3.0 tokens preserved.
   ==================================================================== */

/* ----- 4.0 / Subtle paper texture (very soft cream noise) ----- */
body {
  background-color: var(--c-paper);
  background-image:
    radial-gradient(circle at 14% 30%, rgba(201,164,73,0.018), transparent 22%),
    radial-gradient(circle at 86% 70%, rgba(26,54,93,0.014), transparent 25%);
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 14% 30%, rgba(232,198,106,0.025), transparent 22%),
    radial-gradient(circle at 86% 70%, rgba(126,158,201,0.020), transparent 25%);
}

/* ----- 4.1 / Smooth reveal-on-scroll primitives ----- */
@media (prefers-reduced-motion: no-preference) {
  .tpo-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .tpo-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- 4.2 / Sticky reading progress bar (article pages) ----- */
.tpo-progress-bar {
  position: fixed; top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-gold) 100%);
  z-index: calc(var(--z-nav) + 1);
  transition: width .08s linear;
  pointer-events: none;
}

/* ----- 4.3 / Header: persistent search on desktop ----- */
.tpo-search-inline {
  display: none;
  align-items: center;
  background: var(--c-paper-band);
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  min-width: 220px;
  max-width: 280px;
  transition: border-color var(--tr-base), background var(--tr-base);
}
.tpo-search-inline:focus-within {
  border-color: var(--c-navy);
  background: var(--c-surface);
}
.tpo-search-inline svg {
  width: 14px; height: 14px;
  color: var(--c-ink-muted);
  flex-shrink: 0;
}
.tpo-search-inline input {
  flex: 1;
  border: 0; background: transparent;
  padding: 6px 8px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-ink);
}
.tpo-search-inline input::placeholder { color: var(--c-ink-muted); }
.tpo-search-inline input:focus { outline: 0; }
.tpo-search-inline kbd {
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  border-radius: 3px;
  color: var(--c-ink-muted);
  flex-shrink: 0;
}
@media (min-width: 960px) {
  .tpo-search-inline { display: flex; }
  /* Hide the icon-only search button on desktop when inline search is present */
  .tpo-header-actions [data-tpo-search-open] { display: none; }
}

/* ----- 4.4 / Hero v4: immersive featured image with overlay ----- */
.tpo-hero-immersive {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--s-4);
  background: var(--c-paper-band);
  isolation: isolate;
}
.tpo-hero-immersive img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.tpo-hero-immersive:hover img { transform: scale(1.025); }
.tpo-hero-immersive::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}
.tpo-hero-immersive .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-6) var(--s-5);
  z-index: 2;
  color: #ffffff;
}
.tpo-hero-immersive .overlay .eyebrow {
  display: inline-block;
  font-family: var(--f-meta);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-2);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--c-gold);
}
.tpo-hero-immersive .overlay .title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.018em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  max-width: 28em;
}
.tpo-hero-immersive .overlay .title a { color: inherit; text-decoration: none; }
.tpo-hero-immersive .overlay .deck {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 var(--s-3);
  max-width: 38em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.tpo-hero-immersive .overlay .byline {
  font-family: var(--f-meta);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tpo-hero-immersive .overlay .byline .author { color: var(--c-gold); }

/* ----- 4.5 / Card v4: category color-stripe + thumbnail rhythm ----- */
.tpo-card {
  position: relative;
  border-bottom: 0;
  padding: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-rule-soft);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}
.tpo-card:hover {
  border-color: var(--c-rule);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.tpo-card .tpo-card-img {
  aspect-ratio: 16 / 10;
}
.tpo-card .tpo-card-body {
  padding: var(--s-4) var(--s-4) var(--s-5);
  display: flex; flex-direction: column;
  gap: var(--s-2);
  position: relative;
}

/* Category color stripe (left edge of card body) */
.tpo-card .tpo-card-body::before {
  content: '';
  position: absolute;
  left: 0; top: var(--s-4); bottom: var(--s-4);
  width: 3px;
  background: var(--c-navy);
  border-radius: 0 3px 3px 0;
  opacity: 0.75;
}
.tpo-card.cat-tirupati-news .tpo-card-body::before { background: var(--cat-city); }
.tpo-card.cat-tirumala-news .tpo-card-body::before,
.tpo-card.cat-tirumala-temple .tpo-card-body::before { background: var(--cat-temple); }
.tpo-card.cat-tuda-guide .tpo-card-body::before,
.tpo-card.cat-rent-lease .tpo-card-body::before { background: var(--cat-real-estate); }
.tpo-card.cat-tirupati-top .tpo-card-body::before { background: var(--cat-civic); }
.tpo-card.cat-editorial .tpo-card-body::before { background: var(--c-ink-muted); }

.tpo-card .tpo-card-body > * { padding-left: var(--s-3); }
.tpo-card .tpo-card-meta { padding-left: var(--s-3); }

/* Subtle image zoom on card hover */
.tpo-card-img img { transition: transform .55s ease, opacity .25s ease; }
.tpo-card:hover .tpo-card-img img { transform: scale(1.04); }

/* Card row variant (sidebar): keep flat */
.tpo-card--row,
.tpo-card--text {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--c-rule-soft);
  padding: var(--s-3) 0;
}
.tpo-card--row:hover,
.tpo-card--text:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-rule);
}
.tpo-card--row .tpo-card-body::before,
.tpo-card--text .tpo-card-body::before { display: none; }
.tpo-card--row .tpo-card-body > *,
.tpo-card--text .tpo-card-body > * { padding-left: 0; }
.tpo-card--row .tpo-card-body,
.tpo-card--text .tpo-card-body { padding: 0 0 0 var(--s-3); }

/* ----- 4.6 / Section heads: gold ornament + sharper hierarchy ----- */
.tpo-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  position: relative;
  border-bottom: 1px solid var(--c-rule);
}
.tpo-section-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px; width: 80px;
  background: linear-gradient(90deg, var(--c-navy), var(--c-gold));
  border-radius: 2px;
}
.tpo-section-head .tpo-section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.015em;
  margin: 0;
}
.tpo-eyebrow {
  font-family: var(--f-meta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.tpo-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--c-gold);
}

/* ----- 4.7 / Mobile bottom navigation ----- */
.tpo-bottom-nav {
  display: none;
}
@media (max-width: 720px) {
  .tpo-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--c-paper);
    border-top: 1px solid var(--c-rule);
    z-index: var(--z-nav);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  }
  .tpo-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 4px;
    font-family: var(--f-meta);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--c-ink-muted);
    text-decoration: none;
    transition: color var(--tr-fast);
  }
  .tpo-bottom-nav a svg {
    width: 20px; height: 20px;
    stroke-width: 1.8;
  }
  .tpo-bottom-nav a:hover,
  .tpo-bottom-nav a.is-active {
    color: var(--c-navy);
  }
  .tpo-bottom-nav a.is-active svg { color: var(--c-gold); }
  /* Push body content above bottom nav so the last article isn't hidden */
  body { padding-bottom: 76px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ----- 4.8 / Refined article reading ----- */
.tpo-article-body {
  font-size: 18px;
  line-height: 1.72;
}
.tpo-article-body > p:first-of-type::first-letter {
  font-size: 5.2em;
  line-height: 0.86;
  padding: 0.06em 0.14em 0 0;
  color: var(--c-navy);
  background: linear-gradient(180deg, var(--c-navy), color-mix(in srgb, var(--c-navy) 75%, var(--c-gold)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tpo-article-body h2 {
  margin-top: 2.4em;
  padding-top: 0.6em;
  border-top: 0;
  position: relative;
}
.tpo-article-body h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--c-navy), var(--c-gold));
  border-radius: 2px;
}
.tpo-article-body blockquote {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  text-align: left;
  padding: var(--s-5) 0;
  margin: var(--s-7) 0;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  position: relative;
}
.tpo-article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -8px; left: -8px;
  transform: none;
  font-family: var(--f-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.4;
  z-index: -1;
}

/* ----- 4.9 / Hero side news-list — add small thumbnails ----- */
.tpo-hero-list-item {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) 0;
  border-bottom: var(--rule-thin);
}
.tpo-hero-list-item:last-child { border-bottom: 0; }
.tpo-hero-list-item .thumb {
  width: 80px;
  aspect-ratio: 1;
  background: var(--c-paper-band);
  border-radius: var(--r-2);
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / span 4;
}
.tpo-hero-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----- 4.10 / Footer refinement ----- */
.tpo-footer {
  background: linear-gradient(180deg, var(--c-ink) 0%, #07090c 100%);
  border-top: 6px solid var(--c-gold);
}
.tpo-footer-mast::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--c-gold);
  margin: var(--s-4) auto 0;
  opacity: 0.5;
}

/* ----- 4.11 / Tags pills polish ----- */
.tpo-tags a {
  background: var(--c-paper-band);
  padding: 4px 10px;
  border-radius: 999px;
  border-bottom: 0;
  transition: all var(--tr-fast);
}
.tpo-tags a:hover {
  background: var(--c-navy);
  color: var(--c-paper);
}
.tpo-tags a::before { content: ''; }
.tpo-tags a::after { content: ''; }
.tpo-tags a:hover::before {
  content: '#';
  margin-right: 2px;
  color: var(--c-gold);
}

/* ----- 4.12 / Author bio refinement ----- */
.tpo-author-bio {
  background: linear-gradient(135deg, var(--c-paper-deep), var(--c-paper-band));
  border-top: 3px solid var(--c-gold);
  border-bottom: 0;
  border-radius: var(--r-3);
  padding: var(--s-5) var(--s-5);
}
.tpo-author-bio img {
  border: 3px solid var(--c-gold);
  border-radius: 50%;
}
.tpo-author-bio-name::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-gold);
  margin-top: var(--s-1);
}

/* ----- 4.13 / Refined dark mode ----- */
:root[data-theme="dark"] .tpo-card {
  background: #1a1d24;
  border-color: #252932;
}
:root[data-theme="dark"] .tpo-card:hover {
  border-color: #353a45;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] .tpo-hero-immersive::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.95) 100%);
}
:root[data-theme="dark"] .tpo-author-bio {
  background: linear-gradient(135deg, #1a1d24, #14171c);
}

/* ----- 4.14 / Focus polish: stronger ring ----- */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-1);
  box-shadow: 0 0 0 4px rgba(201,164,73,0.18);
}

/* ----- 4.15 / Performance: reduced-motion guard ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- 4.16 / Print refinements ----- */
@media print {
  .tpo-progress-bar,
  .tpo-bottom-nav,
  .tpo-search-inline { display: none !important; }
}

/* ====================================================================== */
/* ====     v4.1 / NEWSROOM PREMIUM — added 2026-05-15                ==== */
/* ====     breaking ticker, TOC sidebar, micro-interactions,         ==== */
/* ====     freshness badges, beat-hover, view-transition smooth      ==== */
/* ====================================================================== */

/* ----- 4.1.1 / Breaking news ticker (top of homepage) ----- */
.tpo-ticker {
  background: linear-gradient(90deg, var(--c-navy) 0%, #0e1b30 100%);
  color: #fff;
  border-bottom: 2px solid var(--c-gold);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.tpo-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}
.tpo-ticker-label {
  background: #b03030;
  color: #fff;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}
.tpo-ticker-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: tpo-pulse 1.4s infinite;
}
@keyframes tpo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}
.tpo-ticker-label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 0;
  border-style: solid;
  border-width: 0 0 32px 10px;
  border-color: transparent transparent #b03030 transparent;
}
.tpo-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 32px;
  padding-left: 16px;
}
.tpo-ticker-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  font-weight: 600;
}
.tpo-ticker-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}
.tpo-ticker-slide a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tpo-ticker-slide a:hover { color: var(--c-gold); }
@media (max-width: 720px) {
  .tpo-ticker-label { padding: 8px 10px; font-size: 10px; }
  .tpo-ticker-track { height: 30px; }
  .tpo-ticker-slide { font-size: 12px; }
}

/* ----- 4.1.2 / Time-of-day greeting in topbar ----- */
.tpo-greeting {
  font-style: italic;
  color: var(--c-gold);
  font-weight: 600;
  margin-right: 8px;
}
.tpo-greeting::after {
  content: '·';
  margin-left: 8px;
  color: var(--c-rule);
  font-style: normal;
}
@media (max-width: 720px) {
  .tpo-greeting { display: none; }
}

/* ----- 4.1.3 / "Just Posted" / "Live" freshness badge ----- */
.tpo-fresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  background: #b03030;
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.2;
  margin-left: 6px;
  vertical-align: middle;
}
.tpo-fresh::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: tpo-pulse 1.4s infinite;
}
.tpo-fresh.is-updated { background: #1f7a3e; }

/* ----- 4.1.4 / Card micro-interactions (lift + image scale) ----- */
.tpo-card {
  transition:
    transform .35s cubic-bezier(.2,.7,.2,1),
    box-shadow .35s cubic-bezier(.2,.7,.2,1),
    border-color .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.tpo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15,30,60,0.13), 0 2px 6px rgba(15,30,60,0.08);
}
.tpo-card .tpo-card-thumb {
  overflow: hidden;
}
.tpo-card .tpo-card-thumb img,
.tpo-card-thumb img {
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.tpo-card:hover .tpo-card-thumb img {
  transform: scale(1.045);
}
.tpo-card h3 a,
.tpo-card .tpo-card-title a {
  background-image: linear-gradient(var(--c-gold), var(--c-gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s ease;
}
.tpo-card:hover h3 a,
.tpo-card:hover .tpo-card-title a {
  background-size: 100% 1px;
}

/* ----- 4.1.5 / Beat-colour hover tint per category ----- */
.tpo-card[data-cat*="tirumala"]:hover,
.tpo-card[data-cat*="ttd"]:hover { border-color: #c9a449; }
.tpo-card[data-cat*="tmc"]:hover,
.tpo-card[data-cat*="municipal"]:hover { border-color: #1a365d; }
.tpo-card[data-cat*="tuda"]:hover,
.tpo-card[data-cat*="real-estate"]:hover { border-color: #1f7a3e; }
.tpo-card[data-cat*="city"]:hover { border-color: #6b2c91; }
.tpo-card[data-cat*="festival"]:hover { border-color: #b03030; }

/* ----- 4.1.6 / Hero list item — gentle lift + thumb scale ----- */
.tpo-hero-list-item {
  transition: transform .35s ease, background .35s ease;
  padding: 12px 8px;
  border-radius: var(--r-2);
  margin-left: -8px;
  margin-right: -8px;
}
.tpo-hero-list-item:hover {
  background: var(--c-paper-deep);
  transform: translateX(2px);
}
.tpo-hero-list-item .thumb img {
  transition: transform .55s ease;
}
.tpo-hero-list-item:hover .thumb img {
  transform: scale(1.06);
}

/* ----- 4.1.7 / Immersive hero — subtle Ken-Burns slow zoom ----- */
.tpo-hero-immersive img {
  transition: transform 8s ease-out;
}
.tpo-hero-immersive:hover img {
  transform: scale(1.04);
}
.tpo-hero-immersive .title {
  transition: transform .45s ease;
}
.tpo-hero-immersive:hover .title {
  transform: translateY(-2px);
}

/* ----- 4.1.8 / Trending chip row above hero ----- */
.tpo-trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0 4px 0;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--c-rule);
  padding-bottom: 14px;
}
.tpo-trending-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-gold);
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tpo-trending-label svg {
  width: 14px;
  height: 14px;
}
.tpo-trending a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--c-paper-deep);
  color: var(--c-ink);
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.tpo-trending a:hover {
  background: var(--c-gold);
  color: #131313;
  border-color: var(--c-gold);
  transform: translateY(-1px);
}
.tpo-trending a .rank {
  color: var(--c-gold-deep);
  font-weight: 800;
  margin-right: 2px;
}
.tpo-trending a:hover .rank {
  color: #131313;
}

/* ----- 4.1.9 / Article — refined type ladder + first-letter lede ----- */
.tpo-article-title {
  font-size: clamp(28px, 4.6vw, 54px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.018em;
}
.tpo-article-deck {
  font-size: clamp(17px, 1.8vw, 22px) !important;
  line-height: 1.45;
  color: var(--c-ink-soft);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
}

/* First paragraph after hero — slightly larger lede style */
.tpo-article-body > p:first-of-type {
  font-size: 1.08em;
  line-height: 1.7;
  color: var(--c-ink);
}

/* Smoother image fade-in */
.tpo-article-body img,
.tpo-article-hero img {
  opacity: 0;
  transition: opacity .55s ease;
}
.tpo-article-body img.is-loaded,
.tpo-article-hero img.is-loaded,
.tpo-article-body img[loading="eager"],
.tpo-article-hero img[loading="eager"] {
  opacity: 1;
}

/* ----- 4.1.10 / Sticky article TOC sidebar (desktop only) ----- */
.tpo-article-wrap {
  display: block;
}
@media (min-width: 1100px) {
  .tpo-article.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 56px;
    align-items: start;
  }
  .tpo-article.has-toc .tpo-article-header,
  .tpo-article.has-toc .tpo-article-hero,
  .tpo-article.has-toc .tpo-share {
    grid-column: 1 / -1;
  }
  .tpo-article.has-toc .tpo-article-body,
  .tpo-article.has-toc .tpo-tags {
    grid-column: 1 / 2;
  }
  .tpo-article-toc {
    grid-column: 2 / 3;
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 18px 0 0 22px;
    border-left: 2px solid var(--c-rule);
    font-family: 'Source Sans 3', sans-serif;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .tpo-article-toc::-webkit-scrollbar { width: 4px; }
  .tpo-article-toc::-webkit-scrollbar-thumb { background: var(--c-rule); border-radius: 2px; }
  .tpo-article-toc-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold-deep);
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-rule);
  }
  .tpo-article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .tpo-article-toc li {
    margin: 0;
    padding: 0;
    line-height: 1.35;
  }
  .tpo-article-toc a {
    display: block;
    padding: 7px 0 7px 12px;
    margin-left: -14px;
    border-left: 2px solid transparent;
    color: var(--c-ink-soft);
    text-decoration: none;
    font-size: 13.5px;
    transition: all .2s ease;
  }
  .tpo-article-toc a:hover {
    color: var(--c-navy);
    border-left-color: var(--c-rule);
  }
  .tpo-article-toc a.is-active {
    color: var(--c-navy);
    border-left-color: var(--c-gold);
    font-weight: 600;
  }
  :root[data-theme="dark"] .tpo-article-toc a.is-active {
    color: var(--c-gold);
  }
}
@media (max-width: 1099px) {
  .tpo-article-toc { display: none; }
}

/* ----- 4.1.11 / Subtle scroll-snap on hub band headings ----- */
@media (min-width: 960px) {
  .tpo-section {
    scroll-margin-top: 84px;
  }
}

/* ----- 4.1.12 / View-Transition smooth nav (Chrome 111+) ----- */
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .28s;
    animation-timing-function: cubic-bezier(.2,.7,.2,1);
  }
  .tpo-hero-immersive img {
    view-transition-name: hero-image;
  }
}

/* ----- 4.1.13 / Newsroom-style "section divider" ornament ----- */
.tpo-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px 0;
  color: var(--c-gold);
}
.tpo-divider-ornament::before,
.tpo-divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-rule), transparent);
  max-width: 140px;
}
.tpo-divider-ornament svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ----- 4.1.14 / "Save for later" bookmark button ----- */
.tpo-save-btn {
  background: transparent;
  border: 1px solid var(--c-rule);
  color: var(--c-ink-soft);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .25s ease;
  margin-left: auto;
}
.tpo-save-btn svg { width: 14px; height: 14px; }
.tpo-save-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-navy);
  background: rgba(201,164,73,0.08);
}
.tpo-save-btn.is-saved {
  background: var(--c-gold);
  color: #131313;
  border-color: var(--c-gold);
}
.tpo-save-btn.is-saved svg { fill: currentColor; }

/* ----- 4.1.15 / Refined dark mode tones (warmer) ----- */
:root[data-theme="dark"] {
  --c-paper: #14171c;
  --c-paper-deep: #1a1d24;
  --c-paper-band: #181b22;
  --c-ink: #f3f0e6;
  --c-ink-soft: #c8c3b1;
  --c-rule: #2a2f3a;
}
:root[data-theme="dark"] .tpo-ticker {
  background: linear-gradient(90deg, #0a0d14 0%, #161922 100%);
}
:root[data-theme="dark"] .tpo-trending a {
  background: #1a1d24;
  border-color: #2a2f3a;
  color: var(--c-ink);
}
:root[data-theme="dark"] .tpo-trending a:hover {
  background: var(--c-gold);
  color: #131313;
}

/* ----- 4.1.16 / Article share-row refinement w/ save button ----- */
.tpo-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tpo-share-label {
  margin-right: 4px;
}
.tpo-share a {
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.tpo-share a:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ----- 4.1.17 / Smooth section reveal: stagger child cards ----- */
.tpo-grid--4 .tpo-card,
.tpo-grid--3 .tpo-card {
  opacity: 1;
}
.tpo-reveal .tpo-card { opacity: 0; transform: translateY(12px); transition: all .55s cubic-bezier(.2,.7,.2,1); }
.tpo-reveal.is-visible .tpo-card { opacity: 1; transform: translateY(0); }
.tpo-reveal.is-visible .tpo-card:nth-child(1) { transition-delay: .00s; }
.tpo-reveal.is-visible .tpo-card:nth-child(2) { transition-delay: .06s; }
.tpo-reveal.is-visible .tpo-card:nth-child(3) { transition-delay: .12s; }
.tpo-reveal.is-visible .tpo-card:nth-child(4) { transition-delay: .18s; }

/* ----- 4.1.18 / Footer mast — slim refinement ----- */
.tpo-footer-mast .nameplate {
  background: linear-gradient(90deg, transparent, var(--c-gold) 30%, var(--c-gold) 70%, transparent) bottom no-repeat;
  background-size: 100% 1px;
  padding-bottom: 14px;
}

/* ----- 4.1.19 / Print refinements (extend) ----- */
@media print {
  .tpo-ticker,
  .tpo-trending,
  .tpo-article-toc,
  .tpo-save-btn { display: none !important; }
}
