:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #1d2520;
  --muted: #66736b;
  --line: #dfe5dd;
  --accent: #007f73;
  --accent-ink: #035b52;
  --soft: #edf4f1;
  --mark: #e6b43c;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 24px;
  letter-spacing: 0;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.nav a {
  white-space: nowrap;
}

.main {
  padding: 46px 0 64px;
}

.intro {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1,
.article h1,
.page h1 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 56px);
}

.intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 22px;
}

.search {
  width: min(420px, 100%);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--paper);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.filter-row button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.start-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.start-panel article,
.archive-notice,
.page-summary,
.reading-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.start-panel article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.start-panel h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.start-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.start-panel a,
.archive-notice a {
  color: var(--accent-ink);
  font-weight: 700;
}

.visual-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin: 4px 0 30px;
}

.lead-card,
.lead-side a,
.hub-visual-strip a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  min-height: 330px;
}

.lead-card img,
.lead-side img,
.hub-visual-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
}

.lead-card div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
}

.lead-card span {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.lead-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.34;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.lead-side {
  display: grid;
  gap: 12px;
}

.lead-side a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 96px;
}

.lead-side span,
.hub-visual-strip span {
  align-self: center;
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 8px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 2px;
  min-height: 84px;
  padding: 18px;
  background: var(--paper);
}

.trust-strip strong {
  font-size: 18px;
  line-height: 1.3;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.archive-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 42px;
  padding: 20px;
}

.archive-notice h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
}

.archive-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.value-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin: 28px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.value-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.value-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.value-panel ul {
  margin: 0;
  padding-left: 20px;
}

.value-panel li {
  margin: 8px 0;
}

.topic-section {
  margin: 34px 0 42px;
}

.hub-matrix a {
  font-weight: 700;
}

.hub-guide-table {
  margin: 28px 0 36px;
}

.hub-guide-table th {
  white-space: nowrap;
}

.hub-guide-table a {
  font-weight: 700;
}

.hub-visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.hub-visual-strip a {
  display: grid;
  grid-template-rows: 170px minmax(74px, auto);
}

.reading-order {
  margin: 0 0 28px;
  padding: 20px;
}

.reading-order ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-order li {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.reading-order li:first-child {
  border-top: 0;
  padding-top: 0;
}

.reading-order span {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.reading-order a {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
}

.reading-order p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading a,
.section-heading span {
  color: var(--muted);
  font-size: 14px;
}

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

.topic-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.topic-card a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 18px;
}

.topic-card span {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.topic-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.38;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.trust-links {
  margin: 34px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
}

.trust-links h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.trust-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.trust-links a {
  color: var(--accent-ink);
  font-weight: 700;
}

.reading-paths {
  margin: 34px 0 42px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.path-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.path-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.path-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.path-grid a {
  font-weight: 700;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.post-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.42;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  border-radius: 999px;
  background: var(--soft);
  padding: 2px 10px;
  color: var(--accent-ink);
}

.article,
.page {
  max-width: 850px;
  margin: 0 auto;
}

.article-header,
.page-header {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.article h1,
.page h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.article-description {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.reviewed-article {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.reviewed-article h1 {
  font-size: 40px;
  line-height: 1.35;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}

.article-byline a {
  font-weight: 700;
}

.author-page {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.author-page h1 {
  font-size: 32px;
}

.author-page .article-byline {
  margin: 0;
}

.author-page .entry-content {
  border: 0;
  padding: 0;
}

.author-profile {
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.author-profile > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.author-profile dt {
  color: var(--muted);
}

.author-profile dd {
  margin: 0;
}

.author-work-list li + li {
  margin-top: 20px;
}

.author-work-list a {
  font-weight: 700;
}

.author-work-list li p {
  margin: 6px 0 0;
  color: var(--muted);
}

.article-disclosure,
.evidence-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.article-findings {
  margin-bottom: 28px;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}

.article-findings h2,
.reviewed-related h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.article-findings ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.reviewed-article .article-toc {
  border: 0;
  border-radius: 0;
  border-left: 3px solid var(--line);
  background: transparent;
  padding: 4px 0 4px 20px;
}

.analysis-callout {
  border-left: 3px solid var(--accent-ink);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--soft);
}

.analysis-callout p {
  margin: 8px 0 0;
}

.analysis-diagram {
  margin: 28px 0;
}

.entry-content .analysis-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  margin: 0;
  border-block: 1px solid var(--line);
}

.analysis-flow li {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.analysis-flow li:last-child {
  border: 0;
}

.analysis-flow li:nth-child(1) { border-top: 3px solid #1c7658; }
.analysis-flow li:nth-child(2) { border-top: 3px solid #287a9d; }
.analysis-flow li:nth-child(3) { border-top: 3px solid #ae6b28; }
.analysis-flow li:nth-child(4) { border-top: 3px solid #765274; }

.analysis-flow span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.analysis-flow strong {
  font-size: 17px;
}

.analysis-flow p {
  font-size: 14px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.analysis-diagram figcaption {
  margin-top: 12px;
  font-size: 14px;
  text-align: left;
  color: var(--muted);
}

.reviewed-article .table-wrap {
  margin: 24px 0;
  max-width: 100%;
}

.entry-content .analysis-table {
  display: table;
  width: 100%;
  min-width: 580px;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.analysis-table caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.entry-content .analysis-table th,
.entry-content .analysis-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.analysis-table thead {
  background: var(--soft);
}

.analysis-table th[scope="row"] {
  width: 22%;
}

.analysis-table .quantity {
  white-space: nowrap;
}

.source-ref {
  font-weight: 700;
  white-space: nowrap;
}

.reviewed-article [id] {
  scroll-margin-top: 24px;
}

.entry-content .evidence-list {
  display: grid;
  gap: 14px;
  padding-left: 24px;
  font-size: 14px;
}

.article-changes {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin: 32px 0;
  font-size: 14px;
}

.article-changes summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.reviewed-related > ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.reviewed-related li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.reviewed-related a {
  font-weight: 700;
}

.reviewed-related p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .reviewed-article h1 { font-size: 30px; }
  .reviewed-article .entry-content h2 { font-size: 24px; }
  .entry-content .analysis-flow { grid-template-columns: 1fr; }
  .analysis-flow li { border-right: 0; }
}

.entry-content {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.editor-note {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.editor-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-ink);
}

.editor-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.article-takeaways {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-takeaways h2 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 20px;
  line-height: 1.35;
}

.article-takeaways > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.article-takeaways article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
}

.article-takeaways span {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.article-takeaways p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-summary {
  margin: 0 0 26px;
  padding: 18px;
  background: var(--soft);
}

.page-summary strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-ink);
}

.page-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-summary li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.article-brief {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-brief h2 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 20px;
  line-height: 1.35;
}

.table-wrap {
  overflow-x: auto;
}

.article-brief table {
  width: 100%;
  border-collapse: collapse;
}

.article-brief th,
.article-brief td {
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}

.article-brief tr:last-child th,
.article-brief tr:last-child td {
  border-bottom: 0;
}

.article-brief th {
  width: 150px;
  color: var(--accent-ink);
  font-size: 15px;
  white-space: nowrap;
}

.article-brief td {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
}

.article-visual {
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.article-visual img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  background: var(--soft);
}

.article-visual figcaption {
  margin: 0;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.article-toc {
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.article-toc h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.article-toc a {
  font-weight: 700;
}

.entry-content h2 {
  margin: 40px 0 12px;
  font-size: 28px;
  line-height: 1.34;
}

.entry-content h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.38;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table {
  margin: 16px 0;
}

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border-radius: 8px;
}

.entry-content figure {
  margin: 26px 0;
}

.entry-content figcaption {
  margin: 10px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.source-matrix {
  min-width: 720px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px;
}

.content-enhancement {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.deep-analysis {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.deep-analysis h2 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.35;
}

.deep-analysis h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.deep-analysis p,
.deep-analysis ul {
  margin: 14px 0;
}

.deep-analysis ul {
  padding-left: 20px;
}

.content-enhancement h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.35;
}

.content-enhancement h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.enhancement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.enhancement-grid > div,
.source-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.reader-value {
  margin-bottom: 22px;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  background: var(--soft);
}

.reader-value p {
  margin: 0;
  color: var(--muted);
}

.reader-checkpoints {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.reader-checkpoints ol {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.checkpoint-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.checkpoint-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.enhancement-grid ul,
.source-list {
  margin: 0;
  padding-left: 20px;
}

.source-list li {
  margin: 12px 0;
}

.source-list a {
  display: inline-block;
  font-weight: 700;
}

.source-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent-ink);
  cursor: pointer;
}
.icon-button:hover { background: var(--soft); text-decoration: none; }
.icon-button:disabled { opacity: 0.4; cursor: default; }
.icon-button[hidden], [hidden] { display: none !important; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid #2872a1; outline-offset: 3px; }
.header-inner { position: relative; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.mobile-navigation { display: none; }
.mobile-navigation summary { list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }

.directory-heading { margin: 0 0 20px; }
.directory-heading h1 { margin: 4px 0 0; font-size: 38px; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
.directory-search {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  background: var(--paper);
}
.directory-search .search { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0 12px; }
.directory-search .search::-webkit-search-cancel-button { display: none; }
.directory-search .icon-button { border: 0; }
.directory-controls { display: flex; align-items: flex-end; gap: 16px; margin: 16px 0 28px; }
.directory-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; min-width: 0; }
.directory-controls select { width: 180px; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); padding: 0 10px; font: inherit; font-size: 14px; }
.directory-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.directory-results-bar h2 { margin: 0; font-size: 22px; line-height: 1.35; scroll-margin-top: 24px; }
.directory-page .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-page .post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--soft); }
.directory-page .post-card-body { min-width: 0; padding: 18px; }
.directory-page .post-card h2 { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.directory-page .post-card p { font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.directory-page .meta { flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.directory-page .pill { border: 0; background: none; padding: 0; color: var(--accent-ink); white-space: nowrap; }
.directory-empty { padding: 36px 0; border-block: 1px solid var(--line); text-align: center; color: var(--muted); }
.directory-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 30px 0; }
.directory-pagination span { min-width: 70px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.directory-topics, .directory-resources { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.directory-topics h2, .directory-resources h2 { margin: 0 0 18px; font-size: 24px; }
.directory-topics ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.directory-topics a { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.directory-topics strong { min-width: 0; flex: 1; font-size: 17px; overflow-wrap: anywhere; }
.directory-topics span { color: var(--muted); white-space: nowrap; font-size: 13px; }
.directory-resources > div { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }

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

@media (max-width: 820px) {
  .header-inner,
  .toolbar,
  .article-nav,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-grid,
  .topic-grid,
  .path-grid,
  .start-panel,
  .visual-lead,
  .lead-card,
  .hub-visual-strip,
  .value-panel {
    grid-template-columns: 1fr;
  }

  .archive-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-card {
    min-height: 0;
  }

  .lead-card img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .enhancement-grid {
    grid-template-columns: 1fr;
  }

  .article-takeaways > div {
    grid-template-columns: 1fr;
  }

  .main {
    padding-top: 32px;
  }

  .header-inner { flex-direction: row; align-items: center; gap: 12px; }
  .brand { min-width: 0; }
  .brand span { font-size: 12px; }
  .header-actions { gap: 4px; }
  .desktop-nav { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation .nav { position: absolute; top: 100%; left: -16px; right: -16px; z-index: 10; display: grid; gap: 0; padding: 12px 24px; background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 8px 12px rgba(0,0,0,0.06); }
  .mobile-navigation .nav a { display: block; padding: 12px 0; }
  .directory-page .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .directory-heading h1 { font-size: 30px; }
  .directory-page .post-grid, .directory-topics ul { grid-template-columns: 1fr; }
  .directory-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; }
  .directory-controls select { width: 100%; }
  .directory-results-bar h2 { font-size: 19px; }
  .directory-results-bar .count { font-size: 12px; }
}
