/* ============================================================
   A9Play Content Sections — Shared Stylesheet
   Used by: /blog/, /help/, /news/, /guides/
   Version: 2026-04-27
   ============================================================ */

:root{
  --bg:#ffffff;
  --bg-2:#fafafa;
  --surface:#ffffff;
  --surface-2:#f9f9f7;
  --surface-3:#f3f3f0;
  --line:rgba(0,0,0,.08);
  --line-strong:rgba(0,0,0,.16);
  --line-burgundy:rgba(139,29,36,.20);
  --line-gold:rgba(184,137,63,.30);
  --gold:#b8893f;
  --gold-2:#d4a857;
  --gold-deep:#8a6420;
  --burgundy:#8b1d24;
  --burgundy-deep:#6d1218;
  --burgundy-soft:#a82832;
  --orange:#c2410c;
  --orange-deep:#9a3412;
  --text:#1a1a1a;
  --text-soft:#4a4a4a;
  --muted:#888;
  --shadow-card:0 1px 3px rgba(0,0,0,.04), 0 4px 16px -4px rgba(0,0,0,.06);
  --shadow-soft:0 4px 24px -8px rgba(0,0,0,.10);
  --shadow-burgundy:0 8px 24px -8px rgba(139,29,36,.30);
  --radius:14px;
  --radius-sm:10px;
  --body:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display:"Big Caslon", "Iowan Old Style", "Apple Garamond", "Baskerville", "Cambria", Georgia, "Times New Roman", serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;background:var(--bg);color-scheme:light only}
html, body{background:#ffffff !important; color:#1a1a1a !important}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:16px;
  line-height:1.7;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:var(--burgundy);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--burgundy-deep);text-decoration:underline}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--display);font-weight:700;letter-spacing:-.005em;margin:0 0 .5em;color:var(--text)}
h1{font-size:clamp(2rem, 4.5vw, 2.8rem);line-height:1.15}
h2{font-size:clamp(1.4rem, 3vw, 1.85rem);line-height:1.25;margin-top:1.6em}
h3{font-size:1.2rem;margin-top:1.4em}
p{margin:0 0 1.1em}
ul, ol{margin:0 0 1.1em;padding-left:1.4em}
li{margin-bottom:.4em}
strong{color:var(--text);font-weight:700}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.container-narrow{max-width:760px;margin:0 auto;padding:0 24px}

/* ===== Header ===== */
header.site{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:42px;width:auto}
.brand .word{font-family:var(--display);font-weight:700;font-size:1.2rem;letter-spacing:.18em;color:var(--orange);text-transform:uppercase}
.nav-links{display:none;gap:6px;align-items:center}
.nav-links a{font-size:.92rem;font-weight:600;color:var(--orange);padding:8px 14px;border-radius:8px}
.nav-links a:hover{background:rgba(194,65,12,.08);color:var(--orange-deep);text-decoration:none}
.nav-links a.is-active{background:rgba(194,65,12,.10);color:var(--orange-deep)}
.nav-cta{display:none}
@media (min-width:840px){.nav-links, .nav-cta{display:inline-flex}}

/* Hamburger */
.hamburger{
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  width:44px;height:44px;background:transparent;border:1px solid var(--line-burgundy);
  border-radius:10px;cursor:pointer;padding:0;
}
.hamburger span{display:block;width:20px;height:2px;background:var(--orange);border-radius:2px;transition:all .25s}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (min-width:840px){.hamburger{display:none}}

/* Mobile drawer */
@media (max-width:839px){
  .nav-links{
    display:flex;flex-direction:column;align-items:stretch;gap:2px;
    position:absolute;top:100%;left:0;right:0;background:#fff;
    border-bottom:1px solid var(--line);box-shadow:0 8px 28px -8px rgba(0,0,0,.10);
    max-height:0;overflow:hidden;padding:0 16px;transition:max-height .3s, padding .3s;
  }
  .nav-links.is-open{max-height:80vh;padding:12px 16px 16px}
  .nav-links a{padding:13px 14px;font-size:1rem}
  .nav-cta{display:inline-flex !important;width:100%;margin-top:10px;justify-content:center}
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:600;font-size:.95rem;padding:12px 22px;border-radius:10px;
  border:1px solid transparent;cursor:pointer;transition:all .25s;text-decoration:none;
}
.btn-primary{
  background:linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color:#fff;border-color:var(--burgundy-deep);
  box-shadow:var(--shadow-burgundy);
}
.btn-primary:hover{transform:translateY(-2px);color:#fff;text-decoration:none}
.btn-ghost{background:#fff;border-color:var(--line-burgundy);color:var(--burgundy)}
.btn-ghost:hover{background:rgba(184,137,63,.06);border-color:var(--burgundy);text-decoration:none}
.btn-sm{padding:8px 14px;font-size:.85rem}

/* ===== Breadcrumbs ===== */
.breadcrumbs{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
  font-size:.85rem;color:var(--muted);
  padding:18px 0;border-bottom:1px solid var(--line);
  margin-bottom:32px;
}
.breadcrumbs a{color:var(--burgundy);font-weight:500}
.breadcrumbs span.sep{color:var(--muted)}
.breadcrumbs span.current{color:var(--text);font-weight:600}

/* ===== Section Hero ===== */
.section-hero{
  padding:50px 0 30px;
  text-align:center;
  border-bottom:1px solid var(--line);
  margin-bottom:50px;
}
.section-hero .eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:var(--burgundy);
  padding:8px 14px;border-radius:999px;
  background:rgba(139,29,36,.07);border:1px solid var(--line-burgundy);
  margin-bottom:18px;
}
.section-hero .eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold)}
.section-hero p{color:var(--text-soft);max-width:640px;margin:14px auto 0;font-size:1.05rem}

/* ===== Article Cards (for index pages) ===== */
.article-grid{
  display:grid;gap:24px;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom:50px;
}
.article-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;transition:all .25s;
  display:flex;flex-direction:column;
  box-shadow:var(--shadow-card);
}
.article-card:hover{
  transform:translateY(-3px);
  border-color:var(--line-strong);
  box-shadow:0 12px 30px -10px rgba(0,0,0,.12);
}
.article-card .thumb{
  aspect-ratio:16/9;
  background:linear-gradient(135deg, var(--surface-3), var(--surface-2));
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  color:var(--gold-deep);font-family:var(--display);font-size:3rem;font-weight:700;
}
.article-card .thumb.has-img{background:#000}
.article-card .thumb img{width:100%;height:100%;object-fit:cover}
.article-card .body{padding:22px;display:flex;flex-direction:column;flex:1}
.article-card .meta{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  font-size:.78rem;color:var(--muted);margin-bottom:10px;
}
.article-card .cat{
  display:inline-block;padding:3px 10px;border-radius:999px;
  background:rgba(184,137,63,.10);color:var(--burgundy);
  font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;
}
.article-card h3{font-size:1.15rem;margin:0 0 8px;line-height:1.3}
.article-card h3 a{color:var(--text)}
.article-card h3 a:hover{color:var(--burgundy);text-decoration:none}
.article-card .excerpt{color:var(--text-soft);font-size:.93rem;margin:0 0 16px;flex:1}
.article-card .read-more{
  font-weight:600;color:var(--burgundy);font-size:.9rem;
  display:inline-flex;align-items:center;gap:4px;
}
.article-card .read-more::after{content:"→";transition:transform .2s}
.article-card .read-more:hover::after{transform:translateX(4px)}

/* ===== Article Page Layout ===== */
.article-page{padding:0 0 60px}
.article-header{margin-bottom:36px}
.article-header .meta{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;
  font-size:.85rem;color:var(--muted);margin-bottom:18px;
}
.article-header .meta .author{color:var(--text-soft);font-weight:600}
.article-header .meta .dot::before{content:"·";margin:0 4px;color:var(--muted)}
.article-header h1{margin-bottom:16px}
.article-header .lede{font-size:1.18rem;color:var(--text-soft);line-height:1.6}
.article-hero-image{
  border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);
  margin:30px 0 40px;aspect-ratio:16/9;background:var(--surface-2);
}
.article-hero-image img{width:100%;height:100%;object-fit:cover}

/* Article body typography */
.article-body{font-size:1.05rem;line-height:1.78}
.article-body p{margin-bottom:1.3em}
.article-body h2{
  margin-top:1.8em;padding-top:.4em;font-size:1.6rem;
  border-top:1px solid var(--line);padding-top:.8em;
}
.article-body h3{margin-top:1.6em;font-size:1.25rem;color:var(--burgundy)}
.article-body ul, .article-body ol{padding-left:1.5em}
.article-body li{margin-bottom:.5em;color:var(--text-soft)}
.article-body li strong{color:var(--text)}
.article-body blockquote{
  border-left:4px solid var(--gold);padding:14px 22px;margin:24px 0;
  background:var(--surface-2);border-radius:0 8px 8px 0;
  color:var(--text-soft);font-style:italic;
}
.article-body blockquote p:last-child{margin-bottom:0}
.article-body code{
  background:var(--surface-3);padding:2px 6px;border-radius:4px;
  font-family:ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size:.92em;color:var(--burgundy);
}
.article-body pre{
  background:#1a1a1a;color:#f8f0db;padding:18px;border-radius:8px;
  overflow-x:auto;margin:20px 0;
}
.article-body pre code{background:transparent;color:inherit;padding:0}
.article-body img, .article-body figure{margin:24px 0;border-radius:8px;overflow:hidden}
.article-body figure img{margin:0}
.article-body figcaption{font-size:.85rem;color:var(--muted);text-align:center;padding:8px 4px}
.article-body table{
  width:100%;border-collapse:collapse;margin:20px 0;font-size:.95rem;
}
.article-body th, .article-body td{
  text-align:left;padding:12px 14px;border:1px solid var(--line);
}
.article-body th{background:var(--surface-2);font-weight:700;color:var(--text)}
.article-body td{color:var(--text-soft)}

/* Callouts */
.callout{
  padding:18px 22px;border-radius:10px;border-left:4px solid;
  margin:24px 0;background:var(--surface-2);
}
.callout.info{border-color:var(--burgundy)}
.callout.tip{border-color:var(--gold);background:rgba(184,137,63,.06)}
.callout.warn{border-color:var(--orange);background:rgba(194,65,12,.05)}
.callout strong{display:block;margin-bottom:6px;color:var(--text)}
.callout p:last-child{margin-bottom:0}

/* Step list (for guides) */
.step-list{counter-reset:stepnum;list-style:none;padding:0;margin:30px 0}
.step-list > li{
  position:relative;padding:24px 24px 24px 70px;margin-bottom:16px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  counter-increment:stepnum;
  box-shadow:var(--shadow-card);
}
.step-list > li::before{
  content:counter(stepnum);
  position:absolute;left:18px;top:22px;
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color:#fff;font-family:var(--display);font-weight:700;font-size:1.1rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-burgundy);
}
.step-list h3{margin:0 0 8px;font-size:1.15rem;color:var(--text)}
.step-list p:last-child{margin-bottom:0}

/* Share row */
.share-row{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  margin:40px 0 30px;padding:20px 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.share-row .label{font-size:.85rem;color:var(--muted);font-weight:600;margin-right:8px}
.share-row a.share{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.85rem;font-weight:600;
  padding:7px 14px;border-radius:8px;
  background:var(--surface-2);border:1px solid var(--line);
  color:var(--text-soft);
}
.share-row a.share:hover{background:rgba(184,137,63,.08);border-color:var(--line-strong);text-decoration:none}

/* Author box */
.author-box{
  display:flex;gap:18px;align-items:center;
  padding:20px;background:var(--surface-2);border-radius:var(--radius);
  margin:30px 0;
}
.author-box .avatar{
  width:60px;height:60px;border-radius:50%;
  background:linear-gradient(135deg, var(--burgundy), var(--gold-deep));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-weight:700;font-size:1.4rem;flex-shrink:0;
}
.author-box .info h4{margin:0 0 4px;font-size:1rem;color:var(--text);font-family:var(--body);font-weight:700}
.author-box .info p{margin:0;font-size:.85rem;color:var(--muted)}

/* Related articles */
.related{margin-top:50px;padding-top:40px;border-top:1px solid var(--line)}
.related h2{margin:0 0 24px;font-size:1.4rem;border-top:none;padding-top:0}
.related-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}
.related-card{
  padding:18px;border:1px solid var(--line);border-radius:10px;
  background:#fff;transition:all .25s;
}
.related-card:hover{border-color:var(--line-strong);transform:translateY(-2px);text-decoration:none}
.related-card .cat{
  display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--burgundy);margin-bottom:6px;
}
.related-card h4{margin:0;font-size:.95rem;color:var(--text);font-family:var(--body);font-weight:600;line-height:1.35}

/* Filter chips (for index pages) */
.filter-chips{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:center;
  margin:0 0 36px;padding:0;list-style:none;
}
.filter-chips li{margin:0}
.filter-chips a{
  display:inline-block;padding:7px 16px;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);
  font-size:.85rem;font-weight:600;color:var(--text-soft);
}
.filter-chips a:hover{border-color:var(--line-strong);color:var(--burgundy);background:var(--surface-2);text-decoration:none}
.filter-chips a.is-active{background:var(--burgundy);color:#fff;border-color:var(--burgundy-deep)}

/* CTA strip */
.cta-strip{
  margin:50px 0;padding:36px 24px;
  text-align:center;border-radius:var(--radius);
  background:linear-gradient(135deg, var(--surface-2), var(--surface));
  border:1px solid var(--line-gold);
  box-shadow:var(--shadow-soft);
}
.cta-strip h2{margin:0 0 8px;font-size:1.4rem;border-top:none;padding-top:0}
.cta-strip p{color:var(--text-soft);margin:0 auto 18px;max-width:540px}
.cta-strip .btn-row{display:inline-flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* Empty state (no articles yet) */
.empty-state{
  text-align:center;padding:60px 20px;
  background:var(--surface-2);border-radius:var(--radius);
  border:1px dashed var(--line-strong);
  margin:30px 0;
}
.empty-state h3{margin:0 0 10px;font-size:1.3rem}
.empty-state p{color:var(--muted);max-width:440px;margin:0 auto}

/* Footer */
footer.site{
  border-top:1px solid var(--line);padding:50px 0 30px;margin-top:60px;
  background:var(--surface-2);
}
.foot-grid{
  display:grid;gap:30px;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom:36px;
}
.foot-grid h4{font-size:.82rem;color:var(--orange);text-transform:uppercase;letter-spacing:.18em;margin-bottom:14px;font-weight:700;font-family:var(--body)}
.foot-grid ul{list-style:none;padding:0;margin:0}
.foot-grid li{margin-bottom:8px}
.foot-grid a{color:var(--orange);font-size:.92rem;font-weight:500}
.foot-grid a:hover{color:var(--orange-deep)}
.foot-bottom{
  border-top:1px solid var(--line);padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;
  font-size:.85rem;color:var(--muted);
}

/* Mobile tweaks */
@media (max-width:839px){
  h1{font-size:1.85rem !important}
  h2{font-size:1.4rem !important}
  .container, .container-narrow{padding:0 16px}
  .article-header h1{font-size:1.85rem}
  .article-body{font-size:1rem}
  .step-list > li{padding:20px 18px 20px 60px}
  .step-list > li::before{width:34px;height:34px;font-size:1rem;left:14px;top:18px}
  .section-hero{padding:40px 0 24px;margin-bottom:40px}
  .article-card .body{padding:18px}
  .breadcrumbs{font-size:.8rem;padding:14px 0;margin-bottom:24px}
  .related-grid{grid-template-columns:1fr}
  .author-box{flex-direction:column;text-align:center}
}

::selection{background:rgba(184,137,63,.25);color:var(--text)}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}


/* ============================================================
   v11 ADDITIONS
   ============================================================ */

/* picture wrappers should not affect layout */
picture { display:contents }

/* Brand link consistency */
a.brand { text-decoration:none !important; color:inherit }

/* Reading progress bar */
#progress-bar { will-change:width }

/* Table of contents anchor scroll offset (account for sticky header) */
.article-body h2[id]::before {
  content:""; display:block; height:60px; margin-top:-60px; visibility:hidden;
}

/* Print styles */
@media print {
  header.site, footer.site, .share-row, .related, .cta-strip, #progress-bar { display:none !important }
  body { background:#fff; color:#000 }
  a { color:#000; text-decoration:underline }
  .article-body { font-size:11pt; line-height:1.5 }
}
