/*
Theme Name: RajTantra Premium
Theme URI: https://rajtantrastories.in/
Author: RajTantra Media
Description: A lightweight, mobile-first editorial theme for RajTantra's Hindi documentary case files.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: rajtantra
*/

:root {
  --rt-ink: #101418;
  --rt-ink-soft: #182028;
  --rt-paper: #f5f0e5;
  --rt-paper-deep: #e9dfcc;
  --rt-text: #182028;
  --rt-muted: #66717a;
  --rt-gold: #c8a45e;
  --rt-gold-light: #e4cf9d;
  --rt-red: #8f2d2d;
  --rt-line: rgba(200, 164, 94, .28);
  --rt-shadow: 0 18px 60px rgba(5, 9, 12, .18);
  --rt-reading: 46rem;
  --rt-wide: 76rem;
  --rt-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rt-ink);
  color: var(--rt-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rt-gold-light); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--rt-gold); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 1rem; padding: .75rem 1rem; background: var(--rt-paper); color: var(--rt-ink); z-index: 9999; }

.rt-wrap { width: min(calc(100% - 2rem), var(--rt-wide)); margin-inline: auto; }
.rt-reading { width: min(calc(100% - 2rem), var(--rt-reading)); margin-inline: auto; }
.rt-kicker { margin: 0 0 .55rem; color: var(--rt-gold-light); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rt-heading { margin: 0; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.rt-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1rem; border: 1px solid var(--rt-gold); border-radius: 999px; background: var(--rt-gold); color: var(--rt-ink); font-size: .88rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.rt-button:hover { background: var(--rt-gold-light); color: var(--rt-ink); transform: translateY(-1px); }
.rt-button--ghost { background: transparent; color: var(--rt-paper); }
.rt-button--ghost:hover { background: rgba(255,255,255,.06); color: var(--rt-gold-light); }

.rt-topline { min-height: 4px; background: linear-gradient(90deg, var(--rt-red), var(--rt-gold), var(--rt-red)); }
.rt-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(16, 20, 24, .94); backdrop-filter: blur(14px); }
.rt-header__row { min-height: 72px; display: flex; align-items: center; gap: 1rem; }
.rt-brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--rt-paper); text-decoration: none; }
.rt-brand__mark { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--rt-line); }
.rt-brand__name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; line-height: 1; letter-spacing: .025em; }
.rt-brand__descriptor { display: block; margin-top: .28rem; color: var(--rt-gold-light); font-size: .58rem; font-weight: 800; line-height: 1; letter-spacing: .16em; text-transform: uppercase; }
.rt-nav ul { display: flex; align-items: center; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.rt-nav a { color: #eee8dc; font-size: .85rem; font-weight: 700; text-decoration: none; }
.rt-nav .current-menu-item > a, .rt-nav a:hover { color: var(--rt-gold-light); }
.rt-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: transparent; color: var(--rt-paper); cursor: pointer; }

.rt-progress { position: fixed; inset: 0 0 auto; z-index: 200; height: 3px; pointer-events: none; }
.rt-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--rt-red), var(--rt-gold)); }

.rt-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rt-line); background: radial-gradient(circle at 78% 22%, rgba(200,164,94,.18), transparent 34%), linear-gradient(145deg, #101418 0%, #172028 60%, #101418 100%); }
.rt-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent); }
.rt-hero__grid { position: relative; min-height: 540px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4.5rem, 10vw, 8rem); }
.rt-hero h1 { max-width: 12ch; font-size: clamp(2.85rem, 7vw, 6.3rem); }
.rt-hero__lead { max-width: 42rem; margin: 1.35rem 0 2rem; color: #d4d0c7; font-size: clamp(1.04rem, 2vw, 1.22rem); }
.rt-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rt-hero__emblem { justify-self: center; width: min(100%, 430px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: saturate(.92) contrast(1.05); box-shadow: 0 0 0 1px var(--rt-line), 0 35px 100px rgba(0,0,0,.48); }

.rt-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.rt-section--paper { background: var(--rt-paper); color: var(--rt-text); }
.rt-section--soft { background: var(--rt-ink-soft); }
.rt-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.rt-section__head h2 { max-width: 16ch; font-size: clamp(2rem, 5vw, 3.7rem); }
.rt-section__head p { max-width: 37rem; margin: 0; color: var(--rt-muted); }

.rt-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; }
.rt-card { position: relative; overflow: hidden; border: 1px solid rgba(16,20,24,.1); border-radius: var(--rt-radius); background: #fffdf7; box-shadow: 0 12px 35px rgba(30, 24, 16, .07); transition: transform .2s ease, box-shadow .2s ease; }
.rt-card:hover { transform: translateY(-4px); box-shadow: var(--rt-shadow); }
.rt-card__image { aspect-ratio: 16/9; overflow: hidden; background: #d8cebb; }
.rt-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rt-card:hover .rt-card__image img { transform: scale(1.025); }
.rt-card__body { padding: 1.15rem 1.2rem 1.3rem; }
.rt-card__meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-bottom: .65rem; color: #79684b; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rt-card h3 { margin: 0; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-size: clamp(1.28rem, 2vw, 1.58rem); line-height: 1.25; }
.rt-card h3 a { color: var(--rt-text); text-decoration: none; }
.rt-card p { margin: .75rem 0 0; color: var(--rt-muted); font-size: .91rem; line-height: 1.55; }
.rt-card__link { position: absolute; inset: 0; z-index: 2; }

.rt-pill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.rt-pill { display: flex; min-height: 140px; flex-direction: column; justify-content: space-between; padding: 1.25rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--rt-radius); background: rgba(255,255,255,.035); color: var(--rt-paper); text-decoration: none; }
.rt-pill span { color: var(--rt-gold-light); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rt-pill strong { font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.rt-pill:hover { border-color: var(--rt-gold); background: rgba(200,164,94,.07); }

.rt-manifesto { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.rt-manifesto blockquote { margin: 0; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1.1; }
.rt-manifesto__body { color: #d0cec8; }
.rt-manifesto__points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; margin-top: 1.5rem; }
.rt-manifesto__point { padding: 1rem; border-top: 1px solid var(--rt-line); }
.rt-manifesto__point strong { display: block; color: var(--rt-gold-light); }

.rt-page-head { padding-block: clamp(4rem, 9vw, 7rem) 3rem; border-bottom: 1px solid var(--rt-line); background: radial-gradient(circle at 80% 10%, rgba(200,164,94,.14), transparent 34%); }
.rt-page-head h1 { max-width: 18ch; font-size: clamp(2.65rem, 7vw, 5.8rem); }
.rt-page-head__intro { max-width: 43rem; margin: 1rem 0 0; color: #cbc7bd; font-size: 1.05rem; }

.rt-article { background: var(--rt-paper); color: var(--rt-text); }
.rt-article__head { padding-block: clamp(3.5rem, 8vw, 6.5rem) 2.5rem; background: var(--rt-ink); color: var(--rt-paper); }
.rt-breadcrumbs { margin-bottom: 1.2rem; color: #b8b4ac; font-size: .78rem; }
.rt-breadcrumbs a { color: var(--rt-gold-light); text-decoration: none; }
.rt-article__head h1 { max-width: 17ch; font-size: clamp(2.35rem, 6vw, 5.4rem); }
.rt-article__deck { max-width: 48rem; margin: 1.2rem 0 0; color: #d0cdc5; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.rt-article__meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: 1.45rem; color: #aaa79f; font-size: .78rem; font-weight: 700; }
.rt-article__cover { width: min(calc(100% - 2rem), 66rem); margin: 0 auto; transform: translateY(2.5rem); border-radius: var(--rt-radius); box-shadow: var(--rt-shadow); }
.rt-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(2rem, 6vw, 5rem); width: min(calc(100% - 2rem), 62rem); margin-inline: auto; padding-block: 5rem 6rem; }
.rt-article__content { max-width: var(--rt-reading); font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-size: clamp(1.08rem, 1.5vw, 1.19rem); line-height: 1.9; }
.rt-article__content > *:first-child { margin-top: 0; }
.rt-article__content h2, .rt-article__content h3 { scroll-margin-top: 105px; color: #11171b; line-height: 1.25; }
.rt-article__content h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.rt-article__content h3 { margin: 2.2rem 0 .8rem; font-size: 1.45rem; }
.rt-article__content p { margin: 0 0 1.35rem; }
.rt-article__content a { color: #6f2424; }
.rt-article__content blockquote { margin: 2rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--rt-gold); background: #eee5d5; font-size: 1.08em; }
.rt-article__content figure { margin: 2rem 0; }
.rt-article__content figcaption { margin-top: .5rem; color: var(--rt-muted); font-family: ui-sans-serif, sans-serif; font-size: .76rem; }
.rt-article__content table { width: 100%; border-collapse: collapse; font-family: ui-sans-serif, sans-serif; font-size: .9rem; }
.rt-article__content th, .rt-article__content td { padding: .75rem; border: 1px solid #d2c6b3; text-align: left; }
.rt-article__content th { background: #e9dfcc; }
.rt-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0 0 2.2rem; overflow: hidden; border: 1px solid #d8ccb8; border-radius: 14px; background: #d8ccb8; font-family: ui-sans-serif, sans-serif; }
.rt-fact { padding: .9rem 1rem; background: #fffaf0; }
.rt-fact span { display: block; color: #7b6e5d; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rt-fact strong { display: block; margin-top: .2rem; font-size: .92rem; }
.rt-toc { position: sticky; top: 100px; align-self: start; padding-left: 1rem; border-left: 1px solid #d7c9b3; color: #655f55; font-size: .78rem; }
.rt-toc strong { display: block; margin-bottom: .7rem; color: #272d31; }
.rt-toc ol { margin: 0; padding-left: 1rem; }
.rt-toc li { margin: .45rem 0; }
.rt-toc a { text-decoration: none; }
.rt-article-tools { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #d9cdb9; font-family: ui-sans-serif, sans-serif; }
.rt-tool { min-height: 42px; padding: .55rem .8rem; border: 1px solid #c9bda9; border-radius: 999px; background: transparent; color: #2b3135; font-size: .78rem; font-weight: 800; cursor: pointer; }
.rt-tool:hover { border-color: var(--rt-red); color: var(--rt-red); }

.rt-video { position: relative; margin: 2rem 0; overflow: hidden; border-radius: 14px; background: #101418; aspect-ratio: 16/9; font-family: ui-sans-serif, sans-serif; }
.rt-video button { width: 100%; height: 100%; border: 0; background: radial-gradient(circle at center, #303942, #101418); color: #fff; cursor: pointer; }
.rt-video button strong { display: block; font-size: 1.1rem; }
.rt-video button span { display: block; margin-top: .3rem; color: #d4c399; font-size: .75rem; }
.rt-video iframe { width: 100%; height: 100%; border: 0; }

.rt-content-page { padding-block: clamp(3rem, 8vw, 6rem); background: var(--rt-paper); color: var(--rt-text); }
.rt-content-page__inner { width: min(calc(100% - 2rem), var(--rt-reading)); margin-inline: auto; }
.rt-content-page__inner h2 { margin-top: 2.5rem; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif; font-size: 2rem; }
.rt-content-page__inner a { color: var(--rt-red); }

.rt-search-form { display: flex; width: min(100%, 42rem); gap: .55rem; }
.rt-search-form input { flex: 1; min-width: 0; min-height: 48px; padding: .7rem 1rem; border: 1px solid #c8bba5; border-radius: 999px; background: #fff; color: #111; }
.rt-empty { padding: 2rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--rt-radius); background: rgba(255,255,255,.04); }

.rt-footer { padding: 3rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,.09); background: #0b0f12; }
.rt-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.rt-footer h2, .rt-footer h3 { margin: 0 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.rt-footer p { max-width: 32rem; color: #aaa9a5; font-size: .88rem; }
.rt-footer ul { margin: 0; padding: 0; list-style: none; }
.rt-footer li { margin: .45rem 0; }
.rt-footer a { color: #cbc8c0; font-size: .82rem; text-decoration: none; }
.rt-footer a:hover { color: var(--rt-gold-light); }
.rt-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); color: #858581; font-size: .72rem; }

@media (max-width: 900px) {
  .rt-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .rt-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); background: #101418; }
  .rt-nav.is-open { display: block; }
  .rt-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .rt-nav a { display: block; padding: .8rem .25rem; }
  .rt-hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .rt-hero__emblem { width: min(75vw, 380px); }
  .rt-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rt-pill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rt-manifesto { grid-template-columns: 1fr; }
  .rt-article__layout { grid-template-columns: 1fr; }
  .rt-toc { position: static; order: -1; padding: 1rem; border: 1px solid #d7c9b3; border-radius: 12px; background: #eee5d5; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .rt-wrap, .rt-reading { width: min(calc(100% - 1.25rem), var(--rt-wide)); }
  .rt-brand__descriptor { display: none; }
  .rt-hero__grid { padding-block: 3.8rem; }
  .rt-hero__emblem { width: min(82vw, 330px); }
  .rt-section__head { align-items: start; flex-direction: column; }
  .rt-grid, .rt-pill-grid, .rt-manifesto__points, .rt-footer__grid { grid-template-columns: 1fr; }
  .rt-facts { grid-template-columns: 1fr; }
  .rt-article__cover { width: calc(100% - 1.25rem); border-radius: 12px; }
  .rt-article__layout { width: calc(100% - 1.25rem); padding-top: 4.25rem; }
  .rt-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .rt-header, .rt-footer, .rt-progress, .rt-article-tools, .rt-toc { display: none !important; }
  body, .rt-article, .rt-article__head { background: #fff; color: #111; }
  .rt-article__layout { display: block; width: 100%; padding: 1rem; }
  a { color: #111; }
}
