.resource-main {
    flex: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 34px 24px 52px;
}

.resource-main-full-width {
    width: 100%;
    max-width: none;
    padding: 0 0 52px;
}

.resource-main-full-width > .resource-section-heading,
.resource-main-full-width > .resources-choice-grid {
    width: min(1132px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.resource-section-heading,
.resource-detail {
    background: #fff;
    border-top: 5px solid #003a70;
    box-shadow: 0 10px 30px rgba(0, 58, 112, 0.12);
}

.resource-section-heading {
    margin-bottom: 26px;
    padding: 28px 30px;
}

.resource-section-heading h1,
.resource-detail h1 {
    margin: 0 0 12px;
    color: #003a70;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.12;
}

.resource-section-heading > p:last-child {
    max-width: 780px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.resource-kicker {
    margin: 0 0 8px;
    color: #d15a0d;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resources-hero {
    overflow: hidden;
    margin-bottom: 28px;
    background: #fff;
}

.resources-hero picture,
.resources-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.resources-choice-grid,
.resource-record-grid {
    display: grid;
    gap: 22px;
}

.resources-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resources-choice-link,
.resource-record-card-link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.resources-choice-link {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 58, 112, 0.13);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resources-choice-link:hover,
.resources-choice-link:focus-visible {
    transform: translateY(-3px);
    border-color: #d15a0d;
    box-shadow: 0 12px 30px rgba(0, 58, 112, 0.2);
}

.resources-choice-link:focus-visible,
.resource-record-card-link:focus-visible,
.resource-back-link a:focus-visible,
.resource-inline-link:focus-visible {
    outline: 3px solid #f4a261;
    outline-offset: 3px;
}

.resources-choice-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.resources-choice-label {
    padding: 14px 16px;
    color: #003a70;
    font-size: 1.12rem;
    font-weight: 800;
    text-align: center;
}

.resource-record-card {
    overflow: hidden;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 58, 112, 0.13);
}

.resource-record-card-link {
    flex-direction: column;
    border: 2px solid transparent;
}

.resource-record-card-link:hover,
.resource-record-card-link:focus-visible {
    border-color: #d15a0d;
}

.resource-record-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eaf0f4;
}

.resource-record-image-element,
.resource-detail-image-element {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #003a70, #16689f);
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.resource-record-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.resource-record-copy time,
.resource-detail-header time {
    color: #53656d;
    font-size: 0.92rem;
}

.resource-record-copy h2 {
    margin: 8px 0 10px;
    color: #003a70;
    font-size: 1.35rem;
    line-height: 1.25;
}

.resource-record-copy p {
    margin: 0 0 18px;
    line-height: 1.55;
}

.resource-card-action {
    margin-top: auto;
    color: #b54800;
    font-weight: 800;
}

.resource-empty-state {
    padding: 28px;
    background: #fff;
    border-left: 5px solid #d15a0d;
    box-shadow: 0 8px 24px rgba(0, 58, 112, 0.1);
}

.resource-search-form {
    margin: 0 0 24px;
    padding: 22px;
    background: #fff;
    border-left: 5px solid #d15a0d;
    box-shadow: 0 8px 24px rgba(0, 58, 112, 0.1);
}

.resource-search-form label {
    display: block;
    margin-bottom: 8px;
    color: #003a70;
    font-weight: 800;
}

.resource-search-controls {
    display: flex;
    gap: 10px;
}

.resource-search-controls input {
    min-width: 0;
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #8798a1;
    border-radius: 2px;
    font: inherit;
}

.resource-search-controls button {
    padding: 11px 20px;
    border: 0;
    background: #003a70;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.resource-search-controls button:hover {
    background: #004f95;
}

.resource-search-controls input:focus-visible,
.resource-search-controls button:focus-visible {
    outline: 3px solid #f4a261;
    outline-offset: 2px;
}

.resource-search-summary {
    margin: -8px 0 22px;
}

.resource-search-summary p {
    margin: 0;
}

.resource-search-summary a {
    color: #003a70;
    font-weight: 800;
}

.resource-empty-state p {
    margin: 0;
    font-size: 1.08rem;
}

.resource-detail {
    max-width: 920px;
    margin: 0 auto;
}

.resource-detail-header,
.resource-content,
.resource-back-link {
    padding-right: clamp(22px, 5vw, 54px);
    padding-left: clamp(22px, 5vw, 54px);
}

.resource-detail-header {
    padding-top: 36px;
    padding-bottom: 26px;
}

.resource-detail-image {
    max-height: 560px;
    overflow: hidden;
    background: #eaf0f4;
}

.resource-detail-image-element {
    max-height: 560px;
    object-fit: contain;
}

.resource-content {
    padding-top: 34px;
    padding-bottom: 18px;
    font-size: 1.04rem;
    line-height: 1.68;
}

.resource-content h2,
.resource-content h3,
.resource-content h4 {
    color: #003a70;
    line-height: 1.25;
}

.resource-content h2 {
    margin: 34px 0 12px;
}

.resource-content h3,
.resource-content h4 {
    margin: 26px 0 10px;
}

.resource-content p {
    margin: 0 0 18px;
}

.resource-content-list {
    margin: 0 0 22px;
    padding-left: 28px;
}

.resource-content-list li {
    margin: 7px 0;
}

.resource-callout,
.resource-content blockquote,
.resource-content-fallback {
    margin: 24px 0;
    padding: 18px 20px;
    background: #edf4f8;
    border-left: 5px solid #d15a0d;
}

.resource-callout p,
.resource-content blockquote p {
    margin: 0;
}

.resource-inline-link {
    display: inline-block;
    padding: 10px 16px;
    background: #003a70;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.resource-download-link {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 2px;
    background: #d15a0d;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.resource-inline-link:hover,
.resource-download-link:hover {
    background: #004f95;
}

.resource-spacer {
    height: 20px;
}

.resource-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
}

.resource-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.resource-table-wrap th,
.resource-table-wrap td {
    padding: 10px 12px;
    border: 1px solid #b9c7cf;
    text-align: left;
    vertical-align: top;
}

.resource-table-wrap th {
    background: #003a70;
    color: #fff;
}

.resource-back-link {
    margin: 24px 0 0;
    padding-bottom: 34px;
}

.resource-back-link a {
    color: #003a70;
    font-weight: 800;
}

.mako-codes-box {
    --codes-navy: #003a70;
    --codes-orange: #d15a0d;
    --codes-ink: #1d2a2f;
    --codes-mist: #f4f7fa;
    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px);
    background: #fff;
    border-top: 7px solid var(--codes-orange);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 58, 112, 0.13);
    color: var(--codes-ink);
}

.mako-codes-box * {
    box-sizing: border-box;
}

.mako-codes-heading {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.mako-codes-eyebrow {
    margin: 0 0 6px;
    color: var(--codes-orange);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mako-codes-heading h1 {
    margin: 0 0 9px;
    color: var(--codes-navy);
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.1;
}

.mako-codes-heading > p:last-child {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.55;
}

.mako-codes-table-wrap {
    overflow-x: auto;
    border: 1px solid #dce5ed;
    border-radius: 3px;
}

.mako-codes-table-wrap:focus-visible {
    outline: 3px solid #f4a261;
    outline-offset: 3px;
}

.mako-codes-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.mako-codes-table thead {
    background: var(--codes-navy);
    color: #fff;
}

.mako-codes-table th,
.mako-codes-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #dce5ed;
    vertical-align: top;
}

.mako-codes-table thead th {
    font-size: 0.88rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.mako-codes-table tbody tr:nth-child(even) {
    background: var(--codes-mist);
}

.mako-codes-table tbody tr:last-child th,
.mako-codes-table tbody tr:last-child td {
    border-bottom: 0;
}

.mako-codes-table tbody th {
    width: 42%;
    color: var(--codes-navy);
    font-size: 0.96rem;
    line-height: 1.35;
}

.mako-codes-table tbody th a {
    color: inherit;
}

.mako-codes-table small {
    display: inline-block;
    margin-top: 3px;
    color: #53636b;
    font-size: 0.78rem;
    font-weight: 400;
}

.mako-codes-table td {
    width: 29%;
}

.mako-codes-table td strong {
    display: block;
    color: var(--codes-orange);
    font-size: 1.13rem;
    line-height: 1.15;
}

.mako-codes-table td span {
    display: block;
    margin-top: 4px;
    color: #42535b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.mako-codes-note {
    margin: 16px 0 0;
    padding-left: 13px;
    border-left: 4px solid var(--codes-orange);
    color: #53636b;
    font-size: 0.8rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .resources-choice-grid,
    .resource-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .resource-main {
        padding: 22px 16px 40px;
    }

    .resource-main-full-width {
        padding: 0 0 40px;
    }

    .resource-main-full-width > .resource-section-heading,
    .resource-main-full-width > .resources-choice-grid {
        width: calc(100% - 32px);
    }

    .resource-section-heading {
        padding: 22px;
    }

    .resources-choice-grid,
    .resource-record-grid {
        grid-template-columns: 1fr;
    }

    .resource-search-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .mako-codes-box {
        padding: 22px 14px;
    }

    .mako-codes-table th,
    .mako-codes-table td {
        padding: 12px 13px;
    }
}
