:root {
    --resources-navy: #062f73;
    --resources-ink: #12223f;
    --resources-muted: #5d6e87;
    --resources-line: #dbe4f0;
    --resources-pale: #f4f8fc;
    --resources-gold: #c47e11;
}

.resources-page {
    min-height: 55vh;
    color: var(--resources-ink);
    background: #fff;
}

.resources-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.resources-hero {
    padding: 88px 0 82px;
    background: linear-gradient(105deg, #eff6fc 0%, #ffffff 60%, #f7fbff 100%);
    border-bottom: 1px solid var(--resources-line);
}

.resources-hero--compact {
    padding-bottom: 96px;
}

.resources-hero--faq {
    padding-bottom: 68px;
}

.resources-eyebrow,
.resource-card__eyebrow {
    margin: 0 0 13px;
    color: var(--resources-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.resources-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--resources-navy);
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
}

.resources-hero__copy {
    max-width: 730px;
    margin: 22px 0 0;
    color: var(--resources-muted);
    font-size: 1.13rem;
    line-height: 1.75;
}

.resources-directory {
    padding: 76px 0 84px;
}

.resources-section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.resources-section-heading h2,
.resources-note h2 {
    margin: 0;
    color: var(--resources-navy);
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.18;
}

.resources-section-heading > p:last-child,
.resources-note > p {
    margin: 14px 0 0;
    color: var(--resources-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--resources-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(10, 42, 88, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-card:hover,
.resource-card:focus-within {
    border-color: #b7cbe4;
    box-shadow: 0 16px 34px rgba(10, 42, 88, 0.1);
    transform: translateY(-2px);
}

.resource-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.resource-card__icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #cfe0f2;
    border-radius: 50%;
    color: var(--resources-navy);
    background: #f4f8fd;
    font-size: 1.1rem;
}

.resource-card__status {
    padding: 6px 10px;
    border: 1px solid #ead8b8;
    border-radius: 999px;
    color: #93600d;
    background: #fffaf1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-card__eyebrow {
    margin-bottom: 8px;
}

.resource-card h3 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}

.resource-card h3 a,
.resource-card__link,
.faq-item h3 a,
.faq-detail a {
    color: inherit;
    text-decoration: none;
}

.resource-card h3 a:hover,
.resource-card h3 a:focus-visible,
.resource-card__link:hover,
.resource-card__link:focus-visible,
.faq-item h3 a:hover,
.faq-item h3 a:focus-visible,
.faq-detail a:hover,
.faq-detail a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resource-card > p:not(.resource-card__eyebrow) {
    margin: 14px 0 26px;
    color: var(--resources-muted);
    line-height: 1.65;
}

.resource-card__link {
    margin-top: auto;
    color: var(--resources-navy);
    font-weight: 700;
}

.resource-card__link i {
    margin-left: 7px;
    font-size: 0.8em;
}

.resources-note {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 34px 0 80px;
    border-top: 1px solid var(--resources-line);
}

.resources-note > p {
    margin-top: 0;
}

.resources-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    padding: 12px 18px;
    border: 1px solid var(--resources-navy);
    border-radius: 3px;
    color: #fff;
    background: var(--resources-navy);
    font-weight: 700;
    text-decoration: none;
}

.resources-button:hover,
.resources-button:focus-visible {
    color: #fff;
    background: #0a438e;
}

.resources-button--outline {
    color: var(--resources-navy);
    background: #fff;
}

.resources-button--outline:hover,
.resources-button--outline:focus-visible {
    color: var(--resources-navy);
    background: #f1f6fb;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 54px;
    padding: 64px 0 88px;
}

.faq-toolbar {
    padding: 22px;
    border: 1px solid var(--resources-line);
    background: var(--resources-pale);
}

.faq-toolbar label {
    display: block;
    margin-bottom: 7px;
    color: var(--resources-navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.faq-toolbar__row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.faq-toolbar input,
.faq-toolbar select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8d5e4;
    border-radius: 3px;
    color: var(--resources-ink);
    background: #fff;
}

.faq-toolbar__row input {
    flex: 1;
}

.faq-toolbar .resources-button {
    flex: 0 0 auto;
    margin: 0;
}

.faq-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 18px;
}

.faq-results-heading h2 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.45rem;
}

.faq-results-heading a,
.faq-pagination a {
    color: var(--resources-navy);
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding: 25px 27px;
    border: 1px solid var(--resources-line);
    background: #fff;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    float: right;
    margin-left: 14px;
    color: var(--resources-navy);
    content: "+";
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item h3 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.22rem;
    line-height: 1.4;
}

.faq-item__answer,
.faq-detail__answer {
    margin-top: 17px;
    color: var(--resources-muted);
    line-height: 1.75;
}

.rich-text p {
    margin: 0 0 1em;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.faq-state-note {
    margin-top: 18px;
    padding: 15px 17px;
    border-left: 3px solid var(--resources-gold);
    color: #53657f;
    background: #fffaf1;
    line-height: 1.65;
}

.faq-item .resource-card__link {
    display: inline-block;
    margin-top: 21px;
    font-size: 0.93rem;
}

.faq-aside__box {
    padding: 25px;
    border-top: 4px solid var(--resources-navy);
    background: var(--resources-pale);
}

.faq-aside h2 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.35rem;
    line-height: 1.3;
}

.faq-aside__box > p:not(.resources-eyebrow) {
    color: var(--resources-muted);
    line-height: 1.65;
}

.faq-disclaimer {
    margin-top: 24px;
    color: var(--resources-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.faq-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
}

.faq-empty {
    padding: 45px 25px;
    border: 1px dashed #bdccdc;
    text-align: center;
}

.faq-empty h2 {
    margin: 0;
    color: var(--resources-navy);
}

.faq-empty p {
    color: var(--resources-muted);
}

.faq-detail {
    max-width: 860px;
    padding: 72px 0 100px;
}

.faq-detail > h1 {
    margin: 0;
    color: var(--resources-navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
}

.faq-detail__topic {
    margin: 16px 0 0;
    color: var(--resources-gold);
    font-weight: 700;
}

.faq-detail__answer {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--resources-line);
    color: var(--resources-ink);
    font-size: 1.08rem;
}

.faq-detail__answer h2 {
    margin: 0 0 20px;
    color: var(--resources-navy);
    font-size: 1.2rem;
}

.faq-review,
.faq-source {
    margin-top: 27px;
    color: var(--resources-muted);
    line-height: 1.6;
}

.faq-review a,
.faq-source a {
    color: var(--resources-navy);
    font-weight: 700;
}

.faq-detail .faq-disclaimer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--resources-line);
}

@media (max-width: 800px) {
    .resources-shell {
        width: min(100% - 28px, 680px);
    }

    .resources-hero {
        padding: 60px 0 56px;
    }

    .resources-grid,
    .resources-note,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .resources-directory {
        padding: 54px 0 62px;
    }

    .resource-card {
        min-height: auto;
    }

    .resources-note {
        gap: 10px;
        padding: 26px 0 60px;
    }

    .faq-layout {
        gap: 38px;
        padding: 44px 0 68px;
    }

    .faq-toolbar__row {
        align-items: stretch;
        flex-direction: column;
    }

    .faq-toolbar .resources-button {
        justify-content: center;
    }

    .faq-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 32px;
    }

    .faq-detail {
        padding: 54px 0 72px;
    }
}

/* Help Desk hub */
.help-desk-hero {
    background: #f4f8fc;
}

.help-desk-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: 70px;
}

.help-desk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.help-desk-hero__actions .resources-button {
    margin-top: 0;
}

.help-desk-hero__panel {
    padding: 26px 28px;
    border: 1px solid #c9d8e8;
    border-top: 5px solid var(--resources-navy);
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 42, 88, .1);
}

.help-desk-hero__panel-label {
    margin: 0 0 18px;
    color: var(--resources-gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.help-desk-signal {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 0;
    border-top: 1px solid var(--resources-line);
}

.help-desk-signal__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--resources-navy);
}

.help-desk-signal strong,
.help-desk-signal span {
    display: block;
}

.help-desk-signal strong {
    color: var(--resources-ink);
    font-size: .97rem;
}

.help-desk-signal div span {
    margin-top: 3px;
    color: var(--resources-muted);
    font-size: .87rem;
    line-height: 1.45;
}

.help-desk-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    align-items: end;
    gap: 46px;
    margin-bottom: 22px;
}

.help-desk-toolbar .resources-section-heading {
    margin-bottom: 0;
}

.help-desk-controls label {
    display: block;
    margin-bottom: 8px;
    color: var(--resources-navy);
    font-size: .82rem;
    font-weight: 700;
}

.help-desk-controls input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #bfd0e3;
    border-radius: 3px;
    color: var(--resources-ink);
    background: #fff;
}

.help-desk-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.help-desk-filter {
    padding: 6px 12px;
    border: 1px solid #bfd0e3;
    border-radius: 999px;
    color: var(--resources-navy);
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.help-desk-filter:hover,
.help-desk-filter:focus-visible,
.help-desk-filter.is-active {
    color: #fff;
    background: var(--resources-navy);
}

.help-desk-results {
    min-height: 1.3em;
    margin: 0 0 14px;
    color: var(--resources-muted);
    font-size: .88rem;
}

.help-desk-card[hidden] {
    display: none;
}

.help-desk-empty {
    padding: 28px;
    border: 1px dashed #bfd0e3;
    color: var(--resources-muted);
    text-align: center;
}

.help-desk-reset {
    margin-left: 8px;
    border: 0;
    color: var(--resources-navy);
    background: transparent;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Mediation Matters */
.mediation-matters-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 46px;
    padding: 64px 0 90px;
}

.mediation-matters-search {
    padding: 20px;
    background: var(--resources-pale);
    border: 1px solid var(--resources-line);
}

.mediation-matters-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--resources-navy);
    font-weight: 700;
}

.mediation-matters-search__row {
    display: flex;
    gap: 10px;
}

.mediation-matters-search input {
    min-width: 0;
    flex: 1;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8d5e4;
}

.mediation-matters-search .resources-button {
    margin-top: 0;
}

.mediation-matters-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 44px 0 18px;
}

.mediation-matters-heading h2 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.75rem;
}

.mediation-matters-heading a,
.mediation-matters-backlink {
    color: var(--resources-navy);
    font-weight: 700;
}

.mediation-matters-list {
    display: grid;
    gap: 16px;
}

.mediation-matters-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--resources-line);
    background: #fff;
}

.mediation-matters-entry > img,
.mediation-matters-entry__mark {
    width: 170px;
    height: 150px;
    object-fit: cover;
}

.mediation-matters-entry__mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--resources-navy);
    font-size: 2rem;
}

.mediation-matters-entry h3 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.28rem;
    line-height: 1.3;
}

.mediation-matters-entry h3 a {
    color: inherit;
    text-decoration: none;
}

.mediation-matters-entry h3 a:hover,
.mediation-matters-entry h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mediation-matters-entry__body > p:not(.resource-card__eyebrow) {
    margin: 10px 0 12px;
    color: var(--resources-muted);
    line-height: 1.6;
}

.mediation-matters-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--resources-muted);
    font-size: .82rem;
}

.mediation-matters-entry__meta span + span {
    padding-left: 18px;
    border-left: 1px solid var(--resources-line);
}

.mediation-matters-entry .resource-card__link {
    display: inline-block;
    margin-top: 16px;
}

.mediation-matters-aside {
    align-self: start;
}

.mediation-matters-backlink {
    display: inline-block;
    margin-top: 22px;
}

/* Events */
.events-page {
    color: var(--resources-ink);
    background: #fff;
}

.events-hero {
    padding: 72px 0;
    color: #fff;
    background: var(--resources-navy);
}

.events-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.events-eyebrow {
    margin: 0 0 10px;
    color: var(--resources-gold);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.events-hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.events-hero p:not(.events-eyebrow) {
    max-width: 650px;
    margin: 20px 0 0;
    color: #dce8f5;
    font-size: 1.1rem;
    line-height: 1.7;
}

.events-hero__stamp {
    display: grid;
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    text-align: center;
}

.events-hero__stamp i {
    font-size: 2.4rem;
}

.events-hero__stamp span {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
}

.events-content {
    padding: 60px 0 90px;
}

.events-toolbar,
.events-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.events-toolbar h2,
.events-section__heading h2 {
    margin: 0;
    color: var(--resources-navy);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.events-toolbar .resources-button {
    margin-top: 0;
}

.events-section {
    margin-top: 48px;
}

.events-section__heading {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.events-section__marker {
    color: var(--resources-gold);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.events-list {
    display: grid;
    gap: 16px;
}

.events-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 26px;
    padding: 26px;
    border: 1px solid var(--resources-line);
    border-left: 4px solid var(--resources-navy);
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 42, 88, .06);
}

.events-card__date {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 120px;
    padding: 12px;
    color: #fff;
    background: var(--resources-navy);
    text-align: center;
}

.events-card__date span,
.events-card__date small {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.events-card__date strong {
    font-size: 2.7rem;
    line-height: 1;
}

.events-card__body h3 {
    margin: 0;
    color: var(--resources-navy);
    font-size: 1.4rem;
    line-height: 1.3;
}

.events-card__label {
    margin: 0 0 7px;
    color: var(--resources-gold);
    font-size: .83rem;
    font-weight: 700;
}

.events-card__body > p:not(.events-card__label) {
    margin: 10px 0 0;
    color: var(--resources-muted);
    line-height: 1.6;
}

.events-card__actions {
    margin-top: 14px;
}

.events-card__actions details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--resources-navy);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.events-card__actions details summary::-webkit-details-marker,
.events-past-item summary::-webkit-details-marker {
    display: none;
}

.events-card__actions details[open] summary i {
    transform: rotate(180deg);
}

.events-card__actions details > p {
    margin: 12px 0;
    color: var(--resources-muted);
    line-height: 1.65;
}

.resources-button--small {
    margin-top: 0;
    padding: 9px 13px;
    font-size: .88rem;
}

.events-card__link {
    color: var(--resources-navy);
    font-weight: 700;
    text-decoration: none;
}

.events-card__link:hover,
.events-card__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.events-section--past {
    padding-top: 42px;
    border-top: 1px solid var(--resources-line);
}

.events-past-list {
    border-top: 1px solid var(--resources-line);
}

.events-past-item {
    border-bottom: 1px solid var(--resources-line);
}

.events-past-item summary {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 19px 4px;
    color: var(--resources-navy);
    cursor: pointer;
    list-style: none;
}

.events-past-item summary span {
    color: var(--resources-muted);
    font-size: .88rem;
}

.events-past-item summary strong {
    font-size: 1rem;
}

.events-past-item summary i {
    transition: transform 160ms ease;
}

.events-past-item[open] summary i {
    transform: rotate(45deg);
}

.events-past-item > p,
.events-past-item > a {
    margin-left: 148px;
}

.events-past-item > p {
    margin-top: 0;
    color: var(--resources-muted);
    line-height: 1.6;
}

.events-past-item > a {
    display: inline-block;
    margin-bottom: 18px;
}

.events-empty {
    margin-top: 42px;
    padding: 46px 24px;
    border: 1px dashed #bfd0e3;
    text-align: center;
}

.events-empty i {
    color: var(--resources-gold);
    font-size: 2rem;
}

.events-empty h2 {
    margin: 12px 0 5px;
    color: var(--resources-navy);
    font-size: 1.45rem;
}

.events-empty p {
    margin: 0;
    color: var(--resources-muted);
}

.events-footer-note {
    margin-top: 56px;
    padding: 24px 28px;
    border-left: 4px solid var(--resources-gold);
    background: var(--resources-pale);
}

.events-footer-note p:not(.events-eyebrow) {
    margin: 0 0 12px;
    color: var(--resources-muted);
}

@media (max-width: 800px) {
    .help-desk-hero__inner,
    .help-desk-toolbar,
    .mediation-matters-layout {
        grid-template-columns: 1fr;
    }

    .help-desk-hero__inner {
        gap: 34px;
    }

    .help-desk-hero__panel {
        padding: 22px;
    }

    .mediation-matters-search__row {
        align-items: stretch;
        flex-direction: column;
    }

    .mediation-matters-search .resources-button {
        justify-content: center;
    }

    .mediation-matters-entry {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mediation-matters-entry > img,
    .mediation-matters-entry__mark {
        width: 100%;
        height: 180px;
    }

    .events-hero__inner,
    .events-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .events-hero__stamp {
        width: 120px;
        height: 120px;
        flex-basis: 120px;
    }

    .events-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .events-card__date {
        min-height: 92px;
        padding: 8px;
    }

    .events-card__date strong {
        font-size: 2rem;
    }

    .events-past-item summary {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .events-past-item summary span {
        grid-column: 1 / -1;
    }

    .events-past-item > p,
    .events-past-item > a {
        margin-left: 0;
    }
}
