/* Generated article pages (scripts/editorial). Reuses tokens from /styles.css — do not redeclare :root here. */

.a-page { background: var(--cream); }
.a-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; background: transparent; }
.a-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-bright), #E8641B); transition: width .1s linear; }

/* Hero: warm saffron glow with soft rangoli-like circles */
.a-hero { position: relative; overflow: hidden; text-align: center; padding: 56px 20px 64px;
  background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.18) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 75%, rgba(255,255,255,.14) 0 90px, transparent 91px),
    radial-gradient(circle at 75% 10%, rgba(255,255,255,.1) 0 30px, transparent 31px),
    linear-gradient(135deg, #E8641B 0%, var(--gold) 55%, var(--gold-bright) 100%); }
.a-chip { display: inline-block; background: rgba(255,255,255,.92); color: var(--gold-dark); font-weight: 700;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.a-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; font-weight: 700;
  max-width: 760px; margin: 16px auto 0; text-shadow: 0 2px 12px rgba(80,30,0,.25); }
.a-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.a-meta span { background: rgba(0,0,0,.14); color: #fff; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }

/* Body: large, easy-to-read text */
.a-body { max-width: 700px; margin: -28px auto 0; padding: 32px 20px 24px; background: var(--cream-warm);
  border-radius: 24px 24px 0 0; position: relative; }
.a-body p { font-size: 1.08rem; line-height: 1.8; color: var(--text-warm); margin-bottom: 18px; }
.a-lead { font-size: 1.22rem !important; line-height: 1.7 !important; font-weight: 500; }
.a-body h2 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.25; color: var(--text-warm); margin: 0 0 14px; }

.a-card { border-radius: 20px; padding: 22px 22px 8px; margin: 28px 0; }
.a-card h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.a-short { background: var(--gold-light); border: 2px dashed var(--gold-bright); }
.a-short ul { list-style: none; margin: 0; padding: 0; }
.a-short li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 1.02rem; line-height: 1.6; }
.a-short li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

.a-evidence { background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(89,55,13,.08); }
.a-evidence dl { margin: 0; }
.a-evidence div { padding: 12px 0 14px; border-top: 1px solid var(--border); }
.a-evidence div:first-child { border-top: 0; }
.a-evidence dt { color: var(--gold-dark); font-weight: 700; margin-bottom: 5px; }
.a-evidence dd { margin: 0; color: var(--text-warm); font-size: 1rem; line-height: 1.65; }

.a-curiosity { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-deep)); }
.a-curiosity::after { content: '✦'; position: absolute; right: 14px; top: -24px; color: rgba(255,255,255,.09);
  font-size: 8rem; line-height: 1; }
.a-curiosity > span { display: inline-block; position: relative; z-index: 1; color: var(--gold-bright);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.a-curiosity h2 { position: relative; z-index: 1; color: #fff; margin: 10px 0; font-size: 1.35rem; }
.a-curiosity p { position: relative; z-index: 1; color: rgba(255,255,255,.88) !important; margin-bottom: 12px; }

.a-toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin: 0 0 12px; scrollbar-width: none; }
.a-toc::-webkit-scrollbar { display: none; }
.a-toc a { flex: 0 0 auto; background: #fff; border: 1px solid var(--border); color: var(--text-warm); font-size: .88rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.a-toc a:hover { border-color: var(--gold); background: var(--gold-light); }

.a-section { padding-top: 28px; scroll-margin-top: 16px; }
.a-section h2 { display: flex; gap: 12px; align-items: center; }
.a-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem;
  background: linear-gradient(135deg, var(--gold-light), #FFE0C2); box-shadow: 0 2px 0 var(--border); }
.ref { display: inline-block; vertical-align: super; font-size: .68rem; font-weight: 700; line-height: 1; margin-left: 3px;
  padding: 3px 6px; border-radius: 999px; background: var(--emerald-light); color: var(--emerald); text-decoration: none; }

.a-try { background: var(--emerald-light); border: 2px solid #BFE8D0; }
.a-try ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.a-try li { counter-increment: step; position: relative; padding: 0 0 16px 46px; font-size: 1.02rem; line-height: 1.6; }
.a-try li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--emerald); color: #fff; font-weight: 700; display: grid; place-items: center; }

.a-words { margin: 28px 0; }
.a-words h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.a-words dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.a-words div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.a-words dt { font-weight: 700; color: var(--gold-dark); }
.a-words dd { margin: 4px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

.a-faq { margin: 32px 0; }
.a-faq h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.a-faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.a-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.a-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.a-faq details p { padding: 0 16px 6px; font-size: 1rem; }

.a-cta { text-align: center; margin: 36px 0 24px; padding: 32px 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(223,176,32,.35) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--emerald-dark), var(--emerald-deep)); }
.a-cta-icon { font-size: 2.4rem; }
.a-cta h2 { color: #fff; margin: 8px 0; }
.a-cta p { color: rgba(255,255,255,.85) !important; }
.a-stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.a-store { display: inline-block; background: var(--gold-bright); color: var(--emerald-deep); font-weight: 700; padding: 12px 20px;
  border-radius: 999px; text-decoration: none; }
.a-store:hover { background: #fff; }

.a-sources { margin: 20px 0; font-size: .92rem; }
.a-sources summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.a-sources ol { margin: 10px 0 0 20px; }
.a-sources li { margin-bottom: 6px; word-break: break-word; }

.a-related { max-width: 700px; margin: 0 auto 56px; padding: 0 20px; }
.a-related h2 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; color: var(--text-warm); }
.a-related div { display: grid; gap: 10px; }
.a-related a { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px; color: var(--text-warm); text-decoration: none; font-weight: 600; }
.a-related a:hover { border-color: var(--gold); }

/* Sticky store bar on phones once the reader is into the article */
.a-bar { display: none; }
@media (max-width: 760px) {
  .a-bar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: center;
    justify-content: space-between; gap: 10px; background: var(--emerald-deep); color: #fff; padding: 10px 10px 10px 16px;
    border-radius: 999px; box-shadow: 0 8px 24px rgba(5,46,28,.3); font-size: .88rem; }
  .a-bar .a-store { padding: 9px 16px; flex: 0 0 auto; }
  .a-body p { font-size: 1.04rem; }
  footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .a-progress span, .a-faq summary::after { transition: none; } }
