/* Shared article styles: Sphinx Agent security series */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #D4AF37; --gold-dark: #B8960F; --gold-text: #8B6F00; --gold-light: #FFF8E1;
  --parchment: #fdf6e3; --white: #fffef9; --midnight: #1e293b;
  --text: #111827; --muted: #4b5563; --border: #e7dfc8;
  --red-bg: #fdf0f0; --red-border: #b42318; --green-bg: #eff8f1; --green-border: #1f7a3a;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); }
a:hover { color: var(--midnight); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--midnight); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,254,249,0.96); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.3rem; font-weight: 800; text-decoration: none; color: var(--gold-text); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold-text); }
.nav-cta { background: var(--midnight); color: #fff !important; padding: 9px 20px; border-radius: 8px; font-weight: 600; }
.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 70px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); background: var(--gold-light); border: 1px solid #ecd98f; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.dek { font-size: 1.18rem; color: var(--muted); margin-bottom: 20px; }
.meta { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin-bottom: 30px; }
.meta strong { color: var(--text); }

h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 800; margin: 48px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 84px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 30px 0 10px; }
p { margin-bottom: 16px; font-size: 1.07rem; }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 8px; font-size: 1.05rem; }
sup a { text-decoration: none; font-size: 0.75rem; font-weight: 700; padding: 0 1px; }

.box { background: var(--parchment); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 10px; padding: 22px 24px; margin: 24px 0 30px; }
.box h2, .box h3 { margin-top: 0; }
.box ul { margin-bottom: 0; }
.box.warn { background: var(--red-bg); border-left-color: var(--red-border); }
.box.ok { background: var(--green-bg); border-left-color: var(--green-border); }
.label { font-weight: 700; }

.toc { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 34px; }
.toc p { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.toc ol { margin-bottom: 0; }
.toc li { font-size: 0.97rem; margin-bottom: 4px; }

.table-scroll { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: #fff; }
caption { text-align: left; font-weight: 700; padding: 12px 14px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--parchment); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.verdict { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; }
.v-true { background: #e3f2e7; color: #14532d; }
.v-false { background: #fbe4e4; color: #7f1d1d; }
.v-open { background: #fff2cc; color: #713f12; }

.sources { font-size: 0.93rem; }
.sources li { font-size: 0.93rem; margin-bottom: 7px; word-break: break-word; }
.cta { background: var(--midnight); color: #f8fafc; border-radius: 12px; padding: 26px; margin-top: 44px; }
.cta h2 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.cta p { color: #e2e8f0; }
.cta a.btn { display: inline-block; background: var(--gold); color: #111827; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 8px; }
.cta a.btn:hover { background: #e6c556; }

.series { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--midnight); border-radius: 10px; padding: 16px 20px; margin: 0 0 30px; }
.series p { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.series ol { margin: 0 0 0 20px; }
.series li { font-size: 0.97rem; margin-bottom: 4px; }
.series a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }
.related { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 10px; }
@media (max-width: 760px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 18px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.active { display: flex; }
  .article-wrap { padding-top: 26px; }
  p, li { font-size: 1.02rem; }
}
