/* ============================================================
   canopy-base.css — Canopy Insurance Texas article styles
   Ported from LRG rl-page design system, Canopy brand colors.

   STANDALONE FILE. Do NOT concatenate with rl-base.css.
   No VALN tokens, no --vln* variables, no e8f1ff gradient.

   Color map (LRG → Canopy):
     Navy  #0F1F4A → #1a365d   (headings, primary btn)
     Dark  #0b1b3a → #0f2744   (btn dark)
     Red   #C8102E → #c4501a   (links, FAQ spine, accent)
     Ink   #0f172a → #1a202c   (text)
     Muted #475569 → #64748b   (body, captions)
     Gold  —       → #d4981e   (secondary accent, sparingly)
     All neutrals kept exactly from LRG.

   Pipeline class mapping:
     rl-page, rl-hero (FLAT), rl-eyebrow, rl-bluf,
     rl-quick-grid / rl-quick-card, rl-atf-faqhead / rl-atf-faqsub,
     rl-kicker, rl-faq details/summary, rl-cta-primary / rl-cta-pill /
     rl-cta-mid, tables, bullet-section-*, rl-resources
   ============================================================ */


/* ============================================================
   1. PAGE FOUNDATION
   ============================================================ */

.rl-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a202c;
  background: #ffffff;
  padding: 10px 0 44px;
}

.rl-page,
.rl-page * {
  box-sizing: border-box;
}

.rl-page .rl-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* Focus ring */
.rl-page a:focus-visible,
.rl-page button:focus-visible,
.rl-page input:focus-visible,
.rl-page select:focus-visible,
.rl-page summary:focus-visible,
.rl-page textarea:focus-visible {
  outline: 3px solid rgba(196, 80, 26, 0.35);
  outline-offset: 2px;
  border-radius: 10px;
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

.rl-page p,
.rl-page li,
.rl-page td,
.rl-page th,
.rl-page dt,
.rl-page dd,
.rl-page label,
.rl-page input,
.rl-page select,
.rl-page button,
.rl-page summary {
  font-size: 14px;
  line-height: 1.65;
}

.rl-page h1,
.rl-page h2,
.rl-page h3,
.rl-page h4 {
  color: #1a365d !important;
  letter-spacing: -0.01em;
  margin: 0;
}

.rl-page h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
}
@media (max-width: 640px) {
  .rl-page h1 { font-size: 30px; }
}

.rl-page h2 {
  font-size: 26px;
  font-weight: 850;
  line-height: 1.22;
}
@media (max-width: 640px) {
  .rl-page h2 { font-size: 22px; }
}

.rl-page h3 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.22;
}

.rl-page h4 {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.rl-page p {
  margin: 0 0 10px;
  color: #64748b;
  max-width: 100% !important;
}
.rl-page p:last-child { margin-bottom: 0; }

/* Article spacing */
.rl-page.main-content h2 {
  margin: 28px 0 12px;
}
.rl-page.main-content h3 {
  margin: 18px 0 10px;
}
.rl-page.main-content p {
  margin: 0 0 12px;
}
.rl-page.main-content h2:empty,
.rl-page.main-content h3:empty {
  display: none;
}


/* ============================================================
   3. LINKS
   ============================================================ */

.rl-page a {
  color: #c4501a;
  text-decoration: none;
  font-weight: 800;
}
.rl-page a:hover {
  text-decoration: underline;
}


/* ============================================================
   4. HERO (FLAT — no card, border, shadow, or background)
   ============================================================ */

.rl-page .rl-hero {
  margin-bottom: 18px;
}

/* Show hero H1 + eyebrow (Canopy has no Divi TB H1; post_content H1 is the only one) */
.rl-page .rl-hero > h1 {
  display: block !important;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #1a365d !important;
  margin: 10px 0 6px;
  line-height: 1.15;
}
.rl-page .rl-hero .rl-eyebrow {
  display: inline-flex !important;
}
.rl-page .rl-hero .rl-breadcrumb {
  display: none !important;
}

/* Hero lead paragraph */
.rl-page .rl-hero-lead {
  margin-top: 10px;
  color: #64748b;
  width: 100%;
  max-width: 100% !important;
}

/* Hero heading reset */
.rl-page.main-content .rl-hero h1,
.rl-page.main-content .rl-hero h2 {
  margin: 0 0 10px;
}


/* ============================================================
   5. EYEBROW
   ============================================================ */

.rl-page .rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(196, 80, 26, 0.45);
  color: #64748b;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
  width: max-content !important;
  max-width: 100% !important;
}

.rl-page .rl-eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c4501a;
  box-shadow: 0 0 0 5px rgba(196, 80, 26, 0.22);
}

.rl-page .rl-eyebrow strong {
  color: #c4501a;
  font-weight: 900;
}


/* ============================================================
   6. META
   ============================================================ */

.rl-page .rl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: #64748b;
  font-size: 12.5px;
  width: 100%;
}
.rl-page .rl-meta strong { color: #1a202c; font-weight: 800; }
.rl-page .rl-meta .sep { color: #94a3b8; }
.rl-page .rl-meta br { display: none !important; }
.rl-page .rl-meta > p {
  margin: 0 !important;
  display: inline !important;
}


/* ============================================================
   7. BLUF (Bottom Line Up Front)
   ============================================================ */

.rl-page .rl-bluf {
  margin: 14px 0 18px;
  padding: 0;
}

.rl-page .rl-bluf ul {
  margin: 0 !important;
  padding-left: 18px !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  color: #64748b;
}

.rl-page .rl-bluf li {
  margin: 8px 0;
  display: list-item !important;
}


/* ============================================================
   8. QUICK CARDS (rl-quick-grid / rl-quick-card)
   ============================================================ */

.rl-page .rl-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .rl-page .rl-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

.rl-page .rl-quick-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rl-page .rl-quick-card :is(h2, h3, h4) {
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.01em !important;
  color: #0f2344 !important;
}

.rl-page .rl-quick-card ul {
  margin: 0 !important;
  padding-left: 18px !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  color: #64748b;
}

.rl-page .rl-quick-card li {
  margin: 8px 0;
  display: list-item !important;
}


/* ============================================================
   9. ATF FAQ HEAD + KICKER
   ============================================================ */

.rl-page .rl-atf-faqhead {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.22;
  color: #1a365d;
  margin: 24px 0 6px;
}

.rl-page .rl-atf-faqsub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
}

.rl-page .rl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a202c;
  margin: 18px 0 6px;
}

.rl-page .rl-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #d4981e;
  flex: 0 0 10px;
}


/* ============================================================
   10. FAQ (details/summary accordion)
   ============================================================ */

.rl-page .rl-faq {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  margin-bottom: 24px !important;
}

.rl-page .rl-faq details {
  background: #fff;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.rl-page .rl-faq details:not(:first-child) {
  border-top: 1px solid #e2e8f0;
}

.rl-page .rl-faq details[open] {
  border-color: #e2e8f0;
}

.rl-page .rl-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  font-weight: 950;
  color: #0f172a;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rl-page .rl-faq summary::-webkit-details-marker { display: none; }
.rl-page .rl-faq summary::marker { content: ""; }

.rl-page .rl-faq summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 950;
  font-size: 1rem;
  flex: 0 0 auto;
  line-height: 1;
}

.rl-page .rl-faq details[open] summary::after {
  content: "\2013";
}

.rl-page .rl-faq summary:focus { outline: none; }
.rl-page .rl-faq summary:focus-visible {
  outline: 2px solid #c4501a;
  outline-offset: 2px;
}

.rl-page .rl-faq .ans {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
}

.rl-page .rl-faq .ans p {
  margin: 0;
  color: #475569;
}

/* Plain <details> inside .rl-page (no .rl-faq wrapper) */
.rl-page details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
.rl-page details + details {
  margin-top: 12px;
}
.rl-page details > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  outline: none;
}
.rl-page details > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  flex: 0 0 32px;
  color: #1a365d;
}
.rl-page details[open] > summary::after {
  content: "\2013";
}
.rl-page details > *:not(summary) {
  padding: 0 18px 16px;
  color: #334155;
}


/* ============================================================
   11. CTA BUTTONS
   ============================================================ */

/* Primary — text link (matches cnpNextLink on umbrella reference) */
.rl-page .rl-cta-primary,
.rl-page a.rl-cta-primary {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: #c4501a !important;
  -webkit-text-fill-color: #c4501a !important;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  line-height: inherit;
  width: auto !important;
}
.rl-page .rl-cta-primary:hover,
.rl-page a.rl-cta-primary:hover {
  background: transparent !important;
  text-decoration: underline !important;
}

/* Pill (orange fill) */
.rl-page .rl-cta-pill,
.rl-page a.rl-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #c4501a;
  background: #c4501a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
  width: auto !important;
  text-align: center;
}
.rl-page .rl-cta-pill:hover,
.rl-page a.rl-cta-pill:hover {
  background: #a33d15 !important;
  border-color: #a33d15;
  text-decoration: none !important;
}

/* Mid-article CTA (ghost outline) */
.rl-page .rl-cta-mid,
.rl-page a.rl-cta-mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff !important;
  color: #1a365d !important;
  -webkit-text-fill-color: #1a365d !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.2;
  width: auto !important;
  text-align: center;
}
.rl-page .rl-cta-mid:hover,
.rl-page a.rl-cta-mid:hover {
  background: #f1f5f9 !important;
  text-decoration: none !important;
}

/* CTA container */
.rl-page .rl-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}


/* ============================================================
   12. TABLES
   ============================================================ */

.rl-page table {
  display: table;
  border-collapse: collapse;
}

.rl-page .rl-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.rl-page .rl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  overflow: hidden;
}

.rl-page .rl-table th,
.rl-page .rl-table td {
  border-bottom: 1px solid #94a3b8;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.rl-page .rl-table tbody tr:last-child td {
  border-bottom: none;
}

.rl-page .rl-table thead th {
  background: #f8fafc;
  color: #1a202c;
  font-weight: 850;
}

.rl-page .rl-table tbody td.num { white-space: nowrap !important; }
.rl-page .rl-table thead th.num { white-space: normal !important; }

@media (max-width: 640px) {
  .rl-page .rl-table th,
  .rl-page .rl-table td {
    padding: 8px;
  }
}

/* Classless tables inside .rl-page sections */
.rl-page section table:not([class]) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  margin: 18px 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
}
.rl-page section table:not([class]) th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 13px;
  color: #1e293b;
}
.rl-page section table:not([class]) td {
  padding: 11px 14px;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
  font-size: 14px;
}
.rl-page section table:not([class]) tr:last-child td { border-bottom: 0; }
.rl-page section table:not([class]) tr:nth-child(even) td { background: #f8fafc; }

@media (max-width: 640px) {
  .rl-page section table:not([class]) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ============================================================
   13. BULLET SECTIONS (traffic-light callouts)
   ============================================================ */

.rl-page .bullet-section-gray,
.rl-page .bullet-section-blue,
.rl-page .bullet-section-yellow,
.rl-page .bullet-section-green,
.rl-page .bullet-section-red {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 16px 0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  color: #334155;
}

.rl-page .bullet-section-gray h3,
.rl-page .bullet-section-blue h3,
.rl-page .bullet-section-yellow h3,
.rl-page .bullet-section-green h3,
.rl-page .bullet-section-red h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: #1a365d;
}

.rl-page .bullet-section-gray ul,
.rl-page .bullet-section-gray ol,
.rl-page .bullet-section-blue ul,
.rl-page .bullet-section-blue ol,
.rl-page .bullet-section-yellow ul,
.rl-page .bullet-section-yellow ol,
.rl-page .bullet-section-green ul,
.rl-page .bullet-section-green ol,
.rl-page .bullet-section-red ul,
.rl-page .bullet-section-red ol {
  margin: 0;
  padding-left: 20px;
}

.rl-page .bullet-section-gray li,
.rl-page .bullet-section-blue li,
.rl-page .bullet-section-yellow li,
.rl-page .bullet-section-green li,
.rl-page .bullet-section-red li {
  margin: 8px 0;
}

/* Tones */
.rl-page .bullet-section-gray {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-left: 6px solid #cbd5e1;
}
.rl-page .bullet-section-blue {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left: 6px solid #c4501a;
}
.rl-page .bullet-section-yellow {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 6px solid #f59e0b;
}
.rl-page .bullet-section-green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  border-left: 6px solid #16a34a;
}
.rl-page .bullet-section-red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left: 6px solid #dc2626;
}


/* ============================================================
   14. CALLOUTS
   ============================================================ */

.rl-page .rl-callout {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 12px 12px 10px;
  margin: 16px 0;
}

.rl-page .rl-callout h3 { font-size: 15px; margin: 0 0 6px; }
.rl-page .rl-callout p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.6; }

.rl-page .rl-callout ul {
  margin: 10px 0 0 18px !important;
  padding: 0 !important;
}
.rl-page .rl-callout li { margin: 6px 0; }

.rl-page .rl-callout--warn {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

/* Callout tones */
.rl-page .rl-callout--green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  border-left: 6px solid #16a34a;
}
.rl-page .rl-callout--yellow {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 6px solid #f59e0b;
}
.rl-page .rl-callout--red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left: 6px solid #dc2626;
}


/* ============================================================
   15. RESOURCES / DISCLOSURE
   ============================================================ */

.rl-page .rl-resources {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  padding: 16px 16px 14px;
}

.rl-page .rl-resources h2,
.rl-page .rl-resources h3 {
  font-size: 16px;
  font-weight: 950;
  color: #1a365d;
  margin: 0 0 10px;
}

.rl-page .rl-resources ul {
  margin: 0 !important;
  padding-left: 18px !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.rl-page .rl-resources li {
  margin: 8px 0;
  display: list-item !important;
}

.rl-page .rl-resources a {
  color: #2563eb !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  border: none !important;
  -webkit-text-fill-color: #2563eb !important;
}
.rl-page .rl-resources a:hover {
  text-decoration: underline;
}


/* ============================================================
   16. SECTIONS
   ============================================================ */

.rl-page .rl-section { margin-top: 26px; }
.rl-page .rl-section-head { margin-bottom: 10px; }
.rl-page .rl-section-head p { margin: 6px 0 0; color: #64748b; max-width: 100% !important; }


/* ============================================================
   17. CARDS (generic)
   ============================================================ */

.rl-page .rl-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10), 0 2px 10px rgba(15, 23, 42, 0.06);
}
.rl-page .rl-card-inner { padding: 22px 22px 20px; }
@media (max-width: 640px) {
  .rl-page .rl-card-inner { padding: 16px 14px; }
}

/* Hero card: strip card chrome */
.rl-page .rl-card.rl-hero,
.rl-page header.rl-hero {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}
.rl-page .rl-card.rl-hero .rl-card-inner {
  padding: 0 !important;
}


/* ============================================================
   18. PILLS (jump-link navigation)
   ============================================================ */

.rl-page .rl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
}

@media (max-width: 760px) {
  .rl-page .rl-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .rl-page .rl-pills::-webkit-scrollbar { display: none; }
}

.rl-page .rl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1a365d !important;
  -webkit-text-fill-color: #1a365d !important;
  font-weight: 850;
  font-size: 12.5px;
  white-space: nowrap;
  text-decoration: none !important;
  user-select: none;
}

.rl-page .rl-pill:hover {
  background: #f1f5f9;
  text-decoration: none !important;
}


/* ============================================================
   19. LAYOUT HELPERS
   ============================================================ */

.rl-page .rl-grid-2,
.rl-page .rl-grid-3 {
  display: grid;
  gap: 16px;
  align-items: start;
}
.rl-page .rl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rl-page .rl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .rl-page .rl-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .rl-page .rl-grid-3 { grid-template-columns: 1fr; }
}

.rl-page .rl-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
@media (max-width: 820px) {
  .rl-page .rl-callout-grid { grid-template-columns: 1fr; gap: 12px; }
}


/* ============================================================
   20. BADGES
   ============================================================ */

.rl-page .rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #1a202c;
}
.rl-page .rl-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #d4981e;
}
.rl-page .rl-badge--green { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.35); }
.rl-page .rl-badge--yellow { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.40); }
.rl-page .rl-badge--red { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.38); }


/* ============================================================
   21. UTILITY
   ============================================================ */

.rl-page .rl-hide { display: none; }

.rl-page .rl-sr-only {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Skip link */
.rl-page .rl-skip {
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  position: absolute !important;
}
.rl-page .rl-skip:focus {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  left: 12px !important;
  top: 12px !important;
  background: #fff !important;
  color: #1a202c !important;
  border: 2px solid #c4501a !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  z-index: 9999 !important;
}


/* ============================================================
   22. DIVI / BUILDER SAFETY NETS
   ============================================================ */

/* Force font on all elements */
.rl-page.rl-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #1a202c !important;
  background: #ffffff !important;
}

.rl-page.rl-page :is(h1, h2, h3, h4) {
  color: #1a365d !important;
}

.rl-page.rl-page :where(p, li, span, small, strong, em, summary, label, button, input, select, textarea, th, td, dt, dd) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Text links (exclude buttons and pills) */
.rl-page.rl-page a:not(.rl-cta-primary):not(.rl-cta-pill):not(.rl-cta-mid):not(.rl-pill) {
  color: #c4501a !important;
  text-decoration: none;
}
.rl-page.rl-page a:not(.rl-cta-primary):not(.rl-cta-pill):not(.rl-cta-mid):not(.rl-pill):hover {
  text-decoration: underline;
}

/* Breadcrumbs: always muted */
.rl-page.rl-page .rl-breadcrumb,
.rl-page.rl-page .rl-breadcrumb a {
  color: #64748b !important;
}
.rl-page.rl-page .rl-breadcrumb a:hover {
  color: #1a365d !important;
  text-decoration: underline;
}

/* Divi injects <br> into flex containers */
.rl-page .rl-pills br,
.rl-page .rl-hero-lead br,
.rl-page .rl-meta br,
.rl-page .rl-eyebrow br {
  display: none !important;
}

/* Divi injects <p> into grid wrappers */
.rl-page .rl-quick-grid > p,
.rl-page .rl-quick-grid > br,
.rl-page .rl-ctas > p,
.rl-page .rl-ctas > br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force CTA text color against Divi link overrides */
.rl-page a.rl-cta-primary {
  color: #c4501a !important;
  -webkit-text-fill-color: #c4501a !important;
}
.rl-page a.rl-cta-pill {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.rl-page a.rl-cta-mid {
  color: #1a365d !important;
  -webkit-text-fill-color: #1a365d !important;
}


/* ============================================================
   23. MOBILE UNBOXING (<=760px)
   ============================================================ */

@media (max-width: 760px) {
  /* Plain white, no padding */
  .rl-page.rl-page {
    background: #ffffff !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .rl-page .rl-wrap { padding: 0 !important; }

  /* Remove card chrome on mobile */
  .rl-page .rl-card,
  .rl-page .rl-section,
  .rl-page .rl-faq,
  .rl-page .rl-refs,
  .rl-page .rl-sources,
  .rl-page .rl-mini-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .rl-page .rl-card-inner,
  .rl-page .rl-section-head {
    padding: 0 !important;
  }

  /* Hide chrome */
  .rl-page .rl-breadcrumb,
  .rl-page .rl-eyebrow,
  .rl-page .rl-pills {
    display: none !important;
  }

  .rl-page .rl-section { margin: 18px 0 !important; }
  .rl-page .rl-hero { margin-bottom: 18px !important; }

  /* Keep quick cards on mobile */
  .rl-page .rl-quick-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 14px 14px 12px !important;
    box-shadow: none !important;
  }
  .rl-page .rl-quick-card ul {
    padding-left: 20px !important;
    list-style: disc !important;
  }

  .rl-page .rl-table-scroll,
  .rl-page .rl-pills {
    overscroll-behavior-x: contain;
  }
}

@media (max-width: 720px) {
  .rl-page.rl-page .rl-breadcrumb,
  .rl-page.rl-page .rl-eyebrow {
    display: none !important;
  }
}


/* ============================================================
   24. LEGACY cnpPage HERO OVERRIDE
   Older Canopy posts use cnpCard.cnpHero. Keep flat.
   ============================================================ */

.cnpPage .cnpCard.cnpHero,
.cnpPage.cnpPage .cnpCard.cnpHero {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
}

.cnpPage .cnpCard.cnpHero .cnpCard-inner,
.cnpPage.cnpPage .cnpCard.cnpHero .cnpCard-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
