/* =====================================================================
   INNER PAGES – loaded only by internal pages, after style.css.
   Uses the homepage design tokens (colours, type, buttons, cards).
   No homepage selectors are overridden here.
   ===================================================================== */

/* ---------- Breadcrumbs ---------- */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.86rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.7rem 0;
  margin: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted-text); }
.breadcrumbs li + li::before {
  content: "›";
  color: #9AA5B1;
  font-weight: 700;
}
.breadcrumbs a { color: var(--lic-blue); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--dark-text); font-weight: 600; }

/* ---------- Page hero (compact version of the homepage hero) ---------- */
.page-hero {
  background: linear-gradient(180deg, #F0F5FA 0%, #FFFFFF 100%);
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid var(--border-color);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: center;
}
.page-hero h1 {
  font-size: 2.1rem;
  color: var(--lic-blue);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}
.page-hero .hero-lead { margin-bottom: 1.35rem; }
.page-hero .hero-actions { margin-bottom: 1rem; }
.page-meta {
  font-size: 0.85rem;
  color: var(--muted-text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.page-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.page-hero-figure {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  margin: 0;
}
.page-hero-figure img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-hero-figure { max-width: 340px; padding: 1rem; }
}
@media (max-width: 600px) {
  .page-hero { padding: 2rem 0 1.75rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero-figure { display: none; }
}

/* ---------- Content layout ---------- */
.content-section { background: var(--white); padding: 3rem 0 3.5rem; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1000px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* ---------- Article typography ---------- */
.prose { max-width: 760px; font-size: 1.02rem; line-height: 1.75; color: #2B2F36; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 {
  font-size: 1.55rem;
  color: var(--lic-blue);
  line-height: 1.3;
  margin-top: 2.4rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #EEF2F6;
  position: relative;
}
.prose h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 48px; height: 2px;
  background: var(--lic-yellow);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; color: var(--lic-dark-blue); margin-top: 1.7rem; line-height: 1.35; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--lic-blue); }
.prose strong { color: #1A1F26; }
.prose a { color: var(--lic-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 86, 166, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--lic-blue); }

/* Callout: markdown blockquote */
.prose blockquote {
  background: var(--light-blue-bg);
  border-left: 4px solid var(--lic-blue);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-left: 0;
  margin-right: 0;
  font-size: 0.98rem;
  color: #26303C;
}
.prose blockquote > * + * { margin-top: 0.6rem; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-color); border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.prose table.wide { min-width: 600px; }
.prose th, .prose td { padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid #EDF1F5; }
.prose thead th { background: var(--lic-blue); color: var(--white); font-weight: 600; }
.prose table.wide thead th { white-space: nowrap; }
@media (max-width: 600px) { .prose th, .prose td { padding: 0.6rem 0.65rem; } .prose table { font-size: 0.88rem; } }
.prose tbody tr:nth-child(even) { background: #F8FAFC; }
.prose tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.85rem !important; color: var(--muted-text); margin-top: 0.5rem !important; }

/* Inline CTA box placed mid-article */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  background: linear-gradient(135deg, #003B73 0%, #0056A6 100%);
  color: var(--white);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  border-bottom: 4px solid var(--lic-yellow);
  margin-top: 2rem !important;
}
.inline-cta p { color: #E7EEF6; margin: 0; font-size: 0.97rem; line-height: 1.55; }
.inline-cta strong { color: var(--white); display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.inline-cta .inline-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.inline-cta .btn { font-size: 0.92rem; padding: 0.6rem 1.05rem; text-decoration: none; }
.prose .inline-cta .btn-primary { color: #111111; }
.prose .hub-grid a, .prose .related-card { text-decoration: none; font-weight: 400; }
.inline-cta .btn-light { background: var(--white); color: var(--lic-blue); border: 1px solid var(--white); }
.inline-cta .btn-light:hover { background: #EAF2FB; text-decoration: none; }

/* Verification note shown on pages with plan-specific facts */
.fact-note {
  font-size: 0.86rem !important;
  color: var(--muted-text);
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
  margin-top: 2.2rem !important;
  line-height: 1.6;
}

/* ---------- Sidebar ---------- */
.page-aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .page-aside { position: static; } }

.aside-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.aside-card h2 { font-size: 1.02rem; color: var(--lic-blue); margin-bottom: 0.85rem; }
.aside-contact { border-top: 4px solid var(--lic-yellow); background: var(--light-bg); }
.aside-contact p { font-size: 0.92rem; color: var(--muted-text); margin-bottom: 1rem; line-height: 1.55; }
.aside-contact .btn { width: 100%; margin-bottom: 0.6rem; font-size: 0.93rem; }
.aside-contact .aside-address { font-size: 0.84rem; margin: 0.4rem 0 0; display: flex; gap: 0.4rem; }
.aside-contact .aside-address svg { flex-shrink: 0; color: var(--lic-blue); margin-top: 3px; }

.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li + li { border-top: 1px solid #EEF2F6; }
.toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--dark-text);
  text-decoration: none;
  line-height: 1.4;
}
.toc a::before { content: counter(toc); color: var(--lic-blue); font-weight: 700; min-width: 1.1rem; }
.toc a:hover { color: var(--lic-blue); }
@media (max-width: 1000px) { .toc { display: none; } }

.aside-links ul { list-style: none; padding: 0; margin: 0; }
.aside-links li + li { border-top: 1px solid #EEF2F6; }
.aside-links a { display: block; padding: 0.5rem 0; font-size: 0.9rem; color: var(--lic-blue); font-weight: 500; text-decoration: none; }
.aside-links a:hover { text-decoration: underline; }

/* ---------- Related pages ---------- */
.related-section { background: var(--light-bg); border-top: 1px solid var(--border-color); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--lic-blue);
  border-radius: 6px;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-top-color: var(--lic-yellow); text-decoration: none; }
.related-card .related-kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-text); margin-bottom: 0.35rem; }
.related-card h3 { font-size: 1.05rem; color: var(--lic-blue); margin-bottom: 0.5rem; line-height: 1.35; }
.related-card p { font-size: 0.9rem; color: var(--muted-text); line-height: 1.55; margin: 0 0 0.85rem; flex-grow: 1; }
.related-card .related-more { font-size: 0.88rem; font-weight: 600; color: var(--lic-blue); }

/* ---------- Hub listing (category index pages) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.25rem !important; }
.hub-grid .related-card { padding: 1.2rem; }

/* ---------- News ---------- */
.news-empty {
  background: var(--light-bg);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--muted-text);
}
.news-list { display: grid; gap: 1.25rem; }
.news-card time { font-size: 0.82rem; color: var(--muted-text); }

/* ---------- Enquiry section on inner pages ---------- */
.enquiry-section .enquiry-intro h2 { font-size: 1.75rem; color: var(--lic-blue); line-height: 1.3; margin-bottom: 1rem; }

@media print {
  .header, .top-bar, .mobile-bar, .page-aside, .enquiry-section, .related-section { display: none !important; }
}

/* Cards placed inside article text: cancel prose spacing */
.prose .related-card > * + * { margin-top: 0; }
.prose .related-card h3 { margin-top: 0; }

/* ---------- Health insurance section (added Phase H2) ---------- */
.health-disclaimer {
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  background: #F4F8FC;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--lic-yellow);
  border-radius: 6px;
}
.health-disclaimer p { font-size: 0.86rem !important; line-height: 1.6; color: var(--muted-text); margin: 0 !important; }
.form-radio-group { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.form-radio-group legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; color: var(--dark-text, #1f2933); }
.form-radio { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 1.4rem; font-size: 0.95rem; cursor: pointer; }
.form-radio input, .form-check input { width: 18px; height: 18px; accent-color: var(--lic-blue); flex-shrink: 0; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; line-height: 1.5; cursor: pointer; font-weight: 400; }
.form-check input { margin-top: 0.15rem; }
.footer-health-note { margin-top: 0.75rem; }
