﻿
html, body {
    margin: 0;
    font-family: 'Fira Sans', sans-serif;
    height: 100%;
}

.main-container {
    margin: 0;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    flex-flow: column;
}

.error-content {
    text-align:center;
}

.grey-space, .green-space, .white-space {
    display: none;
}

.grey-space {
    background-color: var(--color-brand-strong); /* dark grey*/
}

.green-space {
    background-color: var(--color-surface-sage); /* header green */
}

.white-space {
    background-color: #fff;
}

header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

#back-button {
    cursor: pointer;
}

#advancedSearchSelectLabel {
    float: none;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.regimen-display-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.regimen-display-group__header .regimen-header {
    margin: 0;
    padding-bottom: 0;
}

.regimen-header.search-results-heading {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
}

.regimen-display-group__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.regimen-components-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.regimen-components-toggle input {
    accent-color: var(--color-accent);
}

.regimen-display-group__subgroup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.regimen-subgroup-badge {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-accent);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
}

.regimen-subgroup-badge:hover,
.regimen-subgroup-badge:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.regimen-subgroup-badge--active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

.regimen-subgroup-badge--active:hover,
.regimen-subgroup-badge--active:focus-visible {
    background: var(--color-accent);
    color: var(--color-surface);
}

.regimen-display-group__filter {
    flex: 0 1 15rem;
    min-width: 0;
    max-width: 100%;
    font-size: 0.875rem;
}

.regimen-display-group__filter input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.25rem;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

.regimen-display-group__filter input:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .regimen-display-group__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .regimen-display-group__filter {
        flex-basis: auto;
    }
}

.export-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
    padding: 0.4rem 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 0.25rem;
    background: var(--color-surface);
    color: var(--color-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.export-button:hover,
.export-button:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.export-button img {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.export-button__label {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 180ms ease, margin-left 180ms ease, opacity 180ms ease;
}

.export-button:hover .export-button__label,
.export-button:focus-visible .export-button__label {
    max-width: 8rem;
    margin-left: 0.4rem;
    opacity: 1;
}

@media (hover: none) {
    .export-button__label {
        max-width: 8rem;
        margin-left: 0.4rem;
        opacity: 1;
    }
}

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

#copybutton {
    width: 2.75rem;
    position: relative;
    top: 3px;
}

.button--loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #d3c8c8;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.backimg {
    position: absolute;
    width: 24px;
    margin-top: -0.2em;
    margin-left: -0.3em;
    cursor: pointer;
}

.bordered {
    border: 1px solid black;
    padding: 1em;
}

#comparebutton {
    width: 2.75rem;
    position: relative;
    top: 3px;
}
#compareMenu {
    float: right;
    margin-top: 1.2em;
    margin-right: -3em;
}

#displayKey{
    font-size:0.9em
}

.content ins {
    color: green;
    font-weight: 600;
}
#diffContent .regimen-display .regimen-tab-content {
   display: block !important;
}

.content del {
    color: red;
    font-weight: 600;
}

#compareDesc {
    max-width: 38em;
    padding: 0.2em 1.5em;

    background-color: lightgrey;
    text-align: left;
    border-radius: 1em;
    margin-bottom: 0.5em;
}
#copyMenu {
    display:inline;
}

#comparePopup {
    margin-left: -1.5em;
}
.popup-content {
    display: none;
    position: absolute;
    width: 15em;
    margin-left: -1em;
    margin-top: 0em;
    font-size: 0.8em;
    box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
    -webkit-box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
    -moz-box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
}

    .popup-content button {
        width: 100%;
        border-bottom: 0px;
        background-color: white;
        cursor:pointer;
        font-size:0.8em;
        text-align:left;
        padding-left:1em;
    }
    .popup-content button:hover {
        width: 100%;
        border-bottom: 0px;
        background-color: #e0e0e0;
        cursor: pointer;
    }
.compare-content {

    position: absolute;
    width: 18em;
    margin-left: -1em;
    margin-top: 0em;
    font-size: 0.8em;
    box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
    -webkit-box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
    -moz-box-shadow: 3px 2px 27px 0px rgba(92,87,87,0.75);
}

    .compare-content button {
        width: 100%;
        border-bottom: 0px;
        background-color: white;
        cursor: pointer;
        font-size: 0.8em;
        text-align: left;
        padding-left: 1em;
    }

        .compare-content button:hover {
            width: 100%;
            border-bottom: 0px;
            background-color: #e0e0e0;
            cursor: pointer;
        }

.nzf-banner {
    background-color: #0071b5;
    height: 3.125rem; /*3.75rem height - 0.625 padding */
    vertical-align: middle;
    padding: 0.625rem 1rem 0 1rem;
    flex-basis: 100%;
}

    .nzf-banner a {
        text-decoration: none;
    }

.nzf-heading {
    font-family: arial,helvetica,sans-serif;
    font-weight: bold;
    color: #ccc;
    font-size: 0.75rem;
    display: inline-block;
    padding: 0;
    margin: 0px 0 0 0px;
    vertical-align: middle;
}

.back-arrow {
    color: white;
    height: 1.4rem;
    margin-top: 0px;
    vertical-align: middle;
    display: inline-block;
}

.nzf-logo {
    height: 2.5rem;
    display: inline-block;
    margin: 0px;
    vertical-align: middle;
    margin: 0px 12px 0px 12px;
}

.header {
    background-color: var(--color-brand-strong); /* dark grey */
    padding: 0 1rem;
    width: calc(((100vw - 3rem) * 0.3) - 2rem);
}

.logo {
    width: 12rem;
    padding: 2.6875rem 1.6875rem; /*spacing 26.875% of width */
}

.intro-head {
    background-color: var(--color-surface-sage);
    padding-top: 2.6875rem;
    padding-left: 5.375rem;
    margin: 0;
    flex: 1 1 auto;
}

.menu, .close-menu {
    width: 2rem;
    float: right;
    padding: 1rem 1rem 0rem 0px;
    margin: 0;
    cursor: pointer;
    display: none;
}

.nav {
    box-sizing: border-box;
    width: calc((100vw - 3rem) * 0.3);
    background-color: var(--color-surface-warm);
    padding: 2.6875rem;
    margin: 0;
}


.nav-open {
    display: block !important;
    position: absolute;
    z-index: 2000;
    width: 100%;
    min-height: calc(100% - 13.7675rem);
}

.close-menu-show {
    display: block !important;
}

.ltgreen { /* NEW */
    color: var(--color-brand-teal);
}


.main {
    width: 100%;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
}

.content {
    background-color: #fff;
    padding: 2.6875rem 0.5rem 2.6875rem 5.375rem;
    flex: 1 1 auto;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.feedback-button {
    display: inline-block;
    float: right;
    text-align:right;
}

.id-details {
    text-align: right;
    margin-bottom: 8px;
}

.id-publish-details {
    font-size: 0.7em;
    color: #8a8787
}

.search {
    position: relative;
    margin-bottom: 3rem;
}

/* The container must be positioned relative: */
.custom-select {
    position: relative;
    font-family: Arial;
    width:200px;
}

 
.filter-item {
    background-color: lightgray;
    padding: 0.5em;
    margin-top: 0.2em;
    border-radius: 5px;
    font-size: 0.8em;
}
#selectTypes {
    margin-top: 0.5em;
}

#advancedSearchSelectLabel {
    margin-top: 0.5em;
    font-size:0.8em;
    cursor:pointer;
    float:right;
}
.filter-selects {
    margin-top:0.3em;
    margin-bottom: 0.3em;
}
.no-results-found {
    font-size: 0.8em;
    margin-left: 1em;
}

#advancedsearchWrapper select {
    background: var(--color-brand-strong);
    width: 150px; /*Width of select dropdown to give space for arrow image*/
    color: #FFF;
    border-radius: 5px;
    padding: 5px;
    box-shadow: inset 0 0 5px rgba(000,000,000, 0.5);
}
#advancedSearchFilterLabel {
float:left;
font-size:0.8em;
margin-top: 0.5em;
}
.search-result {
    margin: 1rem 0;
}

.search-results-components-title {
    font-weight: bold;
}

.search-result-components {
    margin-left: 30px;
    font-size: 95%;
}

.search-result-component-id {
    margin-left: 0.5em;
    color: #8a8787;
    font-size: 0.85em;
}

footer {
    box-sizing: border-box;
    width: 100%;
    background-color: var(--color-brand-strong); /* dark grey */
    padding: 0;
    margin: 0;
    color: var(--color-surface-warm);
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

    footer p, footer h4 {
        color: var(--color-surface-warm);
        margin: 0;
        padding-top: 0;
    }

    footer a,
    footer a:link,
    footer a:visited,
    footer a:hover,
    footer a:focus,
    footer a:active {
        color: var(--color-surface-warm);
    }

.footer-left {
    padding-left: 1rem;
    width: calc(((100vw - 3rem) * 0.3) - 1rem);
}

.footer-right {
    padding-top: 2.6875rem;
    padding-left: 5.375rem;
    margin: 0;
    flex: 1 1 auto;
}

.nzgovt {
    padding: 0 0 2.6875rem 2.6875rem;
    margin: 0;
    flex: 1 1 auto;
    flex-basis: 100%;
}

.form-control {
    width: 400px;
}

textarea {
    width: 400px;
}

.form-group {
    margin: 1rem 0;
}

form label {
    display: inline-block;
    font-weight: 500;
    margin: 0.3rem 0;
}

.return-link {
    margin-top: 3rem;
}

.regimen-display .medication {
    text-decoration: underline;
    color: blue;
    cursor: pointer;
}

#autoComplete {
    right: auto;
    position: inherit;
    background-color: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.875rem;
    font-weight: 300;
    width: 100%;
    font-family: 'Fira Sans', sans-serif;
    background-position: left !important;
}

#autoComplete_list {
    margin-top: 3px;
    position: absolute;
    z-index: 2000;
}

.autoComplete_result {
    font-size: 0.9rem;
    background-color: #d4e4cf;
    margin: 0;
    border: 1px solid #fff;
}

button, input[type=submit] {
    padding: 0.6rem;
    border: 1px solid #ccc;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--color-brand-strong);
}

.regimen-list th {
    text-align: left;
    padding-left: 1em;
    font-size: 0.8em;
    vertical-align: top;
    white-space: nowrap;
}

.regimen-list tr td {
    text-align:left;
    padding-left: 1em;
    font-size: 0.875rem;
    vertical-align: top;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid lightgray;
}
    .regimen-list th:first-child {
        text-align: left;
        min-width: 30em;
    }

.regimen-list tr td:first-child {
    text-align: left;
    min-width:30em;
    }

/* Div-based regimen list (table replacement) */
.regimen-list.regimen-list--div {
    display: grid;
    grid-template-columns: minmax(30em, 1fr) auto auto auto;
    width: 100%;
}

.regimen-list.regimen-list--div .regimen-list-header,
.regimen-list.regimen-list--div .regimen-list-body,
.regimen-list.regimen-list--div .regimen-list-row {
    display: contents;
}

.regimen-list.regimen-list--div .regimen-list-cell {
    min-width: 0;
}

.regimen-list.regimen-list--div .sort-col {
    cursor: pointer;
}

/* Header cells */
.regimen-list.regimen-list--div .regimen-list-header .regimen-list-cell {
    text-align: left;
    padding-left: 1em;
    font-size: 0.8em;
    white-space: nowrap;
    font-weight: 600;
    color: #8a8787;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-brand-strong);
}

/* Body cells (parent rows) */
.regimen-list.regimen-list--div .regimen-list-body .regimen-list-cell {
    text-align: left;
    padding-left: 1em;
    font-size: 0.875rem;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid lightgray;
}

/* Parent rows with components: no bottom border (sentinel row provides it) */
.regimen-list.regimen-list--div .regimen-list-row--has-components > .regimen-list-cell {
    border-bottom: none;
}

/* Name cell in rows with components: flex so the Components label sits at the far right */
.regimen-list.regimen-list--div .regimen-list-cell--with-components {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

/* Component row cells: no border, tighter spacing */
.regimen-list.regimen-list--div .regimen-list-row--component > .regimen-list-cell {
    border-bottom: none;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Sentinel row: zero height, always visible, provides the group separator line */
.regimen-list.regimen-list--div .regimen-list-body .regimen-list-row--group-separator > .regimen-list-cell {
    padding: 0;
    border-bottom: 1px solid lightgray;
    border-top: none;
}

.regimen-list.regimen-list--div .regimen-list-row--component > .regimen-list-cell:first-child {
    padding-left: 2em;
}

.regimen-list.regimen-list--div .search-results-components-title {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 0.15em 0.5em;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.component-toggle {
    display: inline-block;
    font-size: 1.3rem;
    transition: transform 0.2s;
    vertical-align: middle;
    line-height: 1;
}

.component-toggle.collapsed {
    transform: rotate(-90deg);
}

.regimen-list.regimen-list--div .regimen-list-row--component .search-result-component {
    font-size: 0.875rem;
}

.order-icon {
    width:10px;
    cursor:pointer;
}
.request-regimen-link {
    margin-top: 25px;
    font-weight: bold;
}

.nav-menu-link {
    font-weight:bold;
    margin-top:5px;
}

ul.list {
    margin-left: 25px !important;
}

ul.list li {    
    list-style:disc;
    font-size:14px;
    font-weight:normal;
}

.content-links a {
    margin-right:15px;
}

.glossary-table td {
    vertical-align:top;
    border-bottom:lightgray;
}

.glossary-table td p {
    margin-top:0;
    padding-top:0;
}

.glossary-table thead tr td {
    border-bottom:1px solid black;
}

.glossary-table .first-row td {
    padding-top:15px;
}

.glossary-label {
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 150%;
    color: var(--color-brand-strong);
    font-weight: 600;
    width: 180px;
    padding-right: 25px;
}

.content-page-heading {
    font-size:120%;
}

.recent-changes > p {
    margin-left: 25px !important;
    font-weight: normal !important;
}

.recent-changes__cards {
    display: grid;
    gap: 0.75rem;
    margin: 0.75rem 0 1.75rem 1.5rem;
}

.regimen-card {
    display: flex;
    min-height: 5.5rem;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.regimen-card:hover,
.regimen-card:focus-within {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-soft);
}

.regimen-card__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: var(--color-text);
    text-decoration: none;
}

.regimen-card__title {
    color: var(--color-accent);
    font-size: 1rem;
    line-height: 1.4;
}

.regimen-card--muted,
.regimen-card--muted:hover,
.regimen-card--muted:focus-within {
    background: #eceeee;
    box-shadow: none;
}

.regimen-card--muted > .regimen-card__link > .regimen-card__title {
    color: var(--color-text-muted);
}

.regimen-card__metadata {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.regimen-card__metadata-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.75rem;
    text-align: right;
}

.regimen-list.regimen-list--div .regimen-card {
    min-height: 0;
}

/* Cancer-type lists present one summary card per regimen. The values below are
   retained in the DOM for the client-side sorter, but are already shown in each card. */
.regimen-list.regimen-list--card-table {
    grid-template-columns: minmax(0, 1fr);
}

.regimen-list.regimen-list--card-table .regimen-list-sort-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.regimen-list.regimen-list--card-table .regimen-list-group-heading {
    margin-right: auto;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.regimen-list.regimen-list--card-table .sort-col {
    border: 0;
    background: transparent;
    color: var(--color-accent);
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.regimen-list.regimen-list--card-table .sort-direction {
    display: inline-block;
    min-width: 0.75em;
    text-decoration: none;
}

.regimen-list.regimen-list--card-table .regimen-list-cell--sort-value {
    display: none;
}

.regimen-card__components {
    margin-top: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.regimen-list.regimen-list--div .regimen-card__components .search-results-components-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface-subtle);
    border: 0;
    border-radius: 0;
    cursor: pointer;
    list-style: none;
    padding: 0.35rem 0.5rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.regimen-card__components .search-results-components-title::-webkit-details-marker {
    display: none;
}

.regimen-card__components .search-results-components-title::marker {
    content: "";
}

.regimen-card__components[open] .search-results-components-title {
    border-bottom: 1px solid var(--color-border);
}

.regimen-card__components .component-toggle {
    transition: transform 0.2s;
}

.regimen-card__components[open] .component-toggle {
    transform: rotate(180deg);
}

.regimen-card__components-list {
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
}

.regimen-card__component {
    min-height: 0;
}

.child-regimen-notice {
    display:inline-block;
    border: solid black 1px;
    margin-bottom:10px;
    padding:10px;
}

.search-notice {
    opacity: 0.8;
    font-size: 0.8em;
    margin-left: 2em;
}

#searchlinkwrapper {
    cursor: pointer;
}
#searchIcon {
    width: 1em;
    cursor: pointer;
    position: relative;
    top: 0.8em;
}

.hidden-option {
    display:none;
}

.regimen-sub-group {
    border-top: 1px lightgray dashed;
    border-bottom: 1px lightgray dashed;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
}

.regimen-sub-group .regimen-header {
    margin-bottom: 0;
    font-size: 1.5rem !important;
}

.abbreviation-content {
    font-size: 0.9em;
    width: 100%
}

.abbreviation-offset {
    margin-left: 1em;
}

.abbreviation-table {
    width: 60%;
    float: left;
    clear: both;
    margin-left: 2em;
    margin-top: 1em
}

.abbreviation-col-1 {
    width:80%;
    text-align:left
}

.abbreviation-col-2 {
    width: 100px;
}

.category-blurb {
    border: dashed lightgray 1px;
    padding: 15px;
    white-space: pre-line;
}

.regimen-resources {
    padding-left: 1rem !important;
}

.workshop-website-blurb p {
    margin-top: 3px;
    margin-bottom: 3px;
}

.workshop-row {
    margin-left: 25px;
    border-bottom: solid 1px lightgray;
}

    .workshop-row p {
        margin: 0;
    }


.workshop-item, .workshop-name, .workshop-date {
    display: inline-block;
    padding: 5px;
}

.workshop-name {
    width: 300px;
}

.workshop-interest-form .field-label {
    width: 140px;
    display: inline-block;
    vertical-align:top;
}

.workshop-interest-form-link {
    margin-top: 20px;
    padding: 20px;
    font-weight: bold;
    border: solid 1px gray;
    width: 400px;
    text-align: center;
}

.workshop-interest-form .workshop-interest-form-role {
    display:inline-block;
}

.workshop-interest-form .other-role {
    display:none;
    margin-top:3px;
}

@media screen and (max-width: 600px) {
    .workshop-row {
        margin-left: 10px;
    }

    .workshop-name {
        width: 180px;
    }
}

    @media screen and (max-width: 875px) {
        .menu, .close-menu {
            display: block;
        }

        .header, .intro-head, .content, .footer-left, .footer-right, .nzgovt {
            flex: 0;
            min-width: 100%;
            padding: 1rem;
            margin: 0;
            flex-basis: 100%;
            box-sizing: border-box;
        }

        .logo {
            padding: 0rem;
        }

        .footer-left .logo {
            padding: 2.6875rem 0 0.6875rem 0;
        }

        .nav, .close-menu {
            display: none;
        }

        main {
            width: 100%;
            margin: 0;
            padding-top: 0;
        }
    }

    @media screen and (min-width: 575px) and (max-width: 875px) {
        .menu, .close-menu {
            display: block;
        }

        .header, .intro-head, .content, .footer-left, .footer-right, .nzgovt {
            flex: 0;
            min-width: 100%;
            padding: 1rem;
            margin: 0;
            flex-basis: 100%;
            box-sizing: border-box;
        }

        .logo {
            padding: 0rem;
        }

        .footer-left .logo {
            padding: 2.6875rem 0 0.6875rem 0;
        }

        .nav, .close-menu {
            display: none;
        }

        main {
            width: 100%;
            margin: 0;
            padding-top: 0;
        }
    }

    @media screen and (min-width: 1200px) {

        .grey-space, .green-space, .white-space {
            display: inline;
            min-width: calc((100vw - 1200px) / 2);
        }

        .nzgovt {
            padding: 0 0 2.6875rem calc(((100vw - 1200px) / 2) + 2.6875rem);
            margin: 0;
            flex: 1 1 auto;
            flex-basis: 100%;
        }

        .header {
            width: calc(((1200px - 3rem) * 0.3) - 2rem);
        }

        .footer-left {
            padding-left: 1rem;
            width: calc(((1200px - 3rem) * 0.3) - 1rem);
        }

        .nav {
            width: calc((1200px - 3rem) * 0.3);
        }
    }

    @media screen and (min-width: 1400px) {

        .grey-space, .green-space, .white-space {
            display: inline;
            min-width: calc((100vw - 1400px) / 2);
        }

        .nzgovt {
            padding: 0 0 2.6875rem calc(((100vw - 1400px) / 2) + 2.6875rem);
            margin: 0;
            flex: 1 1 auto;
            flex-basis: 100%;
        }

        .header {
            width: calc(((1400px - 3rem) * 0.3) - 2rem);
        }

        .footer-left {
            padding-left: 1rem;
            width: calc(((1400px - 3rem) * 0.3) - 1rem);
        }

        .nav {
            width: calc((1400px - 3rem) * 0.3);
        }
    }

    @media screen and (min-width: 1600px) {
        .grey-space, .green-space, .white-space {
            display: inline;
            min-width: calc((100vw - 1600px) / 2);
        }

        .nzgovt {
            padding: 0 0 2.6875rem calc(((100vw - 1600px) / 2) + 2.6875rem);
            margin: 0;
            flex: 1 1 auto;
            flex-basis: 100%;
        }

        .header {
            width: calc(((1600px - 3rem) * 0.3) - 2rem);
        }

        .footer-left {
            padding-left: 1rem;
            width: calc(((1600px - 3rem) * 0.3) - 1rem);
        }

        .nav {
            width: calc((1600px - 3rem) * 0.3);
        }
    }

/* Site refresh */
:root {
    --color-brand: #2c463b;
    --color-brand-strong: #595454;
    --color-brand-teal: #0ab58f;
    --color-brand-people: #f27570;
    --color-brand-knowledge: #9ecfcf;
    --color-brand-outcomes: #edc775;
    --color-surface-sage: #c2d9ba;
    --color-surface-warm: #fff7ed;
    /* Core 70% tints: 70% base color mixed with 30% white. */
    --color-brand-tint-70: color-mix(in srgb, var(--color-brand) 70%, white);
    --color-brand-strong-tint-70: color-mix(in srgb, var(--color-brand-strong) 70%, white);
    --color-surface-sage-tint-70: color-mix(in srgb, var(--color-surface-sage) 70%, white);
    --color-surface-warm-tint-70: color-mix(in srgb, var(--color-surface-warm) 70%, white);
    --color-accent: #007f78;
    --color-accent-strong: #00665f;
    --color-link: #006f69;
    --color-accent-soft: #eaf5f3;
    --color-surface: #ffffff;
    --color-page-background: #f5f6f6;
    --color-surface-subtle: #f4f8f7;
    --color-border: #d7e1dc;
    --color-text: #283b3b;
    --color-text-muted: #5d706d;
    --shadow-soft: 0 0.25rem 1rem rgba(11, 68, 61, 0.08);
    --radius: 0.625rem;
    --content-width: 90rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-width: 20rem;
    height: auto;
    color: var(--color-text);
    background: var(--color-page-background);
}

.visually-hidden {
    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;
}

.main-container {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-flow: column nowrap;
}

.site-header {
    position: relative;
    width: 100%;
    min-height: 4.5rem;
    background: var(--color-brand);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/act-now-logo-background.png') center / auto 100% no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.1;
    pointer-events: none;
}

.site-header--subpage {
    display: none;
}

.site-header__inner {
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    min-height: 4.5rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 1rem;
}

.site-brand,
.site-title,
.header-search,
.nzf-acknowledgement {
    color: #fff !important;
    text-decoration: none;
}

.header-search {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    justify-self: end;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.header-search img {
    width: 0.875rem;
    height: 0.875rem;
    filter: brightness(0) invert(1);
}

.header-search:hover,
.header-search:focus {
    background: rgba(255, 255, 255, 0.14);
}

.site-brand__logo {
    display: block;
    width: 6rem;
    max-height: 3rem;
    object-fit: contain;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.nzf-acknowledgement {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.78) !important;
}

.nzf-acknowledgement__brand {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.nzf-acknowledgement__logo {
    width: 1.5rem;
    max-height: 1.5rem;
    object-fit: contain;
}

.menu {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.625rem;
    margin: 0;
    float: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
}

.menu img {
    display: block;
    width: 100%;
    height: 100%;
}

.main {
    flex: 1 0 auto;
    display: block;
}

.site-frame {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    align-items: start;
}

.site-frame--home {
    display: block;
    width: 100%;
}

.site-frame--home > .nav {
    display: none;
}

@media screen and (min-width: 92rem) {
    .site-frame:not(.site-frame--home) > .nav {
        position: relative;
        left: calc((var(--content-width) + 2rem - 100vw) / 2);
    }
}

.nav {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.5rem 2.5rem 0;
    margin: 0;
    background: var(--color-page-background);
    border-right: 0;
}

.nav .nav-brand-container .nav-brand {
    position: relative;
    isolation: isolate;
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    background: var(--color-brand);
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: box-shadow 150ms ease;
}

.nav-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: url('../images/act-now-logo-background.png') left 20px center / 50% auto no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.1;
    pointer-events: none;
}

.nav .nav-brand .nav-brand__title {
    position: relative;
    z-index: 1;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.nav .nav-brand-container .nav-brand:hover,
.nav .nav-brand-container .nav-brand:focus-visible {
    background: var(--color-brand);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0.125rem 0.5rem rgba(11, 68, 61, 0.12);
}

.nav-brand:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

@media screen and (min-width: 56.0625rem) {
    .site-frame:not(.site-frame--home) > .nav {
        align-self: stretch;
    }

    .nav-brand-container {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 1rem 0 0.75rem;
        margin-top: -1rem;
        background: var(--color-page-background);
    }

    .nav .nav-brand-container .nav-brand {
        margin-bottom: 0;
    }
}

.nav h2 {
    padding: 0;
    margin: 0 0 0.875rem;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.nav-search-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    margin-bottom: 1.75rem;
    border-radius: 0.375rem;
    background: var(--color-accent);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

#searchIcon {
    position: static;
    width: 1rem;
    filter: brightness(0) invert(1);
}

.nav-browse {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.nav .display-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.nav .display-group {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 0.125rem 0.5rem rgba(11, 68, 61, 0.04);
}

.nav .display-group h3 {
    padding-bottom: 0.75rem;
    margin: 0 0 0.75rem;
    border-bottom: 1px solid #e8efed;
    color: var(--color-text);
}

.nav .display-group ul,
.nav-utilities ul {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav .display-group li + li,
.nav-utilities li + li {
    margin-top: 0.25rem;
}

.nav .display-group ul {
    columns: 1;
}

.nav .display-group a,
.nav-utilities a {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.nav .display-group a[aria-current="page"] {
    display: block;
    padding: 0.375rem 0.5rem;
    margin-inline: -0.5rem;
    border-radius: 0.375rem;
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
    font-weight: 700;
}

.nav-utilities {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 0.125rem 0.5rem rgba(11, 68, 61, 0.04);
}

.nav-utilities h2 {
    padding-bottom: 0.75rem;
    margin: 0 0 0.75rem;
    border-bottom: 1px solid #e8efed;
    color: var(--color-text);
    font-size: 0.875rem;
    letter-spacing: normal;
    text-transform: none;
}

.nav-utilities__primary {
    display: inline-block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--color-accent) !important;
}

.content {
    min-width: 0;
    padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
    background: var(--color-page-background);
}

.site-frame:not(.site-frame--home) .content {
    max-width: 70rem;
}

.content-page-heading,
.regimen-header,
.regimen-page .regimen-display h1,
.content > h1,
.content > h2 {
    max-width: none;
    margin: 0 0 2rem;
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
}

.content-page-heading,
.regimen-display-group__header > .regimen-header,
.content > h1,
.content > h2,
.content .cms-page h1 {
    display: flex;
    align-items: flex-start;
    gap: 0.45em;
    min-width: 0;
    overflow-wrap: anywhere;
}

.content-page-heading,
.regimen-display-group__header,
.regimen-page .regimen-display h1,
.content > h1,
.content > h2,
.content .cms-page h1,
.content .home-search h1 {
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #b8c6bf;
}

.content-page-heading::before,
.regimen-display-group__header > .regimen-header::before,
.content > h1::before,
.content > h2::before,
.content .cms-page h1::before {
    content: "";
    flex: 0 0 1.2em;
    height: 1.2em;
    background: var(--color-brand-teal);
    mask: url('../images/act-now-logo-background.png') center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
}

.page-heading {
    display: block;
    margin-bottom: 2rem;
}

.page-heading .content-page-heading {
    margin-bottom: 1.5rem;
}

.page-heading__subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
}

.site-frame--regimen {
    position: relative;
}

.site-frame--regimen .content {
    display: flex;
    flex-direction: column;
}

.regimen-page .regimen-display h1 {
    max-width: none;
    min-height: 0;
    overflow-wrap: anywhere;
}

.regimen-details-rail {
    display: block;
    order: 1;
}

.regimen-details-card {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-subtle);
    color: var(--color-text);
}

.regimen-details-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.regimen-details-card__header h2 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.regimen-details-card .id-details {
    margin-bottom: 1rem;
    text-align: left;
    overflow-wrap: anywhere;
}

.regimen-details-card .id-publish-details {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.regimen-details-card #copyMenu {
    position: relative;
    flex-shrink: 0;
}

.regimen-details-card #copybutton {
    top: 0;
    cursor: pointer;
}

.regimen-details-card #copyPopup {
    top: 100%;
    right: 0;
    z-index: 100;
}

.regimen-details-card #compareMenu {
    position: relative;
    display: inline-block;
    float: none;
    margin: 0 0 0 0.5rem;
}

.regimen-details-card #comparebutton {
    cursor: pointer;
}

.regimen-details-card #comparePopup {
    top: 100%;
    right: 0;
    margin-left: 0;
    z-index: 100;
}

.regimen-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
}

.regimen-icon-button img {
    width: 1.25rem;
    height: 1.25rem;
}

.regimen-icon-button:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--color-accent-strong);
}

@media screen and (min-width: 116rem) {
    .regimen-details-rail {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(100% - 2rem);
        width: 14rem;
        padding-block: 1.5rem;
    }

    .regimen-details-card {
        position: sticky;
        top: 1.5rem;
        margin: 0;
    }
}

@media screen and (max-width: 56rem) {
    .regimen-details-rail {
        order: 0;
    }
}

.breadcrumbs {
    margin-top: 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.breadcrumbs a,
.breadcrumbs [aria-current="page"] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.breadcrumbs li > a:not(.breadcrumbs__home),
.breadcrumbs li > span:not(.breadcrumbs__separator) {
    transform: translateY(-3px);
}

.breadcrumbs a {
    color: var(--color-link);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .breadcrumbs__home {
    display: inline-block;
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    padding-block: calc((1.75rem - 18px) / 2);
    text-align: center;
    line-height: 0;
    border-radius: 0.25rem;
}

.breadcrumbs__home svg {
    /* Keep a line-box baseline at the painted house bottom, not the hit target.
       Below the stroke: (24 - (20 + 1.75 / 2)) * 18 / 24 = 2.34375px. */
    vertical-align: -2.34375px;
}

.breadcrumbs__home:hover {
    background: var(--color-accent-soft);
}

.breadcrumbs a:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: 3px;
}

.breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transform: translateY(-0.125rem);
}

.home-search {
    padding: clamp(2.5rem, 7vw, 5.5rem) max(1rem, calc((100vw - 64rem) / 2));
    text-align: center;
    background: var(--color-surface-sage);
    border-bottom: 1px solid var(--color-border);
    transition: padding 250ms ease;
}

.home-search__eyebrow {
    max-height: 1.5rem;
    margin: 0 0 0.75rem;
    overflow: hidden;
    color: var(--color-link);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: max-height 250ms ease, margin 250ms ease, opacity 150ms ease, transform 250ms ease;
}

.home-search h1 {
    margin: 0 0 1.25rem;
    color: var(--color-text);
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    transition: margin 250ms ease, font-size 250ms ease;
}

/* Match :focus-within specificity so shared heading and mobile padding rules
   cannot move click targets during blur and an in-flight pointer gesture. */
.home-search:focus-within,
.home-search.home-search--pointer-active,
.home-search.home-search--compact {
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.home-search:focus-within .home-search__eyebrow,
.home-search.home-search--pointer-active .home-search__eyebrow,
.home-search.home-search--compact .home-search__eyebrow {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-0.25rem);
}

.home-search:focus-within h1,
.home-search.home-search--pointer-active h1,
.home-search.home-search--compact h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6875rem, 4.5vw, 2.475rem);
}

.home-search .search--hero {
    width: min(100%, 42rem);
    margin-inline: auto;
}

.home-search .search--hero .search__controls input[type="search"] {
    min-height: 3.125rem;
}

@media (prefers-reduced-motion: reduce) {
    .home-search,
    .home-search h1,
    .home-search__eyebrow {
        transition: none;
    }
}

.home-search-results {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.home-search-results .regimen-display-group {
    min-width: 0;
}

.search {
    position: relative;
    margin: 0;
}

.search__controls {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search__controls input[type="search"] {
    min-width: 0;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.875rem 1rem;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
}

.search__controls input[type="search"]:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.search__submit {
    min-width: 7rem;
    margin: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.search__submit:hover,
.search__submit:focus {
    background: var(--color-accent-strong);
}

.search__filter-toggle {
    margin-top: 0.75rem;
    padding: 0.375rem 0.5rem;
    border: 0;
    background: transparent;
    color: var(--color-link);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.search__filter-toggle::before {
    content: "+ ";
}

.search__filter-toggle[aria-expanded="true"]::before {
    content: "− ";
}

.search__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.search__filters select,
#advancedsearchWrapper select {
    width: auto;
    min-width: 10rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    box-shadow: none;
}

.nav-is-open {
    overflow: hidden;
}

.search__active-filters {
    display: contents;
}

.filter-item {
    padding: 0.375rem 0.75rem;
    margin: 0;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-text);
    cursor: pointer;
}

.search--compact {
    margin-bottom: 1.75rem;
}

.search--compact .search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.search--compact .search__submit {
    min-width: auto;
    padding-inline: 0.875rem;
}

.home-actions,
.home-secondary-links,
.home-browse,
.home-about {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 2rem 0 1rem;
}

.action-card {
    display: flex;
    min-height: 6.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.action-card:hover,
.action-card:focus {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-soft);
}

.action-card strong {
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
}

.action-card:hover strong,
.action-card:focus strong {
    color: var(--color-link);
}

.action-card:focus-visible,
.search__submit:focus-visible,
.search__filter-toggle:focus-visible {
    outline: 3px solid var(--color-accent-strong);
    outline-offset: 3px;
}

.action-card span {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    /* Reserve the hover lift below the sticky sidebar heading. */
    padding-top: 2px;
    margin-bottom: 1.25rem;
}

.nav .nav-actions .action-card {
    min-height: 0;
    padding: 0.75rem 1rem;
    margin: 0;
}

.nav-actions .action-card strong {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.nav-actions .action-card span {
    font-size: 0.75rem;
    line-height: 1.4;
}

.nav-actions .action-card--search strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-card--search img {
    width: 0.875rem;
    height: 0.875rem;
}

.home-secondary-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    padding: 0.75rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
}

.home-secondary-links a {
    font-size: 0.8125rem;
}

.home-browse {
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.home-browse > h2,
.home-about h2,
.action-card strong {
    padding: 0;
    margin: 0 0 1rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.display-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.display-group {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 0.125rem 0.5rem rgba(11, 68, 61, 0.04);
}

.display-group h3 {
    padding-bottom: 0.75rem;
    margin: 0 0 0.75rem;
    border-bottom: 1px solid #e8efed;
    color: var(--color-text);
    font-size: 0.875rem;
}

.display-group ul {
    display: block;
    padding: 0;
    margin: 0;
    columns: 2 9rem;
    column-gap: 1.5rem;
    list-style: none;
}

.display-group li {
    break-inside: avoid;
    margin-bottom: 0.25rem;
}

.display-group a {
    color: var(--color-accent);
    text-decoration-thickness: 0.0625rem;
    text-underline-offset: 0.15em;
}

.home-about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-subtle);
}

.home-about h2,
.home-about p {
    margin-top: 0;
}

.home-about p {
    max-width: 60rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.home-about > a {
    flex: 0 0 auto;
    font-weight: 600;
}

.site-footer {
    display: block;
    width: 100%;
    padding: 2rem 0;
    margin: 0;
    background: var(--color-brand-strong);
}

.site-footer a {
    color: var(--color-surface-warm);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--color-surface-warm);
    outline-offset: 3px;
}

.site-footer__inner {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(10rem, 0.8fr) minmax(15rem, 1.5fr) minmax(10rem, 0.7fr);
    align-items: center;
    gap: 2rem;
}

.site-footer__agency img {
    display: block;
    width: min(100%, 11rem);
    max-height: 4rem;
}

.site-footer__contact h2,
.site-footer__partner span {
    display: block;
    padding: 0;
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__contact p {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer__partner {
    justify-self: end;
}

.site-footer__partner img {
    width: min(100%, 10rem);
    max-height: 3.5rem;
}

@media screen and (max-width: 70rem) {
    .home-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .display-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 56rem) {
    .site-header--subpage {
        display: block;
    }

    .site-header--subpage .header-search,
    .nzf-acknowledgement {
        display: none;
    }

    .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 1rem;
    }

    .site-title {
        position: static;
        left: auto;
        transform: none;
        text-align: center;
    }

    .menu {
        display: block;
    }

    .site-frame,
    .site-frame--home {
        display: block;
        width: 100%;
    }

    .nav,
    .site-frame--home > .nav {
        display: none;
        position: fixed;
        inset: 4.5rem 0 0 auto;
        z-index: 2000;
        width: min(90vw, 22rem);
        max-height: calc(100vh - 4.5rem);
        min-height: 0;
        overflow-y: auto;
        padding: 1.5rem;
        border-right: 0;
        border-left: 1px solid var(--color-border);
        background: #fff;
        box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.18);
    }

    .nav.nav-open,
    .site-frame--home > .nav.nav-open {
        display: block !important;
    }

    .content {
        width: 100%;
        max-width: none;
        padding: 1.5rem 1rem 2.5rem;
    }

    .site-frame--home .content {
        padding: 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__contact {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media screen and (max-width: 40rem) {
    .site-header,
    .site-header__inner {
        min-height: 4rem;
    }

    .site-header__inner {
        width: min(100% - 1.25rem, var(--content-width));
    }

    .site-brand__logo {
        width: 4.75rem;
    }

    .site-title {
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    .nav,
    .site-frame--home > .nav {
        top: 4rem;
        width: 100%;
        max-height: calc(100vh - 4rem);
    }

    .home-search {
        padding: 2.25rem 1rem;
    }

    .home-search__eyebrow {
        line-height: 1.5;
    }

    .search__submit {
        width: 100%;
        min-height: 3rem;
        margin: 0.625rem 0 0;
    }

    .search--compact .search__controls {
        display: block;
    }

    .search__filters {
        display: block;
    }

    .search__filters select {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 0.375rem;
    }

    .home-actions,
    .display-groups {
        grid-template-columns: 1fr;
    }

    .home-actions,
    .home-secondary-links,
    .home-browse,
    .home-about,
    .home-search-results {
        width: calc(100% - 2rem);
    }

    .action-card {
        min-height: 5.5rem;
    }

    .home-secondary-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .display-group ul {
        columns: 1;
    }

    .home-about {
        display: block;
    }

    .home-about > a {
        display: inline-block;
        margin-top: 1rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__contact {
        grid-column: auto;
        grid-row: auto;
    }

    .site-footer__partner {
        justify-self: start;
    }
}
