/* SPDX-License-Identifier: Apache-2.0 */
.gov-page {
    --ink: #193a30;
    --muted: #53665d;
    --paper: #f3f2e9;
    --line: #ced2c4;
    --green: #244f3e;
    --lime: #dcebb0;
    --rust: #8b3825;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        16px/1.65 Arial,
        Helvetica,
        sans-serif;
    max-width: none;
    padding: 0;
    text-align: left;
}
.gov-page * {
    box-sizing: border-box;
}
.gov-page [hidden] {
    display: none !important;
}
.gov-page a {
    color: inherit;
    text-underline-offset: 4px;
}
.gov-page button,
.gov-page input,
.gov-page select,
.gov-page textarea {
    font: inherit;
}
.gov-page button,
.gov-file {
    border: 1px solid #738575;
    border-radius: 3px;
    padding: 9px 13px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.gov-page button:hover,
.gov-file:hover {
    background: #e4e8d9;
}
.gov-page button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gov-page :focus-visible {
    outline: 3px solid #007767;
    outline-offset: 4px;
}
.gov-page .gov-primary {
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
    border-radius: 3px;
    padding: 13px 21px;
    display: inline-flex;
    gap: 36px;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
}
.gov-page .gov-primary:hover {
    background: #17392c;
}
.gov-page h1,
.gov-page h2,
.gov-page h3 {
    color: inherit;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.13;
}
.gov-page h2 {
    font-size: clamp(28px, 3.3vw, 42px);
}
.gov-page h3 {
    font-size: 25px;
}
.gov-page p {
    margin: 12px 0;
}
.gov-page code {
    background: #e6e8db;
    padding: 2px 4px;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}
.gov-page main {
    max-width: 1392px;
    margin: auto;
    padding: 0 48px;
}
.gov-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}
.gov-brand {
    font-size: 14px;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
}
.gov-brand b {
    font: 39px Georgia;
}
.gov-brand span {
    font-size: 9px;
    border-left: 1px solid #829080;
    padding-left: 12px;
    max-width: 105px;
    line-height: 1.5;
}
.gov-nav > div {
    display: flex;
    gap: 24px;
    font-size: 12px;
}
.gov-kicker {
    font:
        700 10px/1.6 Arial,
        sans-serif;
    letter-spacing: 2px;
    margin: 0 0 15px !important;
}
.gov-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 65px;
    align-items: center;
    padding: 65px 0 45px;
}
.gov-page h1 {
    font-size: clamp(45px, 5.15vw, 73px);
    letter-spacing: -2px;
}
.gov-page h1 em {
    font-weight: 400;
    color: #436b46;
}
.gov-lede {
    font-size: 17px;
    color: var(--muted);
    max-width: 675px;
    line-height: 1.75;
    margin: 24px 0 !important;
}
.gov-actions {
    display: flex;
    align-items: center;
    gap: 23px;
    flex-wrap: wrap;
    font-size: 13px;
    margin: 25px 0;
}
.gov-small {
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}
.gov-instrument {
    background: #122c26;
    color: #ecede2;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 14px 35px #192a1b14;
}
.gov-instrument-head,
.gov-instrument-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font: 10px/1.6 monospace;
    letter-spacing: 1px;
}
.gov-light {
    color: var(--lime);
}
.gov-instrument svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px auto 0;
}
.gov-instrument p {
    font: 26px Georgia;
    text-align: center;
    margin: 20px 0 28px;
}
.gov-instrument-foot {
    border-top: 1px solid #496252;
    padding-top: 15px;
    color: #bfd0bf;
    font-size: 9px;
}
.gov-notice {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px 22px;
    background: #e5e9d9;
    border: 1px solid #d1d9c0;
    font-size: 12px;
    line-height: 1.75;
    border-radius: 4px;
}
.gov-notice > span {
    font-size: 28px;
}
.gov-notice p {
    margin: 0;
}
#gov-workbench,
#gov-results,
.gov-method,
.gov-research {
    padding-top: 62px;
    scroll-margin-top: 20px;
}
.gov-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
    margin-bottom: 24px;
}
.gov-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
}
.gov-file {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.gov-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    cursor: pointer;
}
.gov-file:focus-within {
    outline: 3px solid #007767;
    outline-offset: 3px;
}
.gov-case-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
    align-items: center;
    background: #e9ebdf;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 5px;
    margin: 0 0 24px;
}
.gov-page label {
    display: block;
    font-size: 12px;
    font-weight: 700;
}
.gov-page input:not([type="checkbox"]):not([type="file"]),
.gov-page select,
.gov-page textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    border: 1px solid #849482;
    background: #fffef7;
    border-radius: 3px;
    padding: 9px 11px;
    color: var(--ink);
    min-height: 41px;
}
.gov-page input[type="checkbox"] {
    accent-color: #285e41;
    width: 18px;
    height: 18px;
}
.gov-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.gov-panel {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 23px;
    background: #f8f8f0;
    margin: 0;
    min-width: 0;
}
.gov-page fieldset legend {
    font: 22px Georgia;
    padding: 0 9px;
    margin-left: -9px;
}
.gov-page fieldset legend span {
    font: 11px monospace;
    color: #677655;
    margin-right: 7px;
}
.gov-fields {
    display: grid;
    gap: 16px;
}
.gov-fields small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 3px;
}
.gov-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}
.gov-electorate {
    margin-top: 25px;
}
.gov-tag {
    display: inline-block;
    border: 1px solid #708971;
    background: #eaf0df;
    color: #284f34;
    border-radius: 30px;
    padding: 6px 13px;
    font: 700 10px/1.5 monospace;
    letter-spacing: 0.7px;
    white-space: nowrap;
}
.gov-tag.blocked {
    background: #f7e9db;
    border-color: #b06a4c;
    color: #7d3724;
}
.gov-table-wrap {
    overflow: auto;
    margin: 18px 0;
}
.gov-page table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}
.gov-page th {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    padding: 10px 9px;
    border-bottom: 1px solid var(--line);
}
.gov-page td {
    padding: 10px 9px;
    border-bottom: 1px solid #dce0d1;
}
.gov-page td input:not([type="checkbox"]) {
    font-size: 12px;
    min-width: 75px;
    padding: 8px;
    line-height: 1.3;
}
.gov-page td:first-child {
    min-width: 180px;
}
.gov-page td:nth-child(2) {
    min-width: 140px;
}
.gov-advanced {
    margin: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 17px 0;
    font-size: 13px;
}
.gov-page summary {
    cursor: pointer;
    font-weight: 700;
}
.gov-page textarea {
    font: 12px/1.6 monospace;
    resize: vertical;
    min-height: 220px;
    margin-bottom: 15px;
}
.gov-run-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
#gov-status {
    font-size: 13px;
    padding: 12px 0;
    min-height: 48px;
}
.gov-result-summary {
    font: 24px/1.5 Georgia;
    max-width: 960px;
    margin: 0 0 24px !important;
}
.gov-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 5px;
    margin-bottom: 25px;
    background: #e9ecdf;
}
.gov-metric {
    padding: 23px;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.gov-metric:last-child {
    border: 0;
}
.gov-metric b {
    display: block;
    font: 35px/1.3 Georgia;
    margin: 4px 0;
}
.gov-metric span,
.gov-metric small {
    font-size: 11px;
    display: block;
    color: var(--muted);
}
.gov-gates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.gov-gate {
    border: 1px solid var(--line);
    border-left: 3px solid #698954;
    border-radius: 4px;
    background: #f9faf1;
    padding: 20px;
    min-width: 0;
}
.gov-gate.blocked {
    border-left-color: #a25734;
    background: #fbf3e8;
}
.gov-gate-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font: 10px monospace;
}
.gov-gate-head b {
    font-weight: 400;
    color: #47733b;
}
.gov-gate.blocked .gov-gate-head b {
    color: #8b3825;
}
.gov-gate h3 {
    font-size: 21px;
}
.gov-gate p {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 0;
    line-height: 1.75;
}
.gov-analysis-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin: 24px 0 60px;
}
.gov-analysis-grid svg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
}
.gov-facts {
    margin: 26px 0;
}
.gov-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    font-size: 12px;
}
.gov-facts dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.gov-jobs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.gov-job {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 17px;
    background: #f8f8f0;
    font-size: 12px;
}
.gov-job summary {
    font-size: 13px;
}
.gov-job p {
    color: var(--muted);
    font-size: 12px;
}
.gov-job small {
    font: 10px monospace;
    color: #52614e;
}
.gov-export {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 30px 0 5px;
    padding: 35px;
    background: #153e30;
    color: #f0f2e5;
    border-radius: 5px;
}
.gov-export h3 {
    font-size: 32px;
}
.gov-export p {
    font-size: 13px;
}
.gov-export .gov-primary {
    background: #dcebb0;
    border-color: #dcebb0;
    color: #173722;
}
.gov-export button {
    color: #f0f2e5;
    border-color: #849f80;
}
.gov-export button:hover {
    background: #284f3b;
}
.gov-export-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}
.gov-hash {
    font: 10px/1.8 monospace !important;
    color: #bacfad;
    overflow-wrap: anywhere;
}
.gov-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.gov-method article {
    border-top: 1px solid #859881;
    padding-top: 20px;
}
.gov-method article > span,
.gov-research-grid span {
    display: block;
    font: 10px/1.6 monospace;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #557246;
}
.gov-method p {
    font-size: 13px;
    color: var(--muted);
}
.gov-research {
    border-top: 1px solid var(--line);
    margin-top: 55px;
}
.gov-research-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 26px 0;
}
.gov-research-grid > a {
    display: flex;
    flex-direction: column;
    min-height: 215px;
    padding: 22px;
    background: #e9ecdf;
    border: 1px solid #c5ceb6;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}
.gov-research-grid > a:hover {
    background: #e0e7cc;
}
.gov-research-grid strong {
    font: 25px/1.2 Georgia;
    margin-bottom: 24px;
}
.gov-research-grid small {
    font-size: 11px;
    margin-top: auto;
}
.gov-original {
    margin: 25px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.gov-legacy {
    background: white;
    color: #1c342c;
    padding: 24px;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
}
.gov-legacy .preview {
    max-width: 144px;
    width: 100%;
    display: block;
    margin: 25px auto;
}
.gov-legacy .decision-bridge {
    margin: 0 !important;
    max-width: none !important;
}
.gov-legacy h3 {
    margin: 30px 0 20px;
}
.gov-legacy #chart {
    max-height: 320px;
}
.gov-legacy pre {
    max-height: 280px;
    overflow: auto;
    font-size: 11px;
    white-space: pre-wrap;
}
.gov-legacy .snippet {
    font-size: 11px;
}
.gov-legacy #mode-control {
    display: flex;
    gap: 10px;
}
.gov-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 45px;
    font:
        10px/1.7 Arial,
        sans-serif;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}
.gov-sr {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.gov-skip {
    position: absolute;
    top: -60px;
    left: 20px;
    background: #fff;
    padding: 10px;
    z-index: 20;
}
.gov-skip:focus {
    top: 15px;
}
@media (max-width: 1050px) {
    .gov-page main {
        padding: 0 28px;
    }
    .gov-hero {
        gap: 30px;
    }
    .gov-control-grid {
        gap: 10px;
    }
    .gov-panel {
        padding: 18px;
    }
    .gov-gates,
    .gov-jobs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gov-section-heading {
        align-items: start;
        flex-direction: column;
    }
    .gov-research-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gov-file-actions {
        align-self: flex-start;
    }
    .gov-export {
        gap: 30px;
    }
}
@media (max-width: 760px) {
    .gov-page main {
        padding: 0 20px;
    }
    .gov-nav {
        align-items: start;
    }
    .gov-nav > div {
        flex-direction: column;
        gap: 7px;
        font-size: 10px;
        text-align: right;
    }
    .gov-brand {
        gap: 8px;
        font-size: 11px;
    }
    .gov-brand span {
        display: none;
    }
    .gov-hero {
        grid-template-columns: 1fr;
        padding: 38px 0 28px;
        gap: 25px;
    }
    .gov-page h1 {
        font-size: 52px;
    }
    .gov-instrument {
        max-width: 440px;
        width: 100%;
        justify-self: center;
    }
    .gov-instrument svg {
        max-height: 220px;
    }
    .gov-instrument p {
        margin: 8px 0 22px;
    }
    .gov-lede {
        font-size: 15px;
    }
    .gov-control-grid,
    .gov-analysis-grid,
    .gov-export,
    .gov-method-grid,
    .gov-case-row {
        grid-template-columns: 1fr;
    }
    .gov-case-row {
        gap: 10px;
        padding: 18px;
    }
    .gov-control-grid {
        gap: 25px;
    }
    .gov-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .gov-panel {
        padding: 20px;
    }
    .gov-gates,
    .gov-jobs {
        grid-template-columns: 1fr;
    }
    .gov-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gov-metric:nth-child(2) {
        border-right: 0;
    }
    .gov-metric:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
    .gov-run-row {
        align-items: start;
        flex-direction: column;
        gap: 2px;
    }
    .gov-metric {
        padding: 15px;
    }
    .gov-metric b {
        font-size: 29px;
    }
    .gov-export {
        padding: 25px;
        gap: 20px;
    }
    .gov-analysis-grid {
        margin-bottom: 45px;
    }
    .gov-method-grid {
        gap: 25px;
    }
    .gov-research-grid {
        gap: 10px;
    }
    .gov-research-grid > a {
        padding: 17px;
        min-height: 210px;
    }
    .gov-research-grid strong {
        font-size: 22px;
    }
    .gov-footer {
        flex-direction: column;
        gap: 12px;
    }
    .gov-legacy {
        padding: 15px;
    }
    .gov-notice {
        padding: 14px;
        gap: 12px;
    }
    #gov-workbench,
    #gov-results,
    .gov-method,
    .gov-research {
        padding-top: 45px;
    }
}
@media (max-width: 380px) {
    .gov-page h1 {
        font-size: 43px;
    }
    .gov-fields,
    .gov-research-grid {
        grid-template-columns: 1fr;
    }
    .gov-research-grid > a {
        min-height: 170px;
    }
    .gov-file-actions {
        gap: 5px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gov-page * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.gov-page details {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.gov-job {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .gov-research-grid {
        grid-template-columns: 1fr;
    }
    .gov-research-grid > a {
        min-height: 160px;
    }
}
