/* ==========================================================================
   Public site styles
   Colors are copied from style.css (this file is loaded on its own by
   base_public.html, so the variables must be defined here too).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@400;600;700&display=swap");

:root {
    --1-color: #d2e7f2;
    --2-color: #c1e0ff;
    --3-color: #92d0c1;
    --4-color: #2d635b;
    --5-color: #001f38;
    --p1-color: #c2e0ff;
    --p2-color: #8eabc9;
    --p3-color: #5e7895;
    --p4-color: #2f4965;
    --p5-color: #001f38;
    --s1-color: #b0fce9;
    --s2-color: #6cac9e;
    --s3-color: #2c6359;
    --s4-color: #183f36;
    --s5-color: #051f18;
    --highlight-color: #fe2b05;
    --grey-color: #dddddd;
    --white-color: #ffffff;

    --page-bg: #f5f8fb;
    --text-color: var(--5-color);
    --muted-color: var(--p3-color);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 31, 56, 0.06);
    --shadow: 0 1px 2px rgba(0, 31, 56, 0.06), 0 8px 24px rgba(0, 31, 56, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 31, 56, 0.16);
    --content-width: 1440px;
    --font-heading: Catamaran, Helvetica, sans-serif;
    --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    line-height: 1.25;
    color: var(--5-color);
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 { font-size: 2.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--4-color);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--4-color);
    outline-offset: 2px;
}

::selection {
    background: var(--3-color);
    color: var(--5-color);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    color: var(--white-color);
    background: var(--5-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 0;
    color: var(--white-color);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "logo brand   nav"
        "logo tagline nav";
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.75rem max(1.5rem, calc((100% - var(--content-width)) / 2));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(0, 31, 56, 0.08);
    box-shadow: var(--shadow-sm);
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--4-color), var(--3-color) 50%, var(--2-color));
}

/* the logo spans both rows; the name sits over the tagline, both left-aligned beside it */
.header_text {
    display: contents;
}

.menulogo {
    grid-area: logo;
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0;
}

.menuheader {
    grid-area: brand;
    align-self: end;
    margin: 0;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--5-color);
}

.menutagline {
    grid-area: tagline;
    align-self: start;
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

/* --------------------------------------------------------------------------
   Navigation + CSS-only mega menu
   -------------------------------------------------------------------------- */

/* no tagline: the name is centred on the logo */
.header_text:not(:has(+ .menutagline)) .menuheader {
    grid-row: 1 / span 2;
    align-self: center;
}

header nav {
    grid-area: nav;
    justify-self: end;
    margin-left: 1.5rem;
}

header nav > ul.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav > ul.container > li {
    position: static;   /* mega menu positions against the header */
    padding: 0.5rem 0.9rem;
    font-weight: 500;
    color: var(--5-color);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

header nav > ul.container > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--5-color);
    font-weight: 500;
}

header nav > ul.container > li:hover,
header nav > ul.container > li:focus-within {
    background: var(--1-color);
}

header nav > ul.container > li > a:hover {
    color: var(--4-color);
    text-decoration: none;
}

/* Font Awesome isn't loaded on public pages; draw the chevron in CSS */
header nav .fa {
    display: none;
}

header nav li.dropdowner > a::after {
    content: "";
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
    opacity: 0.6;
    transition: transform 0.2s ease;
}

header nav li.dropdowner:hover > a::after,
header nav li.dropdowner:focus-within > a::after {
    transform: translateY(0.05em) rotate(-135deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: 3px;   /* sits below the gradient bar, keeps hover alive */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    /* Hover intent: an open menu lingers before it closes, and a menu opens only once the pointer rests on its item,
       so the pointer can cross a second row of items on its way down to the menu without losing it. */
    transition: opacity 0.18s ease 0.35s, transform 0.18s ease 0.35s, visibility 0s linear 0.53s;
}

li.dropdowner:hover > .mega-menu,
li.dropdowner:focus-within > .mega-menu {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease 0.15s, transform 0.18s ease 0.15s, visibility 0s linear 0.15s;
}

/* the menu button, for narrow screens only (see Responsive) */
.nav-toggle {
    display: none;
}

.mega-menu > .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2rem;
    background: var(--white-color);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
}

.mega-menu .item h3 {
    margin: 0 0 0.5rem;
    padding-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--4-color);
    border-bottom: 2px solid var(--1-color);
}

.mega-menu .item h3 a {
    color: inherit;
}

.mega-menu .item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-menu .item li {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.mega-menu .item li a {
    display: inline-block;
    color: var(--p4-color);
    transition: color 0.15s ease, transform 0.15s ease;
}

.mega-menu .item li a:hover {
    color: var(--highlight-color);
    text-decoration: none;
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.indent {
    margin-left: 1.5rem;
}

.page_title {
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 85% 20%, rgba(146, 208, 193, 0.35), transparent 50%),
        linear-gradient(135deg, var(--p5-color), var(--p4-color) 60%, var(--s3-color));
    box-shadow: var(--shadow);
}

.page_title h2 {
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--white-color);
    border: none;
}

.background_image {
    display: block;
    width: 100%;
    height: clamp(180px, 30vw, 340px);
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* A tagline over the page's image: both share the first grid cell, the tagline in a translucent panel at top left */
.content > .page_title:has(+ .background_image) {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    z-index: 1;
    max-width: min(34rem, calc(100% - 4rem));
    margin: 2.5rem 0 2.5rem 2.5rem;
    background: rgba(0, 31, 56, 0.8);
    border: 1px solid var(--1-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-lg);
}

.content > .page_title + .background_image {
    grid-area: 1 / 1;
    align-self: stretch;
    height: auto;
    min-height: clamp(220px, 30vw, 380px);
    contain: size;      /* the row is as tall as min-height or the tagline, never the photo's own height */
}

.sectionheader {
    display: none;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    position: relative;
    padding: 2rem 2.25rem;
    background: var(--white-color);
    border: 1px solid rgba(0, 31, 56, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card + .card {
    margin-top: 2rem;
}

.card .card {
    padding: 1.5rem 0 0;
    border: none;
    box-shadow: none;
}

.card h2 {
    margin-top: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--1-color);
}

.card h2:first-child {
    margin-top: 0;
}

.card h2:empty {
    margin: 0 0 1.5rem;
    padding: 0;
    height: 0;
    border-bottom: 1px solid var(--grey-color);
}

.card h3 {
    color: var(--4-color);
}

.card h4 {
    color: var(--p4-color);
}

.card > p:last-child {
    margin-bottom: 0;
}

.card ul {
    padding-left: 1.25rem;
}

.card li {
    margin-bottom: 0.35rem;
}

.card li::marker {
    color: var(--3-color);
}

.card.centered {
    max-width: 640px;
}

/* --------------------------------------------------------------------------
   Content grid (child pages)
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.grid__item {
    display: flex;
}

.grid__item > .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid__item > .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.grid__item > .card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--4-color), var(--3-color));
}

.card__img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

.card__header {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.card__header a {
    color: var(--5-color);
}

.card__header a:hover {
    color: var(--4-color);
}

.card__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--p4-color);
}

.true_bullet {
    font-size: 0.9rem;
    color: var(--p3-color);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    text-align: left;
}

form td,
form th {
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
}

form td:first-child,
form th {
    width: 1%;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--p4-color);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--5-color);
    background: var(--white-color);
    border: 1px solid var(--grey-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
textarea:hover {
    border-color: var(--p2-color);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--4-color);
    box-shadow: 0 0 0 3px rgba(146, 208, 193, 0.45);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"] {
    width: 1.05em;
    height: 1.05em;
    margin: 0 0.5rem 0 0;
    vertical-align: -0.15em;
    accent-color: var(--4-color);
    cursor: pointer;
}

input[type="checkbox"] + label {
    font-size: 0.95rem;
    cursor: pointer;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--4-color), var(--s3-color));
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(45, 99, 91, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button:hover,
.button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45, 99, 91, 0.38);
}

button:active,
.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(45, 99, 91, 0.3);
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* Login page: the bare .centered wrapper becomes a floating panel */
.main > .background_image + .centered {
    position: relative;
    max-width: 460px;
    padding: 2rem 2.25rem;
    background: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    grid-area: 1 / 1;
    width: calc(100% - 2rem);
    margin: 2rem 0;
}

.main > .background_image + .centered h2 {
    margin-bottom: 1rem;
}

.main > .background_image + .centered table {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Login page: main fills the viewport between header and footer; the image
   fills main and the panel is centered over it both ways */
body:has(> .main > .background_image + .centered) {
    display: flex;
    flex-direction: column;
}

.main:has(> .background_image + .centered) {
    flex: 1 0 auto;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    width: 100%;
}

.main > .background_image:has(+ .centered) {
    grid-area: 1 / 1;
    align-self: stretch;
    justify-self: stretch;
    height: 100%;
    contain: size;      /* the image's natural size never stretches the page */
}

/* --------------------------------------------------------------------------
   Privacy policy
   -------------------------------------------------------------------------- */

.privacy ul {
    margin-left: 2em;
}

.privacy table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.privacy th,
.privacy td {
    text-align: left;
    vertical-align: top;
    padding: 0.5em;
    border-bottom: 1px solid currentColor;
}

.privacy .summary {
    padding: 1em;
    border-left: 4px solid currentColor;
    margin: 1em 0;
}

.privacy .table-wrap {
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Footer + sitemap
   -------------------------------------------------------------------------- */

/* the call-to-action band under a page */
.main .ns-capture {
    margin-top: 4rem;
}

.footer {
    margin-top: 1rem;
    color: var(--p3-color);
}

.footer .card {
    background: transparent;
}

.site-footer {
    position: relative;
    margin-top: 3rem;
    color: var(--p1-color);
    background:
        radial-gradient(circle at 90% 0%, rgba(146, 208, 193, 0.18), transparent 45%),
        linear-gradient(160deg, var(--p5-color), var(--p4-color));
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--4-color), var(--3-color) 50%, var(--2-color));
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 2rem 3rem;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.site-footer__brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.site-footer__brand p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--p2-color);
}

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

.site-footer a:hover {
    color: var(--s1-color);
}

.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar .horizontal {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.site-footer__bar .horizontal ul {
    justify-content: space-between;
}

.site-footer__bar small {
    font-size: 0.85rem;
    color: var(--p2-color);
}

.site-footer__links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

.horizontal ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.horizontal li {
    margin: 0;
}

.horizontal h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--p3-color);
}

.sitemap-nav h2 {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--3-color);
}

.sitemap {
    column-count: 4;
    column-gap: 2rem;
}

.sitemap ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap > ul > li {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.sitemap > ul > li > a,
.sitemap > ul > li > span {
    font-weight: 600;
    font-size: 0.95rem;
}

.sitemap ul ul {
    margin-top: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.sitemap ul ul li {
    font-size: 0.875rem;
    margin: 0.2rem 0;
}

.sitemap ul ul ul li {
    font-size: 0.8rem;
}

.sitemap span {
    color: var(--p2-color);
}

.sitemap a {
    color: var(--1-color);
}

.sitemap a:hover {
    color: var(--s1-color);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    /* the header scrolls away with the page; the menu folds behind a button and starts folded */
    header {
        position: relative;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo brand toggle"
            "nav  nav   nav";
        row-gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .menulogo {
        width: 48px;
        height: 48px;
    }

    .menuheader,
    .header_text:not(:has(+ .menutagline)) .menuheader {
        grid-row: auto;
        align-self: center;
        font-size: 1.35rem;
    }

    header nav {
        margin-left: 0;
    }

    .menutagline {
        display: none;
    }

    header.js-nav .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
        color: var(--5-color);
        background: var(--1-color);
        border-radius: var(--radius-sm);
        box-shadow: none;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 1.1rem;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    .nav-toggle__bars {
        position: relative;
    }

    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle__bars::before { top: -6px; }
    .nav-toggle__bars::after { top: 6px; }

    header.js-nav:not(.nav-open) nav {
        display: none;
    }

    header nav {
        justify-self: stretch;
        padding-bottom: 0.5rem;
    }

    header nav > ul.container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    header nav > ul.container > li {
        padding: 0.45rem 0.75rem;
    }

    header nav li.dropdowner > a::after {
        display: none;
    }

    header nav > ul.container > li:hover,
    header nav > ul.container > li:focus-within {
        background: none;
    }

    /* each item's sub-pages listed under it; their own sub-pages are on those pages */
    .mega-menu,
    li.dropdowner:hover > .mega-menu,
    li.dropdowner:focus-within > .mega-menu {
        position: static;
        padding: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mega-menu > .container {
        display: block;
        margin: 0.25rem 0 0 0.25rem;
        padding: 0 0 0 0.75rem;
        background: none;
        border-left: 2px solid var(--1-color);
        border-radius: 0;
        box-shadow: none;
    }

    .mega-menu .item h3 {
        margin: 0;
        padding: 0.3rem 0;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        border: none;
    }

    .mega-menu .item ul {
        display: none;
    }

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

    .sitemap {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .main {
        padding: 1.5rem 1rem 3rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

    .page_title {
        padding: 1rem 1.25rem;
    }

    .content > .page_title:has(+ .background_image) {
        align-self: end;
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    /* stack form label/field pairs */
    form table,
    form tbody,
    form tr,
    form td,
    form th {
        display: block;
        width: 100% !important;
    }

    form td:first-child:empty {
        display: none;
    }

    .site-footer__bar .horizontal ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .sitemap {
        column-count: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* who is signed in, at the top of every page */
.account-bar{display:flex; align-items:center; gap:12px; padding:3px 12px; flex:none;
  background:var(--surface, #f4f5f7); border-bottom:1px solid var(--line, #dde1e7); color:var(--muted, #5d6a7f); font-size:12px}
.account-bar .spacer{flex:1}
.account-bar strong{color:var(--ink, #151d2b); font-weight:650}
.account-bar-email{color:var(--muted, #5d6a7f)}
.account-bar a{padding:1px 8px; font-size:11px; font-weight:600; color:var(--ink, #151d2b); background:var(--raised, #fff);
  border:1px solid var(--edge, #c3ccdb); border-radius:var(--radius, 5px); text-decoration:none}
.account-bar a:hover{border-color:var(--accent, currentColor); color:var(--accent, inherit)}

/* Login page: failed-login message */
.login-error {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    color: #8a1c1c;
    background: #fdecec;
    border: 1px solid #e3a3a3;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    text-align: left;
}
.login-error p { margin: 0; }
