:root {
    --ink: #17201c;
    --forest: #234c3b;
    --sage: #dfe9df;
    --sand: #f5f1e7;
    --paper: #fbfaf7;
    --muted: #68736c;
    --line: #dfe3df;
    --works: #ef6c00;
    --works-dark: #a94800;
    --works-pale: #fff3e3;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-header { background: rgba(251,250,247,.97); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding-top: 1.4rem!important; padding-bottom: 1.4rem!important; }
.construction-stripe { height: 12px; background: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 24px,#fff 24px,#fff 48px); border-bottom: 1px solid #d8d8d8; }
.navbar-brand { letter-spacing: -.03em; }
.brand-lockup { display: flex; align-items: center; gap: 1.25rem; margin-right: 2.5rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 2.05rem; letter-spacing: .05em; }
.brand-copy small { font-size: 1.12rem; color: var(--forest); font-weight: 700; letter-spacing: .015em; margin-top: .48rem; }
.barrier-logo { position: relative; width: 6.8rem; height: 4.5rem; flex: 0 0 6.8rem; display: block; }
.barrier-plank { position: absolute; left: 0; top: .45rem; width: 6.8rem; height: 1.95rem; border: 2px solid var(--works-dark); border-radius: .2rem; background: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 17px,#fff 17px,#fff 34px); box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.barrier-post { position: absolute; top: 2.2rem; width: .5rem; height: 1.6rem; background: var(--works); border: 1px solid var(--works-dark); border-radius: 0 0 .1rem .1rem; }
.barrier-post:after { content: ""; position: absolute; bottom: -.22rem; left: -.55rem; width: 1.55rem; height: .24rem; background: var(--works-dark); border-radius: .1rem; }
.barrier-post-left { left: 1.3rem; }
.barrier-post-right { right: 1.3rem; }

.hero { background: radial-gradient(circle at 90% 20%,#e8efe8 0,transparent 32%),linear-gradient(180deg,#fbfaf7 0,#f4f0e6 100%); }
.hero-construction { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 16%,#ffe8cb 0,transparent 28%),linear-gradient(180deg,#fbfaf7 0,#f5f0e6 100%); }
.hero-construction:after { content: ""; position: absolute; right: -80px; bottom: -75px; width: 260px; height: 26px; transform: rotate(-35deg); background: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 18px,#fff 18px,#fff 36px); border: 2px solid var(--works-dark); opacity: .18; pointer-events: none; }
.py-lg-6 { padding-top: 6rem!important; padding-bottom: 6rem!important; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--forest); }

.hero-message { display: flex; align-items: flex-start; gap: 1.5rem; }
.dont-panic-sign { flex: 0 0 150px; width: 150px; margin-top: -.25rem; filter: drop-shadow(0 10px 12px rgba(115,63,16,.12)); }
.dont-panic-sign svg { display: block; width: 100%; height: auto; overflow: visible; }
.sign-disc-outer { fill: #7e3a00; }
.sign-disc-inner { fill: #fff; }
.sign-disc-face { fill: var(--works); }
.sign-word { fill: #fff; font-family: "Nunito", "Trebuchet MS", sans-serif; font-weight: 800; letter-spacing: .7px; }
.sign-word-top { font-size: 22px; }
.sign-word-bottom { font-size: 24px; }
.sign-pole { fill: var(--works); stroke: var(--works-dark); stroke-width: 3; }
.sign-base { fill: var(--works-dark); }
.hero-copy { color: #26332d; font-family: "Nunito", "Trebuchet MS", sans-serif; font-size: 1.08rem; font-weight: 600; line-height: 1.62; }
.hero-copy p { margin: 0 0 1rem; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-copy strong { color: var(--ink); font-weight: 800; }

.score-card,.feature-card,.question-card,.empty-panel { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; }
.score-card { padding: 2rem; }
.construction-card { position: relative; overflow: hidden; }
.construction-card:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 14px,#fff 14px,#fff 28px); }
.construction-badge { background: var(--works)!important; color: #fff; }
.score-number { font-size: 4rem; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.progress { height: .65rem; background: #e9ece9; }
.progress-bar { background: var(--forest); }
.mini-row { display: flex; justify-content: space-between; padding: .55rem 0; }
.feature-card { transition: transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 .6rem 1.4rem rgba(23,32,28,.06); border-color: #cfd7d1; }
.feature-card h3 { font-size: 1.3rem; margin-top: 1rem; }
.feature-card a,.guide-body a { color: var(--forest); font-weight: 700; text-decoration: none; }
.feature-icon { width: 2.7rem; height: 2.7rem; border-radius: .8rem; background: var(--sage); display: grid; place-items: center; font-weight: 800; color: var(--forest); }
.section-intro { max-width: 650px; }
.band { background: var(--forest); color: #fff; border-top: 8px solid transparent; border-image: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 18px,#fff 18px,#fff 36px) 8; }
.band .eyebrow { color: #c7ddce; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-grid div { border: 1px solid rgba(255,255,255,.25); border-radius: 1rem; padding: 1.25rem; }
.stat-grid strong { display: block; font-size: 2rem; }
.stat-grid span { font-size: .8rem; color: #d8e5dc; }
.topic-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; }
.topic-grid span { background: white; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; font-weight: 700; }
.start-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.start-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); text-decoration: none; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.start-card:hover { transform: translateY(-2px); border-color: #e7a362; box-shadow: 0 .65rem 1.4rem rgba(23,32,28,.07); color: var(--ink); }
.start-card strong { display: block; font-size: 1.05rem; }
.start-card small { display: block; color: var(--muted); margin-top: .22rem; line-height: 1.35; }
.start-icon,.guide-card-icon { width: 3.2rem; height: 3.2rem; min-width: 3.2rem; border-radius: .9rem; background: var(--works-pale); border: 1px solid #f2c18f; display: grid; place-items: center; }
.start-icon svg,.guide-card-icon svg { width: 2.15rem; height: 2.15rem; fill: none; stroke: var(--works-dark); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.start-icon.double-icon svg { width: 2.45rem; }
/* Consistent, understated Lato typography for page titles. */
main h1 {
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
}
/* Match page subtitle weight and font across all page headers. */
.page-head .lead {
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}
.page-title-with-icon {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.page-title-icon {
    width: .9em;
    height: .9em;
    flex: 0 0 auto;
    color: var(--forest);
}
.page-head { background: linear-gradient(180deg,var(--sand),#f8f6ef); }
.guide-heading-row { display: flex; align-items: center; gap: 1rem; }
.guide-card-icon { width: 3.5rem; height: 3.5rem; min-width: 3.5rem; }
.guide-card-icon:empty { display: none; }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.result-grid div { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.result-grid strong { display: block; font-size: 1.7rem; }
.result-grid span { font-size: .8rem; color: var(--muted); }
.checklist-item { cursor: pointer; }
.checklist-item:has(input:checked) strong { text-decoration: line-through; color: var(--muted); }
.guide-body { font-size: 1.08rem; line-height: 1.75; }
.guide-body h2 { margin-top: 2rem; font-size: 1.5rem; }
.guide-body h2,
.guide-body h3 { display: flex; align-items: center; gap: .65rem; }
.guide-inline-icon { width: 2.15rem; height: 2.15rem; min-width: 2.15rem; border-radius: .55rem; background: var(--works-pale); border: 1px solid #f2c18f; display: inline-grid; place-items: center; vertical-align: middle; }
.guide-inline-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: var(--works-dark); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.guide-body > p:first-child .guide-inline-icon { margin-right: .35rem; }
.btn-dark { background: var(--forest); border-color: var(--forest); }
.btn-dark:hover { background: #18372a; border-color: #18372a; }
.text-secondary { color: var(--muted)!important; }

@media (min-width: 992px) {
    .site-header .navbar-nav {
        flex-wrap: nowrap;
    }

    .site-header .nav-link,
    .site-header .btn {
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .brand-lockup {
        gap: .8rem;
        margin-right: 1rem;
    }

    .brand-copy strong {
        font-size: 1.55rem;
    }

    .brand-copy small {
        font-size: .95rem;
    }

    .barrier-logo {
        width: 5.2rem;
        flex-basis: 5.2rem;
    }

    .barrier-plank {
        width: 5.2rem;
    }

    .site-header .navbar-nav {
        gap: .15rem !important;
    }

    .site-header .nav-link {
        font-size: .9rem;
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .site-header .btn {
        font-size: .9rem;
        padding-left: .6rem;
        padding-right: .6rem;
    }
}

@media(max-width:991px) {
    .brand-lockup { margin-right: 0; }
    .navbar-collapse { padding-top: 1rem; }
    .site-header { position: static; }
    .hero-message { gap: 1.25rem; }
    .dont-panic-sign { flex-basis: 130px; width: 130px; }
}

@media(max-width:767px) {
    .score-number { font-size: 3rem; }
    .result-grid { grid-template-columns: 1fr; }
    .topic-grid,.start-grid { grid-template-columns: 1fr; }
    .site-header .navbar { padding-top: 1rem!important; padding-bottom: 1rem!important; }
    .brand-lockup { gap: .8rem; }
    .brand-copy strong { font-size: 1.3rem; }
    .brand-copy small { font-size: .9rem; margin-top: .32rem; }
    .barrier-logo { width: 4.6rem; height: 3.1rem; flex-basis: 4.6rem; }
    .barrier-plank { top: .32rem; width: 4.6rem; height: 1.32rem; background: repeating-linear-gradient(135deg,var(--works) 0,var(--works) 12px,#fff 12px,#fff 24px); }
    .barrier-post { top: 1.5rem; width: .38rem; height: 1.08rem; }
    .barrier-post:after { bottom: -.18rem; left: -.42rem; width: 1.2rem; height: .2rem; }
    .barrier-post-left { left: .9rem; }
    .barrier-post-right { right: .9rem; }
    .hero-construction { padding-top: 2rem!important; }
    .hero-message { flex-direction: column; gap: .75rem; }
    .dont-panic-sign { width: 125px; flex-basis: auto; align-self: center; margin-top: 0; }
    .hero-copy { font-size: 1.03rem; line-height: 1.58; }
    .guide-heading-row { align-items: flex-start; }
}

/* Power Cut checklist */
.power-cut-page { max-width: 980px; }
.power-out-panel { background: #fff; border: 1px solid #e7c18f; border-top: 8px solid var(--works); border-radius: 1rem; overflow: hidden; }
.power-out-panel-inner { display: flex; gap: 1.5rem; padding: 2rem; align-items: flex-start; }
.power-out-icon { width: 5rem; height: 5rem; min-width: 5rem; border-radius: 1rem; background: var(--works-pale); border: 1px solid #f2c18f; display: grid; place-items: center; }
.power-out-icon svg { width: 3.3rem; height: 3.3rem; fill: none; stroke: var(--works-dark); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.power-out-icon .power-break-line { stroke: #b42318; stroke-width: 4; }
.power-area-picker { background: #faf8f2; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.power-area-button { font-weight: 800; white-space: nowrap; }
.power-card-divider { height: 1px; background: var(--line); margin: 2rem 0; }
.power-section-heading { display: flex; align-items: center; gap: 1.5rem; margin-left: -6.5rem; }
.power-section-icon { width: 5rem; height: 5rem; min-width: 5rem; border-radius: .9rem; background: var(--works-pale); border: 1px solid #f2c18f; display: grid; place-items: center; }
.power-section-icon svg { width: 3.3rem; height: 3.3rem; fill: none; stroke: var(--works-dark); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.power-section-icon-bulb { background: #fff7cc; border-color: #eadb7b; }
.power-action-list { display: grid; gap: .65rem; }
.power-action-item { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; cursor: pointer; }
.power-action-item .form-check-input { margin-top: .22rem; flex: 0 0 auto; }
.power-action-item:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.power-danger-warning { background: #fff2f0; border: 2px solid #d92d20; border-left-width: 7px; border-radius: .8rem; padding: 1rem 1.15rem; color: #7a271a; }
.power-danger-warning strong { display: block; color: #b42318; margin-bottom: .25rem; }
.power-danger-warning span { display: block; }

@media(max-width:767px) {
    .power-out-panel-inner { flex-direction: column; padding: 1.35rem; }
    .power-out-icon { width: 4rem; height: 4rem; min-width: 4rem; }
    .power-out-icon svg { width: 2.7rem; height: 2.7rem; }
    .power-section-heading { margin-left: 0; gap: 1rem; }
    .power-section-icon { width: 4rem; height: 4rem; min-width: 4rem; }
    .power-section-icon svg { width: 2.7rem; height: 2.7rem; }
}


.power-cut-nav { color: var(--works-dark)!important; font-weight: 800; }
.power-cut-nav:hover,.power-cut-nav:focus { color: var(--works)!important; }
.el-nino-nav { display: inline-flex; align-items: center; gap: .35rem; color: var(--forest)!important; font-weight: 800; }
.el-nino-nav:hover,.el-nino-nav:focus { color: var(--works-dark)!important; }
.el-nino-nav-icon { width: 1.25rem; height: 1rem; fill: none; stroke: var(--works-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.el-nino-nav:hover .el-nino-nav-icon,.el-nino-nav:focus .el-nino-nav-icon { stroke: var(--works); }

/* Keep dark action buttons legible inside feature cards. */
.feature-card .btn-dark { color: #fff; }
.feature-card .btn-dark:hover,
.feature-card .btn-dark:focus { color: #fff; }

.guide-body h2 + ul:last-of-type {
    padding-left: 1.25rem;
}

.guide-body h2 + ul:last-of-type a {
    color: var(--works-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
    font-weight: 800;
}

.guide-body h2 + ul:last-of-type a::after {
    content: " ↗";
    font-size: .85em;
    text-decoration: none;
}

.guide-body h2 + ul:last-of-type a:hover,
.guide-body h2 + ul:last-of-type a:focus {
    color: var(--works);
}

/* External sign-in buttons */
.external-login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    font-weight: 700;
}

.external-login-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.5rem;
    height: 1.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.external-login-icon svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

@media(max-width:575px) {
    .external-login-button {
        padding-left: 3rem;
        padding-right: 1rem;
        font-size: 1rem;
    }

    .external-login-icon {
        left: .85rem;
        width: 1.35rem;
        height: 1.35rem;
    }

    .external-login-icon svg {
        width: 1.35rem;
        height: 1.35rem;
    }
}


/* Searchable knowledge library */
.site-header .navbar { padding-top: 1.1rem!important; padding-bottom: 1.1rem!important; }
.brand-lockup { gap: 1rem; margin-right: 1rem; }
.brand-copy strong { font-size: 1.7rem; letter-spacing: -.02em; }
.brand-copy small { font-size: 1rem; font-weight: 500; }
.barrier-logo { transform: scale(.8); transform-origin: left center; margin-right: -1rem; }
.knowledge-home { padding-bottom: 1.5rem; }
.knowledge-intro { display: flex; align-items: center; gap: 2rem; padding: 1rem 0 2.3rem; }
.panic-stamp { flex: 0 0 auto; width: 112px; height: 112px; }
.knowledge-intro h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .6rem; }
.knowledge-intro p { font-size: 1.13rem; color: #4d5a64; margin: 0; line-height: 1.6; }
#explore-heading { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.guide-search-wrap { position: relative; }
.guide-search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.guide-search-wrap input { padding-left: 3rem; }
.guide-controls .form-control,.guide-controls .form-select { min-height: 3.15rem; border-color: #a0a8af; border-radius: .35rem; }
.guide-filter-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: 1rem; margin-top: 1rem; }
.guide-filter-row label { display: block; margin-bottom: .15rem; font-size: .9rem; }
.guide-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 .2rem; color: #4d5a64; }
.guide-results-bar p { margin: 0; }
.guide-text-button { border: 0; padding: 0; background: none; color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.knowledge-guide { display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid #d8dcdd; color: var(--ink); text-decoration: none; }
.knowledge-guide:hover,.knowledge-guide:focus-visible { background: var(--works-pale); }
.knowledge-guide[hidden],[hidden] { display: none!important; }
.knowledge-icon { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; background: #ffe5bf; border-radius: 50%; }
.knowledge-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.knowledge-copy { min-width: 0; flex: 1; }
.knowledge-copy h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .35rem; }
.knowledge-copy p { color: #43515e; margin: 0 0 .25rem; line-height: 1.5; }
.knowledge-copy small { color: #596674; }
.knowledge-arrow { font-size: 2rem; color: var(--forest); padding-right: .2rem; }
.guide-list-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.guide-pagination { display: flex; align-items: center; gap: .8rem; }
.knowledge-tools { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 1.5rem; margin-top: 1.5rem; background: var(--works-pale); border-radius: .4rem; }
.knowledge-tools h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.knowledge-tools a { color: var(--forest); text-decoration: none; }
.knowledge-tools a:hover { text-decoration: underline; }
.knowledge-tools a span { margin-left: .65rem; }
.knowledge-footer { padding: 0 0 1rem; font-size: .9rem; }
.knowledge-footer .container { border-top: 1px solid #d8dcdd; padding-top: .8rem; }
.knowledge-footer a { color: var(--forest); text-decoration: none; }
@media(max-width:767px) {
    .knowledge-intro { gap: 1rem; padding-top: 1rem; }
    .panic-stamp { width: 82px; height: 82px; }
    .knowledge-intro p { font-size: 1rem; }
    .guide-filter-row { grid-template-columns: 1fr; }
    .knowledge-guide { gap: 1rem; }
    .knowledge-icon { width: 56px; height: 56px; flex-basis: 56px; }
    .knowledge-icon svg { width: 33px; height: 33px; }
    .knowledge-tools { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .guide-list-actions { flex-wrap: wrap; }
}
@media(max-width:575px) {
    .brand-copy strong { font-size: 1.2rem; }
    .brand-copy small { font-size: .8rem; }
    .barrier-logo { width: 4rem; flex-basis: 4rem; transform: scale(.55); margin-right: -.5rem; }
    .brand-lockup { gap: .5rem; }
    .knowledge-intro { align-items: flex-start; }
    .panic-stamp { width: 70px; height: 70px; }
}


/* Featured El Niño navigation item, separated from utility menus. */
@media (min-width: 1200px) {
    .el-nino-nav-item {
        margin-right: .75rem;
        padding-right: 1rem;
        border-right: 1px solid #d5d8d5;
    }
}
@media (max-width: 1199.98px) {
    .el-nino-nav-item {
        margin-bottom: .4rem;
        padding-bottom: .4rem;
        border-bottom: 1px solid #d5d8d5;
    }
}
