/* ============================================================
   content-page-fixes.css — Modern design layer for all content pages
   Loaded after styles.css. Covers typography, layout, cards,
   stats bar, FAQ accordion, deductible calculator, side CTA.
   ============================================================ */

/* ─── Focus ring ──────────────────────────────────────────── */
.content-page :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Hero ────────────────────────────────────────────────── */
.content-page .page-hero {
  padding-bottom: 0;
}

.content-page .page-hero-body {
  padding: 52px 0 88px;
}

.content-page .page-hero h1 {
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: 16px;
  font-weight: 800;
  -webkit-font-smoothing: antialiased;
}

.content-page .hero-lede,
.content-page .page-hero .lede {
  font-size: clamp(15px, 1.55vw, 18px);
  color: rgba(255,255,255,.78);
  max-width: 62ch;
  line-height: 1.65;
}

.content-page .breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
  opacity: .75;
}

/* ─── Nav CTA ─────────────────────────────────────────────── */
.content-page .nav-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg,rgba(245,158,11,.18),rgba(249,115,22,.12));
  border: 1px solid rgba(245,158,11,.30);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #fde68a;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.content-page .nav-cta:hover {
  background: rgba(245,158,11,.28);
  border-color: rgba(245,158,11,.52);
  color: #fff;
}

/* ─── Stats bar ───────────────────────────────────────────── */
.content-page .pg-stats {
  border-radius: 16px;
  margin-top: -32px;
  box-shadow: 0 20px 52px rgba(12,16,20,.18), 0 2px 0 rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.15);
  background: #fff;
  overflow: hidden;
}

.content-page .pg-stat {
  transition: background .18s;
  padding: 18px 20px;
}

.content-page .pg-stat:hover {
  background: rgba(245,158,11,.05);
}

.content-page .pg-stat .st-cap {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ca3af;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 4px;
}

.content-page .pg-stat .st-val {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* ─── Main article layout ─────────────────────────────────── */
.content-page .article {
  padding: 48px 0 96px;
}

.content-page .article-grid {
  gap: 36px;
  align-items: start;
}

/* ─── Cards ───────────────────────────────────────────────── */
.content-page .card {
  border-radius: 16px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 12px rgba(12,16,20,.05);
  transition: box-shadow .22s, border-color .22s, transform .22s;
  will-change: transform;
  margin-bottom: 20px;
}

.content-page .card:last-child {
  margin-bottom: 0;
}

.content-page .card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.35);
  box-shadow: 0 12px 36px rgba(12,16,20,.09);
}

/* Kicker pill */
.content-page .kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(245,158,11,.09);
  border: 1px solid rgba(245,158,11,.26);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  color: #92400e;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

/* ─── Typography ──────────────────────────────────────────── */
.content-page .article-main h2 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 14px;
  -webkit-font-smoothing: antialiased;
}

.content-page .article-main h3 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.28;
  color: #0f172a;
  margin-bottom: 8px;
  -webkit-font-smoothing: antialiased;
}

.content-page .article-main p,
.content-page .article-main li {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.74;
  color: #374151;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.content-page .article-main p + p {
  margin-top: 14px;
}

.content-page .article-main strong {
  font-weight: 700;
  color: #111827;
}

/* Bullet list */
.content-page .article-main ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.content-page .article-main ul li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #374151;
}

.content-page .article-main ul li::before { content: none !important; }
.content-page .article-main ul li::after  { display: none !important; }

.content-page .article-main ul li:not([class])::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f59e0b,#f97316) url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4.5l2.5 2.5 5.5-6' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  margin-top: 2px;
  display: block;
  flex-shrink: 0;
}

.content-page .article-main ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-top: 16px;
}

.content-page .article-main ol li {
  display: list-item;
  margin-bottom: 10px;
  line-height: 1.65;
  color: #374151;
}

.content-page .article-main ol li::before { content: none !important; }

/* ─── FAQ accordion ───────────────────────────────────────── */
.content-page .faq-card {
  padding-bottom: 8px;
}

.content-page .faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-page .faq-item {
  border-top: 1px solid rgba(0,0,0,.07);
  scroll-margin-top: 80px;
}

.content-page .faq-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.content-page .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.content-page .faq-q::-webkit-details-marker { display: none; }

.content-page .faq-q span {
  flex: 1;
  line-height: 1.45;
}

.content-page .faq-icon {
  flex: none;
  color: #f59e0b;
  transition: transform .22s ease;
}

.content-page details[open] .faq-icon {
  transform: rotate(45deg);
}

.content-page .faq-a {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.70;
  color: #4b5563;
  animation: faq-in .2s ease;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Side CTA ────────────────────────────────────────────── */
.content-page .side-cta {
  border-radius: 18px;
  border: 1px solid rgba(245,158,11,.20);
  box-shadow: 0 20px 56px rgba(12,16,20,.12);
  overflow: hidden;
  background: #fff;
}

.content-page .side-cta-head {
  padding: 24px 22px 20px;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border-radius: 18px 18px 0 0;
}

.content-page .side-cta-head h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
  -webkit-font-smoothing: antialiased;
}

.content-page .side-cta-head p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}

.content-page .side-cta-body {
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.content-page .side-cta .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#f59e0b,#f97316);
  color: #0f172a;
  font-weight: 700;
  border-radius: 100px;
  padding: 12px 20px;
  min-height: 46px;
  font-size: 14px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
  width: 100%;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(245,158,11,.28);
  border: none;
  letter-spacing: -0.01em;
}

.content-page .side-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245,158,11,.40);
}

.content-page .side-cta-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-page .side-cta-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: color .15s;
}

.content-page .side-cta-links a:last-child {
  border-bottom: none;
}

.content-page .side-cta-links a:hover {
  color: #b45309;
}

/* ─── Deductible calculator ───────────────────────────────── */
.content-page .ded-calc {
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.content-page .ded-calc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 16px;
}

.content-page .ded-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 14px;
}

.content-page .ded-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.content-page .ded-prefix {
  position: absolute;
  left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  pointer-events: none;
}

.content-page .ded-input {
  width: 100%;
  padding: 9px 10px 9px 22px;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #111827;
  background: #f9fafb;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}

.content-page .ded-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
  outline: none;
  background: #fff;
}

.content-page .ded-input::-webkit-outer-spin-button,
.content-page .ded-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.content-page .ded-pct-row {
  display: flex;
  gap: 5px;
}

.content-page .ded-pct-btn {
  flex: 1;
  padding: 7px 4px;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 8px;
  background: #f9fafb;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: "Inter", sans-serif;
}

.content-page .ded-pct-btn:hover {
  border-color: rgba(245,158,11,.40);
  color: #92400e;
}

.content-page .ded-pct-btn.active {
  background: linear-gradient(135deg,#f59e0b,#f97316);
  border-color: transparent;
  color: #0f172a;
  font-weight: 700;
}

.content-page .ded-result {
  background: linear-gradient(135deg,#fefce8,#fff7ed);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 10px;
  padding: 12px 14px;
}

.content-page .ded-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.content-page .ded-result-row:last-of-type {
  margin-bottom: 0;
}

.content-page .ded-result-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #92400e;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.content-page .ded-result-val {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.content-page .ded-disclaimer {
  font-size: 10.5px;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
}

/* ─── Broker badge ────────────────────────────────────────── */
.content-page .broker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #6b7280;
}

/* ─── Write grid (carrier pages) ─────────────────────────── */
.content-page .write-grid {
  gap: 12px;
  margin-top: 16px;
}

.content-page .write-card {
  border-radius: 12px;
  padding: 18px 18px;
  border: 1px solid rgba(0,0,0,.07);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.content-page .write-card:hover {
  border-color: rgba(245,158,11,.40);
  box-shadow: 0 6px 20px rgba(12,16,20,.07);
}

.content-page .write-card h4 {
  font-size: 14.5px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-weight: 700;
}

.content-page .write-meta {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #92400e;
  background: rgba(245,158,11,.09);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* ─── CTA dark block ──────────────────────────────────────── */
.content-page .cta-dark {
  border-radius: 20px;
}

.content-page .cta-dark h2,
.content-page .cta-dark h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  -webkit-font-smoothing: antialiased;
}

.content-page .btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(100deg,#f59e0b,#f97316);
  color: #0f172a;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(245,158,11,.36);
  transition: transform .15s, box-shadow .15s;
}

.content-page .btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245,158,11,.50);
}

/* ─── Sources ─────────────────────────────────────────────── */
.content-page .sources-card {
  border-radius: 12px;
}

/* ─── Scroll offset ───────────────────────────────────────── */
.content-page [id] {
  scroll-margin-top: 72px;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .content-page .side-cta {
    position: static;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .content-page .page-hero-body {
    padding: 36px 0 56px;
  }
  .content-page .article {
    padding-top: 36px;
    padding-bottom: 64px;
  }
  .content-page .card {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .content-page .side-cta {
    border-radius: 14px;
  }
  .content-page .article-main p,
  .content-page .article-main li {
    font-size: 15px;
  }
  .content-page .cta-dark {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .content-page .cta-dark-inner {
    flex-direction: column;
    gap: 16px;
  }
  .content-page .btn-amber {
    width: 100%;
    justify-content: center;
  }
  .content-page .ded-pct-btn {
    padding: 8px 2px;
    font-size: 12px;
  }
}

@media (hover: none) {
  .content-page .card:hover,
  .content-page .side-cta .btn-primary:hover,
  .content-page .btn-amber:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-page *, .content-page *::before, .content-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
