:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --paper-deep: #eee9dc;
  --surface: #fffdf7;
  --ink: #243b32;
  --green: #244c3e;
  --green-dark: #19392e;
  --green-soft: #e6ecdf;
  --muted: #69726a;
  --line: #d8d9cc;
  --rust: #b24a31;
  --rust-soft: #f8eadf;
  --white: #fffef8;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --latin: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
}

/* Task records share the handbook palette; facts stay visible, background is optional. */
.task-page { width: min(1080px, calc(100% - 80px)); margin: 30px auto 0; }
.task-title { font: 500 clamp(27px, 3vw, 39px)/1.45 var(--display); margin: 18px 0 12px; }
.task-lead { max-width: 800px; font-size: 17px; line-height: 1.8; }
.task-intents { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 24px; }
.task-intent, .task-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid var(--line); background: var(--surface); color: var(--green); text-decoration: none; font-size: 14px; }
.task-intent[aria-pressed="true"], .task-action:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.task-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 22px; }
.task-card h3 { font: 500 23px/1.5 var(--display); margin: 12px 0; }
.task-card h3 a { text-decoration: none; }
.task-matches { margin-top: 12px; border-top: 1px solid var(--line); }
.task-match { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.matched-record-link { color: var(--green); text-underline-offset: 4px; }
.matched-contact { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.task-answer { line-height: 1.8; }
.task-caution { color: #8c422d; font-size: 13px; line-height: 1.8; margin: 12px 0; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.task-coverage { font-size: 12px; color: var(--muted); margin: 12px 0 20px; }
.task-next { background: var(--green-soft); padding: 14px 18px; border-left: 3px solid var(--green); margin: 16px 0; }
.task-section { margin: 32px 0; scroll-margin-top: 16px; }
.task-section > h2 { font: 500 27px/1.5 var(--display); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.record-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); margin: 14px 0; overflow-wrap: anywhere; }
.record-card h3 { font-size: 19px; margin-bottom: 10px; }
.task-contacts { margin: 14px 0; }
.task-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-value { font-size: 16px; overflow-wrap: anywhere; }
.record-footer { margin-top: 14px; }
.task-fields { margin: 8px 0; }
.task-fields > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task-fields dt { font-size: 13px; color: var(--muted); }
.task-fields dd { margin: 0; }
.task-steps { padding-left: 24px; }
.task-steps > li { margin: 16px 0; padding-left: 6px; }
.task-background { border-bottom: 1px solid var(--line); padding: 16px 0; }
.task-background summary, .task-gallery summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.task-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0; }
.task-images figure { min-width: 0; }
.task-images img { width: 100%; max-height: 340px; object-fit: contain; background: var(--paper-deep); }
.task-images figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.record-status { display: inline-block; padding: 3px 10px; background: var(--rust-soft); color: #8c422d; font-size: 13px; margin-bottom: 12px; }
.quote-scroll { max-width: 100%; overflow-x: auto; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.quote-table caption { text-align: left; color: #8c422d; padding: 8px 0 16px; }
.quote-table th, .quote-table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; min-width: 115px; max-width: 230px; }
.quote-table thead th { background: var(--green-soft); }
.quote-table tbody th { font-weight: 600; }
.home-page .home-hero { padding-top: 30px; padding-bottom: 25px; min-height: auto; }
.home-page .home-title { font-size: clamp(28px, 3.1vw, 42px); }
@media (max-width: 640px) {
  .task-page { width: calc(100% - 32px); margin-top: 22px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card, .record-card { padding: 16px; }
  .task-title { font-size: 27px; }
  .task-lead { font-size: 15px; }
  .task-intents { gap: 6px; }
  .task-intent, .task-action { padding: 8px 12px; }
  .task-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .task-fields > div { grid-template-columns: 85px minmax(0, 1fr); gap: 8px; }
  .task-contact strong, .task-contact .contact-value { flex-basis: 100%; }
  .quote-table thead { display: none; }
  .quote-table, .quote-table tbody, .quote-table tr { display: block; }
  .quote-table tr { border: 1px solid var(--line); margin-bottom: 16px; }
  .quote-table th, .quote-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; min-width: 0; max-width: none; width: 100%; border: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .quote-table th::before, .quote-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: normal; }
}

* { box-sizing: border-box; }
html { min-width: 300px; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#244c3e07 .75px, transparent .75px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, textarea, select { border-radius: 0; }
a { color: inherit; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
ul { padding-left: 1.4em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
h1:focus { outline: none; }
::selection { background: #cedbbd; color: var(--green-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--green);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.header-inner {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 47px;
  border: 1px solid var(--green);
  border-radius: 25px 25px 0 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}
.brand-words { display: grid; gap: 1px; }
.brand-name { font-family: var(--display); font-size: 21px; letter-spacing: .14em; line-height: 1.35; font-weight: 700; }
.brand-subtitle { font-size: 10px; letter-spacing: .35em; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 28px; }
.header-caption { font-family: var(--display); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.text-button { background: none; color: var(--green); min-height: 44px; padding: 7px 0; border: 0; font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-button:hover { color: var(--rust); }
.logout-button { text-decoration: none; border-left: 1px solid var(--line); padding-left: 26px; }
main { min-height: calc(100vh - 195px); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); }
.footer-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .04em; }
.footer-mark { display: inline-block; margin-right: 8px; color: var(--rust); font-size: 18px; vertical-align: -1px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .18em; line-height: 1.8; color: var(--green); font-weight: 600; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 11px 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { color: var(--green); border-color: #a5b1a4; background: transparent; }
.button-outline:hover { background: var(--green-soft); border-color: var(--green); }
.button-full { width: 100%; }
.button-small { min-height: 40px; padding: 8px 19px; font-size: 13px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.text-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #a9b3a5;
  padding: 11px 14px;
  background: #fffef8;
  color: var(--ink);
  font-size: 16px;
}
.text-input::placeholder, .search-input::placeholder { color: #7b8276; opacity: 1; font-size: 13px; }
.text-input[aria-invalid="true"] { border-color: var(--rust); }
.field-note { color: var(--muted); font-size: 11px; line-height: 1.85; }
.form-message { color: var(--green); font-size: 12px; line-height: 1.7; }
.form-message.is-error { color: #a43123; }

/* The entry reads like the inside cover of a shared neighborhood handbook. */
.gate { width: min(1100px, calc(100% - 96px)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 650px; padding-top: 68px; }
.gate-intro { position: relative; padding: 20px 66px 0 0; overflow: hidden; min-height: 590px; }
.gate-title { font-family: var(--display); font-size: clamp(32px, 3.2vw, 45px); font-weight: 500; letter-spacing: -.02em; line-height: 1.58; margin-top: 24px; }
.gate-description { color: var(--muted); font-size: 13px; line-height: 2; max-width: 360px; margin-top: 24px; }
.gate-access { border-left: 1px solid var(--line); padding: 20px 0 30px 68px; }
.gate-access-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.section-index { font-family: var(--latin); font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.tiny-flower { font-size: 21px; color: var(--rust); line-height: 1; }
.gate-access-title { font-family: var(--display); font-weight: 500; font-size: 29px; letter-spacing: .04em; }
.gate-access-description { font-size: 12px; line-height: 1.9; margin-top: 12px; max-width: 350px; }
.access-form { margin-top: 31px; }
.password-field { position: relative; }
.password-field .text-input { padding-right: 68px; letter-spacing: .08em; }
.password-reveal { position: absolute; right: 0; top: 0; bottom: 0; width: 61px; border: 0; background: transparent; color: var(--green); font-size: 12px; }
.password-reveal:hover { background: var(--green-soft); }
.access-form .form-message { min-height: 28px; padding-top: 4px; }
.access-form .field-note { margin-top: 15px; }
.gate-contents { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }
.contents-title { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.contents-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 17px; row-gap: 12px; }
.contents-list li { display: flex; gap: 10px; align-items: baseline; font-size: 11px; }
.contents-number { font-family: var(--latin); font-size: 12px; color: var(--rust); }
.gate-art { position: relative; width: 340px; height: 228px; margin: 44px 0 0 -25px; }
.gate-arch { width: 173px; height: 200px; border: 1px solid #b1bda7; border-radius: 110px 110px 0 0; position: absolute; bottom: 0; left: 20px; background: linear-gradient(130deg, transparent 45%, #dce3ce88); }
.gate-arch::after { content: ""; position: absolute; inset: 12px; border: 1px solid #bac3af; border-radius: 100px 100px 0 0; }
.art-sun { position: absolute; width: 36px; height: 36px; border-radius: 50%; top: 6px; left: 172px; background: #b24a3120; border: 1px solid #b24a3160; }
.gate-plant { position: absolute; width: 130px; height: 192px; bottom: 0; left: 160px; transform: rotate(7deg); }
.plant-stem { display: block; position: absolute; bottom: 0; left: 65px; height: 180px; width: 1px; background: #6f8365; transform: rotate(8deg); }
.plant-leaf { position: absolute; width: 59px; height: 32px; border: 1px solid #6f8365; border-radius: 0 90% 0 90%; background: #e2e7d7cc; }
.leaf-one { top: 30px; left: 62px; transform: rotate(-57deg); }
.leaf-two { top: 78px; left: 14px; transform: rotate(12deg); }
.leaf-three { top: 125px; left: 67px; transform: rotate(-60deg); }
.gate-art-label { position: absolute; bottom: 18px; left: 43px; display: grid; gap: 1px; }
.gate-art-label span:first-child { font-family: var(--display); font-size: 32px; letter-spacing: .16em; color: #50684c; }
.gate-art-label span:last-child { font-size: 9px; letter-spacing: .08em; color: #738268; }

.home-page { width: min(1160px, calc(100% - 96px)); margin: 0 auto; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 68px; align-items: end; padding: 54px 0 45px; }
.home-title { font-family: var(--display); font-size: clamp(33px, 3.7vw, 47px); line-height: 1.45; font-weight: 500; letter-spacing: -.025em; margin-top: 17px; }
.home-intro { font-size: 12px; color: var(--muted); margin-top: 20px; max-width: 480px; line-height: 1.9; }
.coverage-note { position: relative; padding: 28px 25px 22px; border: 1px solid #cbd2bd; background: #e9eddf; transform: rotate(1.5deg); margin-bottom: 4px; }
.note-pin { color: var(--rust); position: absolute; top: -19px; left: calc(50% - 8px); font-family: var(--latin); font-size: 29px; font-weight: 400; }
.coverage-note h2 { font-size: 11px; font-weight: 500; color: #57674f; letter-spacing: .08em; }
.coverage-value { font-family: var(--display); font-size: 17px; line-height: 1.7; margin-top: 11px; }
.coverage-explanation { font-size: 10px; color: #64725d; line-height: 1.9; margin-top: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-title { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .03em; overflow-wrap: anywhere; }
.section-note { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-tile { position: relative; display: block; text-align: left; padding: 19px 21px 23px; border: 1px solid #cbd0c2; background: #f9f8f1; color: var(--ink); min-width: 0; transition: background .2s, border-color .2s, color .2s; }
.category-tile::after { content: "↗"; position: absolute; right: 19px; bottom: 17px; color: #73816c; font-size: 17px; }
.category-tile:hover { background: #edf0e4; border-color: #8c9d83; }
.category-tile.is-selected { background: var(--green); border-color: var(--green); color: var(--white); }
.category-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 24px; }
.category-number { font-family: var(--latin); font-size: 16px; color: #a14f39; line-height: 1; }
.category-count { font-size: 10px; color: var(--muted); }
.category-title { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.category-description { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; padding-right: 10px; }
.category-tile.is-selected .category-number { color: #e6baa2; }
.category-tile.is-selected .category-count, .category-tile.is-selected .category-description, .category-tile.is-selected::after { color: #d5dfcd; }
.all-categories-button[aria-pressed="true"] { color: var(--muted); text-decoration: none; }
.search-strip { display: flex; align-items: center; justify-content: flex-end; gap: 17px; border-bottom: 1px solid var(--line); padding: 23px 0; margin-bottom: 33px; }
.search-strip > label { font-size: 11px; color: var(--muted); }
.search-controls { display: flex; gap: 9px; align-items: center; width: 335px; max-width: 100%; }
.search-input { min-width: 0; width: 100%; min-height: 40px; color: var(--ink); border: 1px solid #c2c9b9; background: #fffef877; padding: 8px 12px; font-size: 16px; }
.library-results { min-height: 175px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.article-card { position: relative; padding: 23px 0 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.article-card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.65; margin-top: 13px; }
.article-title-link { text-decoration: none; }
.article-title-link::after { content: ""; position: absolute; inset: 0; }
.article-title-link:hover { color: var(--rust); }
.article-title-link:focus-visible { outline-offset: 6px; }
.article-summary { color: #626f63; font-size: 12px; line-height: 1.95; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.category-badge { font-size: 10px; line-height: 1.6; color: #59704f; letter-spacing: .03em; }
.category-badge + .category-badge::before { content: "·"; margin-right: 7px; color: #9ba58f; }
.common-mark { color: var(--rust); border: 1px solid #d9b5a4; padding: 1px 7px; line-height: 1.5; font-size: 9px; white-space: nowrap; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #737b6e; font-size: 10px; margin-top: 20px; }
.card-arrow { font-size: 20px; color: var(--green); line-height: 1; }
.common-section { margin-bottom: 39px; }
.common-grid { gap: 16px; }
.compact-card { border: 1px solid #d3d7c8; background: #fffdf5; padding: 22px 24px 20px; }
.compact-card:hover { border-color: #a5b499; }
.compact-card h3 { font-size: 21px; }
.compact-card .card-meta { margin-top: 20px; }
.question-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0 0; margin-top: 33px; border-top: 1px solid var(--line); }
.question-strip h2 { font-family: var(--display); font-size: 20px; font-weight: 500; }
.question-strip p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.question-strip .button { flex-shrink: 0; }
.state-panel { text-align: center; padding: 57px 24px 55px; border: 1px solid var(--line); background: #fffdf544; }
.state-panel h1, .state-panel h2 { font-family: var(--display); font-size: 26px; line-height: 1.6; font-weight: 500; margin-top: 13px; }
.state-panel > p.muted { max-width: 440px; margin: 15px auto 0; font-size: 12px; line-height: 2; }
.state-panel > .button { margin-top: 25px; }
.initial-state, .loading-panel { min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; color: var(--muted); font-size: 12px; }
.loading-mark { display: block; height: 24px; width: 24px; border: 1px solid #b8c3ad; border-top-color: var(--green); border-radius: 50%; animation: turn 1s linear infinite; }
.connection-error, .not-found-page { width: min(750px, calc(100% - 48px)); margin: 64px auto; }
.logout-error { margin: 0; padding: 12px 24px; background: var(--rust-soft); color: #8d3226; font-size: 12px; text-align: center; }

.article-page { width: min(1080px, calc(100% - 96px)); margin-inline: auto; padding-top: 30px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--green); text-underline-offset: 4px; }
.breadcrumb span:nth-child(2) { color: #aab2a0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(210px, 1fr); gap: 58px; align-items: start; }
.article-document { min-width: 0; }
.article-header { border-bottom: 1px solid var(--line); padding: 15px 0 29px; margin-bottom: 30px; }
.article-header .category-badge { font-size: 11px; }
.detail-title { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.3vw, 39px); line-height: 1.55; letter-spacing: -.02em; margin-top: 18px; overflow-wrap: anywhere; }
.detail-summary { color: #53634f; font-size: 15px; line-height: 1.95; margin-top: 21px; overflow-wrap: anywhere; }
.detail-metadata { display: flex; flex-wrap: wrap; gap: 7px 23px; font-size: 10px; color: var(--muted); margin-top: 23px; }
.article-callout { padding: 22px 27px 20px; border-left: 3px solid #718761; margin: 27px 0; background: #e9eddf99; }
.article-callout h2 { font-size: 15px; font-weight: 600; margin-bottom: 11px; }
.article-callout ul { margin: 0; font-size: 13px; line-height: 1.95; }
.article-callout li + li { margin-top: 8px; }
.disagreement-callout { border-color: #ac6d47; background: #f6ebdd; }
.limitations-callout { background: #eeece3; border-color: #9f9a83; }
.article-section { margin: 32px 0; }
.article-section h2, .article-images > h2, .merchants-section > h2 { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.6; margin-bottom: 16px; }
.article-section p { font-size: 15px; line-height: 2; margin: 14px 0; white-space: pre-line; overflow-wrap: anywhere; }
.article-section ul { margin: 15px 0; font-size: 15px; line-height: 2; }
.article-section li + li { margin-top: 10px; }
.article-section li, .article-callout li { overflow-wrap: anywhere; }
.article-images { margin-top: 35px; }
.article-figure { margin: 19px 0 27px; border: 1px solid var(--line); background: #fffef8; }
.image-link { display: block; background: var(--paper-deep); }
.image-link img { max-height: 720px; width: 100%; object-fit: contain; }
.article-figure figcaption { color: var(--muted); font-size: 11px; line-height: 1.9; padding: 13px 17px; overflow-wrap: anywhere; }
.image-failed { padding: 29px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.image-failed .button { margin-top: 16px; }
.merchants-section { margin: 37px 0; }
.merchant-disclaimer { font-size: 11px; color: var(--muted); margin: -7px 0 21px; line-height: 1.95; }
.merchant-card { background: #fffdf5; border: 1px solid #d1d7c7; padding: 22px 25px; margin: 14px 0; }
.merchant-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.merchant-contacts { margin: 17px 0 0; font-size: 13px; }
.merchant-contacts > div { display: grid; grid-template-columns: minmax(60px, 100px) minmax(0, 1fr); gap: 15px; padding: 7px 0; border-top: 1px solid #e3e5d9; }
.merchant-contacts dt { color: var(--muted); font-size: 12px; }
.merchant-contacts dd { margin: 0; user-select: all; overflow-wrap: anywhere; }
.merchant-note { font-size: 12px; color: var(--muted); margin-top: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.revision-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 35px; }
.revision-note h2 { color: var(--green); font-size: 12px; font-weight: 600; }
.revision-note p { color: var(--muted); font-size: 11px; line-height: 1.95; margin-top: 7px; overflow-wrap: anywhere; }
.article-aside { position: sticky; top: 25px; padding-top: 15px; }
.article-actions { padding: 28px 23px 23px; background: #e8ecdf; border-top: 2px solid var(--green); }
.article-actions > .eyebrow { font-size: 9px; letter-spacing: .1em; }
.article-actions > h2 { font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.7; margin: 11px 0 24px; }
.article-actions .button { font-size: 12px; padding-inline: 10px; }
.article-actions > .button-outline { margin-top: 22px; }
.article-actions > .field-note { margin-top: 10px; font-size: 10px; }
.share-message { min-height: 32px; }
.copy-fallback { margin-top: 15px; font-size: 12px; min-height: 40px; }
.back-link { display: inline-block; color: var(--green); font-size: 12px; text-decoration: none; padding: 10px 0; }
.back-link:hover { color: var(--rust); }
.bottom-back { margin-top: 38px; }

.feedback-dialog {
  width: min(540px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
  padding: 30px 34px 32px;
  border: 1px solid #aab79d;
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px #18392e33;
  overflow-y: auto;
}
.feedback-dialog::backdrop { background: #172b24aa; backdrop-filter: blur(3px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.dialog-topline .eyebrow { font-size: 10px; letter-spacing: .1em; }
.dialog-close { font-size: 11px; min-height: 35px; }
.dialog-title { font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1.55; margin-bottom: 25px; }
.feedback-form .field-label { margin-top: 18px; }
.feedback-form .text-input { font-size: 14px; }
.feedback-textarea { display: block; resize: vertical; min-height: 145px; line-height: 1.8; }
.character-count { text-align: right; color: var(--muted); font-size: 10px; margin-top: 6px; }
.feedback-form .field-note { margin-top: 12px; }
.feedback-form .form-message { min-height: 28px; padding-top: 9px; }
.feedback-form > .button { margin-top: 14px; }
.feedback-success { text-align: center; padding: 13px 0 0; }
.success-symbol { display: inline-grid; place-items: center; width: 51px; height: 51px; border: 1px solid #91a080; border-radius: 50%; color: var(--green); font-family: var(--latin); font-size: 25px; margin-bottom: 20px; }
.feedback-success h2 { font-family: var(--display); font-size: 28px; font-weight: 500; margin-bottom: 16px; }
.feedback-success > p { font-size: 12px; color: var(--muted); line-height: 2; }
.feedback-success .feedback-receipt { font-size: 10px; margin: 20px 0 26px; overflow-wrap: anywhere; }
.noscript-message { margin: 30px auto; padding: 20px; max-width: 600px; color: var(--rust); }
.page-enter { animation: enter-page .45s ease both; }
@keyframes enter-page { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes turn { to { transform: rotate(360deg); } }

@media (min-width: 1350px) {
  .home-hero { padding-top: 62px; padding-bottom: 53px; }
  .home-title { font-size: 49px; }
  .category-tile { padding-block: 22px 25px; }
}
@media (max-width: 1050px) {
  .header-inner, .footer-inner, .home-page { width: calc(100% - 64px); }
  .gate { width: calc(100% - 64px); grid-template-columns: 1fr 1fr; padding-top: 45px; }
  .gate-intro { padding-right: 35px; }
  .gate-access { padding-left: 35px; }
  .gate-title { font-size: 35px; }
  .gate-description { max-width: 310px; }
  .contents-list { grid-template-columns: 1fr; row-gap: 7px; }
  .gate-art { transform: scale(.9); transform-origin: left bottom; margin-top: 35px; }
  .home-hero { gap: 35px; grid-template-columns: minmax(0, 1fr) 225px; }
  .home-title { font-size: 37px; }
  .category-grid { gap: 10px; }
  .category-tile { padding-inline: 15px; }
  .category-title { font-size: 22px; }
  .category-description { font-size: 9px; letter-spacing: -.02em; }
  .article-page { width: calc(100% - 64px); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 32px; }
  .article-actions { padding: 23px 17px; }
  .article-actions > h2 { font-size: 18px; }
}
@media (max-width: 760px) {
  .header-inner, .footer-inner, .home-page, .article-page { width: calc(100% - 40px); }
  .header-inner { min-height: 83px; gap: 15px; }
  .brand-symbol { width: 35px; height: 40px; font-size: 23px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 18px; }
  .brand-subtitle { font-size: 9px; }
  .header-caption { display: none; }
  .header-right { gap: 0; }
  .logout-button { border: 0; padding: 10px 0; font-size: 11px; }
  .site-footer { margin-top: 49px; }
  .footer-inner { min-height: 86px; font-size: 9px; gap: 12px; }
  .footer-inner .text-button { font-size: 10px; }
  .gate { width: calc(100% - 40px); grid-template-columns: 1fr; padding-top: 30px; min-height: auto; }
  .gate-intro { padding: 0; min-height: auto; }
  .gate-intro > .eyebrow { font-size: 10px; }
  .gate-title { font-size: clamp(29px, 6.6vw, 37px); margin-top: 17px; line-height: 1.5; }
  .gate-description { max-width: 430px; font-size: 12px; margin-top: 17px; }
  .gate-art { position: absolute; right: -90px; bottom: -28px; opacity: .32; transform: scale(.62); transform-origin: right bottom; pointer-events: none; }
  .gate-access { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; margin-top: 31px; }
  .gate-access-top { margin-bottom: 18px; }
  .gate-access-title { font-size: 26px; }
  .gate-access-description { margin-top: 9px; font-size: 12px; max-width: none; }
  .access-form { margin-top: 24px; }
  .gate-contents { margin-top: 29px; padding-top: 17px; }
  .contents-list { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 10px; }
  .home-hero { padding: 32px 0 30px; grid-template-columns: 1fr; gap: 23px; }
  .home-title { font-size: 36px; margin-top: 15px; line-height: 1.45; }
  .home-intro { font-size: 12px; max-width: 440px; margin-top: 16px; }
  .coverage-note { display: grid; grid-template-columns: 1fr; padding: 15px 19px; transform: none; margin: 0; border: 0; border-left: 2px solid #80936a; background: #e9eddf; }
  .note-pin { display: none; }
  .coverage-note h2 { font-size: 10px; }
  .coverage-value { font-family: var(--body); font-size: 12px; margin-top: 4px; font-weight: 500; }
  .coverage-explanation { margin-top: 5px; font-size: 9px; }
  .section-heading { margin-bottom: 14px; gap: 12px; }
  .section-title { font-size: 20px; }
  .section-note { font-size: 10px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-tile { padding: 15px 17px 18px; }
  .category-top { margin-bottom: 15px; }
  .category-number { font-size: 15px; }
  .category-title { font-size: 23px; }
  .category-description { font-size: 10px; margin-top: 6px; padding-right: 7px; }
  .category-tile::after { bottom: 13px; right: 12px; font-size: 15px; }
  .search-strip { justify-content: space-between; gap: 13px; padding: 20px 0; margin-bottom: 26px; }
  .search-strip > label { font-size: 10px; flex-shrink: 0; }
  .search-controls { width: 320px; gap: 7px; }
  .search-input { padding-inline: 9px; }
  .search-input::placeholder { font-size: 11px; }
  .search-controls .button { padding-inline: 13px; }
  .article-grid { column-gap: 22px; }
  .common-grid { gap: 12px; }
  .compact-card { padding: 17px; }
  .article-card h3 { font-size: 20px; }
  .article-summary { font-size: 11px; }
  .card-meta { font-size: 9px; gap: 8px; }
  .category-badge { font-size: 9px; }
  .common-mark { padding-inline: 5px; font-size: 8px; }
  .question-strip { gap: 18px; padding-top: 24px; margin-top: 26px; }
  .question-strip h2 { font-size: 19px; }
  .question-strip p { font-size: 10px; }
  .question-strip .button { padding: 10px 16px; font-size: 12px; }
  .state-panel { padding: 39px 18px; }
  .state-panel h1, .state-panel h2 { font-size: 23px; }
  .state-panel .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .state-panel > p.muted { font-size: 11px; }
  .article-page { padding-top: 22px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .breadcrumb { margin-bottom: 18px; }
  .article-header { padding-top: 8px; padding-bottom: 24px; margin-bottom: 24px; }
  .detail-title { font-size: 31px; margin-top: 16px; }
  .detail-summary { font-size: 14px; margin-top: 17px; }
  .detail-metadata { margin-top: 19px; }
  .article-callout { padding: 19px 20px; margin-block: 23px; }
  .article-section { margin-block: 28px; }
  .article-section h2, .article-images > h2, .merchants-section > h2 { font-size: 22px; }
  .article-section p, .article-section ul { font-size: 14px; }
  .article-aside { position: static; padding-top: 0; }
  .article-actions { padding: 24px; }
  .article-actions > h2 { font-size: 23px; margin-bottom: 18px; }
  .article-actions .button { font-size: 13px; }
  .article-actions > .field-note { font-size: 11px; }
  .share-message { min-height: auto; }
  .merchant-card { padding: 20px; }
  .bottom-back { margin-top: 27px; }
  .feedback-dialog { padding: 24px; max-height: calc(100dvh - 32px); }
  .dialog-title { font-size: 25px; margin-bottom: 21px; }
}
@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .common-grid { gap: 11px; }
  .compact-card { padding: 21px; }
  .article-card h3 { font-size: 21px; margin-top: 10px; }
  .article-summary { font-size: 12px; -webkit-line-clamp: 2; }
  .card-meta { margin-top: 15px; font-size: 10px; }
  .category-badge { font-size: 10px; }
  .category-tile { padding-inline: 14px; }
  .category-description { font-size: 9px; }
  .home-title { font-size: clamp(29px, 8.2vw, 36px); }
  .section-note { font-size: 9px; }
  .contents-list li { font-size: 10px; gap: 8px; }
  .search-strip { flex-wrap: wrap; gap: 9px; }
  .search-controls { width: 100%; }
  .search-input::placeholder { font-size: 12px; }
  .question-strip { align-items: flex-start; flex-direction: column; gap: 17px; }
  .question-strip .button { min-width: 120px; }
  .detail-title { font-size: 28px; }
  .feedback-dialog { width: calc(100% - 24px); padding: 22px; }
  .dialog-topline .eyebrow { font-size: 9px; }
  .dialog-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Legacy image viewer. D28 directory uses its own compact tables below. */
.catalog-page { width: min(1420px, calc(100% - 64px)); margin: 28px auto 0; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.catalog-heading .eyebrow { flex-basis: 100%; }
.catalog-heading h1 { font: 600 34px/1.5 var(--display); margin: 0; }
.catalog-coverage { margin: 0; font-size: 12px; color: var(--muted); }
.catalog-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); overscroll-behavior-x: contain; }
.catalog-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.catalog-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.7; }
.catalog-table th, .catalog-table td { padding: 12px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: pre-line; overflow-wrap: anywhere; }
.catalog-table tr > :last-child { border-right: 0; }
.catalog-table tbody tr:last-child > * { border-bottom: 0; }
.catalog-table thead th { font-weight: 600; color: var(--green-dark); background: var(--green-soft); white-space: nowrap; }
.catalog-table tfoot { font-weight: 600; background: var(--paper-deep); }
.catalog-table tfoot th, .catalog-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }
.catalog-table tbody tr:nth-child(even) { background: #f5f4eb; }
.classification-scroll { max-height: 410px; }
.classification-scroll .catalog-table { min-width: 650px; }
.classification-scroll thead th { position: sticky; top: 0; z-index: 2; }
.classification-scroll thead th:first-child { z-index: 3; }
.classification-scroll th:first-child { position: sticky; left: 0; min-width: 190px; background: var(--surface); z-index: 1; }
.classification-scroll thead th:first-child { background: var(--green-soft); }
.classification-scroll tfoot th:first-child { background: var(--paper-deep); }
.classification-scroll .is-selected > * { background: #e0e9da; }
.classification-scroll .is-selected th:first-child { background: #e0e9da; }
.catalog-table .catalog-number { text-align: center; font-variant-numeric: tabular-nums; padding: 5px 10px; vertical-align: middle; }
.catalog-classify, .catalog-count, .catalog-subcategory, .catalog-image-button { border: 0; background: none; color: var(--green); text-align: left; font: inherit; cursor: pointer; min-height: 36px; padding: 4px 0; }
.catalog-count { text-align: center; min-width: 42px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b0bbaa; }
.catalog-classify:hover, .catalog-count:hover, .catalog-subcategory:hover, .catalog-image-button:hover { color: var(--rust); }
.subcategory-row .catalog-classify { padding-left: 20px; font-weight: 400; font-size: 12px; }
.subcategory-row th:first-child { border-left: 3px solid #829777; }
.catalog-counting-note { font-size: 11px; color: var(--muted); margin: 8px 0 16px; }
.catalog-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 14px; }
.catalog-filters > label:not(.sr-only) { font-size: 12px; }
.catalog-filters select { width: min(270px, 100%); }
.catalog-filters input { width: min(310px, 100%); min-width: 0; }
.catalog-filters .text-input { min-height: 42px; padding: 8px 12px; font-size: 13px; }
.catalog-filters .button { min-height: 42px; padding: 8px 18px; }
.catalog-kinds { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.catalog-kind { font: inherit; font-size: 13px; padding: 8px 15px; background: var(--surface); border: 1px solid var(--line); color: var(--green); min-height: 42px; cursor: pointer; }
.catalog-kind[aria-pressed="true"] { background: var(--green); color: var(--surface); border-color: var(--green); }
.catalog-detail-heading { display: flex; align-items: baseline; gap: 18px; margin: 0 0 12px; }
.catalog-detail-heading h2 { font: 600 22px/1.5 var(--display); margin: 0; }
.catalog-row-count, .catalog-status-counts { font-size: 12px; color: var(--muted); }
.catalog-detail-scroll .catalog-table { min-width: 1260px; table-layout: fixed; }
.catalog-detail-scroll th:first-child { width: 140px; }
.catalog-detail-scroll th:nth-child(2) { width: 210px; }
.catalog-detail-scroll .catalog-table th, .catalog-detail-scroll .catalog-table td { padding: 12px; }
.catalog-subcategory { display: block; font-size: 12px; }
.catalog-contact + .catalog-contact { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.catalog-contact-label { display: block; font-size: 10px; color: var(--muted); }
.catalog-phone { display: block; font-weight: 600; color: var(--green); white-space: nowrap; }
.catalog-contact .text-button { min-height: 32px; display: inline-block; font-size: 11px; }
.catalog-image-button { white-space: nowrap; text-decoration: underline; }
.catalog-image-dialog { width: min(850px, calc(100% - 28px)); }
.catalog-image-dialog > .button { float: right; }
.catalog-image-dialog h2 { font: 600 23px/1.6 var(--display); padding-right: 80px; }
.catalog-image-condition { font-size: 12px; color: var(--muted); clear: both; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0; font-size: 12px; }
.catalog-empty { padding: 30px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.catalog-feedback { margin-top: 16px; }
@media (max-width: 760px) {
  .catalog-page { width: calc(100% - 28px); margin-top: 18px; }
  .catalog-heading { gap: 4px; margin-bottom: 14px; }
  .catalog-heading h1 { width: 100%; font-size: 27px; }
  .catalog-coverage { font-size: 11px; }
  .classification-scroll .catalog-table { min-width: 610px; font-size: 12px; }
  .classification-scroll { max-height: 310px; }
  .classification-scroll th:first-child { min-width: 155px; max-width: 155px; }
  .catalog-table th, .catalog-table td { padding: 9px 10px; }
  .catalog-counting-note { font-size: 10px; }
  .catalog-filters { gap: 8px; margin-top: 12px; }
  .catalog-filters select { flex: 1; width: auto; }
  .catalog-filters input { width: calc(100% - 74px); }
  .catalog-filters .text-button { font-size: 11px; }
  .catalog-kinds { gap: 6px; margin: 10px 0 18px; }
  .catalog-kind { padding: 7px 10px; font-size: 12px; }
  .catalog-detail-heading h2 { font-size: 20px; }
  .catalog-detail-scroll .catalog-table { font-size: 12px; }
  .catalog-pagination { gap: 12px; }
}

@media (max-width: 640px) {
  .home-page .home-hero { gap: 12px; padding: 20px 0 12px; }
  .home-page .home-title { margin-top: 8px; font-size: 28px; }
  .home-page .home-intro { margin-top: 8px; }
  .home-page .coverage-note { padding: 10px 12px; margin-top: 0; }
  .home-page .coverage-note h2, .home-page .note-pin { display: none; }
  .home-page .coverage-value { margin: 0; }
  .home-page .coverage-explanation { margin-top: 4px; }
  .home-page .task-intents { margin: 12px 0 18px; }
  .home-page .browse-section { margin-top: 0; }
  .home-page .browse-section .section-heading { margin-bottom: 10px; }
  .home-page .browse-section .section-title { font-size: 20px; }
  .home-page .category-grid { gap: 6px; }
  .home-page .category-tile { min-height: 54px; padding: 10px 12px; }
  .home-page .category-top, .home-page .category-description { display: none; }
  .home-page .category-title { font-size: 17px; margin: 0; }
  .home-page .search-strip { margin: 18px 0; padding: 12px 0; }
  .home-page .library-results { margin-top: 18px; }
  .task-page .article-callout { padding: 12px 14px; margin: 14px 0; }
  .task-page .article-callout li { margin: 4px 0; }
}

/* D28: subject directory, one table at a time, three core detail columns. */
.directory-page { width: min(1120px, calc(100% - 48px)); margin: 26px auto 0; color: var(--ink); }
.directory-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
.directory-heading h1 { font: 600 25px/1.5 var(--display); margin: 0; }
.directory-muted { color: var(--muted); font-size: 12px; }
.directory-scenarios { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); gap: 6px 20px; }
.directory-scenarios > button { min-height: 46px; padding: 9px 0; color: var(--muted); border-bottom: 3px solid transparent; }
.directory-scenarios > button[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.directory-context { display: flex; gap: 16px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.directory-context h2 { font: 600 21px/1.5 var(--display); margin: 0; }
.directory-link, .directory-secondary-link, .directory-count, .directory-record-title, .directory-image-button { border: 0; background: none; color: var(--green); font: inherit; text-align: left; padding: 4px 0; min-height: 36px; cursor: pointer; }
.directory-link:hover, .directory-record-title:hover, .directory-count:hover { text-decoration: underline; text-underline-offset: 4px; }
.directory-link:disabled { opacity: .4; cursor: default; text-decoration: none; }
.directory-secondary-link { display: block; font-size: 11px; font-weight: 400; }
.directory-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 18px 0; }
.directory-filters > .text-input { width: 250px; min-height: 40px; padding: 7px 10px; font-size: 14px; }
.directory-search-label { width: 100%; color: var(--muted); font-size: 12px; }
.directory-select-label { font-size: 12px; display: grid; gap: 3px; }
.directory-select-label select { min-height: 40px; padding: 7px 9px; min-width: 96px; max-width: 180px; font-size: 14px; }
.directory-filters .button { min-height: 40px; }
.directory-kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.directory-kinds > button { font-size: 13px; color: var(--muted); }
.directory-kinds > button[aria-pressed="true"] { color: var(--green-dark); font-weight: 600; border-bottom: 2px solid var(--green); }
.directory-table-wrap { width: 100%; overflow-x: auto; }
.directory-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.65; background: var(--surface); }
.directory-table th, .directory-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.directory-table thead th { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.directory-table th:first-child, .directory-table td:first-child { width: 32%; }
.directory-table tr > :nth-child(2) { width: 44%; }
.directory-table tr > :nth-child(3) { width: 24%; }
.directory-domain th, .directory-domain td { background: var(--paper-deep); font-weight: 600; }
.directory-domain .directory-link { font-weight: 600; }
.directory-domain ~ .directory-subject th { padding-left: 28px; font-weight: 400; }
.directory-table:has(.directory-number) tr > :first-child { width: 38%; }
.directory-table:has(.directory-number) tr > :not(:first-child) { width: auto; }
.directory-table .directory-number { text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.directory-count { text-align: center; min-width: 36px; text-decoration: underline; text-underline-offset: 4px; }
.directory-record-title { font-weight: 600; line-height: 1.55; }
.directory-table td > div + div { margin-top: 7px; }
.directory-contact + .directory-contact { margin-top: 12px; }
.directory-phone { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.directory-price { font-weight: 600; color: var(--green-dark); }
.directory-condition { font-size: 12px; }
.directory-thumbnail { width: 100px; height: 82px; display: block; object-fit: contain; background: var(--paper-deep); }
.directory-image-button { display: block; margin-top: 8px; }
.directory-steps { padding-left: 19px; margin: 0; }
.directory-steps li + li { margin-top: 10px; }
.directory-footnote { font-size: 12px; color: var(--muted); margin: 12px 0; }
.directory-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin: 18px 0; font-size: 13px; }
.directory-counting { border-top: 1px solid var(--line); margin-top: 28px; padding: 14px 0; font-size: 12px; color: var(--muted); }
.directory-counting summary { cursor: pointer; }
.directory-empty { padding: 28px 0; color: var(--muted); }
.directory-dialog { color: var(--ink); width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line); background: var(--surface); padding: 26px; }
.directory-dialog::backdrop { background: rgb(0 0 0 / .4); }
.directory-dialog h2 { font: 600 22px/1.5 var(--display); margin: 16px 0; }
.directory-dialog-close { display: block; margin-left: auto; }
.directory-fields { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 20px; font-size: 14px; line-height: 1.7; }
.directory-fields dt { color: var(--muted); }
.directory-fields dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.directory-source-link { display: block; margin: 8px 0; }
.directory-sources { margin: 20px 0; font-size: 13px; }
@media (max-width: 640px) {
  .directory-page { width: calc(100% - 24px); margin-top: 18px; }
  .directory-heading { gap: 4px; margin-bottom: 14px; }
  .directory-heading h1 { width: 100%; font-size: 22px; }
  .directory-heading .directory-muted { margin: 0; font-size: 11px; }
  .directory-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .directory-scenarios > button { font-size: 13px; text-align: left; }
  .directory-context { margin-top: 18px; gap: 10px; }
  .directory-context h2 { font-size: 19px; }
  .directory-filters { gap: 8px; margin: 12px 0; }
  .directory-filters > .text-input { width: calc(100% - 74px); font-size: 16px; }
  .directory-select-label { flex: 1; min-width: 100px; }
  .directory-select-label select { max-width: 100%; width: 100%; font-size: 16px; }
  .directory-kinds { gap: 3px 12px; }
  .directory-kinds > button { font-size: 12px; }
  .directory-table { font-size: 12px; }
  .directory-table th, .directory-table td { padding: 9px 6px; }
  .directory-table th:first-child, .directory-table td:first-child { width: 31%; }
  .directory-table tr > :nth-child(2) { width: 44%; }
  .directory-table tr > :nth-child(3) { width: 25%; }
  .directory-table:has(.directory-number) tr > :first-child { width: 32%; }
  .directory-domain ~ .directory-subject th { padding-left: 12px; }
  .directory-table .directory-link, .directory-record-title { font-size: 12px; }
  .directory-count { min-width: 24px; min-height: 44px; }
  .directory-muted, .directory-condition { font-size: 11px; }
  .directory-table .directory-contact .directory-link { min-height: 44px; }
  .directory-thumbnail { width: 80px; height: 70px; max-width: 100%; }
  .directory-fields { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .directory-dialog { padding: 16px; }
}
