:root {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --ink: #17211b;
    --muted: #66706a;
    --line: #dcd8ce;
    --green: #0f6b50;
    --green-dark: #084b39;
    --blue: #285d86;
    --amber: #b66a14;
    --red: #a33d35;
    --violet: #6d4e83;
    --shadow: 0 14px 34px rgba(23, 33, 27, .08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

body {
    margin: 0;
    line-height: 1.5;
}

a {
    color: var(--green-dark);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

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

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

.brand {
    display: inline-flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}

.brand strong {
    font-size: 1.08rem;
}

.brand span {
    color: var(--muted);
    font-size: .84rem;
}

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

.nav a {
    color: var(--muted);
    text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
    color: var(--ink);
}

.page {
    padding: 38px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.tool-panel,
.content-card,
.notice {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: clamp(24px, 5vw, 54px);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 28px;
    background:
        linear-gradient(160deg, rgba(15, 107, 80, .10), rgba(109, 78, 131, .12)),
        #fff;
}

.hero-panel strong {
    font-size: 1.55rem;
    line-height: 1.15;
}

.eyebrow,
.label {
    color: var(--green);
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 10px;
}

h1,
h2,
h3 {
    line-height: 1.14;
    letter-spacing: 0;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    max-width: 900px;
}

h2 {
    font-size: 1.55rem;
}

h3 {
    font-size: 1.08rem;
}

.lede {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.08rem;
}

.tool-panel {
    padding: 22px;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.autocomplete-root {
    position: relative;
    flex: 1;
}

.field {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #cfc8bb;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.button,
.button-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--green-dark);
    border-radius: 6px;
    background: var(--green-dark);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.button-secondary {
    min-height: 40px;
    background: #fff;
    color: var(--green-dark);
}

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.suggestion {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

.suggestion:hover,
.suggestion:focus-visible {
    background: #eef5ef;
}

.suggestion small,
.muted {
    color: var(--muted);
}

.section {
    margin-top: 46px;
}

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

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

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

.content-card {
    display: block;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.content-card:hover {
    border-color: #b7c8bd;
}

.emphasis {
    background: #eef7f1;
}

.metric {
    display: block;
    color: var(--green-dark);
    font-size: 2rem;
    font-weight: 900;
}

.big-value {
    margin: 10px 0;
    color: var(--green-dark);
    font-size: 1.52rem;
    font-weight: 900;
}

.huge-value {
    margin: 10px 0;
    color: var(--green-dark);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

.page-head {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 900;
}

.status-good {
    background: #dff2e7;
    color: #07513e;
}

.status-warn {
    background: #fff0cc;
    color: #744600;
}

.status-muted {
    background: #e9e6dd;
    color: #59564e;
}

.notice {
    padding: 16px 18px;
    border-left: 4px solid var(--amber);
    box-shadow: none;
}

.water-list,
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.water-list a,
.text-link-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.text-link-card {
    display: block;
    font-weight: 850;
}

.facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

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

.facts dd {
    margin: 0;
    font-weight: 850;
    text-align: right;
}

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

.source-list li {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.source-list span {
    color: var(--muted);
    font-size: .92rem;
}

.link-list {
    display: grid;
    gap: 8px;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
}

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

.compact-list div {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.compact-list span {
    color: var(--muted);
    font-size: .92rem;
}

.calc-form {
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
}

th,
td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: #ece8dd;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.sitemap-links a {
    display: grid;
    gap: 2px;
    text-decoration: none;
}

.sitemap-links small {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0;
    color: var(--muted);
    font-size: .93rem;
}

.footer-inner nav {
    display: flex;
    gap: 14px;
}

@media (max-width: 900px) {
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .hero,
    .grid,
    .grid.two,
    .water-list,
    .link-grid,
    .compact-list,
    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .search-row,
    .section-head,
    .facts div {
        flex-direction: column;
        align-items: stretch;
    }

    .facts dd {
        text-align: left;
    }
}
