/* govbrief-pro.css
 * UI · Professional Editorial · 원본 · ~/Downloads/govbrief-legislation-professional.html
 * 통합 · 2026-07-31 · feat/ui-professional-2026-07-31 브랜치
 * 색상 토큰: navy #102a43 · blue #1769e0 · orange #c86b00 · red #b73d37 · green #14705b
 * 원칙: 1px 외곽선 · 옅은 회색 배경 제목 · 둥근 모서리 최소 · 강한 그림자 금지 · 그라데이션 금지
 */

:root {
      --bg: #f3f5f7;
      --surface: #ffffff;
      --surface-soft: #f8fafc;
      --text: #142033;
      --muted: #657184;
      --line: #cfd6df;
      --line-dark: #9ba7b6;
      --navy: #102a43;
      --blue: #1769e0;
      --blue-soft: #e9f1ff;
      --orange: #c86b00;
      --orange-soft: #fff2df;
      --red: #b73d37;
      --green: #14705b;
      --content: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR",
        "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    a:hover { text-decoration: underline; text-underline-offset: 2px; }
    a.text-link, a.suggestions button, .footer-links a { text-decoration: underline; text-underline-offset: 3px; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }

    .skip-link {
      position: fixed;
      left: 12px;
      top: -44px;
      z-index: 1000;
      padding: 8px 12px;
      color: white;
      background: var(--navy);
      border: 1px solid #000;
    }
    .skip-link:focus { top: 12px; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      border-bottom: 2px solid var(--navy);
    }

    .header-inner {
      max-width: var(--content);
      margin: 0 auto;
      padding: 0 18px;
      min-height: 64px;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: fit-content;
      font-weight: 800;
      letter-spacing: -0.03em;
      text-decoration: none;
      color: var(--navy);
    }

    .brand-mark {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      color: #fff;
      background: var(--navy);
      border: 1px solid var(--navy);
      font-size: 12px;
      letter-spacing: 0;
    }

    .site-nav {
      display: flex;
      align-items: stretch;
      gap: 0;
      flex: 1;
    }

    .nav-link {
      padding: 20px 11px;
      border: 0;
      border-left: 1px solid #e1e5ea;
      color: #3f5068;
      background: transparent;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-link:last-child { border-right: 1px solid #e1e5ea; }

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--navy);
      background: #eef2f6;
      outline: 2px solid var(--blue);
      outline-offset: -2px;
    }

    .nav-link[aria-current="page"] {
      color: #fff;
      background: var(--navy);
    }

    .header-search {
      width: min(300px, 28vw);
      display: flex;
      align-items: center;
      gap: 0;
      background: #fff;
      border: 1px solid var(--line-dark);
    }

    .header-search input {
      width: 100%;
      min-width: 0;
      padding: 8px 10px;
      border: 0;
      outline: 0;
      color: var(--text);
      background: transparent;
    }

    .header-search button {
      align-self: stretch;
      border: 0;
      border-left: 1px solid var(--line-dark);
      padding: 7px 11px;
      color: white;
      background: var(--navy);
      font-weight: 700;
    }

    main {
      max-width: var(--content);
      min-height: calc(100vh - 160px);
      margin: 0 auto;
      padding: 22px 18px 64px;
    }

    .page { display: none; }
    .page.is-active { display: block; }

    .hero {
      padding: 20px 0 12px;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
      gap: 14px;
      align-items: stretch;
    }

    .hero-copy,
    .hero-stats,
    .panel,
    .list-panel,
    .law-main,
    .law-sidebar,
    .briefing-filter {
      background: var(--surface);
      border: 1px solid var(--line-dark);
    }

    .hero-copy {
      padding: 28px;
      border-top: 5px solid var(--navy);
    }

    .eyebrow {
      margin: 0 0 6px;
      color: var(--blue);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    h1, h2, h3, p { margin-top: 0; }

    .hero h1 {
      margin-bottom: 10px;
      color: var(--navy);
      font-size: clamp(30px, 4.2vw, 48px);
      line-height: 1.16;
      letter-spacing: -0.05em;
    }

    .hero-copy > p:not(.eyebrow) {
      max-width: 720px;
      color: var(--muted);
      font-size: 16px;
    }

    .hero-search {
      display: flex;
      gap: 0;
      margin-top: 20px;
      border: 1px solid var(--line-dark);
      background: white;
    }

    .hero-search input {
      flex: 1;
      min-width: 0;
      height: 48px;
      padding: 0 14px;
      border: 0;
      outline: none;
      background: white;
    }

    .hero-search input:focus {
      outline: 2px solid var(--blue);
      outline-offset: -2px;
    }

    .primary-button {
      min-height: 48px;
      padding: 0 17px;
      border: 0;
      border-left: 1px solid var(--line-dark);
      color: white;
      background: var(--blue);
      font-weight: 800;
    }

    .suggestions {
      margin-top: 10px;
      color: var(--muted);
      font-size: 13px;
    }

    .suggestions button {
      padding: 0;
      border: 0;
      color: var(--blue);
      background: transparent;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .hero-stats {
      display: grid;
      align-content: start;
      border-top: 5px solid var(--navy);
    }

    .stat-card {
      padding: 16px;
      background: var(--surface);
      border-top: 1px solid var(--line);
    }

    .stat-card:first-child { border-top: 0; }

    .stat-card strong {
      display: block;
      color: var(--navy);
      font-size: 24px;
      line-height: 1.2;
    }

    .stat-card span {
      color: var(--muted);
      font-size: 13px;
    }

    .section { margin-top: 22px; }

    .section-heading {
      margin-bottom: 10px;
      padding-bottom: 8px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 14px;
      border-bottom: 2px solid var(--navy);
    }

    .section-heading h2 {
      margin-bottom: 2px;
      color: var(--navy);
      font-size: 22px;
      letter-spacing: -0.035em;
    }

    .section-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .text-link {
      border: 0;
      padding: 0;
      color: var(--blue);
      background: transparent;
      font-weight: 800;
    }

    .priority-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      border: 1px solid var(--line-dark);
      background: #fff;
    }

    .priority-card {
      min-height: 210px;
      padding: 18px;
      background: var(--surface);
      border-right: 1px solid var(--line-dark);
    }

    .priority-card:last-child { border-right: 0; }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 2px 7px;
      border: 1px solid currentColor;
      font-size: 11px;
      font-weight: 850;
    }

    .badge.urgent { color: var(--red); background: #fff4f3; }
    .badge.schedule { color: var(--orange); background: var(--orange-soft); }
    .badge.change { color: var(--blue); background: var(--blue-soft); }
    .badge.source { color: var(--green); background: #edf8f4; }
    .badge.neutral { color: #5d6879; background: #f1f3f6; }

    .priority-card h3 {
      margin: 12px 0 7px;
      color: var(--navy);
      font-size: 18px;
      line-height: 1.42;
      letter-spacing: -0.03em;
    }

    .priority-card p {
      color: var(--muted);
      font-size: 14px;
    }

    .meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 5px 12px;
      color: var(--muted);
      font-size: 12px;
    }

    .two-column {
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
      gap: 14px;
    }

    .list-panel,
    .panel { padding: 18px; }

    .list-item {
      padding: 14px 0;
      border-top: 1px solid var(--line);
    }

    .list-item:first-child {
      padding-top: 0;
      border-top: 0;
    }

    .list-item h3 {
      margin: 6px 0 4px;
      color: var(--navy);
      font-size: 16px;
      line-height: 1.45;
    }

    .list-item p {
      margin-bottom: 5px;
      color: var(--muted);
      font-size: 13px;
    }

    .topic-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      border: 1px solid var(--line-dark);
      background: white;
    }

    .topic-card {
      padding: 16px;
      border-right: 1px solid var(--line-dark);
      background: var(--surface);
    }

    .topic-card:last-child { border-right: 0; }

    .topic-card strong {
      display: block;
      margin-bottom: 4px;
      color: var(--navy);
    }

    .topic-card span {
      color: var(--muted);
      font-size: 12px;
    }

    .ad-slot {
      margin-top: 20px;
      min-height: 74px;
      display: grid;
      place-items: center;
      color: #7b8797;
      border: 1px dashed var(--line-dark);
      background: #f8fafc;
      font-size: 12px;
    }

    .page-header {
      padding: 18px 0 12px;
      border-bottom: 2px solid var(--navy);
      margin-bottom: 14px;
    }

    .breadcrumb {
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 13px;
    }

    .page-header h1 {
      margin-bottom: 5px;
      color: var(--navy);
      font-size: clamp(28px, 3.7vw, 40px);
      letter-spacing: -0.045em;
      line-height: 1.2;
    }

    .page-header p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 15px;
    }

    .law-layout {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .law-sidebar {
      position: sticky;
      top: 78px;
      padding: 14px;
    }

    .law-sidebar h2 {
      padding-bottom: 7px;
      border-bottom: 1px solid var(--line-dark);
      font-size: 14px;
      color: var(--navy);
    }

    .toc-list { display: grid; gap: 0; }

    .toc-link {
      width: 100%;
      padding: 8px 8px;
      text-align: left;
      border: 0;
      border-bottom: 1px solid var(--line);
      color: #536176;
      background: transparent;
    }

    .toc-link.active {
      color: white;
      background: var(--navy);
      font-weight: 800;
    }

    .law-main { overflow: hidden; }

    .law-title-block {
      padding: 22px 24px 18px;
      border-bottom: 1px solid var(--line-dark);
    }

    .law-title-block h2 {
      margin: 8px 0 6px;
      color: var(--navy);
      font-size: 27px;
      letter-spacing: -0.04em;
    }

    .law-tabs {
      display: flex;
      gap: 0;
      padding: 0;
      border-bottom: 1px solid var(--line-dark);
      background: #f4f6f8;
      overflow-x: auto;
    }

    .law-tab {
      padding: 13px 15px;
      border: 0;
      border-right: 1px solid var(--line-dark);
      color: var(--muted);
      background: transparent;
      font-weight: 800;
      white-space: nowrap;
    }

    .law-tab.active {
      color: white;
      background: var(--navy);
    }

    .law-tab-panel {
      display: none;
      padding: 24px;
    }

    .law-tab-panel.active { display: block; }

    .legal-text {
      color: #27364c;
      font-family: "Noto Serif KR", "Batang", serif;
      font-size: 17px;
      line-height: 1.9;
    }

    .legal-text p { margin-bottom: 19px; }

    .explain-box {
      padding: 18px;
      border: 1px solid var(--line-dark);
      border-left: 5px solid var(--blue);
      background: #f6f8fc;
    }

    .related-list { display: grid; gap: 0; }

    .related-item {
      padding: 14px;
      border: 1px solid var(--line-dark);
      border-top: 0;
      background: white;
    }

    .related-item:first-child { border-top: 1px solid var(--line-dark); }

    .briefing-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      margin-bottom: 14px;
    }

    .briefing-filter {
      padding: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .filter-chip {
      padding: 7px 10px;
      border: 1px solid var(--line-dark);
      color: #4b5c72;
      background: white;
      font-weight: 750;
    }

    .filter-chip.active {
      color: white;
      border-color: var(--navy);
      background: var(--navy);
    }

    .view-toggle {
      display: inline-flex;
      border: 1px solid var(--line-dark);
      background: white;
    }

    .view-toggle button {
      padding: 8px 10px;
      border: 0;
      border-right: 1px solid var(--line-dark);
      color: var(--muted);
      background: transparent;
    }

    .view-toggle button:last-child { border-right: 0; }

    .view-toggle button.active {
      color: white;
      background: var(--navy);
      font-weight: 800;
    }

    .briefing-list {
      overflow: hidden;
      background: white;
      border: 1px solid var(--line-dark);
    }

    .briefing-row {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr) 145px;
      gap: 18px;
      padding: 18px;
      border-top: 1px solid var(--line-dark);
    }

    .briefing-row:first-child { border-top: 0; }
    .briefing-row[hidden] { display: none; }

    .briefing-date {
      color: var(--muted);
      font-size: 13px;
    }

    .briefing-body h2 {
      margin: 7px 0 5px;
      color: var(--navy);
      font-size: 18px;
      line-height: 1.45;
    }

    .briefing-body p {
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 13px;
    }

    .briefing-source {
      text-align: right;
      color: var(--muted);
      font-size: 12px;
    }

    .search-result {
      display: none;
      margin: 0 0 16px;
      padding: 14px 16px;
      border: 1px solid var(--blue);
      background: #f2f6ff;
    }

    .search-result.show { display: block; }
    .search-result strong { color: var(--blue); }

    .site-footer {
      color: #d6dde6;
      background: var(--navy);
      border-top: 4px solid #0a1d2f;
    }

    .footer-inner {
      max-width: var(--content);
      margin: 0 auto;
      padding: 28px 18px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: start;
    }

    .footer-brand {
      color: white;
      font-weight: 850;
      font-size: 18px;
    }

    .footer-inner p {
      max-width: 720px;
      margin: 5px 0 0;
      font-size: 12px;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px 14px;
    }

    .footer-links a {
      color: white;
      font-size: 12px;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    @media (max-width: 980px) {
      .header-inner {
        flex-wrap: wrap;
        gap: 0 12px;
        padding-top: 8px;
        padding-bottom: 8px;
      }

      .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        border-top: 1px solid var(--line);
      }

      .header-search {
        margin-left: auto;
        width: min(420px, 58vw);
      }

      .hero { grid-template-columns: 1fr; }
      .priority-grid { grid-template-columns: 1fr 1fr; }

      .priority-card:nth-child(2) { border-right: 0; }
      .priority-card:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line-dark);
      }

      .two-column { grid-template-columns: 1fr; }
      .topic-grid { grid-template-columns: 1fr 1fr; }
      .topic-card:nth-child(2) { border-right: 0; }
      .topic-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

      .law-layout { grid-template-columns: 1fr; }
      .law-sidebar { position: static; }

      .toc-list {
        grid-template-columns: repeat(6, minmax(100px, 1fr));
        overflow-x: auto;
      }
    }

    @media (max-width: 720px) {
      .header-inner { padding-inline: 12px; }
      .brand { font-size: 15px; }
      .brand-mark { width: 28px; height: 28px; }
      .header-search {
        order: 2;
        width: 100%;
        margin-top: 6px;
      }
      .site-nav { margin-top: 6px; }
      .nav-link {
        padding: 10px;
        font-size: 13px;
      }

      main { padding-inline: 12px; }

      .hero { padding-top: 12px; }
      .hero-copy { padding: 22px 18px; }
      .hero-search { flex-direction: column; border: 0; }
      .hero-search input { border: 1px solid var(--line-dark); }
      .hero-search .primary-button {
        width: 100%;
        border: 0;
        margin-top: 6px;
      }

      .priority-grid,
      .topic-grid {
        grid-template-columns: 1fr;
      }

      .priority-card,
      .topic-card {
        border-right: 0 !important;
        border-top: 1px solid var(--line-dark);
      }

      .priority-card:first-child,
      .topic-card:first-child {
        border-top: 0;
      }

      .priority-card:nth-child(3) { grid-column: auto; }

      .section-heading {
        align-items: start;
        flex-direction: column;
      }

      .briefing-toolbar { grid-template-columns: 1fr; }

      .briefing-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      .briefing-source { text-align: left; }

      .law-title-block,
      .law-tab-panel {
        padding-left: 16px;
        padding-right: 16px;
      }

      .footer-inner { grid-template-columns: 1fr; }
      .footer-links { justify-content: flex-start; }
    }

/* ═══ next style block ═══ */

/* Refined top navigation and one-line desktop layout */
  :root {
    --content: 1480px;
  }

  body {
    min-width: 1180px;
  }

  .site-header {
    border-bottom: 1px solid #aeb8c5;
    box-shadow: 0 2px 0 rgba(16, 42, 67, 0.06);
  }

  .header-inner {
    min-height: 70px;
    padding: 0 24px;
    gap: 22px;
  }

  .brand {
    min-width: 132px;
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border: 0;
    font-size: 12px;
  }

  .site-nav {
    align-self: stretch;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0;
    overflow: visible;
  }

  .nav-link {
    min-width: 112px;
    height: 48px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: #43536a;
    background: transparent;
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .nav-link:last-child {
    border-right: 1px solid transparent;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--navy);
    background: #f1f4f7;
    border-color: #c7d0da;
    outline: none;
  }

  .nav-link[aria-current="page"] {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: inset 0 -3px 0 #3e8cff;
  }

  .header-search {
    width: 330px;
    min-width: 330px;
    height: 42px;
  }

  .header-search input {
    padding: 0 12px;
    font-size: 13px;
  }

  .header-search button {
    min-width: 56px;
    padding: 0 12px;
    font-size: 13px;
  }

  main {
    padding: 24px 24px 72px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .hero-copy {
    padding: 30px 32px;
  }

  .hero h1 {
    font-size: 42px;
    white-space: nowrap;
  }

  .hero-copy > p:not(.eyebrow),
  .eyebrow,
  .suggestions,
  .section-heading h2,
  .section-heading p,
  .priority-card h3,
  .priority-card p,
  .list-item h3,
  .list-item p,
  .topic-card strong,
  .topic-card span,
  .page-header h1,
  .page-header p,
  .breadcrumb,
  .law-title-block h2,
  .briefing-body h2,
  .briefing-body p,
  .briefing-source,
  .meta-row,
  .footer-inner p {
    white-space: nowrap;
  }

  .section-heading {
    align-items: center;
  }

  .priority-card {
    min-height: 188px;
    padding: 17px 18px;
  }

  .priority-card h3 {
    font-size: 17px;
  }

  .priority-card p,
  .list-item p,
  .briefing-body p {
    font-size: 13px;
  }

  .priority-grid,
  .topic-grid,
  .two-column,
  .briefing-list,
  .law-main,
  .law-sidebar,
  .hero-copy,
  .hero-stats {
    overflow-x: auto;
  }

  .priority-card,
  .topic-card,
  .list-item,
  .briefing-row,
  .law-title-block,
  .law-tab-panel,
  .hero-copy {
    min-width: max-content;
  }

  .priority-grid {
    grid-template-columns: repeat(3, minmax(410px, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(4, minmax(310px, 1fr));
  }

  .two-column {
    grid-template-columns: minmax(920px, 1fr) 430px;
  }

  .list-panel,
  .panel {
    min-width: 0;
  }

  .briefing-row {
    grid-template-columns: 135px minmax(940px, 1fr) 170px;
    align-items: center;
  }

  .briefing-body {
    min-width: 940px;
  }

  .law-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .law-main {
    min-width: 1120px;
  }

  .law-tab-panel {
    min-width: 1080px;
  }

  .legal-text {
    font-size: 15.5px;
  }

  .legal-text p,
  .explain-box p,
  .law-tab-panel > p,
  .related-item p {
    white-space: nowrap;
  }

  .legal-text,
  .explain-box,
  .related-list {
    overflow-x: auto;
  }

  .filter-chip {
    min-width: 92px;
    text-align: center;
  }

  .briefing-filter {
    flex-wrap: nowrap;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  @media (max-width: 1180px) {
    body {
      min-width: 0;
    }

    .header-inner {
      min-width: 1120px;
    }

    main,
    .footer-inner {
      min-width: 1120px;
    }

    .site-header,
    main,
    .site-footer {
      overflow-x: auto;
    }
  }

/* ═══ next style block ═══ */

/* Browser-reviewed vertical rhythm */
  .header-inner {
    min-height: 76px;
  }

  .site-nav {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .nav-link {
    height: 50px;
  }

  main {
    padding-top: 34px;
    padding-bottom: 86px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 20px;
    gap: 18px;
  }

  .hero-copy {
    padding: 38px 36px 34px;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-bottom: 0;
    line-height: 1.75;
  }

  .eyebrow {
    margin-bottom: 11px;
  }

  .hero h1 {
    margin-bottom: 18px;
    line-height: 1.2;
  }

  .hero-search {
    margin-top: 27px;
  }

  .suggestions {
    margin-top: 15px;
    line-height: 1.7;
  }

  .hero-stats .stat-card {
    padding: 23px 20px;
  }

  .hero-stats .stat-card strong {
    margin-bottom: 5px;
  }

  .section {
    margin-top: 38px;
  }

  .section-heading {
    margin-bottom: 17px;
    padding-bottom: 13px;
  }

  .section-heading h2 {
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .section-heading p {
    line-height: 1.65;
  }

  .priority-card {
    min-height: 230px;
    padding: 27px 23px 25px;
  }

  .priority-card h3 {
    margin-top: 17px;
    margin-bottom: 12px;
    line-height: 1.55;
  }

  .priority-card p {
    margin-bottom: 17px;
    line-height: 1.72;
  }

  .meta-row {
    line-height: 1.7;
  }

  .ad-slot {
    margin-top: 31px;
    min-height: 92px;
  }

  .list-panel,
  .panel {
    padding: 25px 24px;
  }

  .list-panel .section-heading,
  .panel .section-heading {
    margin-bottom: 4px;
  }

  .list-item {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .list-item:first-child {
    padding-top: 18px;
  }

  .list-item h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    line-height: 1.55;
  }

  .list-item p {
    margin-bottom: 10px;
    line-height: 1.7;
  }

  .topic-card {
    min-height: 112px;
    padding: 25px 22px;
  }

  .topic-card strong {
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .topic-card span {
    line-height: 1.65;
  }

  .page-header {
    padding-top: 25px;
    padding-bottom: 23px;
    margin-bottom: 24px;
  }

  .breadcrumb {
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .page-header h1 {
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .page-header p {
    line-height: 1.7;
  }

  .law-layout {
    gap: 18px;
  }

  .law-sidebar {
    padding: 20px 17px;
  }

  .law-sidebar h2 {
    margin-bottom: 11px;
    padding-bottom: 11px;
  }

  .toc-link {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .law-title-block {
    padding: 33px 31px 27px;
  }

  .law-title-block h2 {
    margin-top: 13px;
    margin-bottom: 13px;
    line-height: 1.35;
  }

  .law-tab {
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .law-tab-panel {
    padding: 36px 32px 38px;
  }

  .legal-text {
    line-height: 2.05;
  }

  .legal-text p {
    margin-bottom: 28px;
  }

  .related-item {
    padding: 22px 20px;
    line-height: 1.7;
  }

  .related-item p {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.7;
  }

  .explain-box {
    padding: 26px 24px;
    margin-bottom: 28px;
  }

  .explain-box h3 {
    margin-bottom: 11px;
  }

  .briefing-toolbar {
    margin-bottom: 20px;
    gap: 14px;
  }

  .briefing-filter {
    padding: 15px;
    gap: 9px;
  }

  .filter-chip {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .view-toggle button {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .briefing-row {
    padding: 28px 22px;
    gap: 22px;
  }

  .briefing-body h2 {
    margin-top: 12px;
    margin-bottom: 9px;
    line-height: 1.55;
  }

  .briefing-body p {
    margin-bottom: 11px;
    line-height: 1.7;
  }

  .briefing-date,
  .briefing-source {
    line-height: 1.7;
  }

  .search-result {
    margin-bottom: 26px;
    padding: 18px 20px;
    line-height: 1.7;
  }

  .footer-inner {
    padding-top: 39px;
    padding-bottom: 39px;
  }

  .footer-brand {
    margin-bottom: 9px;
  }

  .footer-inner p,
  .footer-links {
    line-height: 1.8;
  }

/* ═══ next style block ═══ */

/* =========================================================
     Consistent block-border system
     Every visible content unit uses a complete 1px outline.
     ========================================================= */

  :root {
    --module-line: #aeb8c5;
    --module-line-soft: #d7dde5;
    --module-head: #f3f5f7;
    --module-body: #ffffff;
    --module-gap: 14px;
  }

  /* Page-level title block */
  .page-header {
    margin: 22px 0 18px;
    padding: 24px 26px;
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  /* General titled section */
  .section:not(.two-column) {
    margin-top: 28px;
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  .section:not(.two-column) > .section-heading {
    margin: 0;
    padding: 17px 20px;
    border: 0;
    border-bottom: 1px solid var(--module-line);
    background: var(--module-head);
  }

  .section:not(.two-column) > .priority-grid,
  .section:not(.two-column) > .topic-grid,
  .section:not(.two-column) > .list-panel {
    margin: 0;
    padding: 16px;
  }

  /* Hero: two clearly separated modules */
  .hero {
    gap: var(--module-gap);
  }

  .hero-copy,
  .hero-stats {
    border: 1px solid var(--module-line);
    border-top: 4px solid var(--navy);
  }

  .hero-stats {
    padding: 14px;
    gap: 10px;
    background: var(--module-head);
  }

  .stat-card {
    padding: 16px;
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  /* Priority cards: no mixed outer-border / separator treatment */
  .priority-grid {
    gap: 12px;
    border: 0;
    background: transparent;
  }

  .priority-card,
  .priority-card:last-child,
  .priority-card:nth-child(2),
  .priority-card:nth-child(3) {
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  /* Two-column home modules */
  .section.two-column {
    margin-top: 28px;
    gap: var(--module-gap);
  }

  .section.two-column > .list-panel,
  .section.two-column > .panel {
    padding: 0;
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  .section.two-column .section-heading {
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--module-line);
    background: var(--module-head);
  }

  .section.two-column .list-item {
    margin: 12px 16px;
  }

  /* Every list entry receives a complete outline */
  .list-panel > .list-item,
  .panel > .list-item,
  .law-tab-panel .list-item {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--module-line-soft);
    background: #fff;
  }

  .list-panel > .list-item:first-of-type,
  .panel > .list-item:first-of-type {
    margin-top: 16px;
  }

  .list-panel > .list-item:last-child,
  .panel > .list-item:last-child {
    margin-bottom: 16px;
  }

  /* Topic cards */
  .topic-grid {
    gap: 12px;
    border: 0;
    background: transparent;
  }

  .topic-card,
  .topic-card:last-child,
  .topic-card:nth-child(2),
  .topic-card:nth-child(n+3) {
    min-height: 96px;
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  /* Briefing filter and rows */
  .briefing-toolbar {
    margin-bottom: 16px;
  }

  .briefing-filter,
  .view-toggle {
    border: 1px solid var(--module-line);
  }

  .briefing-list {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .briefing-row,
  .briefing-row:first-child {
    border: 1px solid var(--module-line);
    background: var(--module-body);
  }

  .briefing-date {
    align-self: stretch;
    padding-right: 16px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--module-line-soft);
  }

  .briefing-source {
    align-self: stretch;
    padding-left: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-left: 1px solid var(--module-line-soft);
  }

  /* Law page */
  .law-layout {
    gap: var(--module-gap);
  }

  .law-sidebar,
  .law-main {
    border: 1px solid var(--module-line);
  }

  .law-sidebar {
    padding: 14px;
    background: var(--module-head);
  }

  .toc-list {
    gap: 8px;
  }

  .toc-link,
  .toc-link:last-child {
    border: 1px solid var(--module-line-soft);
    background: var(--module-body);
  }

  .toc-link.active {
    border-color: var(--navy);
    background: var(--navy);
  }

  .law-title-block {
    border-bottom: 1px solid var(--module-line);
    background: var(--module-body);
  }

  .law-tabs {
    border-bottom: 1px solid var(--module-line);
  }

  .law-tab-panel {
    background: #fff;
  }

  .legal-text {
    padding: 20px;
    border: 1px solid var(--module-line-soft);
    background: #fff;
  }

  .explain-box {
    border: 1px solid var(--module-line);
    border-left: 5px solid var(--blue);
  }

  .related-list {
    gap: 10px;
  }

  .related-item,
  .related-item:first-child {
    border: 1px solid var(--module-line-soft);
  }

  /* Search result and advertising blocks */
  .search-result {
    border: 1px solid var(--blue);
  }

  .ad-slot {
    margin-top: 24px;
    margin-bottom: 4px;
    border: 1px dashed var(--module-line);
  }

  /* Footer is also a clearly bounded region */
  .site-footer {
    border-top: 4px solid #081c2e;
  }

  /* Prevent old responsive rules from removing selected borders */
  @media (max-width: 980px) {
    .priority-card,
    .priority-card:nth-child(2),
    .priority-card:nth-child(3),
    .topic-card,
    .topic-card:nth-child(2),
    .topic-card:nth-child(n+3) {
      border: 1px solid var(--module-line) !important;
    }
  }

  @media (max-width: 720px) {
    .priority-card,
    .topic-card {
      border: 1px solid var(--module-line) !important;
    }

    .briefing-date,
    .briefing-source {
      padding: 0;
      border: 0;
    }

    .briefing-date {
      padding-bottom: 8px;
      border-bottom: 1px solid var(--module-line-soft);
    }

    .briefing-source {
      padding-top: 8px;
      justify-content: flex-start;
      border-top: 1px solid var(--module-line-soft);
    }
  }

/* ═══ next style block ═══ */

.more-button {
    min-width: 88px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--module-line);
    color: var(--navy);
    background: #fff;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
  }

  .more-button:hover,
  .more-button:focus-visible,
  .row-detail-button:hover,
  .row-detail-button:focus-visible {
    color: #fff;
    border-color: var(--navy);
    background: var(--navy);
    outline: none;
  }

  .clickable-block {
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
  }

  .clickable-block:hover,
  .clickable-block:focus-visible {
    border-color: var(--blue) !important;
    background: #f7faff;
    outline: 2px solid rgba(23, 105, 224, 0.16);
    outline-offset: -2px;
  }

  .detail-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .law-search-module {
    padding: 18px;
  }

  .laws-search {
    display: flex;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .laws-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 0;
    outline: 0;
  }

  .laws-search input:focus {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
  }

  .laws-search .primary-button {
    border-left: 1px solid var(--module-line);
  }

  .law-filter-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap; /* 2026-08-02 모바일: 5개 필터 탭이 한 줄 넘쳐 시행규칙·행정규칙 잘리던 것 → 줄바꿈 */
    gap: 7px;
  }

  .law-result-list {
    padding: 16px;
    display: grid;
    gap: 12px;
  }

  .law-result {
    min-width: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 112px;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .law-result-main {
    min-width: 0;
  }

  .law-result-main h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 17px;
    white-space: nowrap;
  }

  .law-result-main p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .row-detail-button {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--module-line);
    color: var(--navy);
    background: #fff;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
  }

  @media (max-width: 720px) {
    .detail-page-header {
      align-items: flex-start;
      flex-direction: column;
    }

    .law-result {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .row-detail-button {
      width: 100%;
    }
  }

/* ═══ next style block ═══ */

.topic-criteria-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .topic-criterion {
    min-height: 112px;
    padding: 17px;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .topic-criterion strong,
  .topic-criterion span {
    display: block;
    white-space: normal;
  }

  .topic-criterion strong {
    margin-bottom: 9px;
    color: var(--navy);
  }

  .topic-criterion span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
  }

  .topic-list-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .topic-list-card {
    min-width: 0;
    min-height: 186px;
    padding: 19px;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .topic-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
  }

  .topic-list-card h3 {
    margin: 18px 0 8px;
    color: var(--navy);
    font-size: 20px;
  }

  .topic-list-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    white-space: normal;
  }

  .emerging-topic-list {
    padding: 16px;
    display: grid;
    gap: 10px;
  }

  .emerging-topic {
    min-height: 66px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 90px 240px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .emerging-topic strong {
    color: var(--navy);
  }

  .emerging-topic > span:last-child {
    color: var(--muted);
    font-size: 13px;
  }

  .topic-overview-grid,
  .topic-related-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    gap: 14px;
  }

  .topic-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-overview-main,
  .topic-keywords-module,
  .topic-related-module {
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .module-heading {
    min-height: 76px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--module-line);
    background: var(--module-head);
  }

  .module-heading h2 {
    margin-bottom: 2px;
    color: var(--navy);
    font-size: 20px;
  }

  .module-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }

  .topic-overview-body {
    padding: 18px;
  }

  .topic-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--module-line-soft);
    border-left: 1px solid var(--module-line-soft);
  }

  .topic-facts > div {
    min-height: 92px;
    padding: 16px;
    border-right: 1px solid var(--module-line-soft);
    border-bottom: 1px solid var(--module-line-soft);
  }

  .topic-facts dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .topic-facts dd {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.6;
  }

  .keyword-list {
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
  }

  .keyword-list span {
    padding: 7px 10px;
    border: 1px solid var(--module-line);
    background: #f7f9fb;
    color: #40516a;
    font-size: 13px;
  }

  .topic-timeline {
    padding: 16px;
    display: grid;
    gap: 10px;
  }

  .timeline-row {
    min-height: 70px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 110px 100px minmax(0, 1fr) 92px;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .timeline-row time {
    color: var(--muted);
    font-size: 13px;
  }

  .timeline-row > div strong,
  .timeline-row > div span {
    display: block;
  }

  .timeline-row > div strong {
    color: var(--navy);
    font-size: 14px;
  }

  .timeline-row > div span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
  }

  .topic-related-list {
    padding: 14px;
    display: grid;
    gap: 10px;
  }

  .topic-related-row {
    min-height: 74px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .topic-related-row strong,
  .topic-related-row span {
    display: block;
  }

  .topic-related-row strong {
    color: var(--navy);
    font-size: 14px;
  }

  .topic-related-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
  }

  .editorial-note {
    margin: 16px;
    padding: 18px;
    border: 1px solid var(--module-line);
    border-left: 5px solid var(--navy);
    background: #fff;
  }

  .editorial-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
  }

  .editorial-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    white-space: normal;
  }

  @media (max-width: 980px) {
    .topic-criteria-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-overview-grid,
    .topic-related-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 720px) {
    .topic-criteria-grid,
    .topic-list-grid {
      grid-template-columns: 1fr;
    }

    .emerging-topic,
    .timeline-row,
    .topic-related-row {
      grid-template-columns: 1fr;
    }

    .topic-facts {
      grid-template-columns: 1fr;
    }
  }

/* ═══ next style block ═══ */

.prototype-label {
    padding: 6px 9px;
    border: 1px solid var(--orange);
    color: var(--orange);
    background: #fff8ed;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .legislation-home-list {
    padding: 16px;
    display: grid;
    gap: 11px;
  }

  .legislation-home-row {
    min-height: 82px;
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 350px 100px;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .legislation-home-main strong,
  .legislation-home-main span {
    display: block;
  }

  .legislation-home-main strong {
    margin-bottom: 5px;
    color: var(--navy);
    font-size: 15px;
  }

  .legislation-home-main span,
  .legislation-home-meta {
    color: var(--muted);
    font-size: 12px;
  }

  .legislation-search-module {
    padding: 18px;
  }

  .legislation-search-row {
    display: flex;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .legislation-search-row input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 0;
    outline: none;
  }

  .legislation-search-row input:focus {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
  }

  .legislation-filter-groups {
    margin-top: 14px;
    display: grid;
    gap: 10px;
  }

  .legislation-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }

  .legislation-filter-group > strong {
    width: 82px;
    color: var(--navy);
    font-size: 13px;
  }

  .bill-list {
    padding: 16px;
    display: grid;
    gap: 12px;
  }

  .bill-row {
    min-height: 128px;
    padding: 18px;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 106px;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .bill-row[hidden] {
    display: none;
  }

  .bill-importance {
    min-height: 76px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border-right: 1px solid var(--module-line-soft);
  }

  .bill-importance strong {
    color: var(--navy);
    font-size: 20px;
  }

  .bill-row-main {
    min-width: 0;
  }

  .bill-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .bill-number {
    color: var(--muted);
    font-size: 12px;
  }

  .bill-row-main h3 {
    margin: 12px 0 7px;
    color: var(--navy);
    font-size: 18px;
    white-space: nowrap;
  }

  .bill-row-main p {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .bill-empty-state {
    margin: 0 16px 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--module-line);
    color: var(--muted);
    background: #fff;
  }

  .bill-warning {
    margin-bottom: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--orange);
    background: #fff8ed;
  }

  .bill-warning strong {
    color: var(--orange);
  }

  .bill-warning span {
    color: #67502f;
    font-size: 13px;
  }

  .bill-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 14px;
  }

  .bill-summary-main,
  .bill-action-module,
  .bill-detail-module {
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .bill-facts {
    margin: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bill-facts > div {
    min-height: 86px;
    padding: 14px;
    border-top: 1px solid var(--module-line-soft);
    border-left: 1px solid var(--module-line-soft);
  }

  .bill-facts > div:nth-child(-n+3) {
    border-top: 1px solid var(--module-line-soft);
  }

  .bill-facts > div:nth-child(3n) {
    border-right: 1px solid var(--module-line-soft);
  }

  .bill-facts > div:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--module-line-soft);
  }

  .bill-facts dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .bill-facts dd {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
  }

  .bill-action-list {
    padding: 15px;
    display: grid;
    gap: 9px;
  }

  .bill-action-link {
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    border: 1px solid var(--module-line);
    color: var(--navy);
    background: #fff;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    text-align: left;
  }

  .bill-action-link:hover,
  .bill-action-link:focus-visible {
    color: #fff;
    border-color: var(--navy);
    background: var(--navy);
    outline: none;
  }

  .bill-stage-tracker {
    padding: 24px 18px 18px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bill-stage-step {
    position: relative;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
  }

  .bill-stage-step::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
    height: 2px;
    background: var(--module-line);
  }

  .bill-stage-step:last-child::after {
    display: none;
  }

  .bill-stage-dot {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 2px solid var(--module-line);
    background: #fff;
    font-weight: 800;
  }

  .bill-stage-step.complete {
    color: var(--green);
  }

  .bill-stage-step.complete .bill-stage-dot {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
  }

  .bill-stage-step.complete::after {
    background: var(--green);
  }

  .bill-stage-step.current {
    color: var(--blue);
  }

  .bill-stage-step.current .bill-stage-dot {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
  }

  .bill-key-points {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
  }

  .bill-key-points article {
    min-height: 136px;
    padding: 17px;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .bill-key-points strong {
    display: block;
    margin-bottom: 11px;
    color: var(--navy);
  }

  .bill-key-points p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    white-space: normal;
  }

  .bill-comparison {
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
  }

  .bill-comparison-column {
    min-height: 166px;
    padding: 20px;
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .bill-comparison-column.proposed {
    border-top: 4px solid var(--blue);
    background: #f7faff;
  }

  .bill-comparison-column h3 {
    color: var(--navy);
  }

  .bill-comparison-column p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: normal;
  }

  .bill-comparison-arrow {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 28px;
    font-weight: 900;
  }

  .bill-detail-columns {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bill-long-text {
    min-height: 230px;
    padding: 20px;
  }

  .bill-long-text p,
  .bill-long-text li {
    color: var(--muted);
    line-height: 1.8;
    white-space: normal;
  }

  .bill-long-text ul {
    margin: 0;
    padding-left: 22px;
  }

  .bill-long-text li + li {
    margin-top: 10px;
  }

  .bill-related-links {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
  }

  .bill-related-card {
    min-height: 92px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--module-line);
    color: var(--navy);
    background: #fff;
    text-align: left;
  }

  .bill-related-card span {
    color: var(--muted);
    font-size: 12px;
  }

  @media (max-width: 1180px) {
    .legislation-home-row {
      grid-template-columns: 105px minmax(520px, 1fr) 320px 100px;
    }

    .bill-row {
      min-width: 1040px;
    }
  }

  @media (max-width: 980px) {
    .bill-summary-grid,
    .bill-detail-columns {
      grid-template-columns: 1fr;
    }

    .bill-key-points,
    .bill-related-links {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 720px) {
    .legislation-home-row,
    .bill-row {
      min-width: 0;
      grid-template-columns: 1fr;
    }

    .bill-importance {
      padding: 0 0 12px;
      border-right: 0;
      border-bottom: 1px solid var(--module-line-soft);
    }

    .bill-facts,
    .bill-key-points,
    .bill-related-links {
      grid-template-columns: 1fr;
    }

    .bill-facts > div {
      border-right: 1px solid var(--module-line-soft);
    }

    .bill-stage-tracker {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .bill-stage-step {
      min-height: 48px;
      flex-direction: row;
      justify-content: flex-start;
      text-align: left;
    }

    .bill-stage-step::after {
      display: none;
    }

    .bill-comparison {
      grid-template-columns: 1fr;
    }

    .bill-comparison-arrow {
      transform: rotate(90deg);
    }
  }

/* ═══ next style block ═══ */

/* ==========================================================
     GovBrief Professional Editorial UI
     ========================================================== */

  :root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-blue: #f4f8fd;
    --ink-950: #0f1f33;
    --ink-900: #17283d;
    --ink-800: #23364d;
    --ink-700: #3c4b5f;
    --ink-600: #526176;
    --ink-500: #6b7788;
    --ink-400: #8893a2;
    --navy: #18324b;
    --navy-2: #244d73;
    --blue: #245ea8;
    --blue-dark: #19487f;
    --blue-soft: #edf4fc;
    --green: #15705c;
    --green-soft: #eaf7f2;
    --orange: #a85b08;
    --orange-soft: #fff4e6;
    --red: #a8433d;
    --red-soft: #fff0ef;
    --line: #d5dce5;
    --line-strong: #aeb8c5;
    --module-line: #cbd4df;
    --module-line-soft: #e1e6ed;
    --module-head: #f6f8fb;
    --content: 1420px;
  }

  body {
    color: var(--ink-800);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.68;
    letter-spacing: -0.014em;
  }

  .site-header {
    border-bottom: 1px solid #c6ced8;
    box-shadow: 0 2px 8px rgba(20, 42, 67, 0.045);
  }

  .brand {
    color: var(--ink-950);
    letter-spacing: -0.04em;
  }

  .brand-mark {
    background: var(--navy);
  }

  .nav-link {
    color: var(--ink-600);
    font-weight: 760;
  }

  .nav-link[aria-current="page"] {
    background: var(--navy);
    box-shadow: inset 0 -3px 0 #5b9be1;
  }

  .header-search {
    border-color: #b8c3cf;
    background: #fbfcfd;
  }

  .page-header {
    position: relative;
    margin: 26px 0 20px;
    padding: 28px 30px 26px;
    border: 1px solid var(--module-line);
    border-top: 4px solid var(--navy);
    background: #fff;
  }

  .page-header::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 74px;
    height: 3px;
    background: var(--blue);
  }

  .breadcrumb {
    margin-bottom: 9px;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 700;
  }

  .page-header h1 {
    margin-bottom: 8px;
    color: var(--ink-950);
    font-size: 38px;
    font-weight: 820;
    letter-spacing: -0.055em;
  }

  .page-header p {
    color: var(--ink-600);
    font-size: 15px;
  }

  .section,
  .topic-overview-main,
  .topic-keywords-module,
  .topic-related-module,
  .bill-summary-main,
  .bill-action-module,
  .bill-detail-module {
    border-color: var(--module-line);
    background: #fff;
  }

  .section:not(.two-column) > .section-heading,
  .section.two-column .section-heading,
  .module-heading {
    min-height: 82px;
    padding: 17px 21px;
    border-bottom: 1px solid var(--module-line);
    background: var(--module-head);
  }

  .section-heading h2,
  .module-heading h2 {
    margin-bottom: 4px;
    color: var(--ink-950);
    font-size: 20px;
    font-weight: 810;
    letter-spacing: -0.035em;
  }

  .section-heading p,
  .module-heading p {
    color: var(--ink-500);
    font-size: 12.5px;
    line-height: 1.55;
  }

  .section-heading > div:first-child,
  .module-heading > div:first-child {
    position: relative;
    padding-left: 13px;
  }

  .section-heading > div:first-child::before,
  .module-heading > div:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--blue);
  }

  .badge {
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .badge.urgent {
    color: var(--red);
    border-color: #d9a4a0;
    background: var(--red-soft);
  }

  .badge.schedule {
    color: var(--orange);
    border-color: #ddba8c;
    background: var(--orange-soft);
  }

  .badge.change {
    color: var(--blue-dark);
    border-color: #a9c5e5;
    background: var(--blue-soft);
  }

  .badge.source {
    color: var(--green);
    border-color: #a8d3c5;
    background: var(--green-soft);
  }

  .badge.neutral {
    color: var(--ink-600);
    border-color: #c9d0da;
    background: #f3f5f7;
  }

  .meta-row {
    color: var(--ink-500);
    font-size: 12px;
  }

  .meta-row span {
    position: relative;
  }

  .meta-row span + span {
    padding-left: 13px;
  }

  .meta-row span + span::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a3adba;
    transform: translateY(-50%);
  }

  .more-button,
  .row-detail-button {
    border-color: #b7c1cc;
    color: var(--navy);
    background: #fff;
  }

  .more-button:hover,
  .more-button:focus-visible,
  .row-detail-button:hover,
  .row-detail-button:focus-visible {
    color: #fff;
    border-color: var(--blue-dark);
    background: var(--blue-dark);
  }

  /* Home and common list hierarchy */
  .priority-card h3,
  .list-item h3,
  .topic-list-card h3,
  .bill-row-main h3,
  .legislation-home-main strong,
  .timeline-row > div strong,
  .topic-related-row strong {
    color: var(--ink-950);
  }

  .priority-card p,
  .list-item p,
  .topic-list-card p,
  .bill-row-main p,
  .legislation-home-main span,
  .briefing-body p,
  .topic-related-row span {
    color: var(--ink-600);
  }

  .clickable-block:hover,
  .clickable-block:focus-visible {
    border-color: #779fc8 !important;
    background: #f7fafe;
    box-shadow: inset 4px 0 0 var(--blue);
    outline: none;
  }

  /* Legislation overview */
  .legislation-overview {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 180px 180px 180px minmax(0, 1fr);
    border: 1px solid var(--module-line);
    background: #fff;
  }

  .legislation-overview-item {
    min-height: 116px;
    padding: 19px 21px;
    border-right: 1px solid var(--module-line-soft);
    background: #fff;
  }

  .overview-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .legislation-overview-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-950);
    font-size: 26px;
    line-height: 1.1;
  }

  .legislation-overview-item small {
    color: var(--ink-500);
    font-size: 11px;
  }

  .legislation-overview-note {
    min-width: 0;
    padding: 21px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-blue);
  }

  .legislation-overview-note strong {
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 13px;
  }

  .legislation-overview-note span {
    color: var(--ink-700);
    font-size: 13px;
    line-height: 1.62;
    white-space: normal;
  }

  .prototype-label {
    color: #765019;
    border-color: #d2b077;
    background: #fff8ed;
  }

  .legislation-filter-group > strong {
    color: var(--ink-800);
  }

  .filter-chip {
    color: var(--ink-600);
    border-color: #c5ced8;
  }

  .filter-chip.active {
    color: #fff;
    border-color: var(--navy);
    background: var(--navy);
  }

  /* Bill list */
  .bill-list {
    gap: 14px;
    padding: 18px;
  }

  .bill-row {
    min-height: 144px;
    padding: 20px;
    grid-template-columns: 118px minmax(0, 1fr) 112px;
    border-color: var(--module-line);
  }

  .bill-importance {
    min-height: 88px;
    border-right-color: var(--module-line-soft);
  }

  .bill-importance strong {
    color: var(--ink-950);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
  }

  .bill-row-top {
    margin-bottom: 5px;
  }

  .bill-number {
    color: var(--ink-500);
    font-weight: 700;
  }

  .bill-row-main h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    font-weight: 810;
  }

  .bill-row-main p {
    margin-bottom: 11px;
    font-size: 13.5px;
    font-weight: 510;
  }

  /* Bill detail warning and executive summary */
  .bill-warning {
    margin-bottom: 14px;
    padding: 13px 16px;
    border-color: #d9b47e;
    background: #fff9ef;
  }

  .bill-warning strong {
    min-width: 96px;
    color: #8c520d;
    font-size: 12px;
  }

  .bill-warning span {
    color: #65543d;
    font-size: 12.5px;
  }

  .bill-executive-summary {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 180px;
    border: 1px solid #aebfd1;
    border-left: 5px solid var(--blue);
    background: #fff;
  }

  .executive-summary-label,
  .executive-summary-status {
    padding: 21px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-blue);
  }

  .executive-summary-label {
    border-right: 1px solid #d6e0ea;
  }

  .executive-summary-label span {
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 850;
  }

  .executive-summary-label small {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 10px;
  }

  .executive-summary-content {
    padding: 22px 25px;
  }

  .executive-summary-content h2 {
    margin-bottom: 7px;
    color: var(--ink-950);
    font-size: 17px;
    font-weight: 810;
  }

  .executive-summary-content p {
    margin: 0;
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.68;
    white-space: normal;
  }

  .executive-summary-status {
    border-left: 1px solid #d6e0ea;
  }

  .executive-summary-status span {
    margin-bottom: 5px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 800;
  }

  .executive-summary-status strong {
    color: var(--blue-dark);
    font-size: 15px;
  }

  /* Bill facts */
  .bill-facts > div {
    min-height: 92px;
    background: #fff;
  }

  .bill-facts dt {
    color: var(--ink-500);
    font-size: 11px;
  }

  .bill-facts dd {
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 760;
  }

  .bill-action-link:first-child {
    color: #fff;
    border-color: var(--blue-dark);
    background: var(--blue-dark);
  }

  /* Stage tracker */
  .bill-stage-tracker {
    padding: 28px 22px 22px;
  }

  .bill-stage-step {
    color: var(--ink-500);
    font-weight: 720;
  }

  .bill-stage-step.current {
    color: var(--blue-dark);
  }

  .bill-stage-step.complete {
    color: var(--green);
  }

  /* Key points */
  .bill-key-points {
    gap: 12px;
    padding: 18px;
  }

  .bill-key-points article {
    min-height: 150px;
    padding: 19px;
    border-top: 3px solid #7f9fbe;
    background: #fff;
  }

  .bill-key-points article:nth-child(1) {
    border-top-color: var(--blue);
  }

  .bill-key-points article:nth-child(2) {
    border-top-color: #587694;
  }

  .bill-key-points article:nth-child(3) {
    border-top-color: var(--orange);
  }

  .bill-key-points article:nth-child(4) {
    border-top-color: var(--green);
  }

  .bill-key-points strong {
    color: var(--ink-950);
    font-size: 13px;
  }

  .bill-key-points p {
    color: var(--ink-700);
    font-size: 13.5px;
  }

  /* Comparison */
  .bill-comparison {
    padding: 18px;
  }

  .bill-comparison-column {
    min-height: 180px;
    padding: 22px;
    background: #fbfcfd;
  }

  .bill-comparison-column h3 {
    margin-bottom: 14px;
    color: var(--ink-900);
    font-size: 14px;
  }

  .bill-comparison-column p {
    color: var(--ink-700);
    font-size: 14px;
  }

  .bill-comparison-column.proposed {
    border-top: 4px solid var(--blue);
    background: #f3f7fc;
  }

  .bill-comparison-column.proposed h3 {
    color: var(--blue-dark);
  }

  .bill-comparison-arrow {
    color: var(--blue);
  }

  /* Long text */
  .bill-long-text {
    min-height: 250px;
    padding: 23px;
  }

  .bill-long-text p,
  .bill-long-text li {
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.86;
  }

  .bill-long-text li::marker {
    color: var(--blue);
  }

  /* Related links */
  .bill-related-card {
    min-height: 102px;
    border-top: 3px solid #7894b0;
  }

  .bill-related-card strong {
    color: var(--ink-950);
  }

  .bill-related-card span {
    color: var(--ink-500);
  }

  /* Law/topic/briefing pages: same editorial hierarchy */
  .law-title-block h2,
  .briefing-body h2,
  .topic-detail-title,
  .topic-card strong {
    color: var(--ink-950);
  }

  .legal-text {
    color: var(--ink-800);
    background: #fff;
  }

  .briefing-row {
    border-color: var(--module-line);
  }

  .briefing-source,
  .briefing-date {
    color: var(--ink-500);
  }

  .editorial-note {
    border-left-color: var(--blue);
    background: var(--surface-blue);
  }

  .editorial-note strong {
    color: var(--blue-dark);
  }

  @media (max-width: 1100px) {
    .legislation-overview {
      grid-template-columns: repeat(3, 1fr);
    }

    .legislation-overview-note {
      grid-column: 1 / -1;
      border-top: 1px solid var(--module-line-soft);
    }

    .bill-executive-summary {
      grid-template-columns: 150px minmax(0, 1fr);
    }

    .executive-summary-status {
      grid-column: 1 / -1;
      border-top: 1px solid #d6e0ea;
      border-left: 0;
    }
  }

  @media (max-width: 720px) {
    .legislation-overview {
      grid-template-columns: 1fr;
    }

    .legislation-overview-item {
      border-right: 0;
      border-bottom: 1px solid var(--module-line-soft);
    }

    .bill-executive-summary {
      grid-template-columns: 1fr;
    }

    .executive-summary-label,
    .executive-summary-status {
      border: 0;
      border-bottom: 1px solid #d6e0ea;
    }

    .page-header h1 {
      font-size: 31px;
    }
  }


/* ═══ 전체 정적 페이지 · 폭·컨테이너 통일 · pro overlay */
:root { --content: 1180px; }

.wiki-shell, .wiki-doc, .page-shell, .wiki-content, main.wiki-doc {
  max-width: var(--content) !important;
  margin: 0 auto !important;
  padding: 22px 18px 64px !important;
  box-sizing: border-box;
}

body, main, .wiki-content, .wiki-doc {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif !important;
  color: var(--text);
  background: var(--bg);
}

@media (max-width: 720px) {
  .wiki-shell, .wiki-doc, .page-shell, .wiki-content { padding-inline: 12px !important; }
}


/* ═══ 사이드바 · 모든 화면 · 통일 · 왼쪽 fix */
.shell {
  max-width: var(--content) !important;
  margin: 22px auto 0 !important;
  padding: 0 18px 64px !important;
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start;
}

/* rightbar 있으면 · 3컬럼 */
.shell:has(.rightbar) {
  grid-template-columns: 220px minmax(0, 1fr) 240px !important;
}

.sidebar {
  position: sticky !important;
  top: 88px !important;
  padding: 14px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line-dark) !important;
}
.sidebar .side-title {
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sidebar .side-links {
  display: grid;
  gap: 0;
}
.sidebar .side-links a {
  padding: 9px 6px !important;
  border-bottom: 1px solid var(--line);
  color: #3f5068;
  font-size: 14px;
  text-decoration: none;
}
.sidebar .side-links a:hover,
.sidebar .side-links a:focus-visible {
  color: var(--navy);
  background: #eef2f6;
  text-decoration: none;
}
.sidebar .side-links a:last-child { border-bottom: 0; }

.rightbar {
  position: sticky !important;
  top: 88px !important;
  padding: 14px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line-dark) !important;
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr !important; }
  .sidebar, .rightbar { position: static !important; display: block !important; }
}


/* ═══ FINAL LOCK · 모든 페이지 · 완전 통일 시각 시스템 · 사용자 요구 ═══ */

/* 콘텐츠 박스 · 전체 통일 · 1px 외곽선 · 흰 배경 · 22px padding */
.shell-main > *,
.shell-main section,
.shell-main article:not(.list-item):not(.priority-card):not(.topic-card):not(.law-result),
.shell > section,
main > section,
main > article,
.wiki-doc > section,
.wiki-doc article,
.wiki-content > section,
.page-shell > section,
.article-body,
.wiki-summary,
.wiki-official {
  background: #ffffff !important;
  border: 1px solid var(--line-dark) !important;
  padding: 22px !important;
  margin: 0 0 18px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* hero-copy · border-top 제거 · 통일 */
.hero-copy, .hero-stats { border-top: 0 !important; }
.hero { gap: 14px; }

/* page-header · 아래 · 2px navy 밑줄만 · 배경 없음 · 통일 */
.page-header {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--navy) !important;
  padding: 18px 0 12px !important;
  margin: 0 0 18px !important;
}

/* section-heading · 항상 · h2 밑 · 2px navy · 통일 */
.section-heading {
  margin: 0 0 12px !important;
  padding: 0 0 8px !important;
  border-bottom: 2px solid var(--navy) !important;
  background: transparent !important;
}

/* 제목 · 통일 크기·색·폰트 */
main h1, .page-header h1, .hero h1, .wiki-doc h1 {
  color: var(--navy) !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.04em !important;
  margin: 0 0 8px !important;
}

main h2, .section-heading h2, .wiki-doc h2 {
  color: var(--navy) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 8px !important;
}

main h3, .list-item h3, .briefing-body h2, .priority-card h3 {
  color: var(--navy) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 0 6px !important;
}

/* 본문 p · 통일 */
main p, .shell-main p, .wiki-doc p {
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin: 0 0 12px !important;
}
main p:last-child { margin-bottom: 0 !important; }

/* list-item · 각 · row · border-top 1px · padding 통일 */
.list-item, .priority-card, .topic-card, .law-result, .briefing-row {
  padding: 14px 18px !important;
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.list-item:first-child, .briefing-row:first-child { border-top: 0 !important; }

/* grid · 카드 grid · 외곽선 1개 · 내부 · 세로 · border-right */
.priority-grid, .topic-grid, .briefing-list {
  background: #ffffff !important;
  border: 1px solid var(--line-dark) !important;
  border-radius: 0 !important;
}

/* meta · 폰트 통일 */
.meta-row, .briefing-date, .briefing-source, .list-item p:last-of-type {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.55;
}

/* 링크 · 본문 안 · navy · underline 없음 · hover만 */
main a, .shell-main a, .wiki-doc a {
  color: var(--blue) !important;
  text-decoration: none !important;
}
main a:hover, .shell-main a:hover, .wiki-doc a:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* 사이드바 링크 · 통일 (앞서 정의 · 재확인) */
.sidebar a, .sidebar .side-links a {
  color: #3f5068 !important;
  text-decoration: none !important;
}

/* ul, ol · 통일 · 들여쓰기 */
main ul, main ol, .shell-main ul, .shell-main ol {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 12px;
  padding-left: 20px;
}

/* dl · 정의 리스트 · 통일 */
main dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
main dd { color: var(--text); margin: 4px 0 10px 0; }

/* table · 통일 */
main table, .wiki-doc table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-dark);
  font-size: 14px;
  margin: 0 0 14px;
  background: #fff;
}
main th, main td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
main th { background: #f4f6f8; color: var(--navy); font-weight: 800; }

/* ad-slot 통일 */
.ad-slot, .ad-wrap {
  margin: 18px 0 !important;
  min-height: 74px;
  border: 1px dashed var(--line-dark);
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: #7b8797;
  font-size: 12px;
}
.ad-slot:empty { display: none !important; }

/* section 간 gap · 통일 */
.shell-main > * + *, .shell-main > section + section { margin-top: 14px !important; }


/* ═══ HOTFIX · hero-copy 잘림 해제 (838줄 부작용 override) ═══ */
.hero-copy > p:not(.eyebrow),
.eyebrow,
.suggestions {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.hero-copy {
  overflow-x: visible !important;
  min-width: 0 !important;
}
.hero h1 {
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}


/* ═══ HOTFIX 2 · topic-card · 개별 박스 · 완전 통일 · shell 배치 통일 ═══ */
.topic-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.topic-card {
  display: block !important;
  padding: 18px 20px !important;
  background: #fff !important;
  border: 1px solid var(--line-dark) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color .18s;
}
.topic-card:hover {
  border-color: var(--navy) !important;
  text-decoration: none !important;
}
.topic-card strong {
  display: block !important;
  color: var(--navy) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.02em;
}
.topic-card span {
  display: block !important;
  color: var(--muted) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* shell · 완전 통일 · scan·topics·briefing · 같은 폭·gap */
.shell {
  max-width: var(--content) !important;
  margin: 22px auto 0 !important;
  padding: 0 18px 64px !important;
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start;
}
.shell-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.shell-main > * { margin: 0 !important; }

/* priority-grid·briefing-list · 개별 카드 · 그리드 gap */
.priority-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.priority-card {
  display: block !important;
  padding: 18px 20px !important;
  background: #fff !important;
  border: 1px solid var(--line-dark) !important;
  border-radius: 0 !important;
  min-height: auto !important;
}


/* 사이드바 · 활성 항목 · 시각 · JS is-current */
.sidebar .side-links a.is-current {
  color: #fff !important;
  background: var(--navy) !important;
  font-weight: 800;
  border-left: 3px solid var(--blue);
}


/* ═══ AUDIT PATCH · Fable QA · 4대 지적 대응 ═══ */

/* FIX-A · 모바일 shell 그리드 붕괴 (3689 전역 규칙 게이팅) */
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr !important;
    padding: 0 14px 48px !important;
    gap: 12px !important;
    max-width: 100% !important;
  }
  .sidebar, .rightbar {
    position: static !important;
    display: block !important;
    width: 100% !important;
    top: auto !important;
  }
  .shell-main { min-width: 0 !important; }
}

/* FIX-B · nowrap 잔재 12개 셀렉터 해제 */
.priority-card h3, .priority-card p,
.list-item h3, .list-item p,
.topic-card strong, .topic-card span,
.page-header p, .breadcrumb,
.law-title-block h2, .briefing-body h2, .briefing-body p,
.briefing-source, .meta-row, .footer-inner p {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* FIX-C · briefing-body h2 특이도 충돌 · main h2 20px 재승격 */
.briefing-body h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

/* rightbar 제거 · 2열 표준 (사용자 · 통일 원함) · A 표준 */
.rightbar { display: none !important; }
.shell:has(.rightbar) {
  grid-template-columns: 220px minmax(0, 1fr) !important;
}

/* ═══ CARD STACK FINAL · 사용자 지시 2026-07-31 ═══
   모든 카드 · 가로 1개씩 세로 배열 · 각각 개별 박스 · 글자 넉넉히 */

.priority-grid,
.topic-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
}

.priority-card,
.topic-card {
  display: block !important;
  border: 1px solid var(--line-dark) !important;
  border-right: 1px solid var(--line-dark) !important;
  background: var(--surface) !important;
  padding: 20px 22px !important;
  min-height: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.priority-card h3,
.priority-card p,
.topic-card strong,
.topic-card span {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.priority-card h3 { margin: 10px 0 8px !important; line-height: 1.5 !important; }
.priority-card .meta-row { margin-top: 6px; }

.topic-card strong { display: block; margin-bottom: 6px !important; font-size: 16px; line-height: 1.45; }
.topic-card span { display: block; font-size: 13px !important; line-height: 1.65 !important; }

/* list-panel · 각 항목도 개별 박스 · 세로 스택 */
.list-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.list-panel .section-heading { margin-bottom: 0; }

.list-item {
  border: 1px solid var(--line-dark) !important;
  border-top: 1px solid var(--line-dark) !important;
  background: var(--surface);
  padding: 18px 22px !important;
  box-sizing: border-box;
  overflow: hidden;
}

.list-item:first-child {
  padding-top: 18px !important;
  border-top: 1px solid var(--line-dark) !important;
}

.list-item h3 { margin: 8px 0 6px !important; line-height: 1.5 !important; }
.list-item p { margin-bottom: 0 !important; line-height: 1.65 !important; }

/* 모바일 그리드 오버라이드도 1열 유지 */
@media (max-width: 960px) {
  .priority-grid, .topic-grid { grid-template-columns: 1fr !important; }
}

/* law-result · nowrap 해제 · 세로 스택 개별 박스 통일 */
.law-result-list { padding: 0; border: 0; background: transparent; }
.law-result {
  border: 1px solid var(--line-dark) !important;
  background: var(--surface);
  padding: 18px 22px !important;
  overflow: hidden;
}
.law-result-main h3,
.law-result-main p {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* ═══ admin-guidance · guidance-card · briefing brief-card 동일 시각 ═══ */
.guidance-card {
  display: block;
  border: 1px solid var(--line-dark) !important;
  background: var(--surface);
  padding: 20px 22px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.guidance-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.guidance-card .agency,
.guidance-card .doc-id {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-dark);
  background: #f6f8fb;
  color: #526075;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.guidance-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.guidance-card .card-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.guidance-card .card-summary > div {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.guidance-card .ref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.guidance-card .ref-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.guidance-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guidance-card .detail-btn,
.guidance-card .detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

/* ═══ BRIEF CARD 통일 · 사용자 지시 2026-08-01 ═══
   brief-card 계열(브리핑·법령해석·비조치·행정지도·판례) · CARD STACK FINAL과 동일 규칙:
   세로 1열 · 카드 겉 박스 1겹만 · 내부 중첩 박스 제거 · hover 들썩임 제거 */

.brf-list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.brief-card,
ul.asset-list > li {
  min-height: auto !important;
  transition: none !important;
}

.brief-card:hover,
ul.asset-list > li:hover,
.brief-origin:hover {
  transform: none !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025) !important;
}

ul.asset-list {
  grid-template-columns: 1fr !important;
}

/* 카드 내부 요약 블록 · 박스 안 박스 제거 · 라벨은 유지 */
.brief-summary > div {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 2px 0 2px 76px !important;
  min-height: auto !important;
}

.brief-summary > div::before {
  top: 3px !important;
  left: 0 !important;
}

.brief-summary .summary-pending,
.brief-summary .summary-is-pending {
  border: 0 !important;
  background: transparent !important;
  padding-left: 76px !important;
}

/* ═══ SHELL 위치 통일 · 사용자 지시 2026-08-01 ═══
   일부 페이지는 body>.shell · 일부는 main>.shell (main이 max-width+padding 보유)
   → main 래퍼를 무력화해 모든 페이지에서 sidebar/shell 좌표 동일 */

main:has(> .shell) {
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ═══ 박스 1겹 원칙 · 사용자 지시 2026-08-01 ═══
   "네모 테두리 어디는 1개 어디는 3개" 지적.
   컬럼 프레임(shell-main·content)·중첩 래퍼(view·article-body)·카드 그룹(section:has(grid))은 무테.
   테두리는 실제 콘텐츠 박스(hero·카드·필터바·본문 섹션)에만 1겹. */

.shell > section,
.shell-main,
section.content,
article.view,
.view.panel,
.article-body,
.brf-main {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* 카드 그룹 섹션 · 무테 (안의 카드가 이미 개별 박스) */
.shell-main section:has(> .priority-grid),
.shell-main section:has(> .list-panel),
.shell-main section:has(> .topic-grid),
section:has(> .brf-list),
section:has(> .law-result-list),
.shell section:has(> .filters) {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* hero 컨테이너 · 무테 (내부 hero-copy·stat-card가 개별 박스) */
.shell-main > .hero,
.hero {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* cat-hero(브리핑 계열 페이지 래퍼) · 무테 · 내부 hero-inner/필터/카드가 개별 박스 */
section.cat-hero {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.cat-hero-inner {
  border: 1px solid var(--line-dark);
  padding: 26px 30px;
  margin: 0 0 18px;
  background: #f4f7fb;
}

/* ═══ 사이드바 하드락 · 사용자 최종 지시 2026-08-01 ═══
   "홈 화면의 전체 사이트 탐색 박스로 고정" · govbrief.css 등 어떤 CSS가 와도 불변 */

.sidebar {
  padding: 14px !important;
  border: 1px solid var(--line-dark) !important;
  background: #fff !important;
  position: sticky !important;
  top: 88px !important;
}

.sidebar .side-block {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.sidebar .side-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 0 0 8px !important;
  margin: 0 0 6px !important;
}

.sidebar .side-links a {
  padding: 9px 6px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.68 !important;
}

/* ═══════════════════════════════════════════════════════════
   프론트 IA·비주얼 재설계 · cat-hero-v2 표준 · 2026-08-01
   docs/pdca/frontend-ia-redesign-2026-08-01.md D1-D3 + 디자인/엔지니어링 보이스 반영분
   대상: briefing/interpretations/opinions/decisions(cat-hero) ·
        scan/topics/recent/popular(page-header.cat-hero-v2) ·
        admin-guidance(hero.cat-hero) · 홈(eyebrow.cat-eye)
   ═══════════════════════════════════════════════════════════ */

/* kicker(.cat-eye) 표준 · 13px/800/letter-spacing .18em (govbrief.css 10px/850/.12em 상속분 override) */
.cat-eye,
.eye {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

/* h1 충돌 해소 · main h1 32px!important 승격 차단 (디자인 스펙 #1) */
.cat-hero-inner h1,
.page-header.cat-hero-v2 h1 {
  font-size: 34px !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* lead · 16px/500 */
.cat-hero-inner .lead,
.page-header.cat-hero-v2 .lead {
  font-size: 16px;
  font-weight: 500;
}

.page-header.cat-hero-v2 .lead {
  margin: 8px 0 0;
  color: var(--muted);
}

/* stat chip · 흰 칩 */
.stat-row .stat,
.stats .stat {
  background: #fff;
}

/* 모바일 · 720px (디자인 스펙 #2) */
@media (max-width: 720px) {
  .cat-hero-inner { padding: 18px 16px; }
  .cat-hero-inner h1 { font-size: 24px; line-height: 1.35; }
  .cat-eye, .eye { font-size: 11px; letter-spacing: .14em; }
  .cat-hero-inner .lead { font-size: 14px; }
  .page-header.cat-hero-v2 h1 { font-size: 24px; line-height: 1.35; }
  .page-header.cat-hero-v2 .lead { font-size: 14px; }
}

/* 4탭 서브내비 · .subnav/.subnav-pill (디자인 스펙 #3) */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.subnav-pill {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
  color: #435168;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.subnav-pill:hover {
  border-color: var(--navy);
  background: #f5f8fc;
}

.subnav-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (max-width: 360px) {
  .subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* 홈 eyebrow → kicker 타이포만 상속 (구조·색상은 기존 .eyebrow 유지, 디자인 스펙 #5) */
.eyebrow.cat-eye {
  color: var(--blue);
}

/* ═══ FRONTEND IA QA REMEDIATION LOCK · 2026-08-01 ═══
   기존 비주얼 포맷은 유지하고 cascade/반응형/접근성 파손만 최종 보정한다. */

/* 홈 예외도 cat-hero-v2 타이포 토큰은 동일하게 계산되어야 한다. */
.hero-copy > .eyebrow.cat-eye {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
}

.hero-copy > h1 {
  font-size: 34px !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-copy > p:not(.eyebrow),
.cat-hero-inner p.lead,
.page-header.cat-hero-v2 p.lead {
  font-size: 16px !important;
  font-weight: 500 !important;
}

/* page-header 계열도 기존 cat-hero와 같은 1겹 박스 포맷으로 맞춘다. */
.page-header.cat-hero-v2 {
  margin: 0 0 18px !important;
  padding: 26px 30px !important;
  border: 1px solid var(--line-dark) !important;
  background: #f4f7fb !important;
}

.page-header.cat-hero-v2::after {
  content: none !important;
  display: none !important;
}

.page-header.cat-hero-v2 h1 {
  white-space: normal !important;
}

/* admin-guidance의 legacy .hero 2열 grid가 subnav를 옆 열로 보내지 않게 한다. */
section.hero.cat-hero {
  display: block !important;
  grid-template-columns: none !important;
}

/* legacy collection의 div.article 안쪽 여백이 cat-hero만 30px 좁게 만들던 차이 제거. */
.content .layout > .article {
  padding: 0 !important;
}

/* 전역 main a!important보다 pill 상태가 우선해야 한다. */
.subnav-pill {
  color: #435168 !important;
  text-decoration: none !important;
}

.subnav-pill:hover {
  color: var(--navy) !important;
  text-decoration: none !important;
}

.subnav-pill.active,
.subnav-pill.active:hover,
.subnav-pill[aria-current="page"] {
  border-color: var(--navy) !important;
  color: #fff !important;
  background: var(--navy) !important;
  text-decoration: none !important;
}

.subnav-pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.subnav-pill.active:focus-visible,
.subnav-pill[aria-current="page"]:focus-visible {
  outline-color: #fff;
  outline-offset: -3px;
}

.header-search:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: -3px !important;
}

.nav-link[aria-current="page"]:focus-visible {
  outline-color: #fff !important;
}

#disclaimer {
  scroll-margin-top: 88px;
}

/* 1180px 아래에 남아 있던 1120px 최소폭을 제거한다. */
@media (max-width: 1180px) {
  .header-inner,
  main,
  .footer-inner {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .header-inner {
    width: 100% !important;
  }

  .site-footer {
    overflow-x: clip !important;
  }

  .site-header {
    overflow: visible !important;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .site-nav {
    order: 3;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
  }

  .nav-link {
    min-width: max-content;
    flex: 0 0 auto;
  }

  .shell,
  .shell:has(.rightbar) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sidebar {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 12px !important;
  }

  .header-search {
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 6px;
  }

  .shell-main > .hero:not(.cat-hero) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cat-hero-inner,
  .page-header.cat-hero-v2 {
    padding: 18px 16px !important;
  }

  .hero-copy > h1,
  .cat-hero-inner h1,
  .page-header.cat-hero-v2 h1 {
    font-size: 24px !important;
    line-height: 1.35 !important;
  }

  .hero-copy > .eyebrow.cat-eye,
  .cat-eye,
  .eye {
    font-size: 11px !important;
    letter-spacing: .14em !important;
  }

  .hero-copy > p:not(.eyebrow),
  .cat-hero-inner p.lead,
  .page-header.cat-hero-v2 p.lead {
    font-size: 14px !important;
  }
}

/* ═══ 페이지 블랭크 버그 수정 · 2026-08-01 ═══
   govbrief.css의 .ad-wrap:has(.ad-slot:empty){display:none}이
   ad-wrap이 본문 전체를 감싼 페이지(about·contact 등)에서 페이지를 통째로 숨김.
   collapse는 슬롯에만 · wrap은 항상 표시 */
/* 본문(main/.shell)을 감싼 wrap · 항상 표시 + 광고 스타일 완전 무효(투명 통과) */
.ad-wrap.ad-wrap.ad-wrap.ad-wrap:has(main),
.ad-wrap.ad-wrap.ad-wrap.ad-wrap:has(.shell) {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
/* shell이 main 자신인 페이지(about·contact 등) · 폭·중앙정렬 하드락 */
main.shell {
  max-width: var(--content) !important;
  width: 100% !important;
  margin: 22px auto 0 !important;
}

/* 광고만 든 wrap · 슬롯이 비면 통째로 숨김 (기존 동작 유지) */
.ad-wrap:not(:has(main)):not(:has(.shell)):has(.ad-slot:empty) {
  display: none !important;
}
.ad-wrap > .ad-slot:empty {
  display: none !important;
}

/* ═══ 헤더 박스(cat-hero) 최종 고정 · 전 페이지 동일 · 2026-08-01 ═══
   위치: shell-main 첫 요소 · x/y/w 통일 (계측 306/99/906)
   테두리: border + inset shadow 이중 엣지 — 서브픽셀 합성에서도 4면 항상 표시 */
.cat-hero-inner,
.page-header.cat-hero-v2 {
  border: 1px solid var(--line-dark) !important;
  box-shadow: inset 0 0 0 1px var(--line-dark) !important;
  background: #f4f7fb !important;
  margin: 0 0 18px !important;
  border-radius: 0 !important;
}

/* ═══ 사이드바 최상단 밀착 · 사용자 지시 2026-08-01 ═══
   전체 사이트 탐색 박스 = 헤더 하단선(y=77) 바로 아래 · 전 페이지 · 스크롤 시에도 유지 */
.shell {
  margin-top: 0 !important;
}
main.shell {
  margin-top: 0 !important;
}
.shell > .sidebar,
.sidebar {
  top: 77px !important;
  align-self: start;
}

/* ═══ 히어로 내부 오프셋 통일 · 2026-08-01 ═══
   키커 31,27 · h1 31,57 · 리드 간격 — 전 변형(cat-hero-inner/page-header v2/홈 hero-copy) 동일 */
.cat-hero-inner .cat-eye,
.cat-hero-inner .eye,
.page-header.cat-hero-v2 .cat-eye,
.page-header.cat-hero-v2 .eye {
  margin: 0 0 14px !important;
  line-height: 1.2 !important;
}
.cat-hero-inner h1,
.page-header.cat-hero-v2 h1 {
  margin: 0 0 16px !important;
}
.hero-copy {
  padding: 27px 30px 26px !important;
}
.hero-copy .eyebrow {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase;
  margin: 0 0 14px !important;
  line-height: 1.2 !important;
}

/* ═══ 히어로 박스 각진 테두리 최종 통일 · 사용자 지시 2026-08-01 ═══
   홈(.hero-copy) 포함 전 변형 · 각진 모서리(radius 0) · 이중 엣지 4면 */
.hero-copy,
.cat-hero-inner,
.page-header.cat-hero-v2 {
  border: 1px solid var(--line-dark) !important;
  box-shadow: inset 0 0 0 1px var(--line-dark) !important;
  border-radius: 0 !important;
  background: #f4f7fb !important;
}
.hero-stats .stat-card {
  border-radius: 0 !important;
}

/* ═══ 히어로 래퍼 클리핑 해제 · 2026-08-01 ═══
   .cat-hero(투명 래퍼)의 overflow:hidden이 inner 왼쪽 1px 보더를
   줌·서브픽셀 상황에서 잘라먹음 (해석·판례 좌모서리 짤림의 진짜 원인) */
section.cat-hero,
.cat-hero,
.hero {
  overflow: visible !important;
}

/* ═══ 사이드바 계층 · 해석·판례 하위 4개 · 2026-08-01 ═══ */
.sidebar .side-links a.side-sub {
  padding: 7px 6px 7px 22px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #4a5b74;
}
.sidebar .side-links a.side-sub::before {
  content: "· ";
  color: #9ba7b6;
}

/* ═══ COLOR REFRESH 2026-08-01 ═══
   브랜드 네이비 유지 · 따뜻한 바탕/차가운 히어로 위계 · 문서 유형/상태 색 분리 */
:root {
  --bg: #f6f4ef;
  --surface: #fffefa;
  --surface-soft: #f2f3f1;
  --surface-blue: #e9f0f4;
  --text: #1d2b3a;
  --muted: #4e5d6d;
  --ink-950: #15283b;
  --ink-900: #1b3044;
  --ink-800: #23394d;
  --ink-700: #3f5060;
  --ink-600: #4e5d6d;
  --ink-500: #586777;
  --ink-400: #6c7986;
  --navy: #17324d;
  --navy-2: #294f70;
  --blue: #195f91;
  --blue-dark: #174f78;
  --blue-soft: #e7f1fa;
  --link: #195f91;
  --accent: #0f655d;
  --green: #25633a;
  --green-soft: #e8f4e9;
  --orange: #8a4b08;
  --orange-soft: #fff2dc;
  --red: #8a344a;
  --red-soft: #f8e9ed;
  --line: #d2d6d4;
  --line-strong: #a6b0b8;
  --line-dark: #8292a3;
  --module-line: #c1c9cf;
  --module-line-soft: #dce1e3;
  --module-head: #eef2f3;
  --ui-navy: #17324d;
  --ui-blue: #195f91;
  --ui-blue-dark: #174f78;
  --ui-blue-soft: #e7f1fa;
  --ui-green: #25633a;
  --ui-green-soft: #e8f4e9;
  --ui-amber: #8a4b08;
  --ui-amber-soft: #fff2dc;
  --ui-surface: #f2f3f1;
  --ui-line: #d2d6d4;
  --ui-line-strong: #a6b0b8;
  --cat-press: #0f655d;
  --cat-press-soft: #e5f3f0;
  --cat-press-line: #8bbfb5;
  --cat-interpretation: #4b4994;
  --cat-interpretation-soft: #eeedfa;
  --cat-interpretation-line: #b5b3d8;
  --cat-no-action: #8a4b08;
  --cat-no-action-soft: #fff2dc;
  --cat-no-action-line: #dfb477;
  --cat-guidance: #2d673e;
  --cat-guidance-soft: #e8f4e9;
  --cat-guidance-line: #a7cbae;
  --cat-precedent: #83354a;
  --cat-precedent-soft: #f8e9ed;
  --cat-precedent-line: #d3a6b3;
  --semantic-info: #195f91;
  --semantic-info-soft: #e7f1fa;
  --semantic-info-line: #9ebed7;
  --semantic-success: #25633a;
  --semantic-success-soft: #e8f4e9;
  --semantic-success-line: #a7cbae;
  --semantic-warning: #8a4b08;
  --semantic-warning-soft: #fff2dc;
  --semantic-warning-line: #dfb477;
  --semantic-danger: #8a344a;
  --semantic-danger-soft: #f8e9ed;
  --semantic-danger-line: #d3a6b3;
}

body,
main,
.wiki-content,
.wiki-doc {
  color: var(--text) !important;
  background-color: var(--bg) !important;
}

.site-header,
.site-footer,
.sidebar,
.rightbar,
.brief-card,
.guidance-card,
.priority-card,
.list-item,
.topic-card,
.law-result-item,
.stat-card {
  background-color: var(--surface) !important;
}

.sidebar,
.rightbar,
.brief-card,
.guidance-card,
.priority-card,
.list-item,
.topic-card,
.law-result-item {
  border-color: var(--line-dark) !important;
}

.hero-copy,
.cat-hero-inner,
.page-header.cat-hero-v2 {
  color: var(--text) !important;
  background-color: var(--surface-blue) !important;
  border-color: var(--line-dark) !important;
}

.hero-stats {
  background-color: var(--surface-soft) !important;
  border-color: var(--line-dark) !important;
}

.cat-eye,
.eye,
.hero-copy .eyebrow {
  color: var(--blue-dark) !important;
}

.hero-copy > p:not(.eyebrow),
.cat-hero-inner .lead,
.page-header.cat-hero-v2 .lead {
  color: var(--ink-700) !important;
}

main a,
.shell-main a,
.wiki-doc a {
  color: var(--blue) !important;
}

.nav-link[aria-current="page"],
.filter-pill.active,
.filter-pill[aria-pressed="true"],
.subnav-pill[aria-current="page"],
.subnav-pill.active {
  color: #fff !important;
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.sidebar .side-links a.is-current {
  color: var(--navy) !important;
  background-color: var(--blue-soft) !important;
  border-color: var(--blue) !important;
}

.sidebar .side-links a.side-sub {
  color: var(--muted) !important;
}

.sidebar .side-links a.side-sub::before {
  color: var(--line-dark) !important;
}

.stat-row .stat,
.stats .stat {
  color: var(--muted) !important;
  background-color: var(--surface) !important;
  border-color: var(--line-strong) !important;
}

.stat-row .stat b,
.stats .stat b {
  color: var(--navy) !important;
}

.badge.urgent {
  color: var(--semantic-danger) !important;
  background-color: var(--semantic-danger-soft) !important;
  border-color: var(--semantic-danger-line) !important;
}

.badge.schedule,
.verify-badge {
  color: var(--semantic-warning) !important;
  background-color: var(--semantic-warning-soft) !important;
  border-color: var(--semantic-warning-line) !important;
}

.badge.change {
  color: var(--semantic-info) !important;
  background-color: var(--semantic-info-soft) !important;
  border-color: var(--semantic-info-line) !important;
}

.badge.source {
  color: var(--semantic-success) !important;
  background-color: var(--semantic-success-soft) !important;
  border-color: var(--semantic-success-line) !important;
}

.badge.neutral,
.brief-date,
.guidance-card .doc-id {
  color: var(--muted) !important;
  background-color: var(--surface-soft) !important;
  border-color: var(--line) !important;
}

.priority-card .badge.change,
body:has(.nav-link[data-route="briefing"][aria-current="page"]) .brief-cat {
  color: var(--cat-press) !important;
  background-color: var(--cat-press-soft) !important;
  border-color: var(--cat-press-line) !important;
}

body:has(.subnav-pill[href="/interpretations/"][aria-current="page"]) .brief-cat {
  color: var(--cat-interpretation) !important;
  background-color: var(--cat-interpretation-soft) !important;
  border-color: var(--cat-interpretation-line) !important;
}

body:has(.subnav-pill[href="/opinions/"][aria-current="page"]) .brief-cat {
  color: var(--cat-no-action) !important;
  background-color: var(--cat-no-action-soft) !important;
  border-color: var(--cat-no-action-line) !important;
}

body:has(.subnav-pill[href="/admin-guidance/"][aria-current="page"]) .guidance-card .agency {
  color: var(--cat-guidance) !important;
  background-color: var(--cat-guidance-soft) !important;
  border-color: var(--cat-guidance-line) !important;
}

body:has(.subnav-pill[href="/decisions/"][aria-current="page"]) .brief-cat {
  color: var(--cat-precedent) !important;
  background-color: var(--cat-precedent-soft) !important;
  border-color: var(--cat-precedent-line) !important;
}

.subnav-pill[href="/interpretations/"] {
  color: var(--cat-interpretation) !important;
  background-color: var(--cat-interpretation-soft) !important;
  border-color: var(--cat-interpretation-line) !important;
}

.subnav-pill[href="/opinions/"] {
  color: var(--cat-no-action) !important;
  background-color: var(--cat-no-action-soft) !important;
  border-color: var(--cat-no-action-line) !important;
}

.subnav-pill[href="/admin-guidance/"] {
  color: var(--cat-guidance) !important;
  background-color: var(--cat-guidance-soft) !important;
  border-color: var(--cat-guidance-line) !important;
}

.subnav-pill[href="/decisions/"] {
  color: var(--cat-precedent) !important;
  background-color: var(--cat-precedent-soft) !important;
  border-color: var(--cat-precedent-line) !important;
}

.subnav-pill[aria-current="page"],
.subnav-pill.active {
  color: #fff !important;
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.filter-pill:not(.active):not([aria-pressed="true"]) {
  color: var(--ink-700) !important;
  background-color: var(--surface) !important;
  border-color: var(--line-strong) !important;
}

.filter-pill:not(.active):not([aria-pressed="true"]):hover {
  color: var(--cat-press) !important;
  background-color: var(--cat-press-soft) !important;
  border-color: var(--cat-press-line) !important;
}

.law-pill,
.guidance-card .ref-pill {
  color: var(--semantic-info) !important;
  background-color: var(--semantic-info-soft) !important;
  border-color: var(--semantic-info-line) !important;
}

.brief-summary .verdict,
.brief-summary .verdict::before {
  color: var(--semantic-info) !important;
}

.brief-summary .impact,
.brief-summary .impact::before {
  color: var(--ink-700) !important;
}

.notice {
  color: var(--semantic-info) !important;
  background-color: var(--semantic-info-soft) !important;
  border-color: var(--semantic-info-line) !important;
}

.bill-warning {
  color: var(--semantic-warning) !important;
  background-color: var(--semantic-warning-soft) !important;
  border-color: var(--semantic-warning-line) !important;
}

.nav-link:focus-visible,
.subnav-pill:focus-visible,
.header-search:focus-within {
  outline-color: var(--blue) !important;
}

.nav-link[aria-current="page"]:focus-visible,
.subnav-pill[aria-current="page"]:focus-visible {
  outline-color: #fff !important;
}

.brief-summary .verdict {
  color: var(--ink-800) !important;
}

.brief-summary .verdict::before {
  color: var(--semantic-info) !important;
}

.notice {
  color: var(--ink-700) !important;
}

.notice strong {
  color: var(--semantic-info) !important;
}

/* ═══ MOBILE UX 개편 · 사용자 지시 2026-08-01 ═══
   ① 사이드바 숨김+우상단 삼단 버튼 토글 ② 검색 균형 ③ 스탯 가로 3블록
   ④ 섹션 헤딩 한 줄(제목 좌·더보기 우) ⑤ nav 전체 버튼 2줄 랩 */

.menu-toggle { display: none; }

@media (max-width: 960px) {
  /* ① 사이드바 · 기본 숨김 · 토글 시 우측 슬라이드 패널 */
  .sidebar {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: auto !important;
    width: min(320px, 85vw);
    height: 100vh;
    overflow-y: auto;
    z-index: 1200;
    margin: 0 !important;
    border: 0 !important;
    border-left: 1px solid var(--line-dark) !important;
    box-shadow: -8px 0 24px rgba(16,24,40,.18);
    padding: 60px 18px 24px !important;
  }
  .sidebar.mobile-open { display: block !important; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--line-dark);
    background: #fff;
    cursor: pointer;
    z-index: 1300;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--navy); }
  .sidebar-close {
    position: absolute; top: 12px; right: 14px;
    border: 1px solid var(--line-dark); background: #fff;
    width: 34px; height: 34px; font-size: 16px; font-weight: 800; color: var(--navy); cursor: pointer;
  }

  /* ⑤ nav · 전 카테고리 버튼 · 2줄 허용 */
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .site-nav {
    order: 3;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px;
    overflow: visible !important;
  }
  .site-nav .nav-link {
    border: 1px solid var(--line-dark);
    padding: 6px 11px !important;
    font-size: 13px !important;
    background: #fff;
  }
  .site-nav .nav-link[aria-current="page"] { background: var(--navy); color: #fff; }
  .header-search { order: 2; margin-left: auto; }

  /* ② 통합 검색 · 입력창 넓게 · 버튼 컴팩트 */
  .hero-search { display: flex !important; gap: 8px; }
  .hero-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 46px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
  }
  .hero-search .primary-button, .hero-search button {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  /* ③ 스탯 3종 · 가로 한 줄 · 작은 블록 */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px;
  }
  .hero-stats .stat-card { padding: 10px 8px !important; text-align: center; }
  .hero-stats .stat-card strong { font-size: 15px !important; letter-spacing: -0.01em; }
  .hero-stats .stat-card span { font-size: 11px !important; }

  /* ④ 섹션 헤딩 · 한 줄 · 제목 좌 / 더보기 우 */
  .section-heading {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
  }
  .section-heading > div { text-align: left; min-width: 0; }
  .section-heading h2 { font-size: 17px !important; text-align: left; }
  .section-heading p { display: none; }
  .section-heading .more-button {
    margin-left: auto !important;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 13px !important;
  }
}

/* MOBILE 보강 · flex-direction column 오버라이드 (구형 720px 룰이 column 강제) */
@media (max-width: 960px) {
  .hero-search { flex-direction: row !important; }
  .section-heading { flex-direction: row !important; }
}
@media (max-width: 960px) {
  .hero-search { align-items: stretch !important; }
  .hero-search button, .hero-search .primary-button {
    box-sizing: border-box !important;
    height: 46px !important;
    align-self: stretch;
  }
}

/* stat-card 첫 카드 상단 보더 복구 · 2026-08-01 (구형 .stat-card:first-child{border-top:0} 무력화 · 각진 4면 통일) */
.hero-stats .stat-card,
.hero-stats .stat-card:first-child {
  border: 1px solid var(--line-dark) !important;
}

/* ═══ 2026-08-02 사용자 지적 3건 ═══ */

/* ① 전체 등 활성 필터 칩 · 네이비 배경엔 흰 글씨 (링크색이 덮던 파란글씨 차단) */
.filter-chip.active,
.filter-chip.active:link,
.filter-chip.active:visited {
  color: #fff !important;
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}

/* ② 정책 토픽 카드 · 정부 브리핑(list-item) 크기로 축소 */
.topic-card { padding: 12px 14px !important; }
.topic-card strong { font-size: 14px !important; font-weight: 700 !important; margin-bottom: 2px !important; }
.topic-card span { font-size: 11.5px !important; line-height: 1.5 !important; }

/* ③ 모바일 · 모든 블록 가로 안에서 끝 (넘침 금지) */
@media (max-width: 960px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  .shell, .shell-main, main, .content, .view, .article-body,
  .cat-hero-inner, .page-header, section, article, table, .link-grid,
  .hier-grid, .asset-grid, .law-result, .list-item, .brief-card,
  .topic-grid, .hero, .hero-copy, pre, .quote-law, .briefing-body-content {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: keep-all;
  }
  /* 긴 표·코드만 자체 가로 스크롤 (페이지 전체는 안 밀림) */
  .content table, .article-body table, pre, .table-scroll {
    display: block; max-width: 100%; overflow-x: auto;
  }
  /* 다열 그리드는 모바일에서 1열 */
  .topic-grid, .hier-grid, .hier-grid-c, .asset-grid, .link-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══ 2026-08-02 scan 조문 상세 · 표준 link-card 통일 ═══
   위계·연결 법령 / 연결 자산 / 이전·다음 조문을 govbrief.css .link-card 로 통일.
   커스텀 hier-card·asset-card·인라인 style 제거에 따른 보조 클래스만 추가 (좌표·색 하드락 미변경). */
.muted { color: var(--muted); }

/* 신뢰도 chip · base.css trust-* 색 계승 · 표준 link-card small 안에서 사용 */
.tchip {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 5px 3px 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}
.tchip-v { background: #e8f5ec; color: #1a7a3d; }
.tchip-h { background: #e6efff; color: #1e50a8; }
.tchip-i { background: #fff2e0; color: #a55700; }
.tchip-c { background: #eef0f2; color: #5b5e6a; }

/* 이전·다음 조문 pager · 상단 구분선 (link-grid 와 병용) */
.pager { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ═══ 글꼴 전면 통일 · Pretendard 강제 · 2026-08-02 (사용자 반복 지적) ═══
   govbrief.css가 body=-apple-system, 조문원문(.quote-law)=Noto Serif KR로 두던 것 차단 */
:root { --gb-font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; }
html, body,
h1, h2, h3, h4, p, a, span, div, li, dt, dd, td, th, strong, small, button, input,
.quote-law, .quote-law .text, .quote-law .hang, .hang-text, .content, .article-body,
.link-card, .link-card strong, .link-card small, .fact-row, .cat-eye, .lead, .badge, .tchip {
  font-family: var(--gb-font) !important;
}

/* ═══ 조문 원문 항·호·목 계층 + 개정배지 · 2026-08-02 (전문가 Critical) ═══
   parse_article_structure의 .hang/.ho/.mok에 대응 CSS가 없어 계층이 안 보이던 것 */
.quote-law .hang, .quote-law .ho, .quote-law .mok { margin: 9px 0; line-height: 1.85; }
.quote-law .hang-lbl, .quote-law .ho-lbl, .quote-law .mok-lbl {
  margin-right: 8px; font-weight: 800; color: var(--navy);
}
.quote-law .ho { margin-left: 18px; }
.quote-law .mok { margin-left: 36px; }
.quote-law .text { margin: 9px 0; }
.quote-law .text:first-child { margin-top: 0; }
/* 개정 표기 인라인 배지 */
.revision {
  display: inline-block; margin-left: 4px; padding: 1px 8px;
  border: 1px solid #c9a86a; background: #fff7e6; color: #8a5a00;
  border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  vertical-align: 1px;
}

/* ═══ 조문 상세 섹션 세로 리듬 통일 · 2026-08-02 (사용자 반복 지적) ═══
   article.article 의 h2(1.조문원문·2.위계·3.연결자산)가 margin-top:0 으로 눌려
   섹션 간격이 앞 요소 margin-bottom 에만 의존 → link-grid(mb:0) 뒤 "3.연결 자산"이 밀착.
   섹션 제목 top 간격을 일관되게 복원하고, 카드 그리드 하단 여백 확보. */
.shell .content article.article h2 { margin-top: 32px !important; }
.shell .content article.article > h2:first-of-type { margin-top: 20px !important; }
.shell .content article.article .link-grid { margin-bottom: 6px; }
.shell .content article.article .link-card small { line-height: 1.7; }

/* ═══ 홈 최하단 서비스 소개 문단 · 2026-08-02 (일반 홈페이지 하단 인트로) ═══
   색 띠·박스 없이 얇은 구분선 1개 + 본문 문단. 한국어 keep-all. */
.home-about { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.home-about h2 { margin-top: 0; margin-bottom: 10px; font-size: 18px; color: var(--navy); }
.home-about p {
  max-width: 900px; margin: 0 0 12px; color: #30343a;
  font-size: 15px; line-height: 1.85; word-break: keep-all; overflow-wrap: break-word;
}
.home-about-note { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .home-about p { font-size: 14px; } }

/* ═══ 전역 푸터 다단 개편 · 2026-08-02 (애드센스·수익화 대비 · 이용 안내 전량) ═══
   about(넓게) + 서비스/자료/이용안내 3열 + 하단 법적 고지 바. 네이비 유지·각진·색띠 없음. */
.site-footer .footer-inner {
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 26px;
  align-items: start;
}
.footer-about .footer-brand { margin-bottom: 8px; }
.footer-about p { max-width: 340px; margin: 0; font-size: 12.5px; line-height: 1.7; color: #b9c4d0; word-break: keep-all; overflow-wrap: break-word; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #8ea3ba; text-transform: none; }
.footer-col a { color: #dfe6ee; font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  max-width: var(--content); margin: 0 auto; padding: 16px 18px 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-legal p { max-width: 900px; margin: 0 0 7px; font-size: 12px; line-height: 1.7; color: #9fb0c1; word-break: keep-all; overflow-wrap: break-word; }
.footer-copy { color: #7f93a8 !important; }
@media (max-width: 780px) {
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: none; }
}

/* ═══ P0/P1 후속 · 브리핑 도달성 + 모바일 drawer 접근성 · 2026-08-02 ═══ */
.sidebar-close { display: none; }
.subnav-pill { border-radius: 0 !important; }

.brf-source-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  word-break: keep-all;
}
.brf-source-index .filter-pill,
.brief-internal,
.brief-origin { border-radius: 0 !important; }

.shell > .shell-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .shell > .sidebar,
  .sidebar {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(320px, 85vw) !important;
    height: 100vh;
    height: 100dvh;
    z-index: 1200;
  }
  .shell > .sidebar.mobile-open,
  .sidebar.mobile-open { display: block !important; }
  .menu-toggle { width: 44px; height: 44px; }
  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0;
  }
  .sidebar .side-links a,
  .sidebar .law-toc-main a,
  .sidebar .side-note a,
  .subnav-pill,
  .filter-pill,
  .brief-detail-btn,
  .brief-internal,
  .brief-origin {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
}

/* ═══ scan 조문: 우측 factbox와 본문 박스 겹침 방지 · 2026-08-03 (사용자 지적) ═══
   .quote-law 등 테두리 박스가 float:right factbox 밑으로 겹치던 것 → BFC(flow-root)로 float 옆에 배치. */
.content article.article .source-box,
.content article.article .quote-law { display: flow-root; }

/* ═══ scan 조문 모바일: H1 우선(factbox를 요약 뒤로) · flex order · 2026-08-03 ═══
   데스크탑은 float 유지, 모바일에서만 순서 재배치(breadcrumb→H1→meta→원문대조→factbox→본문). */
@media (max-width: 960px) {
  .content article.article { display: flex; flex-direction: column; }
  .content article.article > * { order: 10; }
  .content article.article > .breadcrumbs { order: 1; }
  .content article.article > h1 { order: 2; }
  .content article.article > .meta-row { order: 3; }
  .content article.article > .source-box { order: 4; }
  .content article.article > .factbox { order: 5; }
}

/* ═══ scan 인덱스 최근 조문 카드 · 2026-08-03 (사용자 지적) ═══
   상세 보기 버튼 글자 가로세로 중앙 + 조문 내용 스니펫 2줄 clamp. */
.law-result .row-detail-button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.law-result-excerpt {
  margin: 4px 0 8px; color: #4a4f57; font-size: 13px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ═══ 연결 자산 실제 항목 표시 · 2026-08-03 (사용자 지적: 무엇이 어떻게 연결됐는지) ═══ */
.asset-type-block { margin-bottom: 18px; }
.asset-type-block h3 { margin: 14px 0 8px; font-size: 15px; color: var(--navy); }
.asset-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; }

/* 위계 관계 설명 문장 · 2026-08-03 */
.hier-note { margin: 4px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.6; word-break: keep-all; }

/* ═══ 브리핑 본문 구조화 재편집 · 2026-08-03 (일목요연 BCG식) ═══ */
.briefing-body-content .brf-h { margin: 18px 0 8px; font-size: 15px; font-weight: 800; color: var(--navy); }
.briefing-body-content .brf-appendix { margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 15px; font-weight: 800; color: var(--navy); }
.briefing-body-content p { margin: 0 0 12px; word-break: keep-all; overflow-wrap: break-word; }
.briefing-body-content .brf-tag { display: inline-block; margin: 0 0 12px; padding: 3px 10px; background: #eef1f6; border: 1px solid var(--line-dark); font-size: 13px; font-weight: 700; color: var(--navy); }
.briefing-body-content .brf-note { margin: 10px 0; padding: 10px 14px; background: #f6f8fb; border: 1px solid var(--line); color: #46505c; font-size: 13.5px; }
.briefing-body-content .brf-list { margin: 8px 0 14px; padding-left: 20px; }
.briefing-body-content .brf-list li { margin: 5px 0; word-break: keep-all; }

/* QA preflight · 색 띠 금지: 전역 footer의 구형 4px 상단 밴드를 1px 경계선으로 제한. */
.site-footer { border-top-width: 1px !important; }

/* ═══ 2026-08-03 블록 테두리 통일 · 좌측/상단 accent 색 줄 전면 제거 ═══ */
/* 원칙: 모든 콘텐츠 블록은 1px 네모 테두리. 굵은 상단·좌측 색 띠와 장식용 색 바 금지. 일관 적용. */

/* 1) 테두리 없던 블록에 full 네모 테두리 부여 */
.hero-copy { border: 1px solid var(--line-dark) !important; }

/* 2) 굵은 상단 accent(navy/blue 3~5px) 제거 → 나머지 3면 1px 박스 유지 */
.hero-stats { border-top: 0 !important; }
.page-header { border-top: 1px solid var(--module-line) !important; }
.bill-comparison-column.proposed { border-top: 1px solid var(--module-line) !important; }
.bill-key-points article { border-top: 1px solid var(--module-line) !important; }
.bill-related-card { border-top: 1px solid var(--module-line) !important; }

/* 3) 굵은 좌측 accent(navy/blue 5px) → 1px 정규 테두리 (full 박스 유지) */
.explain-box { border-left: 1px solid var(--line-dark) !important; }
.editorial-note { border-left: 1px solid var(--module-line) !important; }
.bill-executive-summary { border-left: 1px solid #aebfd1 !important; }

/* 4) 사이드바 활성 항목 좌측 파란 세로줄 → 배경 강조로 대체 */
.sidebar .side-links a.is-current {
  border-left: 0 !important;
  background: #eef3f9 !important;
  font-weight: 700 !important;
}

/* 5) 장식용 색 바(줄) 제거: 헤딩 좌측 파란 세로바 · page-header 하단 파란 밑줄바 */
.section-heading > div:first-child::before,
.module-heading > div:first-child::before,
.page-header::after,
.page-header.cat-hero-v2::after { content: none !important; display: none !important; }
.section-heading > div:first-child,
.module-heading > div:first-child { padding-left: 0 !important; }

/* ═══ 2026-08-03 상단 네비게이션 정돈 · 글자 키우고 박스형/인셋줄 제거 ═══ */
/* 112px 고정폭 버튼·테두리·활성 하단 파란 인셋줄을 걷어내고 깔끔한 텍스트 nav로. */
.site-nav { gap: 2px !important; padding: 0 !important; align-items: center !important; }
.nav-link {
  min-width: 0 !important;
  height: 40px !important;
  align-self: center !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #3f5068 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy) !important;
  background: #eef2f6 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.nav-link[aria-current="page"] {
  color: #fff !important;
  background: var(--navy) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 모바일 · nav 가독성 + 카드 글자가 박스에 붙지 않게 거터·패딩 확보 */
@media (max-width: 720px) {
  .nav-link { font-size: 14.5px !important; padding: 9px 12px !important; }
  .shell { padding-left: 14px !important; padding-right: 14px !important; }
  .law-result { padding: 16px 16px !important; }
  .law-result-main h3 { font-size: 15px !important; line-height: 1.5 !important; }
  .law-result-excerpt { font-size: 13px !important; line-height: 1.6 !important; }
}

/* ═══ 2026-08-03 scan 블록 배경 옅은 색감 구분 (테두리 유지 · 색은 아주 옅게) ═══ */
/* 조문 원문 / 위계·연결 법령 / 연결 자산을 배경 색조로 구분해 블록 식별을 돕는다. */
.quote-law { background: #fafbfd !important; }
.link-card { background: #f6f9fc !important; }               /* 위계·연결 법령 = 옅은 블루그레이 */
.asset-type-block .link-card { background: #f4faf6 !important; } /* 연결 자산 = 옅은 그린그레이(실제 인용) */
.pager .link-card { background: #f8fafb !important; }        /* 이전·다음 조문 = 중립 */
.law-result { background: #f8fafc !important; }              /* scan 목록 카드 */

/* ═══ 2026-08-03 보도자료 주요 키워드 칩 (검색 연결) ═══ */
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  background: #f4f7fb;
  color: var(--navy);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  word-break: keep-all;
}
.kw-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
