/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-divider { height: 1px; background: #f0f0f0; margin: 0 24px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.section-subtitle { color: #555; font-size: 14px; margin-bottom: 24px; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: 32px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 22px; font-weight: 500; }
h3 { font-size: 16px; font-weight: 500; }
.section-header h2 { font-size: 20px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: opacity .15s, transform .1s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn-primary { background: #185FA5; color: #fff; border-color: #185FA5; }
.btn-outline { background: transparent; border-color: #d0d0d0; color: #1a1a1a; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-white { background: #fff; color: #185FA5; border-color: #fff; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-size: 18px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.logo span { color: #185FA5; }
.nav-links { display: flex; gap: 2px; flex: 1; align-items: center; flex-wrap: nowrap; }
.nav-link { font-size: 13px; color: #555; padding: 5px 8px; border-radius: 6px; transition: background .15s; white-space: nowrap; }
.nav-link:hover { background: #f5f5f5; color: #1a1a1a; }
.nav-auth { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.nav-user { font-size: 13px; color: #555; }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

/* ── Nav user dropdown ─────────────────────────────────────────────────────── */
.nav-user-menu { position: relative; }
.nav-user-btn { background: none; border: none; cursor: pointer; font-size: 13px; color: #555; padding: 5px 4px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-user-btn:hover { color: #1a1a1a; }
.nav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); min-width: 160px; z-index: 200; overflow: hidden; }
.nav-user-menu.open .nav-dropdown { display: block; }
.nav-dropdown-item { display: block; width: 100%; text-align: left; padding: 10px 16px; font-size: 14px; color: #333; background: none; border: none; cursor: pointer; text-decoration: none; transition: background .12s; }
.nav-dropdown-item:hover { background: #f5f5f5; }
.nav-dropdown-divider { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }
.badge { background: #e8f0fb; color: #185FA5; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 500; vertical-align: middle; }
.badge-new { background: #fff3cd; color: #856404; font-size: 11px; padding: 2px 6px; border-radius: 4px; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { background: #0d4a85; color: #fff; padding: 64px 0 48px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.legal-note { font-size: 12px; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto; }

/* ── Page hero (inner pages) ───────────────────────────────────────────────── */
.page-hero { padding: 40px 0; border-bottom: 1px solid #f0f0f0; }
.page-hero--light { background: #f8f9fb; }
.page-hero h1 { font-size: 28px; margin-bottom: 8px; }
.page-hero p { color: #555; font-size: 15px; margin-bottom: 12px; }

/* ── News ──────────────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.news-card { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.news-card:hover { border-color: #b0c8e8; }
.news-tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: #e6f1fb; color: #0c447c; }
.news-card h3 { font-size: 14px; line-height: 1.5; }
.news-card h3 a { color: #1a1a1a; }
.news-card h3 a:hover { color: #185FA5; }
.news-summary { font-size: 13px; color: #555; line-height: 1.55; flex: 1; }
.news-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.news-time { font-size: 11px; color: #999; }
.news-source-link { font-size: 11px; color: #185FA5; }
.link-more { font-size: 13px; color: #185FA5; }
.news-title-list { list-style: none; padding: 0; margin: 0; }
.news-title-list li { border-bottom: 1px solid #f0f0f0; padding: 10px 0; font-size: 14px; line-height: 1.5; display: flex; align-items: baseline; gap: 12px; }
.news-title-list li a { color: #1a1a1a; }
.news-title-list li a:hover { color: #185FA5; }
.news-list-date { font-size: 11px; color: #999; white-space: nowrap; flex-shrink: 0; }
.news-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.news-cat-panel { border: 1px solid #ebebeb; border-radius: 12px; padding: 18px; }
.news-cat-panel-title { display: inline-block; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 8px; border: 1px solid #d0e4f7; background: #f5f9ff; color: #185FA5; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.news-cat-panel-title:hover { border-color: #185FA5; background: #e8f2fc; }
.news-cat-panel-title a { color: inherit; }
.news-cat-list { list-style: none; padding: 0; margin: 0; }
.news-cat-list li { border-bottom: 1px solid #f0f0f0; padding: 8px 0; font-size: 13px; line-height: 1.45; }
.news-cat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.news-cat-list li > a { color: #1a1a1a; display: block; margin-bottom: 3px; }
.news-cat-list li > a:hover { color: #185FA5; }
.news-cat-meta { display: flex; justify-content: space-between; align-items: center; }

/* ── Eligibility links ──────────────────────────────────────────────────────── */
.eligibility-links { display: flex; flex-wrap: wrap; gap: 10px; }
.eligibility-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #d0e4f7; border-radius: 8px; background: #f5f9ff; color: #185FA5; font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s, background .15s; }
.eligibility-link:hover { border-color: #185FA5; background: #e8f2fc; }
.eligibility-link-arrow { font-size: 12px; color: #999; }
.hot-assessment-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.detailed-assessment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.detailed-assessment-group { min-width: 0; }
.detailed-assessment-heading { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #666; margin-bottom: 8px; }
.detailed-assessment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.detailed-assessment-list a { display: block; padding: 8px 10px; border: 1px solid #ebebeb; border-radius: 8px; color: #185FA5; font-size: 13px; font-weight: 500; background: #fff; text-decoration: none; }
.detailed-assessment-list a:hover { border-color: #185FA5; background: #f5f9ff; }

/* ── Category cards ────────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cat-card { background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: #185FA5; transform: translateY(-1px); }
.cat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.cat-icon--blue { background: #e6f1fb; color: #0c447c; }
.cat-icon--teal { background: #e1f5ee; color: #085041; }
.cat-card h3 { font-size: 14px; font-weight: 500; }
.cat-card p { font-size: 12px; color: #666; line-height: 1.45; flex: 1; }
.sub-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sub-cat { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: #f5f5f5; color: #555; }
.status-tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.status-tag--closed { background: #fdecea; color: #b71c1c; border-color: #f44336; }

/* ── Content layout (category detail) ─────────────────────────────────────── */
.content-layout { display: flex; gap: 40px; }
.content-main { flex: 1; min-width: 0; }
.content-sidebar { width: 220px; flex-shrink: 0; }
.content-sidebar h3 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid #f0f0f0; }
.sidebar-links a { display: block; padding: 9px 0; font-size: 13px; color: #185FA5; }
.sidebar-links a:hover { text-decoration: underline; }
.rich-content h2 { font-size: 20px; margin: 24px 0 12px; }
.rich-content h3 { font-size: 16px; margin: 20px 0 8px; }
.rich-content p { margin-bottom: 12px; color: #333; }
.rich-content ul,
.rich-content ol {
    margin: 8px 0 16px;
    padding-left: 32px;
    list-style-position: outside;
}
.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }
.rich-content li {
    margin-bottom: 8px;
    padding-left: 4px;
    font-size: 15px;
    line-height: 1.6;
}
.rich-content .disclaimer { font-size: 13px; color: #888; font-style: italic; }
.rich-content a:not(.btn) { color: #185FA5; text-decoration: underline; }
.rich-content a:not(.btn):hover { opacity: .8; }

/* ── Legal boxes ───────────────────────────────────────────────────────────── */
.legal-box { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #5d4037; margin-top: 24px; }
.legal-box a { color: #185FA5; }
.disclaimer-box { background: #f8f9fb; border: 1px solid #e8e8e8; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #777; margin-top: 24px; }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #888; margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: #185FA5; }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-current { color: #555; }

/* ── Filter bar ────────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tag { font-size: 13px; padding: 5px 12px; border-radius: 20px; border: 1px solid #e0e0e0; color: #555; transition: background .15s; }
.filter-tag:hover, .filter-tag.active { background: #185FA5; color: #fff; border-color: #185FA5; }

/* ── CTA bar ───────────────────────────────────────────────────────────────── */
.cta-bar { background: #0d4a85; padding: 32px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-title { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.cta-sub { font-size: 14px; color: rgba(255,255,255,.7); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid #f0f0f0; padding: 32px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-tagline { font-size: 13px; color: #888; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #888; }
.footer-links a:hover { color: #185FA5; }
.footer-disclaimer { font-size: 12px; color: #aaa; max-width: 640px; }
.footer-copy { font-size: 12px; color: #bbb; }
 /* ── Forms ─────────────────────────────────────────────────────────────────── */
  label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #333; }
  .form-control { display: block; width: 100%; padding: 9px 12px; border: 1px solid #d0d0d0; border-radius: 8px; font-size: 15px; color: #1a1a1a;       
  background: #fff; transition: border-color .15s; outline: none; }
  .form-control:focus { border-color: #185FA5; box-shadow: 0 0 0 3px rgba(24,95,165,.1); }
  .form-hint { font-size: 12px; color: #888; margin-top: 4px; }
  .text-danger { font-size: 13px; color: #c0392b; }
   .form-grid { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }

 
  /* ── Tooltips ───────────────────────────────────────────────────────────────── */                                                                     .tooltip-wrap { position: relative; display: inline-block; margin-left: 6px; }                                                                        
  .tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background:        
  #b0c8e8; color: #0c447c; font-size: 11px; font-weight: 600; cursor: default; opacity: 0.3; transition: opacity .2s; }
  .assessment-label:hover .tooltip-icon { opacity: 1; }
  .tooltip-text { visibility: hidden; opacity: 0; position: absolute; left: 24px; top: -4px; background: #1a1a1a; color: #fff; font-size: 12px; padding:
   8px 12px; border-radius: 6px; width: 220px; line-height: 1.5; transition: opacity .2s; z-index: 10; }
  .tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }
  /* ── Assessment form ────────────────────────────────────────────────────────── */
  .assessment-section { margin-bottom: 40px; }
  .assessment-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
  .assessment-label { font-size: 14px; font-weight: 500; color: #333; padding-top: 9px; display: flex; align-items: center; gap: 4px; }
  .assessment-input { display: flex; flex-direction: column; gap: 4px; }
/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #f0f0f0; flex-direction: column; padding: 12px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .content-layout { flex-direction: column; }
    .content-sidebar { width: 100%; }
    h1 { font-size: 24px; }
    .hero { padding: 40px 0 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .assessment-row { grid-template-columns: 1fr; }
  .assessment-label { padding-top: 0; }
  .tooltip-wrap { position: static; }
  .tooltip-text {
      left: 50%;
      right: auto;
      top: calc(100% + 6px);
      transform: translateX(-50%);
      width: min(260px, calc(100vw - 32px));
      max-width: calc(100vw - 32px);
      overflow-wrap: break-word;
  }

}

/* AI narrative report */
.narrative ul, .narrative ol { padding-left: 28px !important; margin: 8px 0 12px; list-style: revert; }
.narrative li { margin-bottom: 4px; list-style: revert; }
.narrative p { margin-bottom: 12px; }
