/* ═══════════════════════════════════════════════════════════════════════
   EDITORIAL DESIGN SYSTEM (MAGNALI ARCHITECTURE WITH STICKY SIDEBAR)
   • 2-Column Responsive Desktop Layout (Main Editorial + Sticky Sidebar)
   • Sticky "Check Availability" Card on the right
   • Mobile Persistent Bottom Floating Bar + Inline Availability Card
   • High-converting typography, badges, callouts, and quiz integration
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --paper: #ffffff;
  --paper-alt: #f6f8fa;
  --paper-card: #f9fbfd;
  --ink: #111827;
  --ink-soft: #374151;
  --ink-mute: #6b7280;
  --navy: #16324f;
  --navy-deep: #0f2338;
  --navy-light: #244e78;
  --navy-line: #dbe4ee;
  --gold: #c08a2e;
  --gold-soft: #fdf8ed;
  --green: #15803d;
  --green-soft: #edfbf2;
  --green-line: #bbf7d0;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --rule: #e5e7eb;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --text-col: 740px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fdfdfd;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TOP NOTIFICATION & MASTHEAD ────────────────────────────── */

.top-alert-bar {
  background: #0f1d2d;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.top-alert-bar .live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.2); }
}

.masthead {
  background: var(--navy);
  padding: 16px 24px;
  border-bottom: 2px solid var(--navy-deep);
}
.masthead-in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.masthead-brand {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.masthead-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.breadcrumb-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 12.5px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-bar a { color: var(--navy-light); text-decoration: none; }
.breadcrumb-bar .bc-sep { color: #9ca3af; }
.breadcrumb-bar .bc-current { color: var(--ink-soft); font-weight: 600; }

/* ── MAIN 2-COLUMN PAGE CONTAINER ───────────────────────────── */

.page-wrapper {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.article-header {
  max-width: 100%;
  margin-bottom: 28px;
}

h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 12px 0 16px;
}

.deck {
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.bylinebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 20px 0 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.bylinebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bylinebar-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.bylinebar-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.bylinebar-role { font-size: 13px; color: var(--ink-mute); }
.bylinebar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.badge-factcheck {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
}

/* ── 2-COLUMN GRID (EDITORIAL + STICKY SIDEBAR) ─────────────── */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

.article-main {
  min-width: 0;
  background: var(--paper);
  padding: 0 8px 30px 0;
}

.article-main p {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--ink-soft);
}

.article-main h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 44px 0 16px;
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
}

.article-main h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}

.big-line {
  font-size: 20.5px;
  font-weight: 600;
  line-height: 1.48;
  color: var(--ink);
}

.article-main ul, .article-main ol {
  padding-left: 24px;
  margin: 0 0 24px;
}
.article-main li { margin-bottom: 10px; color: var(--ink-soft); }

strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

.pull {
  margin: 32px 0;
  padding: 8px 0 8px 20px;
  border-left: 4px solid var(--gold);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  background: #fdfaf4;
}

/* ── FIGURES & IMAGES ───────────────────────────────────────── */

.figure {
  margin: 34px 0;
  width: 100%;
}
.figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  display: block;
}
.fig-cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.fig-cap b { color: var(--ink); }

.imgph {
  background: var(--paper-alt);
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CALLOUT BOXES & CARDS ──────────────────────────────────── */

.sidebar-box, .notice-box, .warnbox, .guarantee-box {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 6px;
}
.sidebar-box {
  background: var(--paper-alt);
  border-left: 4px solid var(--navy);
}
.sidebar-box h3 { margin-top: 0; }

.warnbox {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
}
.warnbox p { color: #784f11; }

.guarantee-box {
  background: #f0fdf4;
  border: 1px solid var(--green-line);
  border-left: 5px solid var(--green);
}
.guarantee-box h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 19px;
}

.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}
table.data-table th, table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
table.data-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--ink);
}
table.data-table tr:last-child td { border-bottom: 0; }

/* ── FAQ ACCORDION / BLOCKS ─────────────────────────────────── */

.faq-block {
  margin: 16px 0;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 20px;
}
.faq-block h4 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: var(--ink);
}
.faq-block p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ── STICKY SIDEBAR: "CHECK AVAILABILITY" CARD ──────────────── */

.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
  z-index: 10;
}

.check-availability-card {
  background: #ffffff;
  border: 1px solid var(--navy-line);
  border-top: 5px solid var(--navy);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
  text-align: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 6px;
}
.card-subtitle {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.product-mockup-wrap {
  margin: 12px 0 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 12px;
}
.product-mockup-img {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.product-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}

.card-bullets {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}
.card-bullets li {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.card-bullets li .check-icon {
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.btn-sidebar-cta {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 16px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(22,50,79,.28);
  transition: all .15s ease;
  cursor: pointer;
  border: 0;
}
.btn-sidebar-cta:hover {
  background: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(15,35,56,.35);
  transform: translateY(-1px);
}
.btn-sidebar-cta:active { transform: translateY(1px); }

.card-scarcity-note {
  font-size: 11.5px;
  color: #991b1b;
  font-weight: 600;
  margin: 10px 0 6px;
  line-height: 1.35;
}

.card-rating {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}
.stars { color: #f59e0b; }

/* ── BOTTOM CTA & GUARANTEE ─────────────────────────────────── */

.bottom-cta-wrap {
  margin: 48px 0;
  background: #ffffff;
  border: 2px solid var(--navy-line);
  border-radius: 10px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.bottom-cta-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.bottom-cta-wrap p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 24px;
}

.cta-btn-large {
  display: inline-block;
  background: var(--navy);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(22,50,79,.3);
  transition: all .15s ease;
}
.cta-btn-large:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* ── FOOTER ─────────────────────────────────────────────────── */

.site-footer {
  background: #0f1d2d;
  color: #cbd5e1;
  padding: 44px 20px;
  text-align: center;
  border-top: 1px solid #1e293b;
}
.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 18px;
  color: #94a3b8;
}
.footer-links {
  font-size: 12px;
  color: #cbd5e1;
}
.footer-links a { color: #cbd5e1; text-decoration: underline; }

/* ── MOBILE STICKY FLOATING BOTTOM BAR ──────────────────────── */

.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--rule);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-floating-bar .m-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.mobile-floating-bar .m-text span {
  display: block;
  font-size: 10.5px;
  color: var(--green);
  font-weight: 800;
}
.mobile-floating-bar .m-btn {
  background: var(--navy);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── RESPONSIVE BREAKPOINTS ─────────────────────────────────── */

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    order: -1; /* Place above or right after hero on tablet */
    max-width: 480px;
    margin: 0 auto 24px;
  }
}

@media (max-width: 720px) {
  h1 { font-size: 26px; line-height: 1.22; }
  .deck { font-size: 17px; }
  .page-wrapper { padding: 16px 14px 80px; }
  .article-main h2 { font-size: 22px; margin-top: 34px; }
  .pull { font-size: 17.5px; padding-left: 14px; }
  .mobile-floating-bar { display: flex; }
  .article-sidebar { order: 0; margin-top: 24px; }
}
