@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pt-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pt-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pt-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/pt-extrabold.woff2') format('woff2');
}

:root {
    color-scheme: light;
    --page: #FFFFFF;
    --band: #EEF4FF;
    --band-ink: #0B1220;
    --surface: #FFFFFF;
    --surface-2: #F3F7FF;
    --ink: #0B1220;
    --ink-2: #48536A;
    --muted: #6B7686;
    --line: #DEE6F5;
    --border: rgba(11,18,32,0.10);
    --accent: #2F6FED;
    --accent-dark: #1D57D6;
    --accent-ink: #FFFFFF;
    --accent-soft: #E7F0FF;
    --shadow: 0 1px 2px rgba(11,18,32,0.05), 0 10px 24px rgba(11,18,32,0.08);
  }
  /* Committed to a single light theme by design — see chat context. */
  :root[data-theme="dark"] { color-scheme: light; }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
      'Malgun Gothic', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .num { font-variant-numeric: tabular-nums; }

  /* ---- header ---- */
  header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 22px;
    border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
  .brand .mark {
    width: 32px; height: 32px; border-radius: 8px; background: var(--accent);
    color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  nav.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  nav.site-nav a { text-decoration: none; }
  nav.site-nav a:hover { color: var(--accent); }

  /* ---- hero: soft blue band ---- */
  .hero { background: var(--band); }
  .hero-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 28px; }
  .hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
  .kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: var(--shadow);
  }
  h1.hero-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 8px;
    text-wrap: balance;
    max-width: 22ch;
    color: var(--band-ink);
  }
  h1.hero-title .accent { color: var(--accent); }
  .hero-sub {
    font-size: 15.5px;
    color: var(--ink-2);
    max-width: 52ch;
    margin: 0;
  }
  .hero-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .search-bar {
    display: flex;
    gap: 6px;
    background: var(--surface);
    border-radius: 12px;
    padding: 4px;
    flex: 1 1 320px;
    max-width: 440px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 12px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    font-family: inherit;
  }
  .search-bar input::placeholder { color: var(--muted); }
  .search-bar button {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
  }
  .search-bar button:hover { background: var(--accent-dark); }
  .chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .chip {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--band-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
  }
  .chip:hover { border-color: var(--accent); color: var(--accent); }

  /* ---- main ---- */
  main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
  section { margin-bottom: 44px; }
  .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
  .eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
  h2 { font-size: 21px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
  .section-sub { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; max-width: 62ch; }
  .section-count { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }

  /* ---- category segmented control ---- */
  .segmented { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
  .seg-btn {
    border: none; background: transparent; color: var(--ink-2);
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    padding: 8px 14px; border-radius: 9px; cursor: pointer;
  }
  .seg-btn .c { font-weight: 600; color: var(--muted); margin-left: 4px; }
  .seg-btn.is-active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
  .seg-btn.is-active .c { color: var(--accent); }

  /* ---- FAQ: accordion, one row at a time ---- */
  .faq-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 8px; }
  .faq-row { border-top: 1px solid var(--line); }
  .faq-row:first-child { border-top: none; }
  .faq-row summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 20px; cursor: pointer; list-style: none;
    font-size: 15px; font-weight: 700; color: var(--ink);
  }
  .faq-row summary::-webkit-details-marker { display: none; }
  .faq-row summary::after { content: '⌄'; color: var(--muted); font-size: 13px; flex-shrink: 0; }
  .faq-row[open] summary::after { color: var(--accent); content: '⌃'; }
  .faq-a { font-size: 15px; color: var(--ink-2); margin: 0; padding: 0 20px 16px; line-height: 1.7; }
  .faq-a b { color: var(--ink); font-weight: 700; }

  /* ---- company grid: 3 columns desktop / 2 tablet / 1 mobile ---- */
  .co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
  .co-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
  }
  .co-item:hover { box-shadow: var(--shadow); border-color: var(--accent); }
  .co-item:focus-within { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
  .co-item[hidden] { display: none; }
  .co-card {
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .co-badge {
    width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
  }
  .co-name-col { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .co-name { font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .co-tag { font-size: 13px; font-weight: 600; color: var(--muted); overflow-wrap: break-word; }
  .co-arrow { font-size: 16px; color: var(--accent); flex-shrink: 0; }

  /* ---- per-company detail panel: docs / home / phone / fax / terms ---- */
  .co-detail { border-top: 1px solid var(--line); }
  .co-detail-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 14px; font-size: 14px; font-weight: 700;
    color: var(--accent); background: var(--accent-soft);
    cursor: pointer; list-style: none; user-select: none;
    transition: background .15s ease;
  }
  .co-detail-toggle::-webkit-details-marker { display: none; }
  .co-detail-toggle .chev { flex-shrink: 0; transition: transform .18s ease; }
  .co-detail[open] .co-detail-toggle .chev { transform: rotate(180deg); }
  .co-detail-toggle:hover { background: #DCEAFF; }
  .co-detail-grid { display: flex; flex-direction: column; background: var(--surface); }
  .detail-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; min-height: 46px;
    font-size: 14.5px; font-weight: 600; color: var(--ink);
    text-decoration: none; border-top: 1px solid var(--line);
  }
  .detail-link:first-child { border-top: none; }
  .detail-link svg { flex-shrink: 0; color: var(--accent); width: 16px; height: 16px; }
  .detail-link:hover { background: var(--surface-2); }
  .detail-link span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; word-break: keep-all; }
  .detail-link b { font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; font-size: 15px; }
  .detail-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  .empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 15px; display: none; }
  .empty-state.show { display: block; }

  .notice {
    background: var(--band);
    border-radius: 16px;
    padding: 20px 24px;
    font-size: 15px;
    color: var(--ink-2);
  }
  .notice b { color: var(--ink); }
  .notice ul { margin: 0; padding-left: 18px; }
  .notice li { margin-bottom: 8px; }
  .notice li:last-child { margin-bottom: 0; }

  /* ---- 본문 프로즈 블록 (보험 종류별 안내 등) ---- */
  .notice h2 { font-size: 17px; margin: 0 0 8px; }
  .notice h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
  .notice p { line-height: 1.7; margin: 0 0 8px; }
  .notice p:last-child { margin-bottom: 0; }
  .notice p + h3 { margin-top: 16px; }
  .notice p a { color: var(--accent); font-weight: 700; text-decoration: none; }
  .notice p a:hover { text-decoration: underline; }

  /* ---- claim guide section ---- */
  .guide-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .guide-step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; }
  .guide-step-num {
    width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-bottom: 10px;
  }
  .guide-step h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
  .guide-step p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.6; }

  .guide-meta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
  .guide-stat { flex: 1; min-width: 140px; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
  .guide-stat b { display: block; font-size: 19px; color: var(--accent); margin-bottom: 2px; }
  .guide-stat span { font-size: 13px; color: var(--ink-2); }

  .guide-docs { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 8px; }
  .guide-docs table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .guide-docs th, .guide-docs td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); }
  .guide-docs thead th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; border-top: none; }
  .guide-docs tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
  .guide-docs td { color: var(--ink-2); }

  .guide-note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 14px 0 0; }
  .guide-cta { margin-top: 14px; text-align: center; }
  .guide-cta a {
    display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  }
  .guide-cta a:hover { background: var(--accent-dark); }

  footer { border-top: 1px solid var(--line); }
  .footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px; }
  .footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
  .footer-brand .mark {
    width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  footer p { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; max-width: 62ch; }

  @media (max-width: 900px) {
    .co-grid { grid-template-columns: repeat(2, 1fr); }
    nav.site-nav { display: none; }
    .hero-top { flex-direction: column; }
    .guide-steps { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .co-grid { grid-template-columns: 1fr; }
    h1.hero-title { font-size: 24px; }
    .guide-steps { grid-template-columns: 1fr; }
  }

/* ---- mobile hamburger nav ---- */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink); align-items: center; justify-content: center; border-radius: 8px;
}
.nav-toggle:hover { background: var(--surface-2); }
.mobile-nav { display: none; flex-direction: column; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 15px 24px; font-size: 15px; font-weight: 700; color: var(--ink);
  text-decoration: none; border-top: 1px solid var(--line);
}
.mobile-nav a:first-child { border-top: none; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

/* ---- compact page head (non-hub pages) ---- */
.page-head { background: var(--band); }
.page-head-inner { max-width: 1200px; margin: 0 auto; padding: 30px 24px 26px; }
.page-back { display: inline-block; font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; margin-bottom: 10px; }
.page-back:hover { text-decoration: underline; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--band-ink); }
.page-head p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ---- related links box ---- */
.related-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.related-links a { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; }
.related-links a:hover { text-decoration: underline; }

.brand-link { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }

/* ---- CPA ad slot (adlix), below content ---- */
.cpa-slot { max-width: 1200px; margin: 0 auto; padding: 24px 24px 32px; }
/* adlix renders only <p style> on load failure / no data: hide the whole slot then */
.cpa-slot:has(p[style]) { display: none; }
.cpa-disclosure { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cpa-tag {
  display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--line);
  border-radius: 4px; font-weight: 700; color: var(--ink-2);
}
