.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 20px 16px;
}

/* Ornate certificate frame */
.certificate {
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.08) inset, 0 0 24px rgba(0,0,0,0.7);
  position: relative;
  margin: 18px auto; /* create breathing room between articles */
  padding: 14px 16px 12px 16px; /* interior padding so text doesn't hug the frame */
}
.certificate::before,
.certificate::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 215, 0, 0.25);
  pointer-events: none;
}
.certificate::after {
  inset: 6px;
  border-style: solid;
  border-color: rgba(255, 215, 0, 0.15);
}

/* Add top/bottom article separators for readability */
.proclamation + .proclamation { margin-top: 28px; }
.proclamation .regalia-footer { margin-bottom: 8px; }

.blog-hero h2 {
  margin: 8px 0 4px 0;
}

.legal-seal {
  position: absolute;
  right: 16px;
  transform: translateY(-6px) rotate(-6deg);
  width: 72px;
  height: 72px;
  border: 2px solid #ff4444;
  border-radius: 50%;
  color: #ff4444;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0.8;
}
.legal-seal .seal-text { font-weight: 700; font-size: 0.75rem; }
.legal-seal .seal-subtext { font-size: 0.6rem; }

.blog-sub {
  color: var(--dim);
  margin: 0 0 16px 0;
}

.proc-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  margin: 12px 0 8px 0;
  text-transform: uppercase;
}
.parchment {
  background: radial-gradient(ellipse at top left, rgba(255, 245, 210, 0.06), rgba(0,0,0,0)), radial-gradient(ellipse at bottom right, rgba(255, 225, 160, 0.06), rgba(0,0,0,0));
}
.lede { position: relative; overflow: hidden; }
.drop-cap {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.1rem;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: #ffd38a;
}

/* Zombie callout - floats right with body text wrap */
.callout-zombie {
  float: right;
  width: min(360px, 45%);
  margin: 6px 0 6px 12px;
  padding: 10px 12px;
  border: 1px solid #4ade80; /* green accents */
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  box-shadow: 0 0 0 2px rgba(34,197,94,0.05) inset, 0 6px 18px rgba(0,0,0,0.35);
  border-radius: 6px;
  color: #d1fae5; /* mint */
}
.callout-zombie p { margin: 0; font-size: 0.95rem; }
.callout-zombie .redacted { border-color: rgba(220,38,38,0.4); background: linear-gradient(0deg, rgba(220,38,38,0.18), rgba(220,38,38,0.18)), #000; }

@media (max-width: 720px) {
  .callout-zombie { float: none; width: 100%; margin: 8px 0; }
}

/* Funding callout (public weather network) */
.callout-funding {
  float: left;
  width: min(380px, 48%);
  margin: 6px 12px 6px 0;
  padding: 10px 12px;
  border: 1px solid #60a5fa;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
  box-shadow: 0 0 0 2px rgba(59,130,246,0.05) inset, 0 6px 18px rgba(0,0,0,0.35);
  border-radius: 6px;
  color: #dbeafe;
}
.callout-funding p { margin: 0; font-size: 0.95rem; }
@media (max-width: 720px) {
  .callout-funding { float: none; width: 100%; margin: 8px 0; }
}

/* Quarantine ledger styles */
.callout-ledger {
  margin-top: 12px;
  border: 1px solid #a78bfa;
  box-shadow: 0 0 0 2px rgba(167,139,250,0.05) inset, 0 6px 18px rgba(0,0,0,0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
  padding: 12px 14px;
}
.callout-ledger .ledger-title {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  color: #c4b5fd;
  text-align: center;
  margin-bottom: 6px;
}
.callout-ledger .ledger-desc {
  color: #d6d3fb;
  text-align: center;
  margin: 4px auto 8px auto;
}
.callout-ledger .ledger-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ledger-chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #a78bfa;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(124,58,237,0.12);
}
.ledger-chip-serious {
  border-color: #a855f7;
  background: rgba(168,85,247,0.2);
  box-shadow: 0 0 10px rgba(168,85,247,0.25);
}
.callout-ledger .ledger-legend {
  text-align: center;
  color: #c4b5fd;
  font-size: 0.9rem;
}
.legend-pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #a78bfa;
  border-radius: 999px;
}
.legend-pill-gold { border-color: #fbbf24; color: #fde68a; }

/* Serum Protocol modal */
.serum-link { color: #93c5fd; border-bottom: 1px dashed #93c5fd; }
.serum-link:hover { color: #bfdbfe; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay:target { display: flex; }
.modal-card {
  width: min(820px, 92%);
  border: 1px solid #a78bfa;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.08) inset, 0 16px 40px rgba(0,0,0,0.6);
  background: radial-gradient(circle at 15% 0%, rgba(124,58,237,0.12), transparent), #0a0612;
  padding: 16px 18px 18px 18px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #c4b5fd;
  font-size: 24px;
  text-decoration: none;
}
.modal-close:hover { color: #e9d5ff; }
.modal-header { font-family: var(--font-heading); color: #c4b5fd; font-size: 1.4rem; text-align: center; }
.modal-sub { text-align: center; color: #d6d3fb; margin-bottom: 8px; }
.modal-body { color: #e5e7eb; }
.modal-list { margin: 6px 0 10px 18px; }
.modal-redacted { color: #fecaca; margin-bottom: 10px; }
.assurances { color: #fef08a; margin: 10px 0; }
.modal-actions { text-align: center; margin-top: 8px; }
.modal-close-cta { color: #c4b5fd; border: 1px solid #a78bfa; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.modal-close-cta:hover { background: rgba(167,139,250,0.12); }
.ticker-board { border: 1px solid #60a5fa; border-radius: 8px; padding: 10px 12px; background: rgba(59,130,246,0.06); margin: 10px 0; }
.ticker-title { color: #93c5fd; margin-bottom: 6px; font-family: var(--font-heading); }
.ticker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tick { border: 1px solid #93c5fd; border-radius: 999px; padding: 8px 12px; display: flex; justify-content: space-between; min-width: 0; }
.tick span { color: #a7f3d0; margin-left: 8px; white-space: nowrap; }
.ticker-foot { color: #9ca3af; margin-top: 6px; font-size: 0.85rem; }

/* Dossier sections */
.modal-section { margin: 12px 0; }
.sec-title { font-family: var(--font-heading); color: #c4b5fd; margin-bottom: 6px; letter-spacing: 1px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.kpi { border: 1px solid #93c5fd; border-radius: 6px; padding: 8px 10px; display:flex; justify-content: space-between; }
.kpi-label { color: #dbeafe; }
.kpi-val { color: #a7f3d0; font-weight: 700; }
.scale-table .row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; border: 1px solid rgba(255,255,255,0.08); padding: 6px 8px; border-radius: 6px; margin-bottom: 6px; transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.scale-table .row:hover { background: rgba(124,58,237,0.08); border-color: rgba(167,139,250,0.5); }
.scale-table .row.active { background: rgba(124,58,237,0.12); border-color: #a78bfa; box-shadow: 0 0 14px rgba(167,139,250,0.25); }
.scale-table .cell.head { color: #c4b5fd; font-weight: 700; }
.protocol-code { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 12px; color: #e5e7eb; overflow:auto; }
.note { color: #d6d3fb; font-style: italic; }
.badge-twice {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #fbbf24;
  color: #fde68a;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

/* Quarantine badges (purple theme) */
.badge-quarantine {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid #a78bfa;
  color: #d6bcfa;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
}
.badge-quarantine-serious {
  border-color: #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 12px rgba(168,85,247,0.25);
}

.royal-divider { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px 0; }
.royal-divider i, .royal-divider b { display: block; height: 2px; background: linear-gradient(90deg, transparent, #ffd38a, transparent); }
.royal-divider i { flex: 1; opacity: 0.6; }
.royal-divider b { width: 120px; box-shadow: 0 0 12px rgba(255,211,138,0.6); }

.proc-lede {
  color: var(--dim);
  margin: 0 0 12px 0;
}

.proc-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}
.proc-list p {
  margin: 2px 0;
  text-align: center;
  font-family: var(--font-body);
}
.proc-list p:nth-child(odd) { color: #ffd38a; }
.proc-list p:nth-child(even) { color: #ffffff; opacity: 0.9; }
.proc-list p strong { color: #fff; }
.proc-list p em { color: #ffb347; font-style: normal; }
.proc-list p .team-colored { text-shadow: 0 0 12px rgba(255,255,255,0.15); font-weight: 700; }

/* Blog index sizing */
.blog-index { max-width: 1000px; margin-left: auto; margin-right: auto; }
.blog-index-item { font-size: 1.15rem; margin: 6px 0; }
.blog-index-item a { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.02); }
.blog-index-item a:hover { background: rgba(255,255,255,0.06); }
.idx-date { color: #c4b5fd; font-family: var(--font-heading); }
.idx-sep { color: #666; margin: 0 6px; }
.small-note a { border-color: #93c5fd; }

/* Deaths list accents */
.proc-list.deaths p { color: #ffb4b4; }
.proc-list.deaths p .date { color: #fca5a5; font-size: 0.9em; margin-left: 6px; }
.badge-zombie {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #a78bfa;
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.redacted {
  background: linear-gradient(0deg, rgba(255,0,0,0.15), rgba(255,0,0,0.15)), #000;
  color: transparent;
  border: 1px solid rgba(255,0,0,0.3);
  padding: 0 4px;
  border-radius: 2px;
}

/* Official document box */
.rule-box {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 10px 12px;
  margin: 8px 0 12px 0;
}

/* Regalia, signatures, and pomp */
.regalia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.05) inset;
}
.regalia-title { font-weight: 600; }
.regalia-stamp {
  font-size: 0.8rem;
  color: #ff4444;
  border: 1px solid #ff4444;
  padding: 3px 6px;
  border-radius: 999px;
  transform: rotate(-6deg);
  opacity: 0.8;
}

.signatory-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.signatory-card {
  border: 1px solid var(--border);
  padding: 12px;
  background: rgba(255,255,255,0.02);
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.05) inset, 0 0 18px rgba(0,0,0,0.6);
  border-radius: 6px;
}
.program-director-card .pd-name {
  position: relative;
}
.program-director-card .pd-name::before,
.program-director-card .pd-name::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  top: -6px;
}
.program-director-card .pd-name::before { left: -6px; border-right: none; border-bottom: none; }
.program-director-card .pd-name::after { right: -6px; border-left: none; border-bottom: none; }

.program-director-card::before,
.program-director-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  bottom: -6px;
}
.program-director-card::before { left: 6px; border-right: none; border-top: none; }
.program-director-card::after { right: 6px; border-left: none; border-top: none; }

.sig-header .sig-dept {
  font-size: 0.9rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sig-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #ffd700;
  margin: 6px 0;
  transform: rotate(-1deg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.commissioner-card { position: relative; }
.commissioner-card::after {
  content: "OFFICIAL";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  color: #ff4444;
  border: 1px solid #ff4444;
  padding: 4px 6px;
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.7;
}

.sig-titles span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pd-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.pd-sub, .pd-motto, .pd-date { color: var(--dim); }

.regalia-footer {
  margin-top: 8px;
  text-align: center;
  color: var(--dim);
}

.disclaimer {
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.95rem;
}

/* Wax seal */
.wax-seal {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #b30000);
  border: 2px solid #7a0000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), inset 0 2px 6px rgba(255,255,255,0.25);
  margin: 14px auto 6px auto;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
}
.wax-seal span {
  font-family: var(--font-heading);
  color: #190000;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  font-weight: 700;
}

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, nav, .weather-indicator { display: none !important; }
  .certificate { box-shadow: none; border-color: #000; }
  .regalia-header, .signatory-card, .rule-box { background: #fff; border-color: #000; }
  .wax-seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

