:root {
    /* Shared by the hero, top bar and navigation drawer. */
    --mach-logo-hdr-strength: 0.5;
}

/* General image styling with height constraints */
img {
    display: block;
    margin: 0 auto;
    max-height: 400px;
    width: auto; /* Maintains aspect ratio */
}

/* Compact former-member cards with optional LinkedIn profile photos. */
.former-members-grid {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.former-member-card {
    align-items: center;
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.2rem;
    display: flex;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.65rem;
    transition: border-color 125ms, box-shadow 125ms;
}

.md-typeset .team-leads a,
.md-typeset .team-leads a:visited,
.md-typeset .former-member-card,
.md-typeset .former-member-card:visited {
    background-image: none !important;
    color: var(--md-default-fg-color) !important;
    text-decoration: none !important;
}

.md-typeset .team-leads a:hover,
.md-typeset .team-leads a:focus,
.md-typeset .former-member-card:hover,
.md-typeset .former-member-card:focus {
    color: var(--md-default-fg-color) !important;
    text-decoration: none !important;
}

a.former-member-card:hover {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 0.1rem 0.25rem rgb(0 0 0 / 8%);
}

.former-member-card--text-only {
    padding-left: 0.75rem;
}

.former-member-card .former-member-avatar {
    border-radius: 50%;
    display: block;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    margin: 0;
    max-height: none;
    object-fit: cover;
    width: 2.5rem;
}

.md-logo .mach-logo {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.mach-logo__picture {
    display: contents;
}

.md-header__button.md-logo .mach-logo__image {
    height: 1.2rem;
    width: auto;
}

@media screen and (max-width: 37.484375em) {
    .md-header__button.md-logo {
        display: flex;
    }
    /* The mobile home hero already contains the branding. */
    .md-header__button.md-logo[data-mach-home="true"] {
        display: none !important;
    }
}

/* One desktop row: home logo and top-level links. Keep the native
   tabs component so active sections and instant navigation continue to work. */
@media screen and (min-width: 37.5em) {
    .md-header__inner {
        gap: 0.35rem;
        min-height: 52px;
    }
    .md-header__title {
        display: none;
    }
    .md-header__button.md-logo {
        align-items: center;
        display: inline-flex;
        flex: 0 0 auto;
        justify-content: center;
        margin: 0;
        min-height: 44px;
        padding: 0 0.4rem;
    }
    .md-header .md-tabs {
        background: transparent;
        box-shadow: none;
        color: inherit;
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
        overflow: visible;
        width: auto;
    }
    .md-header .md-tabs > .md-grid {
        margin: 0;
        padding: 0;
    }
    .md-header .md-tabs__list {
        align-items: center;
        contain: none;
        height: 44px;
        margin: 0;
        overflow: visible;
    }
    .md-header .md-tabs__item {
        border-bottom: 0;
        height: 44px;
        padding: 0 0.55rem;
    }
    .md-header .md-tabs__item--active {
        box-shadow: inset 0 -1px currentColor;
    }
    .md-header .md-tabs__link {
        align-items: center;
        height: 44px;
        margin: 0;
    }
}

.md-header__title,
.md-nav .md-nav__title[for="__drawer"] {
    font-size: 0;
}

.md-nav .md-nav__title[for="__drawer"] .md-logo {
    height: 2rem;
    width: 5.25rem;
}

.md-nav .md-nav__title[for="__drawer"] .md-logo .mach-logo,
.md-nav .md-nav__title[for="__drawer"] .md-logo .mach-logo__image {
    height: 100%;
    width: 100%;
}

.md-nav .md-nav__title[for="__drawer"] .md-logo .mach-logo__image {
    object-fit: contain;
}

.mach-logo__hdr[hidden] {
    display: none !important;
    visibility: hidden !important;
}

.mach-logo__hdr {
    display: none;
    opacity: var(--mach-logo-hdr-strength);
}

@media (dynamic-range: high) {
    @supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
        [data-md-color-scheme="slate"] .md-logo .mach-logo__hdr {
            background: url("/img/white-7.5x.jpg") center / cover no-repeat;
            display: block;
            inset: 0;
            pointer-events: none;
            position: absolute;
            -webkit-mask: url("/img/logo-header-hdr-mask.png") center / contain no-repeat;
            mask: url("/img/logo-header-hdr-mask.png") center / contain no-repeat;
            z-index: 1;
        }
    }
}

.md-footer-meta__inner {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 1.2rem;
    justify-content: space-between;
    padding: 0.8rem;
}

.md-footer-meta__inner .md-copyright {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.md-footer-meta__inner .md-social {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.mach-footer-location {
    color: var(--md-footer-fg-color--lighter);
    align-self: center;
    display: inline-flex;
    align-items: center;
    font-size: 0.64rem;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

@media screen and (max-width: 59.984375em) {
    .md-footer-meta__inner {
        flex-direction: column;
        justify-content: center;
    }

    .md-footer-meta__inner .md-copyright {
        width: 100%;
        text-align: center;
    }

    .md-footer-meta__inner .md-social {
        order: 2;
        justify-content: center;
    }

    .mach-footer-location {
        order: 3;
        width: 100%;
        justify-content: center;
        font-size: 0.6rem;
        text-align: center;
    }
}

.gare-timeline-legend {
    align-items: center;
    border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
    border-top: 0.05rem solid var(--md-default-fg-color--lightest);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0.7rem 0;
}

.gare-tag,
.gare-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.52rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    line-height: 1.2;
    padding: 0.24rem 0.48rem;
    white-space: nowrap;
}

.gare-tag {
    background: color-mix(in srgb, var(--gare-tag-color) 12%, var(--md-default-bg-color));
    color: color-mix(in srgb, var(--gare-tag-color) 82%, var(--md-default-fg-color));
}

.gare-tag--organization {
    --gare-tag-color: #7c3aed;
}

.gare-tag--program {
    --gare-tag-color: #64748b;
}

.gare-tag--component {
    --gare-tag-color: #d97706;
}

.gare-tag--coldflow {
    --gare-tag-color: #0284c7;
}

.gare-tag--hotfire {
    --gare-tag-color: #dc2626;
}

.gare-status {
    background: transparent;
    border: 0.05rem solid currentColor;
}

.gare-status--scrubbed {
    color: #b45309;
}

.gare-status--partial {
    color: #c2410c;
}

.gare-status--successful {
    color: #15803d;
}

[data-md-color-scheme="slate"] .gare-status--scrubbed {
    color: #fbbf24;
}

[data-md-color-scheme="slate"] .gare-status--partial {
    color: #fb923c;
}

[data-md-color-scheme="slate"] .gare-status--successful {
    color: #4ade80;
}

.md-typeset ol.gare-timeline:not([hidden]) {
    column-gap: 2.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0 0 1rem;
    position: relative;
    row-gap: 0.85rem;
}

.gare-timeline::before {
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, #64748b 30%, transparent),
        color-mix(in srgb, #0284c7 65%, transparent) 38%,
        color-mix(in srgb, #dc2626 70%, transparent) 78%,
        color-mix(in srgb, #64748b 25%, transparent)
    );
    content: "";
    inset: 0 auto 0 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 0.12rem;
}

.md-typeset .gare-timeline > li {
    margin: 0;
}

.gare-timeline__year {
    clear: both;
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    padding: 1rem 0 0.35rem;
    position: relative;
    z-index: 2;
}

.gare-timeline__year:first-child {
    padding-top: 0;
}

.gare-timeline__year span {
    background: var(--md-default-bg-color);
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 999px;
    box-shadow: 0 0.2rem 0.65rem rgb(0 0 0 / 6%);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    padding: 0.42rem 0.75rem;
    text-transform: uppercase;
}

.gare-timeline__event {
    --gare-event-color: #64748b;
    box-sizing: border-box;
    clear: none;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    position: relative;
    width: auto;
}

.gare-timeline__event--left {
    float: none;
    grid-column: 1;
}

.gare-timeline__event--right {
    float: none;
    grid-column: 2;
    margin-top: 2.35rem !important;
}

.gare-timeline__event::before {
    background: color-mix(in srgb, var(--gare-event-color) 68%, var(--md-default-bg-color));
    content: "";
    height: 0.09rem;
    position: absolute;
    top: 1.39rem;
    width: 1.35rem;
    z-index: 2;
}

.gare-timeline__event--left::before {
    right: -1.35rem;
}

.gare-timeline__event--right::before {
    left: -1.35rem;
}

.gare-timeline__dot {
    background: var(--md-default-bg-color);
    border: 0.14rem solid var(--gare-event-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--md-default-bg-color) 88%, transparent);
    height: 0.7rem;
    position: absolute;
    top: 1.08rem;
    width: 0.7rem;
    z-index: 3;
}

.gare-timeline__event--left .gare-timeline__dot {
    right: -1.7rem;
}

.gare-timeline__event--right .gare-timeline__dot {
    left: -1.7rem;
}

.gare-timeline__event:has(.gare-tag--coldflow) {
    --gare-event-color: #0284c7;
}

.gare-timeline__event:has(.gare-tag--hotfire) {
    --gare-event-color: #dc2626;
}

.gare-timeline__event:has(.gare-tag--component) {
    --gare-event-color: #d97706;
}

.gare-timeline__event:has(.gare-tag--organization) {
    --gare-event-color: #7c3aed;
}

.gare-timeline__card {
    background: color-mix(in srgb, var(--md-default-bg-color) 96%, var(--md-default-fg-color));
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.55rem;
    box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 5%);
    overflow: hidden;
    padding: 0.85rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gare-timeline__card:hover,
.gare-timeline__card:focus-within {
    border-color: color-mix(in srgb, var(--md-accent-fg-color) 52%, var(--md-default-fg-color--lightest));
    box-shadow: 0 0.45rem 1.25rem rgb(0 0 0 / 10%);
    transform: translateY(-0.12rem);
}

.gare-timeline__body {
    padding: 0.8rem 0.85rem 0.85rem;
}

.gare-timeline__event--featured .gare-timeline__card {
    padding: 0;
}

.gare-timeline__media {
    background: #111;
    display: block;
    height: 9rem;
    overflow: hidden;
}

.md-typeset .gare-timeline__media img {
    display: block;
    height: 100%;
    margin: 0;
    max-height: none;
    object-fit: cover;
    transition: transform 240ms ease, filter 240ms ease;
    width: 100%;
}

.gare-timeline__media--portrait img {
    object-position: center 58%;
}

.gare-timeline__media--team img {
    object-position: center 18%;
}

.gare-timeline__media--team-low img {
    object-position: center 55%;
}

.gare-timeline__media--team-top img {
    object-position: center top;
}

.gare-timeline__card:hover .gare-timeline__media img,
.gare-timeline__card:focus-within .gare-timeline__media img {
    filter: saturate(1.06);
    transform: scale(1.018);
}

.gare-timeline__card time {
    color: var(--md-default-fg-color--light);
    display: block;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.gare-timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.48rem;
}

.md-typeset .gare-timeline__card h2 {
    font-size: 0.92rem;
    font-weight: 760;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 0.42rem;
}

.md-typeset .gare-timeline__card h2 a,
.md-typeset .gare-timeline__card h2 a:visited,
.md-typeset .gare-timeline__link,
.md-typeset .gare-timeline__link:visited,
.md-typeset .gare-timeline__media {
    background-image: none !important;
    text-decoration: none !important;
}

.md-typeset .gare-timeline__card h2 a,
.md-typeset .gare-timeline__card h2 a:visited {
    color: var(--md-default-fg-color) !important;
}

.md-typeset .gare-timeline__card h2 a:hover,
.md-typeset .gare-timeline__card h2 a:focus {
    color: var(--md-accent-fg-color) !important;
}

.md-typeset .gare-timeline__card p {
    color: var(--md-default-fg-color--light);
    font-size: 0.66rem;
    line-height: 1.55;
    margin: 0;
}

.md-typeset .gare-timeline__link,
.md-typeset .gare-timeline__link:visited {
    color: var(--md-accent-fg-color) !important;
    display: inline-flex;
    font-size: 0.6rem;
    font-weight: 750;
    gap: 0.25rem;
    margin-top: 0.65rem;
}

.md-typeset .gare-timeline__link:hover span,
.md-typeset .gare-timeline__link:focus span {
    transform: translateX(0.12rem);
}

.gare-timeline__link span {
    transition: transform 140ms ease;
}

.gare-timeline-note {
    background: color-mix(in srgb, var(--md-default-fg-color) 4%, transparent);
    border-left: 0.16rem solid var(--md-accent-fg-color);
    margin: 1.5rem 0 0;
    padding: 0.75rem 0.9rem;
}

.gare-timeline-note strong {
    font-size: 0.68rem;
}

.md-typeset .gare-timeline-note p {
    color: var(--md-default-fg-color--light);
    font-size: 0.62rem;
    margin: 0.25rem 0 0;
}

@media screen and (max-width: 50rem) {
    .md-typeset ol.gare-timeline:not([hidden]) {
        display: block;
    }

    .gare-timeline::before {
        left: 0.55rem;
        transform: none;
    }

    .gare-timeline__year {
        justify-content: flex-start;
        padding-left: 1.55rem;
    }

    .gare-timeline__event,
    .gare-timeline__event--left,
    .gare-timeline__event--right {
        float: none;
        grid-column: auto;
        margin-bottom: 0.8rem !important;
        margin-left: 1.7rem !important;
        margin-top: 0 !important;
        width: calc(100% - 1.7rem);
    }

    .gare-timeline__event::before,
    .gare-timeline__event--left::before,
    .gare-timeline__event--right::before {
        left: -1.15rem;
        right: auto;
        width: 1.15rem;
    }

    .gare-timeline__event--left .gare-timeline__dot,
    .gare-timeline__event--right .gare-timeline__dot {
        left: -1.48rem;
        right: auto;
    }

    .gare-timeline__card:hover,
    .gare-timeline__card:focus-within {
        transform: none;
    }

    .gare-timeline__media {
        height: clamp(8rem, 45vw, 12rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gare-timeline__card,
    .gare-timeline__media img,
    .gare-timeline__link span {
        transition: none;
    }
}

/* Compact reports linked from the site-wide timeline. */
.timeline-report-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.md-typeset .timeline-report-grid figure,
.md-typeset .timeline-report-hero {
    margin: 0;
}

.md-typeset .timeline-report-grid img,
.md-typeset .timeline-report-hero img {
    background: color-mix(in srgb, var(--md-default-fg-color) 5%, var(--md-default-bg-color));
    border-radius: 0.5rem;
    display: block;
    margin: 0;
    width: 100%;
}

.md-typeset .timeline-report-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.md-typeset .timeline-report-grid--plots img {
    aspect-ratio: 16 / 10;
    object-fit: contain;
}

.md-typeset .timeline-report-grid figcaption,
.md-typeset .timeline-report-hero figcaption {
    color: var(--md-default-fg-color--light);
    font-size: 0.6rem;
    margin-top: 0.4rem;
    text-align: center;
}

.md-typeset .timeline-report-hero {
    margin: 1.5rem auto;
    max-width: 48rem;
}

/* Program overview cards use the same surface in light and dark modes. */
.program-test-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.25rem 0 2rem;
}

.program-test-grid article {
    background: color-mix(in srgb, var(--md-default-bg-color) 96%, var(--md-default-fg-color));
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.55rem;
    box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 5%);
    overflow: hidden;
}

.program-test-grid article > a {
    background: #111;
    display: block;
    height: 10rem;
    overflow: hidden;
}

.md-typeset .program-test-grid img {
    display: block;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: filter 180ms ease, transform 180ms ease;
    width: 100%;
}

.md-typeset .program-test-grid .program-test-grid__media--team img {
    object-position: center 18%;
}

.program-test-grid article:hover img,
.program-test-grid article:focus-within img {
    filter: saturate(1.05);
    transform: scale(1.015);
}

.program-test-grid article > div {
    padding: 0.8rem;
}

.program-test-grid time {
    color: var(--md-default-fg-color--light);
    display: block;
    font-size: 0.56rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.md-typeset .program-test-grid h2 {
    font-size: 0.86rem;
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.md-typeset .program-test-grid h2 a,
.md-typeset .program-test-grid h2 a:visited {
    background-image: none !important;
    color: var(--md-default-fg-color) !important;
    text-decoration: none !important;
}

.md-typeset .program-test-grid p {
    color: var(--md-default-fg-color--light);
    font-size: 0.64rem;
    line-height: 1.5;
    margin: 0;
}

@media screen and (max-width: 42rem) {
    .timeline-report-grid,
    .program-test-grid {
        grid-template-columns: 1fr;
    }

    .program-test-grid article > a {
        height: clamp(9rem, 52vw, 13rem);
    }
}

/* Image row styling for side-by-side images */
.image-row {
    display: flex;
    justify-content: center; /* Centers the images within the row */
    gap: 20px; /* Adds space between the images */
}

.image-row img {
    max-width: 45%; /* Ensures the images are responsive */
    max-height: 400px; /* Limit height to 400px */
    height: auto; /* Maintains the aspect ratio */
    width: auto; /* Allow width to adjust to maintain aspect ratio */
}

/* Image caption styling */
.image-caption {
    text-align: center;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 16px;
    color: #666;
    font-size: 0.9em;
}

/* Image container styling */
.image-container {
    display: flex;
    justify-content: center;
}

.image-container img {
    max-width: 500px;
    width: 100%;
    border: none;
    max-height: 400px;
}

/* --- Fix header tooltip being blurred behind the header --- */

/* Put Zensical / Material tooltips above the header */
.md-tooltip,
.md-tooltip--inline,
[role="tooltip"] {
  z-index: 9999
}

/* Accessible header controls and site search. */
.mach-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mach-drawer-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

/* Match the theme's desktop navigation breakpoint for our button control. */
@media screen and (min-width: 37.5em) {
    .md-header__button.mach-drawer-toggle { display: none; }
}

.mach-search-dialog[hidden] {
    display: none;
}

.mach-search-dialog {
    align-items: flex-start;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: max(4.2rem, 12vh) 1rem 1rem;
    position: fixed;
    z-index: 10000;
}

.mach-search-dialog__backdrop {
    background: rgb(0 0 0 / 58%);
    border: 0;
    cursor: default;
    inset: 0;
    padding: 0;
    position: absolute;
}

.mach-search-dialog__panel {
    background: var(--md-default-bg-color);
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.35rem;
    box-shadow: 0 0.8rem 2.4rem rgb(0 0 0 / 26%);
    color: var(--md-default-fg-color);
    max-height: min(34rem, calc(100vh - 6rem));
    max-width: 38rem;
    overflow: auto;
    position: relative;
    width: 100%;
}

.mach-search-dialog__controls {
    align-items: center;
    border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--md-default-bg-color);
}

.mach-search-dialog__controls input {
    background: var(--md-code-bg-color);
    border: 0.05rem solid var(--md-default-fg-color--lightest);
    border-radius: 0.2rem;
    color: var(--md-default-fg-color);
    flex: 1;
    font: inherit;
    font-size: 0.85rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
}

.mach-search-dialog__controls input:focus {
    border-color: var(--md-accent-fg-color);
    outline: 0.12rem solid color-mix(in srgb, var(--md-accent-fg-color) 24%, transparent);
}

.mach-search-dialog__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--md-default-fg-color);
    cursor: pointer;
    display: flex;
    font-size: 1.3rem;
    height: 1.8rem;
    justify-content: center;
    line-height: 1;
    width: 1.8rem;
}

.mach-search-dialog__close:hover,
.mach-search-dialog__close:focus-visible {
    background: var(--md-default-fg-color--lightest);
}

.mach-search-dialog__status {
    color: var(--md-default-fg-color--light);
    font-size: 0.64rem;
    margin: 0;
    min-height: 1.9rem;
    padding: 0.45rem 0.75rem 0.25rem;
}

.mach-search-results {
    list-style: none;
    margin: 0;
    padding: 0 0.45rem 0.55rem;
}

.mach-search-results li {
    margin: 0;
}

.mach-search-results a {
    border-radius: 0.2rem;
    color: var(--md-default-fg-color);
    display: block;
    padding: 0.5rem 0.4rem;
    text-decoration: none;
}

.mach-search-results a:hover,
.mach-search-results a:focus-visible {
    background: var(--md-default-fg-color--lightest);
    color: var(--md-accent-fg-color);
    outline: none;
}

.mach-search-results__title {
    display: block;
    font-size: 0.76rem;
    font-weight: 650;
}

.mach-search-results__text {
    color: var(--md-default-fg-color--light);
    display: block;
    font-size: 0.61rem;
    line-height: 1.45;
    margin-top: 0.12rem;
}

body.mach-search-open {
    overflow: hidden;
}

@media screen and (max-width: 44.984375em) {
    .mach-search-dialog {
        padding: 3.4rem 0.45rem 0.45rem;
    }

    .mach-search-dialog__panel {
        max-height: calc(100vh - 3.85rem);
    }
}
/* Incoming instant-navigation HTML is DOMParser-parsed with scripting off.
   Its noscript descendants must remain inert in the live scripted document. */
html.js noscript {
  display: none !important;
}

/* Preserve technical context instead of treating every event as a panorama. */
.md-typeset .gare-timeline__media--full-frame {
  height: auto;
}

.md-typeset .gare-timeline__media--full-frame img {
  height: auto;
  object-fit: contain;
}

.md-typeset .gare-timeline__media--portrait-context {
  background: var(--md-default-bg-color);
  height: clamp(280px, 38vw, 420px);
}

.md-typeset .gare-timeline__media--portrait-context img {
  object-fit: contain;
}

.gare-timeline__card:is(:hover, :focus-within)
  :is(.gare-timeline__media--full-frame, .gare-timeline__media--portrait-context) img {
  transform: none;
}

.md-typeset .gare-timeline__media--heads-top {
  aspect-ratio: 16 / 9;
  height: auto;
}

.md-typeset .gare-timeline__media--heads-top img {
  object-position: center top;
}

.md-typeset .gare-timeline__media--heads-tall {
  aspect-ratio: 4 / 3;
  height: auto;
}

.md-typeset .gare-timeline__media--heads-tall img {
  object-position: center 18%;
}

.md-typeset .gare-timeline__media--flame-top img {
  object-position: center 12%;
}

.md-typeset .gare-timeline__media--bottom img {
  object-position: center bottom;
}

/* Timeline photos share the project-card treatment; summaries stay readable. */
.md-typeset .gare-timeline .gare-timeline__card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  transform: none;
  transition: none;
}

.md-typeset .gare-timeline__card:has(.gare-timeline__media) {
  display: grid;
  grid-template-areas: "media" "body";
  grid-template-columns: minmax(0, 1fr);
}

.md-typeset .gare-timeline__card > .gare-timeline__media {
  border-radius: 0;
  grid-area: media;
  isolation: isolate;
  position: relative;
}

.md-typeset .gare-timeline__card > .gare-timeline__media img {
  border-radius: 0;
}

.md-typeset .gare-timeline__media:not(:is(
  .gare-timeline__media--full-frame,
  .gare-timeline__media--portrait-context,
  .gare-timeline__media--heads-top,
  .gare-timeline__media--heads-tall
)) {
  height: clamp(200px, 24vw, 280px);
}

.md-typeset .gare-timeline__card > .gare-timeline__media::after {
  background: var(--mach-project-card-gradient);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.md-typeset .gare-timeline__caption {
  align-self: end;
  color: #fff;
  grid-area: media;
  padding: 0.8rem;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.md-typeset .gare-timeline__caption time {
  color: rgb(255 255 255 / 86%);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
  text-transform: none;
}

.md-typeset .gare-timeline__caption h2 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.md-typeset .gare-timeline__caption h2 a,
.md-typeset .gare-timeline__caption h2 a:visited,
.md-typeset .gare-timeline__caption h2 a:is(:hover, :focus) {
  color: #fff !important;
  display: inline-block;
  min-height: 24px;
  pointer-events: auto;
}

.md-typeset .gare-timeline__caption h2 a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.md-typeset .gare-timeline__body {
  grid-area: body;
  padding: 0.6rem 0 0;
}

/* Technical figures keep their complete, undimmed pixels and labelled axes. */
.md-typeset .gare-timeline__card:has(:is(
  .gare-timeline__media--full-frame,
  .gare-timeline__media--portrait-context
)) {
  grid-template-areas: "media" "caption" "body";
}

.md-typeset :is(
  .gare-timeline__media--full-frame,
  .gare-timeline__media--portrait-context
)::after {
  display: none;
}

.md-typeset .gare-timeline__card:has(:is(
  .gare-timeline__media--full-frame,
  .gare-timeline__media--portrait-context
)) > .gare-timeline__caption {
  align-self: stretch;
  background: #111;
  grid-area: caption;
}
