/* Land Check + site page (MP-4). Phone-first; base.html carries no Bootstrap
   CSS. Modelled on intake_public.css. Motion: one press feedback on buttons
   (transform only, 120 ms, ease-out), removed under prefers-reduced-motion. */

.guides {
    margin: 0;
    background: var(--eu-light-bg, #f6f8f4);
    color: var(--eu-text, #1f2a1f);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

.guides a {
    color: #2d6a2d;
}

.guides-wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.guides-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.guides-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1rem;
    min-height: 3.5rem;
}

/* MP-9: links back into EcoDesign. They come after the language switch in the
   DOM, so tab order matches what is seen: below 40rem they wrap to their own row. */
.guides-appnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.guides-appnav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.guides-appnav a:hover {
    background: #e3eddc;
}

.guides-appnav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

@media (min-width: 40rem) {
    .guides-lang {
        margin-left: auto;
    }

    .guides-appnav {
        width: auto;
        border-top: 0;
    }
}

.guides-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.guides .guides-brand {
    color: inherit;
}

.guides-lang {
    display: flex;
    gap: 0.25rem;
}

.guides-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    box-sizing: border-box;
    border-radius: 0.4rem;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.guides-lang a[aria-current="true"] {
    background: #e3eddc;
    font-weight: 700;
}

.guides-main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

.guides-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.guides-lead {
    margin: 0 0 1.25rem;
    color: #3d4a3d;
}

.guides-hint {
    font-size: 0.9rem;
    color: #4f5c4f;
    margin: 0.5rem 0;
}

.guides-alert {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #fff4e0;
    border: 1px solid #f0d49b;
}

.guides-alert[hidden] {
    display: none;
}

.guides-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 0 0 1rem;
}

.guides-card h2 {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}

.guides-form {
    margin: 0;
}

.guides-step {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}

.guides-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.guides-actions[hidden] {
    display: none;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.guides-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    border-radius: 0.5rem;
    border: 1px solid #2d6a2d;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease-out;
}

.guides-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.guides-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.guides-btn[hidden] {
    display: none;
}

.guides-btn--primary,
.guides .guides-btn--primary {
    background: #2d6a2d;
    color: #fff;
}

.guides-btn--ghost {
    background: #fff;
    color: #2d6a2d;
}

.guides-btn--ghost[aria-pressed="true"] {
    background: #e3eddc;
}

.guides-btn--block {
    width: 100%;
}

.guides-btn:focus-visible,
.guides-input:focus-visible,
.guides-lang a:focus-visible,
.guides-appnav a:focus-visible,
.guides-results__item:focus-visible {
    outline: 3px solid #f5b400;
    outline-offset: 2px;
}

/* ── Inputs ────────────────────────────────────────────────────────────── */
.guides-field {
    margin: 0 0 0.9rem;
}

.guides-label {
    display: block;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.guides-input {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    border: 1px solid #b9c4b5;
    border-radius: 0.5rem;
    background: #fff;
    color: inherit;
    font: inherit;
}

.guides-search__row {
    display: flex;
    gap: 0.5rem;
}

.guides-search__row .guides-input {
    flex: 1 1 auto;
    min-width: 0;
}

.guides-results {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    border: 1px solid #d6ddd2;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.guides-results[hidden] {
    display: none;
}

.guides-results li + li {
    border-top: 1px solid #eef1ec;
}

.guides-results__item {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.guides-coords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.guides-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Map ───────────────────────────────────────────────────────────────── */
.lc-map {
    width: 100%;
    height: 60vh;
    min-height: 18rem;
    max-height: 32rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #dfe6da;
}

.lc-map[hidden] {
    display: none;
}

/* ── Scorecard ─────────────────────────────────────────────────────────── */
.guides-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.guides-meta dt {
    color: #4f5c4f;
}

.guides-meta dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.guides-claim {
    border-color: #2d6a2d;
}

.facts-group__title {
    font-size: 1.15rem;
}

.facts {
    margin: 0;
}

.fact {
    padding: 0.6rem 0;
    border-top: 1px solid #eef1ec;
}

.fact:first-child {
    border-top: 0;
    padding-top: 0;
}

.fact__label {
    font-weight: 600;
}

.fact__value,
.fact__note {
    margin: 0.15rem 0 0;
}

.fact__number {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fact__unit {
    color: #3d4a3d;
}

.fact__meta,
.fact__note {
    display: block;
    font-size: 0.82rem;
    color: #5a665a;
}

.fact--missing .fact__unavailable {
    color: #6b6b6b;
    font-style: italic;
}

.risk {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    background: #e3eddc;
}

.risk--low {
    background: #eef6d6;
}

.risk--medium {
    background: #fff0c8;
}

.risk--high {
    background: #fbd9d3;
    color: #7a1d10;
}

.months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.25rem;
    list-style: none;
    margin: 0.35rem 0;
    padding: 0;
    font-variant-numeric: tabular-nums;
}

.months li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0;
    background: #f3f6f0;
    border-radius: 0.3rem;
}

.months__m {
    font-size: 0.72rem;
    color: #5a665a;
}

.months__v {
    font-size: 0.88rem;
    font-weight: 600;
}

@media (min-width: 40rem) {
    .guides-title {
        font-size: 2rem;
    }

    .months {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guides-btn {
        transition: none;
    }

    .guides-btn:active:not(:disabled) {
        transform: none;
    }
}
