@import url("./fonts.css");
@import url("./notifications-styles.css");

* { box-sizing: border-box; }

:root {
    --content-max-width: 1152px;
    --content-padding: clamp(24px, 5vw, 56px);
    --page-section-gap: 28px;
    --chrome-background: #292b2a;
    --chrome-text: #f4f4f2;
    --chrome-line: #48534d;
    --page-background: #ededed;
    --surface: #fafafa;
    --text: #292929;
    --muted: #686868;
    --accent: #383838;
    --accent-hover: #222222;
    --soft-accent: #e8e8e8;
    --highlight: #949494;
    --line: #dcdcdc;
    --focus: #555555;
}

.not-found { display: grid; align-content: center; justify-items: center; text-align: center; }
.not-found__content { max-width: 620px; padding-block: clamp(40px, 8vw, 100px); }
.not-found__description { margin: 20px 0 28px; color: var(--muted); line-height: var(--text-line-height); }
.not-found__link { display: inline-flex; justify-content: center; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: #fff; font-size: var(--text-label-size); font-weight: var(--font-weight-medium); line-height: var(--control-line-height); text-decoration: none; }
.not-found__link:hover { background: var(--accent-hover); }
.not-found__link { box-shadow: 0 3px 12px rgb(25 35 29 / 7%); }
.not-found__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.contact__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 var(--page-section-gap);
    font-size: var(--text-small-size);
    color: var(--muted);
}
.contact__breadcrumbs a { color: var(--text); text-underline-offset: 4px; }
.contact__breadcrumbs span { cursor: default; }
.contact__heading { margin: 0 0 var(--page-section-gap); max-width: 640px; }
.contact__eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: var(--text-small-size);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--label-letter-spacing);
    text-transform: uppercase;
}
.contact h1 { margin: 0 0 12px; }
.contact__heading--actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; max-width: none; }
.contact__heading--actions h1 { margin: 0; }
.contact__heading--actions > p { flex-basis: 100%; margin: 0; }
.contact__edit-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 40px; margin-left: auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font-size: var(--text-label-size); font-weight: var(--font-weight-medium); line-height: var(--control-line-height); text-decoration: none; box-shadow: 0 3px 12px rgb(25 35 29 / 7%); }
.contact__edit-link:hover { background: var(--soft-accent); }
.contact__edit-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact__heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.contact__card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgb(25 35 29 / 7%); }
.contact__card h2 { margin: 0 0 var(--paragraph-gap); font-size: var(--card-title-size); line-height: var(--heading-line-height); }
.contact__card > p { color: var(--muted); }
.contact__details { margin: 0; }
.contact__details > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__details dt { margin-bottom: 4px; font-weight: var(--font-weight-bold); }
.contact__details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact__details a { color: var(--link-color); text-underline-offset: 3px; }
.contact__details a:hover { color: var(--link-hover-color); }
.contact__details a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact__information-records dt { overflow-wrap: anywhere; }

.contact__map-section {
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.contact__map-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
}
.contact__map-heading h2 { margin: 0; font-size: var(--card-title-size); }
.contact__map-heading p { margin: 8px 0 0; color: var(--muted); }
.contact__map { display: block; width: 100%; height: clamp(280px, 40vw, 400px); border: 0; }
.contact__map-placeholder {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 280px;
    padding: 24px;
    background: var(--page-background);
    color: var(--muted);
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    line-height: var(--text-line-height);
    color: var(--text);
    background: var(--page-background);
}

.navigation {
    --navigation-height: 50px;
    --surface: var(--chrome-background);
    --accent: var(--chrome-text);
    --accent-hover: #fff;
    --soft-accent: #484848;
    --line: #505050;
    --highlight: #707070;
    --focus: #e0e0e0;
    color: var(--chrome-text);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: var(--navigation-height);
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.navigation__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.navigation__area {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15%;
    padding: 2px 8px;
    text-align: center;
    font-size: var(--text-small-size);
    line-height: 1;
    text-transform: uppercase;
    color: inherit;
    background: transparent;
    text-decoration: none;
}

.navigation__logo {
    gap: 10px;
    order: -2;
    flex: 0 0 auto;
    margin-right: auto;
    border: 0;
}

.navigation__logo-title {
    text-align: left;
    max-width: clamp(80px, 25vw, 280px);
    white-space: normal;
    overflow-wrap: anywhere;
    font: var(--font-weight-bold) var(--text-label-size)/var(--heading-line-height) var(--font-family);
    text-transform: none;
}

.navigation__inner::after {
    content: "";
    order: -1;
    flex: 0 0 15%;
}

.navigation__logo-image {
    display: block;
    width: auto;
    height: calc(var(--navigation-height) - 6px);
    object-fit: contain;
}

.navigation__menu {
    flex: 0 0 auto;
    align-self: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
}

.navigation__menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.navigation__social {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.navigation__pages {
    flex-shrink: 0;
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-right: 0;
}

.navigation__pages-list {
    display: flex;
    gap: 4px;
}

.navigation__logout-form { margin: 0; }
.navigation__logout-form .navigation__page-button { width: 100%; }

.navigation__pages-visible {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin-right: 8px;
}

.navigation__pages-visible:empty {
    display: none;
}

.navigation__pages .navigation__pages-toggle { display: inline-flex; }

.navigation__pages .navigation__menu {
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

.navigation__page-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--accent);
    font: var(--font-weight-medium) var(--text-label-size)/var(--control-line-height) var(--font-family);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

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

.navigation__page-button:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
}

.navigation__social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    background: #eeeeee;
    transition: background-color 160ms ease;
}

.navigation__social-button svg,
.navigation__social-button img {
    width: 22px;
    height: 22px;
}

.navigation__social-button:hover { background: #dddddd; }
.navigation__social-button:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -4px;
}

.navigation__menu-icon span {
    display: block;
    height: 2px;
    background: currentColor;
}

.navigation__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    max-width: 100%;
    max-height: calc(100dvh - var(--navigation-height));
    overflow-y: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px #0002;
}

.navigation__dropdown a {
    display: block;
    padding: 12px;
    color: inherit;
    text-decoration: none;
}

.navigation__dropdown a:hover,
.navigation__dropdown a:focus-visible {
    background: var(--soft-accent);
}

#content, #footer { scroll-margin-top: var(--navigation-height, 50px); }

.navigation__area:hover { background: var(--soft-accent); }
.navigation__area:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -4px;
}

.session-bar { flex-shrink: 0; width: 100%; max-width: var(--content-max-width); margin: 0 auto; padding: 10px var(--content-padding); border: 1px solid var(--line); border-top: 0; background: var(--soft-accent); color: var(--muted); font-size: var(--text-small-size); line-height: var(--text-small-line-height); overflow-wrap: anywhere; }
.session-bar p { margin: 0; text-align: center; }
.session-bar strong { color: var(--text); font-weight: var(--font-weight-medium); }

.content {
    flex: 1;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--content-padding);
    border: 1px solid var(--line);
    border-top: 0;
    border-bottom: 0;
    background: var(--surface);
}

.footer {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--chrome-background);
    color: var(--chrome-text);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 24px;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 8px var(--content-padding);
}

.footer p { margin: 0; color: var(--chrome-text); font-size: var(--text-label-size); }
.footer a { color: var(--chrome-text); text-decoration: none; text-underline-offset: 4px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer a:focus-visible { outline: 2px solid #ddd; outline-offset: 4px; }

.footer__navigation { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--text-small-size); }
.footer__navigation a { display: inline-flex; align-items: center; min-height: 32px; }
.footer .footer__copyright {
    flex: 1 1 240px;
    overflow-wrap: anywhere;
    font-size: var(--text-small-size);
}

    .navigation__pages #navigation-pages-list {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        width: max-content;
        min-width: min(180px, 100%);
        max-width: 100%;
        max-height: calc(100dvh - 50px);
        overflow-y: auto;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-top: 2px solid var(--highlight);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 30px #00000024;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }
    .navigation__pages.is-open #navigation-pages-list {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .navigation__pages #navigation-pages-list .navigation__page-button {
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
        height: auto;
        min-height: 36px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

.navigation__pages .navigation__pages-toggle {
    background: var(--soft-accent);
    color: var(--accent);
    border-radius: 8px;
}

.navigation__pages .navigation__pages-toggle:hover,
.navigation__pages .navigation__pages-toggle[aria-expanded="true"] {
    background: #585858;
}

/* Keep the natural row measurable without displaying a second set of buttons. */
.navigation__pages.is-layout-changing #navigation-pages-list {
    transition: none;
}

.navigation__pages .navigation__pages-list.navigation__pages-measurement {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    display: flex;
    flex-direction: row;
    width: max-content;
    max-width: none;
    padding: 0;
    border: 0;
    gap: 4px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .navigation__pages #navigation-pages-list,
    .navigation__page-button,
    .navigation__social-button { transition: none; }
}

@media (max-width: 480px) {
    .navigation__area { flex-basis: 25%; padding: 2px 4px; font-size: var(--text-small-size); }
    .navigation__logo { flex: 0 0 auto; }
    .navigation__menu { flex: 0 0 auto; padding: 0; }
    .navigation__pages { gap: 2px; }
    .navigation__pages-visible,
    .navigation__social { margin-right: 4px; }
    .navigation__page-button { padding: 0 8px; font-size: var(--text-label-size); }
}

