:root {
    --bg: #fbf7ef;
    --cream: #fffaf0;
    --panel: #fffdf8;
    --text: #1f2a22;
    --muted: #5f6258;
    --line: #e8ddc8;
    --green: #174a2e;
    --green-2: #2f6423;
    --olive: #526d25;
    --gold: #e6cc67;
    --brown: #3f2512;
    --soft-green: #edf4e6;
    --danger: #a33a2f;
    --shadow: 0 18px 42px rgba(56, 39, 18, 0.10);
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
    margin: 0;
    font-family: Arial, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; }
a:hover { opacity: .9; }
.container { width: min(1360px, calc(100% - 56px)); margin: 0 auto; }
.site-header {
    background: linear-gradient(90deg, #fffaf0 0%, #fffdf8 52%, #f7f1e7 100%);
    border-bottom: 1px solid rgba(63,37,18,.08);
    padding: 20px 0 14px;
    position: relative;
    z-index: 5;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); font-size: 32px; font-weight: 900; letter-spacing: -0.04em; white-space: nowrap; }
.brand-logo { height: 76px; max-width: min(420px, 34vw); width: auto; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: #171717; font-size: 16px; font-weight: 700; padding: 10px 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--green-2); border-bottom-color: var(--green-2); opacity: 1; }
.nav a[href*="register"], .nav a[href*="login"]:last-child { border: 1px solid rgba(47,100,35,.22); border-radius: 12px; padding: 12px 18px; }
.main-shell { padding: 34px 0 64px; }
body.home-page { background: #fffaf0; }
body.home-page .site-header { box-shadow: none; }
body.home-page .main-shell.container { width: 100%; max-width: none; padding: 0; }
.home-hero { min-height: calc(100vh - 111px); display: grid; grid-template-columns: minmax(420px, 44%) 1fr; overflow: hidden; background: linear-gradient(90deg, #fffaf0 0%, #fffaf0 39%, rgba(255,250,240,.74) 50%, rgba(255,250,240,0) 65%), var(--cream); }
.home-hero-copy { padding: clamp(54px, 7vw, 116px) 0 48px max(56px, calc((100vw - 1360px) / 2 + 28px)); max-width: 650px; position: relative; z-index: 2; }
.home-eyebrow { margin: 0 0 22px; color: var(--green-2); font-weight: 900; font-size: 20px; letter-spacing: .01em; }
.home-hero h1 { margin: 0; color: #0e3d27; font-size: clamp(54px, 6vw, 86px); line-height: 1.05; letter-spacing: -0.06em; font-weight: 900; }
.home-intro { margin: 28px 0 0; color: #1f2420; font-size: clamp(21px, 1.6vw, 27px); line-height: 1.5; max-width: 610px; }
.home-actions { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.home-hero-image { min-height: calc(100vh - 111px); background-image: linear-gradient(90deg, rgba(255,250,240,.66), rgba(255,250,240,0) 24%), url('/assets/img/home-hero-people.jpg'); background-size: cover; background-position: center right; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 15px 28px; border-radius: 10px; background: var(--green-2); color: #fff; border: 2px solid var(--green-2); font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px rgba(47,100,35,.16); cursor: pointer; }
.button.secondary { background: transparent; color: var(--green); border-color: var(--green); box-shadow: none; }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.page-hero { padding: clamp(34px, 5vw, 70px); border-radius: 0 0 32px 32px; background: linear-gradient(110deg, #fffaf0 0%, #fffaf0 55%, #eef4e8 100%); border-bottom: 1px solid var(--line); margin: -34px calc((100vw - min(1360px, calc(100vw - 56px))) / -2) 0; padding-left: max(28px, calc((100vw - 1360px) / 2 + 28px)); padding-right: max(28px, calc((100vw - 1360px) / 2 + 28px)); }
.page-hero h1, h1 { margin: 0 0 14px; color: #0e3d27; font-size: clamp(42px, 4vw, 68px); line-height: 1.08; letter-spacing: -0.05em; }
.page-hero p { max-width: 780px; font-size: 22px; line-height: 1.55; color: #303930; }
.kicker { color: var(--green-2); font-weight: 900; margin: 0 0 12px; letter-spacing: .03em; }
h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.16; color: #143c28; letter-spacing: -0.03em; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; color: #173c29; }
p { margin: 0; line-height: 1.7; }
.stack-md > * + * { margin-top: 22px; }
.stack-sm > * + * { margin-top: 15px; }
.section-gap { margin-top: 30px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.video-grid, .chip-grid { display: grid; gap: 20px; }
.video-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.chip-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card, .soft-section, .feed-card, .chip-card, .card-lite { background: rgba(255,253,248,.86); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.card, .soft-section { padding: clamp(24px, 3vw, 38px); }
.feed-card, .chip-card, .card-lite { padding: 22px; }
.soft-section { background: linear-gradient(180deg, rgba(255,253,248,.94), rgba(255,250,240,.86)); }
.feature-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--green); color: #fffaf0; border-radius: 0 0 28px 28px; padding: 42px clamp(26px, 4vw, 60px); gap: 26px; box-shadow: 0 20px 40px rgba(23,74,46,.16); }
.feature-item { padding: 0 24px; border-left: 1px solid rgba(255,250,240,.34); }
.feature-item:first-child { border-left: 0; }
.feature-icon { width: 58px; height: 58px; border: 3px solid var(--gold); color: var(--gold); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 900; margin-bottom: 20px; }
.feature-item h2 { color: #fff; font-size: 25px; }
.feature-item p { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.55; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.text-link { color: var(--green-2); font-weight: 900; text-decoration: none; }
.meta, .helper-text, .stat-meta { color: var(--muted); }
.empty-state { border: 1px dashed #cbbf9c; background: #fffaf0; color: var(--muted); border-radius: 16px; padding: 18px; }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--soft-green); color: var(--green); font-size: 13px; font-weight: 900; }
.badge-risk-low { background: #e6f4ea; color: #20553f; }
.badge-risk-medium { background: #fff1d7; color: #704710; }
.badge-risk-high { background: #ffe4bc; color: #704710; }
.badge-risk-critical { background: #ffe3dc; color: #873024; }
.feed-card-top, .meta-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.search-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 16px; background: #143c28; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
form, .form-grid { display: grid; gap: 18px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; font-weight: 900; color: var(--text); }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; margin-top: 8px; border: 1px solid #d6c9b1; border-radius: 12px; padding: 15px 16px; background: #fffefb; color: var(--text); }
input:focus, textarea:focus, select:focus, button:focus, a:focus { outline: 4px solid rgba(230,204,103,.45); outline-offset: 2px; }
textarea { min-height: 145px; resize: vertical; }
button { border: 0; cursor: pointer; }
.form-actions, .inline-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; background: #fff0dd; color: #6d451d; border: 1px solid #ecd0a8; }
.alert-success { background: #e7f5eb; color: #20553f; border-color: #bfdcc8; }
.alert-error { background: #fff0ed; color: #873024; border-color: #efc5bd; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.list-clean { margin: 0; padding-left: 22px; }
.list-clean li { margin-bottom: 10px; line-height: 1.6; }
.narrow-shell { max-width: 840px; margin: 0 auto; }
.checkline, .checkbox-row, label:has(> input[type="checkbox"]) { display: inline-flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px; width: auto; max-width: 100%; font-weight: 700; line-height: 1.5; }
.checkline input[type="checkbox"], .checkbox-row input[type="checkbox"], label:has(> input[type="checkbox"]) input[type="checkbox"], input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; margin: 2px 0 0 0; padding: 0; accent-color: var(--green-2); }
.honeypot, .screen-reader-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; border: 0 !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(31,42,34,.72); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.modal-backdrop[hidden] { display: none; }
.modal-card { max-width: 780px; width: 100%; max-height: 92vh; overflow: auto; }
.agreement-scroll { border: 1px solid var(--line); border-radius: 18px; padding: 18px; max-height: 340px; overflow: auto; background: #fffefb; }
.admin-logo-preview { display: block; width: min(680px, 100%); max-height: 180px; object-fit: contain; object-position: left center; padding: 12px; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 1000px) {
    .nav-wrap { align-items: flex-start; flex-direction: column; }
    .nav { justify-content: flex-start; }
    .home-hero { grid-template-columns: 1fr; min-height: auto; }
    body.home-page { overflow: auto; }
    .home-hero-copy { padding: 48px 28px; }
    .home-hero-image { min-height: 340px; }
    .feature-band { grid-template-columns: 1fr 1fr; border-radius: 24px; }
    .feature-item:nth-child(odd) { border-left: 0; }
    .split-grid, .form-grid.two-col, .search-inline { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    html { font-size: 16px; }
    .container { width: min(100% - 28px, 1360px); }
    .brand-logo { height: 60px; max-width: 100%; }
    .nav { gap: 8px; }
    .nav a { font-size: 15px; padding: 8px 2px; }
    .home-hero h1 { font-size: 44px; }
    .home-intro { font-size: 19px; }
    .home-actions .button { width: 100%; }
    .feature-band { grid-template-columns: 1fr; }
    .feature-item { border-left: 0; border-top: 1px solid rgba(255,250,240,.34); padding-top: 24px; }
    .feature-item:first-child { border-top: 0; padding-top: 0; }
}

/* Scamwise UI follow-up: remove the navbar feel, make top links pill buttons, tighten homepage, and reduce hero headline size. */
.site-header {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    padding: 18px 0 6px !important;
}
.nav-wrap {
    align-items: center !important;
}
.nav {
    gap: 10px !important;
}
.nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 9px 15px !important;
    border: 1px solid rgba(47, 100, 35, .24) !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 248, .82) !important;
    color: #183d29 !important;
    box-shadow: 0 8px 18px rgba(63, 37, 18, .06) !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}
.nav a:hover,
.nav a:focus {
    background: #2f6423 !important;
    color: #fffaf0 !important;
    border-color: #2f6423 !important;
    opacity: 1 !important;
}
.nav a[href*="register"],
.nav a[href*="login"]:last-child {
    border-radius: 999px !important;
    padding: 9px 15px !important;
}

body.home-page {
    overflow: hidden;
}
body.home-page .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}
body.home-page .home-hero {
    min-height: 100vh !important;
    position: relative !important;
    padding-top: 108px !important;
    overflow: hidden !important;
    grid-template-columns: minmax(390px, 42%) 1fr !important;
    background: linear-gradient(90deg, #fffaf0 0%, #fffaf0 38%, rgba(255,250,240,.78) 52%, rgba(255,250,240,0) 68%), var(--cream) !important;
}
body.home-page .home-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -17vh;
    height: 34vh;
    background: #174a2e;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    z-index: 1;
    pointer-events: none;
}
.home-hero-copy {
    padding: clamp(22px, 3.5vw, 56px) 0 96px max(44px, calc((100vw - 1360px) / 2 + 28px)) !important;
    max-width: 560px !important;
    z-index: 2 !important;
}
.home-eyebrow {
    margin-bottom: 14px !important;
    font-size: 18px !important;
}
.home-hero h1 {
    font-size: clamp(28px, 3vw, 43px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em !important;
    max-width: 520px !important;
}
.home-intro {
    margin-top: 18px !important;
    font-size: clamp(18px, 1.2vw, 22px) !important;
    line-height: 1.55 !important;
    max-width: 520px !important;
}
.home-actions {
    margin-top: 26px !important;
    gap: 14px !important;
}
.home-hero-image {
    min-height: 100vh !important;
    z-index: 0 !important;
    background-position: center right !important;
}

@media (max-width: 1000px) {
    body.home-page { overflow: auto; }
    body.home-page .site-header { position: relative !important; }
    body.home-page .home-hero { padding-top: 0 !important; grid-template-columns: 1fr !important; min-height: auto !important; }
    body.home-page .home-hero::after { display: none; }
    .home-hero-copy { padding: 36px 28px !important; max-width: 720px !important; }
    .home-hero-image { min-height: 330px !important; }
}
@media (max-width: 620px) {
    .nav a { font-size: 14px !important; padding: 8px 12px !important; min-height: 38px !important; }
    .home-hero h1 { font-size: 30px !important; }
}

/* Visible homepage wave fix: use a real SVG wave layer instead of relying on a pseudo-element that may be hidden by page height/cropping. */
body.home-page .home-hero::after {
    display: none !important;
}
body.home-page .home-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(120px, 19vh, 210px);
    z-index: 4;
    pointer-events: none;
    display: block;
}
body.home-page .home-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}
body.home-page .home-hero-copy {
    padding-bottom: clamp(130px, 18vh, 205px) !important;
}
body.home-page .home-hero-image {
    position: relative !important;
}
body.home-page .home-actions {
    position: relative;
    z-index: 5;
}
@media (max-width: 1000px) {
    body.home-page .home-wave { display: none !important; }
    body.home-page .home-hero-copy { padding-bottom: 36px !important; }
}

/* Move the green learning band from Safety Library to the homepage and make it visible as the bottom wave section. */
body.home-page .home-hero {
    min-height: 100vh !important;
    height: 100vh !important;
}
body.home-page .home-wave {
    bottom: clamp(205px, 25vh, 285px) !important;
    height: clamp(72px, 10vh, 120px) !important;
    z-index: 3 !important;
}
body.home-page .home-feature-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: clamp(210px, 26vh, 290px);
    padding: clamp(30px, 4vh, 48px) max(48px, calc((100vw - 1360px) / 2 + 48px)) clamp(30px, 4vh, 52px) !important;
    align-items: start;
}
body.home-page .home-feature-band .feature-icon {
    width: clamp(48px, 5vw, 66px);
    height: clamp(48px, 5vw, 66px);
    font-size: clamp(22px, 2vw, 30px);
    margin-bottom: 16px;
}
body.home-page .home-feature-band h2 {
    font-size: clamp(21px, 2vw, 29px);
}
body.home-page .home-feature-band p {
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.5;
}
body.home-page .home-hero-copy {
    padding-bottom: clamp(280px, 34vh, 390px) !important;
}
body.home-page .home-hero-image {
    min-height: 100vh !important;
}
@media (max-height: 780px) and (min-width: 1001px) {
    body.home-page .home-hero-copy {
        padding-top: 12px !important;
        padding-bottom: 260px !important;
    }
    body.home-page .home-eyebrow { display: none; }
    body.home-page .home-intro { font-size: 18px !important; margin-top: 12px !important; }
    body.home-page .home-actions { margin-top: 18px !important; }
    body.home-page .home-feature-band {
        min-height: 230px;
        padding-top: 26px !important;
        padding-bottom: 26px !important;
    }
    body.home-page .home-wave { bottom: 215px !important; height: 82px !important; }
}
@media (max-width: 1000px) {
    body.home-page { overflow: auto !important; }
    body.home-page .home-hero {
        height: auto !important;
        min-height: auto !important;
    }
    body.home-page .home-wave { display: none !important; }
    body.home-page .home-feature-band {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
        border-radius: 0 !important;
        min-height: auto;
        padding: 34px 24px !important;
    }
    body.home-page .home-hero-copy { padding-bottom: 36px !important; }
    body.home-page .home-hero-image { min-height: 320px !important; }
}
@media (max-width: 620px) {
    body.home-page .home-feature-band { grid-template-columns: 1fr; }
}

/* Home compact band follow-up: make the people image and green lower band smaller so the hero is not covered. */
@media (min-width: 1001px) {
    body.home-page .home-hero {
        grid-template-columns: minmax(390px, 41%) 1fr !important;
    }

    body.home-page .home-hero-image {
        min-height: 100vh !important;
        background-size: auto clamp(430px, 62vh, 610px) !important;
        background-repeat: no-repeat !important;
        background-position: right 4vw top 112px !important;
    }

    body.home-page .home-wave {
        bottom: clamp(148px, 19vh, 205px) !important;
        height: clamp(56px, 8vh, 86px) !important;
    }

    body.home-page .home-feature-band {
        min-height: clamp(150px, 20vh, 205px) !important;
        padding-top: clamp(20px, 3vh, 30px) !important;
        padding-bottom: clamp(20px, 3vh, 30px) !important;
        gap: clamp(16px, 2vw, 24px) !important;
    }

    body.home-page .home-feature-band .feature-item {
        padding-left: clamp(18px, 2vw, 28px) !important;
        padding-right: clamp(18px, 2vw, 28px) !important;
    }

    body.home-page .home-feature-band .feature-icon {
        width: clamp(42px, 4vw, 54px) !important;
        height: clamp(42px, 4vw, 54px) !important;
        font-size: clamp(19px, 1.6vw, 24px) !important;
        margin-bottom: 12px !important;
        border-width: 2px !important;
    }

    body.home-page .home-feature-band h2 {
        font-size: clamp(19px, 1.6vw, 24px) !important;
        margin-bottom: 8px !important;
    }

    body.home-page .home-feature-band p {
        font-size: clamp(14px, 1vw, 17px) !important;
        line-height: 1.45 !important;
        max-width: 250px !important;
    }

    body.home-page .home-hero-copy {
        padding-top: clamp(14px, 2.4vw, 42px) !important;
        padding-bottom: clamp(195px, 25vh, 285px) !important;
    }

    body.home-page .home-actions {
        margin-top: 20px !important;
    }
}

@media (max-height: 780px) and (min-width: 1001px) {
    body.home-page .home-hero-image {
        background-size: auto clamp(350px, 58vh, 500px) !important;
        background-position: right 4vw top 98px !important;
    }

    body.home-page .home-wave {
        bottom: 158px !important;
        height: 62px !important;
    }

    body.home-page .home-feature-band {
        min-height: 158px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    body.home-page .home-feature-band .feature-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 19px !important;
        margin-bottom: 9px !important;
    }

    body.home-page .home-feature-band h2 {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    body.home-page .home-feature-band p {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    body.home-page .home-hero-copy {
        padding-bottom: 205px !important;
    }
}

/* Final homepage tune: restore the people image size, blend image edges, and shorten the green learning band. */
@media (min-width: 1001px) {
    body.home-page .home-hero {
        grid-template-columns: minmax(390px, 41%) 1fr !important;
        background: linear-gradient(90deg, #fffaf0 0%, #fffaf0 41%, rgba(255,250,240,.78) 53%, rgba(255,250,240,0) 69%), var(--cream) !important;
    }

    body.home-page .home-hero-image {
        min-height: 100vh !important;
        background-image:
            linear-gradient(90deg, #fffaf0 0%, rgba(255,250,240,.92) 8%, rgba(255,250,240,.18) 24%, rgba(255,250,240,0) 42%),
            linear-gradient(180deg, #fffaf0 0%, rgba(255,250,240,0) 14%, rgba(255,250,240,0) 78%, rgba(255,250,240,.72) 100%),
            url('/assets/img/home-hero-people.jpg') !important;
        background-size: cover, cover, cover !important;
        background-repeat: no-repeat !important;
        background-position: center, center, center right !important;
        position: relative !important;
        overflow: hidden !important;
    }

    body.home-page .home-hero-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at left center, rgba(255,250,240,.82) 0%, rgba(255,250,240,.42) 22%, rgba(255,250,240,0) 48%),
            linear-gradient(90deg, rgba(255,250,240,.92) 0%, rgba(255,250,240,.35) 18%, rgba(255,250,240,0) 40%);
        pointer-events: none;
    }

    body.home-page .home-wave {
        bottom: clamp(118px, 15vh, 165px) !important;
        height: clamp(48px, 6.8vh, 72px) !important;
        z-index: 3 !important;
    }

    body.home-page .home-feature-band {
        min-height: clamp(118px, 15vh, 165px) !important;
        padding-top: clamp(14px, 2vh, 22px) !important;
        padding-bottom: clamp(14px, 2vh, 22px) !important;
        padding-left: max(44px, calc((100vw - 1360px) / 2 + 44px)) !important;
        padding-right: max(44px, calc((100vw - 1360px) / 2 + 44px)) !important;
        gap: clamp(12px, 1.6vw, 20px) !important;
        align-items: center !important;
    }

    body.home-page .home-feature-band .feature-item {
        padding-left: clamp(14px, 1.6vw, 24px) !important;
        padding-right: clamp(14px, 1.6vw, 24px) !important;
    }

    body.home-page .home-feature-band .feature-icon {
        width: clamp(38px, 3.4vw, 48px) !important;
        height: clamp(38px, 3.4vw, 48px) !important;
        font-size: clamp(17px, 1.35vw, 22px) !important;
        margin-bottom: 9px !important;
        border-width: 2px !important;
    }

    body.home-page .home-feature-band h2 {
        font-size: clamp(18px, 1.45vw, 22px) !important;
        margin-bottom: 5px !important;
        line-height: 1.15 !important;
    }

    body.home-page .home-feature-band p {
        font-size: clamp(13px, .95vw, 16px) !important;
        line-height: 1.35 !important;
        max-width: 245px !important;
    }

    body.home-page .home-hero-copy {
        padding-top: clamp(18px, 2.6vw, 44px) !important;
        padding-bottom: clamp(170px, 22vh, 245px) !important;
    }
}

@media (max-height: 780px) and (min-width: 1001px) {
    body.home-page .home-hero-image {
        background-size: cover, cover, cover !important;
        background-position: center, center, center right !important;
    }

    body.home-page .home-wave {
        bottom: 126px !important;
        height: 52px !important;
    }

    body.home-page .home-feature-band {
        min-height: 126px !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    body.home-page .home-feature-band .feature-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    body.home-page .home-feature-band h2 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    body.home-page .home-feature-band p {
        font-size: 13px !important;
        line-height: 1.28 !important;
    }

    body.home-page .home-hero-copy {
        padding-bottom: 160px !important;
    }
}

/* ScamWise content-library fixes: clickable cards, pagination, and rendered post bodies. */
.clickable-card { position: relative; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.clickable-card:hover, .clickable-card:focus { transform: translateY(-2px); border-color: rgba(47, 100, 35, .35); box-shadow: 0 22px 48px rgba(56, 39, 18, 0.14); }
.card-title-link { text-decoration: none; color: inherit; }
.card-title-link:hover, .card-title-link:focus, .card-link:hover, .card-link:focus { text-decoration: underline; }
.card-link { display: inline-flex; margin-top: 6px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.pagination-link { display: inline-flex; min-width: 42px; min-height: 40px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid rgba(47,100,35,.22); border-radius: 999px; text-decoration: none; background: #fffdf8; color: var(--green); font-weight: 900; }
.pagination-link:hover, .pagination-link:focus, .pagination-link.is-active { background: var(--green-2); border-color: var(--green-2); color: #fffaf0; opacity: 1; }
.post-detail h1 { margin-bottom: 6px; }
.post-excerpt { font-size: 21px; color: #3b443d; }
.post-body { display: grid; gap: 18px; margin-top: 8px; }
.post-body h2 { margin-top: 12px; }
.post-body h3, .post-body h4 { margin-top: 8px; }
.post-body ul, .post-body ol { margin: 0; padding-left: 28px; }
.post-body li { line-height: 1.65; margin: 6px 0; }
.post-body blockquote { margin: 0; padding: 16px 18px; border-left: 5px solid var(--green-2); background: #fffaf0; border-radius: 14px; }
.post-body a { color: var(--green-2); font-weight: 900; }
