:root {
  --paper: #f7f8f2;
  --surface: #fff;
  --ink: #212a21;
  --muted: #525d50;
  --green: #38552e;
  --green-deep: #293e23;
  --green-wash: #e9efdf;
  --line: #d8dfd2;
  --blue: #394d59;
  --blue-wash: #ecf0f1;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 0; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}
main { flex: 1; }
a { color: inherit; text-underline-offset: .25em; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid #547b35; outline-offset: 4px; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--green-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: calc(100% - 2.5rem); max-width: 70rem; margin: 0 auto; }
.site-header, .site-footer { background: #fbfcf7; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; }
.header-row { min-height: 4.25rem; gap: .65rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: none;
  min-height: 44px;
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-decoration: none;
}
.wordmark img { width: 2rem; height: 2rem; }
.site-nav { display: flex; align-items: center; gap: .85rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav [aria-current="page"] { color: var(--green-deep); }
.site-nav [aria-current="page"] { box-shadow: inset 0 -2px var(--green); }

.site-footer { border-top: 1px solid var(--line); }
.footer-row { flex-wrap: wrap; min-height: 4.7rem; gap: 0 1rem; padding: .5rem 0; }
.footer-row p {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .11em;
}
.footer-row a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .85rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--green);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow::before { width: 1.55rem; height: 1px; background: currentColor; content: ""; }
.home-main { padding: 2.9rem 0 3.8rem; }
.home-hero {
  display: grid;
  align-items: center;
  gap: 2.1rem;
  padding-bottom: 2.45rem;
  border-bottom: 1px solid var(--line);
}
.home-intro { min-width: 0; }
.home-intro h1 {
  margin: .7rem 0 .65rem;
  color: var(--green-deep);
  font: 500 clamp(2.9rem, 11vw, 6.4rem)/.99 var(--serif);
  letter-spacing: -.045em;
}
.home-subtitle { color: var(--green); font-size: clamp(.86rem, 2vw, 1.15rem); font-weight: 600; }
.home-description { margin-top: 1.15rem; color: var(--muted); font-size: 1rem; letter-spacing: .03em; }
.brand-portrait {
  width: 100%;
  max-width: 23rem;
  padding: .6rem;
  border: 1px solid #d7dfcd;
  border-radius: 8px;
  background: #e9eedf;
}
.brand-portrait img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.entry-section { padding-top: 1.45rem; }
.entry-heading { margin-bottom: .8rem; font-size: 1.05rem; }
.entry-grid { display: grid; gap: .8rem; }
.entry-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  min-height: 6.35rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-wash);
  text-decoration: none;
}
.entry-finance { color: var(--blue); background: var(--blue-wash); border-color: #d9e0e2; }
.entry-card:hover { border-color: currentColor; }
.entry-label strong, .entry-label > span { display: block; }
.entry-label strong { color: var(--ink); font-size: 1.16rem; }
.entry-label > span { margin-top: .18rem; font-size: .82rem; }
.entry-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.entry-icon svg, .entry-arrow { width: 1.25rem; height: 1.25rem; }

.simple-main { padding: 4.4rem 0 6rem; }
.display-title {
  margin: .95rem 0 1.1rem;
  color: var(--green-deep);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: 1.05;
  font-weight: 650;
}
.finance-page .display-title { color: var(--blue); font-family: var(--serif); font-weight: 500; }
.finance-page .eyebrow { color: var(--blue); }
.error-code { display: block; margin-bottom: .4rem; font-family: var(--serif); }
.simple-main > p:not(.eyebrow) { margin-bottom: .75rem; color: var(--muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  color: var(--green);
  font-size: .92rem;
  font-weight: 650;
}
.text-link:hover { color: var(--green-deep); }

.exam-main { padding: 1.25rem 0 3.5rem; }
.back-link { margin: 0 0 .8rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.exam-hero {
  display: grid;
  align-items: center;
  gap: 1.4rem;
  padding: 1.65rem 1.15rem;
  border: 1px solid #d7dfcd;
  border-radius: 8px;
  background: var(--green-wash);
}
.exam-hero h1 {
  margin: .55rem 0 .75rem;
  color: var(--green-deep);
  font-size: clamp(1.95rem, 6.3vw, 3.75rem);
  letter-spacing: -.04em;
  line-height: 1.2;
}
.exam-hero p:not(.eyebrow) { max-width: 35rem; color: var(--muted); }
.exam-art { display: none; width: 100%; color: #63805a; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.15rem; margin-top: 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 650 .88rem/1.4 var(--sans);
  text-align: center;
  text-decoration: none;
}
.button-primary { background: var(--green-deep); color: #fff; }
.button-primary:hover { background: var(--green); }
.button-outline { border-color: #a8b4a0; background: var(--surface); color: var(--green-deep); cursor: pointer; }
.button-outline:hover { background: var(--green-wash); }
.button-unavailable { border-color: #c6cfbd; background: #edf0e8; color: var(--muted); }

.exam-section { margin-top: 1.85rem; scroll-margin-top: 1rem; }
.exam-section + .exam-section { padding-top: 1.65rem; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: .9rem; }
.section-heading h2, .purchase-panel h2 { font-size: clamp(1.33rem, 3vw, 1.65rem); line-height: 1.3; }
.section-heading p, .purchase-panel p { margin-top: .45rem; color: var(--muted); font-size: .92rem; }
.category-grid, .catalog-results {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  height: 100%;
  min-height: 3.25rem;
  padding: .58rem .7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.category-grid a:hover { border-color: var(--green); color: var(--green); }
.category-grid a span { flex-shrink: 0; color: var(--green); }
.filters {
  display: grid;
  align-items: end;
  gap: .75rem;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.filters label { display: block; min-width: 0; font-size: .86rem; font-weight: 650; }
.filters input, .filters select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: .3rem 0 0;
  padding: .5rem;
  border: 1px solid #a8b4a0;
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  font: 1rem/1.3 var(--sans);
}
.catalog-status, .catalog-fallback { margin: .75rem 0; color: var(--muted); font-size: .9rem; }
.catalog-status:empty, .catalog-results:empty { display: none; }
.catalog-results li, .preview-card {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.catalog-results h3, .preview-card h3 { font-size: 1rem; }
.catalog-results p { margin-top: .45rem; font-size: .9rem; }
.demo-label {
  display: inline-block;
  margin-bottom: .45rem;
  padding: .08rem .42rem;
  border-radius: 3px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: .74rem;
  font-weight: 650;
}
.catalog-results .record-meta { color: var(--muted); font-size: .8rem; }
.preview-grid { display: grid; gap: .65rem; }
.preview-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem .75rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .9rem;
}
.preview-card dt { color: var(--green); font-weight: 650; }
.purchase-panel {
  display: grid;
  align-items: center;
  justify-items: start;
  gap: .85rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--green-wash);
}
.purchase-panel p { max-width: 42rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 44px; padding: .7rem 0; cursor: pointer; font-weight: 600; }
.faq-list summary::marker { color: var(--green); }
.faq-list p { max-width: 40rem; padding: 0 0 .85rem 1rem; color: var(--muted); font-size: .92rem; }

@media (min-width: 37rem) {
  .wrap { width: calc(100% - 4rem); }
  .site-nav { gap: 1.6rem; }
  .home-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .home-intro h1 { font-size: clamp(2.85rem, 8vw, 6.4rem); }
  .brand-portrait { justify-self: end; }
  .entry-grid, .preview-grid, .catalog-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-hero { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); padding: 1.9rem 1.65rem; }
  .exam-art { display: block; justify-self: center; }
  .purchase-panel { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 57rem) {
  .wrap { width: calc(100% - 6rem); }
  .header-row { min-height: 4.7rem; }
  .home-main { padding: 4.4rem 0 4rem; }
  .home-hero { gap: 3rem; padding: 0 1.8rem 3.7rem 0; }
  .home-description { margin-top: 1.5rem; font-size: 1.1rem; }
  .entry-section { padding-top: 1.7rem; }
  .entry-grid { gap: 1rem; }
  .entry-card { min-height: 7.15rem; padding: 1.15rem 1.5rem; gap: 1.05rem; }
  .entry-icon { width: 3.15rem; height: 3.15rem; }
  .entry-label strong { font-size: 1.28rem; }
  .simple-main { padding-top: 6.5rem; }
  .exam-hero { padding: 2.2rem 2.35rem; }
  .exam-art { max-width: 15rem; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)) auto; }
  .exam-section { margin-top: 2.15rem; }
}

@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .wordmark { gap: .4rem; letter-spacing: .06em; }
  .site-nav { gap: .55rem; }
}
