:root {
  color-scheme: light;
  --ink: #102b25;
  --muted: #4e655e;
  --accent: #056e50;
  --line: #d6e3dd;
  --paper: #fff;
  --wash: #f3f8f5;
  --night: #0c342a;
  --mint: #bcf1d1;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 0.2em; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #008b67; outline-offset: 3px; }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: 0.33em; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.18rem; font-weight: 750; }
.wordmark > span:last-child { font-weight: 450; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; justify-items: start; align-content: center; gap: 3px; padding: 6px; background: var(--accent); margin-right: 0.3rem; }
.brand-mark i { height: 2px; width: 100%; display: block; background: var(--paper); }
.brand-mark i:last-child { width: 55%; }
nav { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 2rem); font-size: 0.92rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.header-offer { color: var(--accent); }
.hero {
  color: var(--paper);
  background: radial-gradient(ellipse at 84% 20%, #185441 0%, transparent 54%), var(--night);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(235px, 0.85fr); gap: 2rem; align-items: center; padding-block: clamp(3.3rem, 7vw, 6.1rem); }
.eyebrow { font-size: 0.75rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.10em; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { margin-top: 0.8rem; font-size: clamp(2.65rem, 5vw, 4.15rem); line-height: 1.02; letter-spacing: -0.055em; }
.hero-copy > p:not(.eyebrow) { color: #dbebe4; max-width: 49ch; font-size: 1.075rem; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 720; padding: 0.7rem 1rem; border: 1px solid transparent; border-radius: 8px; }
.primary { background: var(--mint); color: #14382e; }
.primary:hover { background: #dcf8e7; }
.hero .primary { margin-top: 1.65rem; }
.hero a:focus-visible { outline-color: var(--mint); }
.snapshot { background: #143e32; border: 1px solid #4b7563; padding: 1.3rem 1.45rem; border-radius: 13px; }
.snapshot h2 { font-size: 1.05rem; font-weight: 680; margin-bottom: 0.45rem; }
.snapshot dl > div { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.52rem; border-bottom: 1px solid #557466; }
.snapshot dt, .snapshot p { color: #d7e8e0; font-size: 0.9rem; }
.snapshot dd { color: var(--mint); font-size: 1.45rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.snapshot p { margin-top: 0.85rem; }
.section { padding-block: clamp(2.2rem, 5vw, 4.1rem); }
.section-heading { margin-bottom: 1.35rem; }
.section h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.13; letter-spacing: -0.045em; }
.section-heading p { color: var(--muted); margin-top: 0.45rem; }
.sample-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sample { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 1.15rem 1.2rem; }
.sample .eyebrow { color: var(--accent); letter-spacing: 0.06em; }
.sample h3 { font-size: 1.02rem; line-height: 1.32; margin: 0.5rem 0; overflow-wrap: anywhere; }
.sample p:not(.eyebrow) { color: var(--muted); font-size: 0.87rem; margin-bottom: 0.8rem; overflow-wrap: anywhere; }
.text-button { background: transparent; color: var(--accent); border: 0; border-radius: 2px; padding: 0.15rem 0; font-weight: 710; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.sample .text-button { margin-top: auto; }
.catalog { background: var(--wash); border-block: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: minmax(180px, 1.45fr) repeat(3, minmax(0, 1fr)) auto; gap: 0.7rem; align-items: end; }
.filters label { display: grid; gap: 0.3rem; color: var(--ink); font-size: 0.85rem; font-weight: 650; min-width: 0; }
.filters input, .filters select, .reset { min-width: 0; width: 100%; border: 1px solid #9eb5aa; border-radius: 7px; color: var(--ink); background: var(--paper); padding: 0.56rem 0.65rem; min-height: 43px; font-weight: 500; }
.reset:hover { border-color: var(--accent); color: var(--accent); }
.result-count { margin-block: 1rem 0.6rem; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 0.8rem; }
.catalog-toolbar a { font-size: 0.88rem; }
.results { margin: 0; padding: 0; list-style: none; background: var(--paper); border-radius: 9px; }
.results:empty { display: none; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem 1rem; padding: 0.83rem 1rem; border: 1px solid var(--line); }
.result + .result { border-top: 0; }
.result:first-child { border-radius: 9px 9px 0 0; }
.result:last-child { border-radius: 0 0 9px 9px; }
.result:only-child { border-radius: 9px; }
.result h3 { font-size: 0.99rem; overflow-wrap: anywhere; }
.result p { color: var(--muted); font-size: 0.83rem; overflow-wrap: anywhere; }
.result-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.evidence-tag { color: var(--muted); background: var(--wash); border: 1px solid var(--line); border-radius: 5px; padding: 0.15rem 0.44rem; font-size: 0.75rem; }
.evidence-tag.verified { color: #09583e; background: #e2f4e8; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.offer { border: 1px solid var(--line); border-radius: 13px; background: #e9f7ee; padding: clamp(1.25rem, 4vw, 2.2rem); display: grid; justify-items: start; align-content: start; gap: 0.55rem; }
.offer:first-child { background: var(--wash); }
.offer p:not(.price), .validation-diagnostics, .copy-status { color: var(--muted); }
.offer .button { margin-top: 0.55rem; }
.price { font-size: 1.7rem; font-weight: 730; margin-bottom: 0.4rem; }
.price span { font-size: 0.85rem; color: var(--muted); margin-left: 0.2rem; }
.secondary { border-color: #9eb5aa; background: var(--wash); color: var(--accent); }
.secondary:hover { border-color: var(--accent); }
.validation-diagnostics { margin-top: 0.85rem; font-size: 0.9rem; }
footer { background: var(--night); color: #effbf3; }
.footer-inner p { font-size: 0.85rem; color: #d7e8e0; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(720px, calc(100% - 24px)); max-height: 88vh; color: var(--ink); }
dialog::backdrop { background: #0c241ec2; }
.dialog-inner { padding: clamp(1.15rem, 4vw, 2rem); position: relative; overflow-wrap: anywhere; }
.dialog-inner h2 { font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.18; margin-block: 0.35rem 0.85rem; padding-right: 1rem; }
.dialog-inner .eyebrow { color: var(--accent); padding-right: 2rem; }
.close { position: absolute; inset: 0.6rem 0.7rem auto auto; border: 1px solid var(--line); border-radius: 7px; width: 40px; height: 40px; background: var(--wash); color: var(--ink); font-size: 1.4rem; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-block: 1rem; padding: 1rem; background: var(--wash); border-radius: 8px; }
.detail-meta dt { color: var(--muted); font-size: 0.82rem; }
.detail-meta dd { font-size: 0.93rem; }
#detail-body h3 { margin-top: 1.15rem; }
#detail-body p { margin-top: 0.45rem; }
#detail-body ol, #detail-body ul { padding-left: 1.4rem; }
#detail-body .pdf-pages { list-style: none; padding-left: 0; }
#detail-body li { padding-left: 0.15rem; margin-bottom: 0.45rem; }
.access-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
#access-dialog label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
#access-template { display: block; width: 100%; resize: vertical; border: 1px solid #9eb5aa; border-radius: 7px; padding: 0.7rem; font: inherit; color: var(--ink); margin-bottom: 0.7rem; }
.copy-status { margin-top: 0.5rem; }
@media (max-width: 885px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-label { grid-column: 1 / -1; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: 0.45rem; padding-block: 0.65rem; }
  .hero-inner, .sample-list { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
  .result { grid-template-columns: 1fr; }
  .result-actions { justify-content: flex-start; }
  .offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .filters, .detail-meta { grid-template-columns: 1fr; }
}
