:root {
    --bg: #f2f1ea;
    --surface: #ffffff;
    --surface-soft: #f7f7f2;
    --ink: #17211c;
    --muted: #65706a;
    --line: #dce1dc;
    --forest: #18382b;
    --forest-2: #244d3b;
    --orange: #e96f2d;
    --orange-dark: #cb5418;
    --warning: #a15b11;
    --danger: #a43434;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(24, 56, 43, 0.12);
    --max: 1180px;
    /* Weather icon duotone palette (referenced by assets/icons.js) */
    --wx-sun: #e0a139;
    --wx-cloud: #9fb0a7;
    --wx-rain: #4a8fa8;
    --wx-snow: #7fa8c4;
    --wx-fog: #8d9c94;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.site-header {
    min-height: 72px;
    padding: 12px max(24px, calc((100vw - var(--max)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(242, 241, 234, 0.94);
    border-bottom: 1px solid rgba(24, 56, 43, 0.12);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--forest);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header nav > a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #49544e;
}

.hero {
    background:
        radial-gradient(circle at 80% 15%, rgba(233, 111, 45, 0.24), transparent 28%),
        linear-gradient(135deg, #12271f 0%, #1c3f30 58%, #244f3c 100%);
    color: white;
    overflow: hidden;
}

.hero-grid {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 610px;
    padding: 86px 24px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 78px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(46px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(233, 111, 45, 0.35);
    outline-offset: 2px;
}

.button-primary {
    color: white;
    background: var(--orange);
    box-shadow: 0 12px 28px rgba(233, 111, 45, 0.25);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-secondary {
    background: white;
    border-color: var(--line);
    color: var(--ink);
}

.hero .button-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.button-ghost {
    background: transparent;
    border-color: rgba(24, 56, 43, 0.2);
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.button-large {
    min-height: 56px;
    padding: 0 28px;
}

.trust-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 650;
}

.trust-row span::before {
    content: "✓";
    margin-right: 8px;
    color: #80d4a4;
}

.weather-preview {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    transform: rotate(1.2deg);
}

.preview-top {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 750;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #87e4ad;
    box-shadow: 0 0 0 6px rgba(135, 228, 173, 0.13);
}

.weather-preview strong {
    display: block;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.weather-preview > p {
    color: rgba(255, 255, 255, 0.7);
}

.mini-metrics {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-metrics div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.16);
}

.mini-metrics span,
.mini-metrics b {
    display: block;
}

.mini-metrics span {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.mini-metrics b {
    font-size: 17px;
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 88px 24px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2,
.results-header h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.results-header > div > p:last-child {
    color: var(--muted);
}

.builder-shell {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.trip-form {
    padding: 34px;
}

.form-section {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.form-section h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.form-section p {
    margin: 5px 0 0;
    color: var(--muted);
}

.section-number {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--orange);
    background: #fff1e8;
    font-size: 12px;
    font-weight: 900;
}

.field-grid {
    display: grid;
    gap: 14px;
}

.field-grid-three {
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
}

.field-grid-five {
    grid-template-columns: 1.5fr repeat(4, 0.625fr);
}

.field {
    position: relative;
}

.field > span {
    margin-bottom: 7px;
    display: block;
    color: #404b45;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select,
.search-field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.field input:hover,
.field select:hover {
    border-color: #bdc7c0;
}

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 25;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 20px 45px rgba(23, 33, 28, 0.17);
}

.suggestion {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.suggestion:hover {
    background: var(--surface-soft);
}

.form-divider {
    height: 1px;
    margin: 34px 0;
    background: var(--line);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
}

.choice {
    min-height: 48px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.choice:has(input:checked) {
    border-color: rgba(233, 111, 45, 0.55);
    background: #fff4ed;
}

.choice input {
    width: 17px;
    height: 17px;
    accent-color: var(--orange);
}

.form-actions {
    margin-top: 36px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-radius: 18px;
    background: var(--forest);
    color: white;
}

.form-actions p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.results-section {
    padding-top: 30px;
}

.results-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
}

.alert-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.alert {
    padding: 17px 19px;
    border: 1px solid;
    border-radius: 16px;
    background: white;
}

.alert strong {
    display: block;
    margin-bottom: 3px;
}

.alert p {
    margin: 0;
    color: #4f5b55;
}

.alert-warning {
    border-color: #e8c18d;
    background: #fff8ee;
}

.alert-danger {
    border-color: #e5a3a3;
    background: #fff2f2;
}

.results-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    align-items: start;
}

.results-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 92px;
}

.score-card,
.summary-card,
.checklist-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.score-card,
.summary-card {
    padding: 20px;
}

.score-card {
    color: white;
    background: var(--forest);
}

.score-label {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score-card strong {
    display: block;
    margin: 8px 0 14px;
    font-size: 44px;
    letter-spacing: -0.05em;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.progress-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--orange);
    transition: width 180ms ease;
}

.score-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.summary-card h3 {
    margin: 0 0 13px;
    font-size: 16px;
}

.summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.summary-card dl {
    margin: 0;
}

.summary-card dl div {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.summary-card dl div:last-child {
    border-bottom: 0;
}

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

.summary-card dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

.metric-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.metric {
    padding: 10px;
    border-radius: 11px;
    background: var(--surface-soft);
}

.metric span,
.metric b {
    display: block;
}

.metric span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric b {
    margin-top: 3px;
    font-size: 15px;
}

.filter-card {
    display: grid;
    gap: 8px;
}

.filter-card label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.filter-card input {
    accent-color: var(--orange);
}

.checklist-panel {
    padding: 18px;
    min-width: 0;
}

.checklist-toolbar {
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.search-field {
    flex: 1;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--forest-2);
    font-weight: 800;
    cursor: pointer;
}

.category {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}

.category-header {
    width: 100%;
    padding: 15px 17px;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-soft);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.category-header strong {
    font-size: 15px;
}

.category-header span {
    color: var(--muted);
    font-size: 12px;
}

.category-items {
    display: grid;
}

.category.is-collapsed .category-items {
    display: none;
}

.check-item {
    padding: 15px 16px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 13px;
    align-items: start;
    border-top: 1px solid var(--line);
}

.check-item[hidden] {
    display: none;
}

.check-item.is-packed {
    background: #f5faf7;
}

.check-item.is-packed .item-copy strong {
    color: #78827d;
    text-decoration: line-through;
}

.pack-check {
    width: 21px;
    height: 21px;
    margin-top: 2px;
    accent-color: var(--orange);
}

.item-copy strong {
    display: block;
    font-size: 15px;
}

.item-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pill {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1ee;
    color: #50605a;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pill-essential {
    background: #ffe9dd;
    color: #9b4317;
}

.pill-weather {
    background: #e7f2ff;
    color: #27618f;
}

.empty-state {
    padding: 40px;
    color: var(--muted);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-grid article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-grid article > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff1e8;
    color: var(--orange);
    font-weight: 900;
}

.feature-grid h3 {
    margin: 22px 0 7px;
    font-size: 22px;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    padding: 34px max(24px, calc((100vw - var(--max)) / 2));
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.7);
    background: #10231b;
}

.site-footer strong {
    color: white;
}

.site-footer p {
    max-width: 580px;
    margin: 5px 0 0;
    font-size: 13px;
}

.site-footer a {
    color: white;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: min(380px, calc(100vw - 40px));
    padding: 13px 16px;
    border-radius: 12px;
    color: white;
    background: #17211c;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    font-size: 13px;
    font-weight: 700;
}

.loading .button span::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .weather-preview {
        max-width: 650px;
        transform: none;
    }

    .field-grid-three,
    .field-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-wide,
    .field-style {
        grid-column: 1 / -1;
    }

    .choice-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .results-sidebar {
        position: static;
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .site-header nav > a {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .section {
        padding: 64px 16px;
    }

    .trip-form {
        padding: 21px;
    }

    .field-grid-three,
    .field-grid-five,
    .choice-grid,
    .feature-grid,
    .results-sidebar {
        grid-template-columns: 1fr;
    }

    .field-wide,
    .field-style {
        grid-column: auto;
    }

    .form-actions,
    .results-header,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button {
        width: 100%;
    }

    .result-actions .button {
        flex: 1;
    }

    .check-item {
        grid-template-columns: auto auto 1fr;
    }

    .item-meta {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .mini-metrics {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: white;
    }

    .site-header,
    .hero,
    .builder-section,
    #how-it-works,
    .site-footer,
    .result-actions,
    .checklist-toolbar,
    .filter-card,
    .toast {
        display: none !important;
    }

    .results-section {
        max-width: none;
        padding: 0;
    }

    .results-grid {
        display: block;
    }

    .results-sidebar {
        display: block;
        position: static;
    }

    .score-card {
        color: black;
        background: white;
    }

    .summary-card,
    .score-card,
    .checklist-panel,
    .category {
        border-color: #aaa;
        box-shadow: none;
    }

    .category.is-collapsed .category-items {
        display: grid;
    }

    .check-item {
        break-inside: avoid;
    }
}

.suggestion strong,
.suggestion span {
    display: block;
}

.suggestion strong {
    font-size: 14px;
}

.suggestion span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

/* ============================================================
   v1.2 additions: forecast strip, custom items, autocomplete
   keyboard state, info alerts, blog + affiliate review styles
   ============================================================ */

.alert-info {
    background: #eef3f7;
    border: 1px solid #c6d6e2;
    color: #27506b;
}

.forecast-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 4px;
    margin-top: 10px;
    scrollbar-width: thin;
}

.forecast-day {
    min-width: 84px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    text-align: center;
}

.forecast-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.forecast-cond {
    font-size: 0.72rem;
    color: var(--muted);
    min-height: 2em;
    display: flex;
    align-items: center;
}

.forecast-day b {
    font-size: 1.05rem;
}

.forecast-low {
    font-size: 0.8rem;
    color: var(--muted);
}

.forecast-rain {
    font-size: 0.72rem;
    color: #27506b;
    font-weight: 600;
}

.custom-item-form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.custom-item-form input[type="text"] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.custom-item-form input[type="text"]:focus {
    outline: 2px solid var(--forest-2);
    outline-offset: 1px;
}

.remove-custom {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 8px;
}

.remove-custom:hover {
    color: var(--danger);
    background: rgba(164, 52, 52, 0.08);
}

.suggestion.is-active {
    background: var(--surface-soft);
    outline: 2px solid var(--forest-2);
    outline-offset: -2px;
}

/* ---------- Blog: cards on homepage and index ---------- */

.featured-posts .section-heading {
    margin-bottom: 26px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-card h2,
.post-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-card h2 a,
.post-card h3 a {
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--forest-2);
    text-decoration: underline;
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.post-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--forest-2);
}

.post-card-top-review {
    color: var(--orange-dark);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.featured-posts-more {
    margin-top: 24px;
    text-align: center;
}

/* ---------- Blog: article page ---------- */

.blog-article,
.blog-index {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.blog-index {
    max-width: var(--max);
}

.post-header h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 8px 0 10px;
}

.prose {
    font-size: 1.02rem;
    line-height: 1.7;
}

.prose h2 {
    margin: 34px 0 12px;
    letter-spacing: -0.015em;
}

.prose h3 {
    margin: 26px 0 10px;
}

.prose ul,
.prose ol {
    padding-left: 22px;
    margin: 12px 0 18px;
}

.prose li {
    margin-bottom: 6px;
}

.prose blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--orange);
    background: var(--surface);
    border-radius: 0 14px 14px 0;
    color: var(--ink);
}

.prose figure {
    margin: 22px 0;
}

.prose img {
    max-width: 100%;
    border-radius: 14px;
}

.prose figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 6px;
}

.prose a {
    color: var(--forest-2);
    text-decoration: underline;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 30px 0;
}

.disclosure {
    background: var(--surface-soft);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 18px 0 8px;
}

.post-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* ---------- Affiliate product cards ---------- */

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--orange);
    border-radius: 18px;
    padding: 22px;
    margin: 24px 0;
    box-shadow: 0 8px 26px rgba(24, 56, 43, 0.08);
}

.product-card h4 {
    margin: 8px 0 4px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.pill-affiliate {
    display: inline-block;
    background: rgba(233, 111, 45, 0.12);
    color: var(--orange-dark);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stars {
    color: var(--orange-dark);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.stars b {
    color: var(--ink);
    margin-left: 4px;
}

.product-price {
    margin: 8px 0 4px;
    font-weight: 700;
}

.product-verdict {
    margin: 4px 0 12px;
    color: var(--muted);
}

.product-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 12px 0 16px;
}

.product-pros strong,
.product-cons strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-pros strong {
    color: var(--forest-2);
}

.product-cons strong {
    color: var(--danger);
}

.product-pros ul,
.product-cons ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

.product-pros li,
.product-cons li {
    margin-bottom: 4px;
}

.product-cta {
    display: inline-block;
}

@media print {
    .custom-item-form,
    .featured-posts,
    .product-cta {
        display: none !important;
    }
}

/* ============================================================
   v1.3 additions: premium icon system
   weather hero + forecast glyphs, item tiles, metric/alert icons
   ============================================================ */

/* --- Weather hero (dominant condition) --- */
.weather-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.weather-hero-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(155deg, #ffffff, var(--surface-soft));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(24, 56, 43, 0.06);
}

.weather-hero-icon[hidden] {
    display: none;
}

.weather-hero p {
    margin: 0;
}

/* --- Forecast strip: per-day condition glyphs --- */
.forecast-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 2px 0;
}

.forecast-rain {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.forecast-rain svg {
    color: var(--wx-rain);
    opacity: 0.9;
}

/* --- Weather metric rows: leading icon --- */
.metric-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--forest-2);
    flex: 0 0 auto;
}

/* --- Alerts: leading severity icon --- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-copy {
    flex: 1;
}

.alert-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin-top: 1px;
}

.alert-danger .alert-icon {
    color: var(--danger);
    background: rgba(164, 52, 52, 0.10);
}

.alert-warning .alert-icon {
    color: var(--warning);
    background: rgba(161, 91, 17, 0.12);
}

.alert-info .alert-icon {
    color: #27506b;
    background: rgba(39, 80, 107, 0.10);
}

/* --- Checklist item icon tiles --- */
.item-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--forest-2);
    margin-top: 1px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.check-item:hover .item-icon {
    background: #eef4ef;
    border-color: #c7d6cc;
}

/* Weather-driven items get an accented tile so the reason is obvious at a glance */
.check-item[data-item-id] .item-icon svg {
    stroke-width: 1.7;
}

.check-item.is-packed .item-icon {
    background: #eaf3ec;
    color: #8aa596;
    border-color: #d4e5da;
}

/* Custom (user-added) items get an orange-tinted tile */
.item-icon.item-icon-custom {
    color: var(--orange-dark);
}

@media (max-width: 640px) {
    .item-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .weather-hero-icon {
        width: 48px;
        height: 48px;
    }
}
