/* ===========================================================
   IRCTC Online — "Modern Rail Blue" Premium Design System
   Fonts: Sora (display) + Plus Jakarta Sans (body)
   =========================================================== */

:root {
  /* Brand blues */
  --blue-50:  #EEF4FF;
  --blue-100: #DCE8FF;
  --blue-200: #BAD0FF;
  --blue-300: #8FB4FF;
  --blue-500: #2E6BFF;
  --blue-600: #1E5FE0;
  --blue-700: #1B4FC0;
  --blue-900: #0A2A66;
  --blue-950: #071B43;

  /* Accent (energy / CTA highlights) */
  --amber-400: #FFB020;
  --amber-500: #F59E0B;
  --teal-400:  #19C2B8;

  /* Neutrals */
  --white: #FFFFFF;
  --ink:   #0B1B33;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --surface:   #F5F8FF;

  /* Typography */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows (soft, layered) */
  --sh-xs: 0 1px 2px rgba(10, 42, 102, 0.06);
  --sh-sm: 0 2px 8px rgba(10, 42, 102, 0.07);
  --sh-md: 0 10px 30px rgba(10, 42, 102, 0.10);
  --sh-lg: 0 24px 60px rgba(10, 42, 102, 0.16);
  --sh-blue: 0 16px 40px rgba(30, 95, 224, 0.28);

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --maxw: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-950);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-700); color:#fff; transform: translateY(-2px); box-shadow: 0 20px 46px rgba(30,95,224,.36); }
.btn--secondary { background: #fff; color: var(--blue-700); border-color: var(--blue-200); box-shadow: var(--sh-xs); }
.btn--secondary:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn--amber { background: linear-gradient(135deg, var(--amber-400), var(--amber-500)); color: #3a2400; box-shadow: 0 14px 34px rgba(245,158,11,.34); }
.btn--amber:hover { transform: translateY(-2px); color:#3a2400; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Disclaimer banner ---------- */
.disclaimer-banner {
  background: var(--blue-950); color: #DCE8FF;
  font-size: 13px; text-align: center;
}
.disclaimer-banner__text { padding: 8px 0; }
.disclaimer-banner__link { color: #fff; text-decoration: underline; font-weight: 600; margin-left: 6px; }

/* ---------- Smart app banner ---------- */
.smart-banner { background: var(--surface); border-bottom: 1px solid var(--slate-200); }
.smart-banner .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 16px; }
.smart-banner__content { display: flex; align-items: center; gap: 12px; }
.smart-banner__icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--sh-xs); }
.smart-banner__info h4 { font-size: 14px; color: var(--blue-950); }
.smart-banner__info p { font-size: 12px; color: var(--slate-500); }
.smart-banner__close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--slate-400); cursor: pointer; padding: 4px 8px; }
.smart-banner__close:hover { color: var(--slate-600); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
}
.header__container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 14px rgba(30,95,224,.28)); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--blue-950); line-height: 1; }
.brand__word span { color: var(--blue-600); font-weight: 600; }
.brand__tag { display:block; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  color: var(--slate-600); padding: 9px 14px; border-radius: var(--r-pill);
  transition: color .18s, background .18s;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link--active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle__bar { width: 24px; height: 2px; background: var(--blue-950); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(46,107,255,.16), transparent 60%),
    radial-gradient(720px 380px at 4% 18%, rgba(25,194,184,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 112px);
}
.hero__rails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; z-index: 0; }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--blue-100); color: var(--blue-700);
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: var(--sh-xs); margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(25,194,184,.18); }
.hero__title { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.hero__title .grad {
  background: linear-gradient(120deg, var(--blue-600), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle { font-size: clamp(16px, 2.1vw, 20px); color: var(--slate-600); margin: 22px 0 32px; max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero__trust span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-600); font-weight: 500; }
.hero__trust svg { width: 18px; height: 18px; color: var(--teal-400); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: #fff; }
.section--gray { background: var(--surface); }
.section--primary {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(46,107,255,.5), transparent 60%),
    linear-gradient(135deg, var(--blue-900), var(--blue-950));
}
.section__eyebrow { display:block; text-align:center; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.section__title { text-align: center; font-size: clamp(26px, 4vw, 40px); }
.section__lead { text-align: center; color: var(--slate-600); max-width: 680px; margin: 16px auto 0; font-size: 17px; }
.text-center { text-align: center; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 48px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--sh-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 26px;
  background: var(--blue-50); margin-bottom: 16px;
}
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__description { color: var(--slate-600); font-size: 14.5px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--blue-600); }
.card__link:hover { gap: 10px; }
.card__link svg { width: 16px; height: 16px; transition: transform .18s; }

/* Featured app-promo card */
.card--featured {
  background: linear-gradient(150deg, var(--blue-600), var(--blue-900)); border-color: transparent; color: #fff;
  box-shadow: var(--sh-blue);
}
.card--featured .card__title, .card--featured .card__icon { color: #fff; }
.card--featured .card__icon { background: rgba(255,255,255,.14); }
.card--featured .card__description { color: rgba(255,255,255,.86); }
.card--featured .card__link { color: #fff; }
.tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--amber-400); color: #3a2400; font-family: var(--font-display);
  font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* Popular guides (text cards) */
.guide-card { background:#fff; border:1px solid var(--slate-200); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); transition: transform .22s, box-shadow .22s, border-color .22s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.guide-card__kicker { font-family: var(--font-display); font-weight:700; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--blue-500); }
.guide-card h3 { font-size: 19px; margin: 10px 0; }

/* ---------- Newsletter ---------- */
.newsletter { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); }
.newsletter p { color: rgba(255,255,255,.85); margin-top: 14px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.newsletter-form input {
  flex: 1; min-width: 240px; padding: 14px 18px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.10);
  color: #fff; font-size: 15px; font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.16); }
.newsletter__fine { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--r-md);
  padding: 20px 24px; box-shadow: var(--sh-xs); transition: border-color .2s, box-shadow .2s;
}
.faq__item:hover { border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.faq__question { font-size: 16.5px; color: var(--blue-950); display: flex; gap: 10px; align-items: flex-start; }
.faq__question::before { content: "Q"; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.faq__answer { color: var(--slate-600); font-size: 14.5px; margin-top: 10px; padding-left: 32px; }

/* ---------- Ad slot ---------- */
.ad-slot { max-width: var(--maxw); margin: 0 auto; padding: 24px; }
.ad-slot__inner { min-height: 90px; border: 1px dashed var(--slate-200); border-radius: var(--r-md); display: grid; place-items: center; color: var(--slate-400); font-size: 12px; background: var(--surface); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: #B8C9EC; padding: 64px 0 32px; }
.footer__disclaimer { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 18px 22px; font-size: 13.5px; color: #C9D8F5; margin-bottom: 48px; }
.footer__disclaimer a { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px; }
.footer__section-title { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__link { color: #9FB4DD; font-size: 14px; }
.footer__link:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 24px; text-align: center; font-size: 13px; color: #8499C4; }
.footer__bottom a { color: #C9D8F5; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .14s; }
  .reveal-3 { animation-delay: .23s; } .reveal-4 { animation-delay: .32s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
  .hero__rails .train { animation: glide 14s linear infinite; }
  @keyframes glide { from { transform: translateX(-120px); } to { transform: translateX(1320px); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--slate-200);
         transform: translateY(-130%); opacity: 0; visibility: hidden; pointer-events: none;
         transition: transform .3s ease, opacity .25s ease, visibility .25s; box-shadow: var(--sh-md); }
  .nav--active { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 14px; gap: 4px; }
  .nav__link { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .brand__tag { display: none; }
  .smart-banner__info p { display: none; }
}

/* ===========================================================
   COMPAT LAYER — aliases old style.css tokens to the new system
   so inner-page inline styles keep working after rollout
   =========================================================== */
:root {
  --primary-color: var(--blue-600); --primary: var(--blue-600);
  --primary-dark: var(--blue-900); --primary-light: var(--blue-300);
  --secondary-color: var(--teal-400); --secondary-dark: #0E8F88; --accent-color: var(--amber-400);
  --black: #000;
  --gray-50: #F8FAFC; --gray-100: var(--slate-100); --gray-200: var(--slate-200);
  --gray-300: #CBD5E1; --gray-400: var(--slate-400); --gray-500: var(--slate-500);
  --gray-600: var(--slate-600); --gray-700: var(--slate-700); --gray-800: #1E293B; --gray-900: var(--ink);
  --success: #16A34A; --error: #DC2626; --info: var(--blue-600); --warning: #D97706;
  --warning-50: #FFFBEB; --warning-500: #F59E0B; --warning-700: #B45309; --warning-800: #92400E; --warning-900: #78350F;
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl); --radius-2xl: 32px; --radius-full: var(--r-pill);
  --space-1: var(--s-1); --space-2: var(--s-2); --space-3: var(--s-3); --space-4: var(--s-4);
  --space-5: var(--s-5); --space-6: var(--s-6); --space-8: var(--s-8); --space-10: var(--s-10);
  --space-12: var(--s-12); --space-16: var(--s-16); --space-20: var(--s-20);
  --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 18px; --text-xl: 20px;
  --text-2xl: 24px; --text-3xl: 30px; --text-4xl: 36px; --text-5xl: 48px;
  --shadow-sm: var(--sh-xs); --shadow-md: var(--sh-sm); --shadow-lg: var(--sh-md);
  --shadow-xl: var(--sh-lg); --shadow-2xl: var(--sh-lg);
  --font-primary: var(--font-body); --font-secondary: var(--font-display);
  --header-height: var(--header-h); --container-max-width: var(--maxw);
  --transition-fast: .15s ease; --transition-base: .2s ease; --transition-slow: .3s ease;
}

/* ---------- Article / prose ---------- */
main.section { padding: clamp(40px,6vw,72px) 0; }
.article { max-width: 840px; margin: 0 auto; background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--r-lg); padding: clamp(22px,4vw,52px); box-shadow: var(--sh-sm); }
.article__header { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--slate-200); }
.article__title { font-size: clamp(27px,4.2vw,42px); line-height: 1.16; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--slate-500); font-size: 14px; font-weight: 500; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__featured-image img { width: 100%; border-radius: var(--r-md); margin-bottom: 28px; box-shadow: var(--sh-sm); }
.article__content { font-size: 16.5px; color: var(--slate-700); line-height: 1.8; }
.article__content > p { margin: 0 0 20px; }
.article__content h2 { font-size: clamp(22px,3vw,30px); margin: 40px 0 16px; }
.article__content h3 { font-size: 20px; margin: 28px 0 12px; color: var(--blue-900); }
.article__content h4 { font-size: 17px; margin: 22px 0 10px; color: var(--blue-900); }
.article__content ul, .article__content ol { margin: 0 0 20px; padding-left: 24px; }
.article__content li { margin-bottom: 10px; }
.article__content a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 2px; }
.article__content a:hover { text-decoration-color: var(--blue-600); }
.article__content strong { color: var(--blue-950); font-weight: 700; }
.article__content code { background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 6px; padding: 2px 7px; font-size: .9em; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--blue-700); }
.article__content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; box-shadow: var(--sh-xs); border-radius: var(--r-md); overflow: hidden; }
.article__content th { background: var(--blue-50); color: var(--blue-900); text-align: left; padding: 12px 14px; font-weight: 700; }
.article__content td { padding: 12px 14px; border-top: 1px solid var(--slate-200); }
.article__content blockquote { border-left: 4px solid var(--blue-500); background: var(--surface); padding: 14px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 0 0 20px; color: var(--slate-600); }
.article__content img { border-radius: var(--r-md); margin: 8px 0 24px; box-shadow: var(--sh-sm); }
.article__content .faq { margin-top: 40px; }
.article__content .faq h2 { margin-bottom: 8px; }

/* ---------- Table of contents ---------- */
.toc { background: var(--surface); border: 1px solid var(--slate-200); border-radius: var(--r-md); padding: 20px 24px; margin: 0 0 32px; }
.toc__title { font-size: 16px; margin-bottom: 12px; color: var(--blue-950); }
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc__link { color: var(--slate-600); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.toc__link:hover, .toc__link--active { color: var(--blue-600); }

/* ---------- Social share ---------- */
.social-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; padding: 14px 0; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.social-share__title { font-size: 14px; font-weight: 700; color: var(--blue-950); margin: 0; }
.social-share__buttons { display: flex; gap: 10px; }
.social-share__btn { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: #fff; transition: transform .15s, filter .15s; }
.social-share__btn svg { width: 18px; height: 18px; }
.social-share__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.social-share__btn--facebook { background: #1877F2; }
.social-share__btn--twitter { background: #0F1419; }
.social-share__btn--linkedin { background: #0A66C2; }
.social-share__btn--whatsapp { background: #25D366; }
.social-share__btn--copy { background: var(--blue-600); }
.social-share-floating { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: none; }
.social-share-toggle { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); cursor: pointer; display: grid; place-items: center; }
.social-share-toggle svg { width: 22px; height: 22px; }
.social-share-menu { position: absolute; bottom: 62px; right: 4px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.social-share-menu.active { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 880px) { .social-share-floating { display: block; } }

/* ---------- Ad container (hide if empty) ---------- */
.ad-container { margin: 28px 0; min-height: 90px; border: 1px dashed var(--slate-200); border-radius: var(--r-md); display: grid; place-items: center; background: var(--surface); color: var(--slate-400); font-size: 12px; }
.ad-container:empty { display: none; }

/* Fix: buttons inside content cards shouldn't stretch full-width */
.card .btn, .card > a[href]:not(.card__link) { align-self: flex-start; }
.card { align-items: stretch; }
.card > h2, .card > h3, .card > p, .card > ul, .card > ol { width: 100%; }
