/*
|--------------------------------------------------------------------------
| THIS ONE'S IMPORTANT™
| Free Medical Courier Landing Page Template
|--------------------------------------------------------------------------
| Design language:
| Dispatch terminal × chain of custody × route manifest × cold-chain logger
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   01. ROOT
   ========================================================================== */

:root {
    --navy-950: #081521;
    --navy-900: #0d1e2d;
    --navy-800: #132a3f;
    --navy-700: #1b3a54;

    --paper: #f4f1e9;
    --paper-deep: #e9e5da;
    --paper-warm: #ddd7ca;

    --screen: #dce5e2;
    --screen-dark: #bac9c5;

    --ink: #172029;
    --ink-soft: #5e676c;

    --cyan: #39c2d7;
    --cyan-dark: #118ca1;

    --orange: #ff6d2e;
    --orange-deep: #c84b1c;

    --red: #b83c37;

    --yellow: #f0cb53;

    --white: #ffffff;

    --line-dark: rgba(15, 28, 38, 0.22);
    --line-light: rgba(255, 255, 255, 0.18);

    --font-display: "Instrument Serif", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", Consolas, monospace;

    --content: 1500px;

    --shadow:
        0 1.25rem 4rem rgba(8, 21, 33, 0.16);

    --fast: 160ms ease;
}


/* ==========================================================================
   02. RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--paper);
    color: var(--ink);

    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

section[id] {
    scroll-margin-top: 8rem;
}

::selection {
    background: var(--cyan);
    color: var(--navy-950);
}


/* ==========================================================================
   03. ACCESSIBILITY
   ========================================================================== */

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;

    padding: 0.75rem 1rem;

    background: var(--orange);
    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;

    transform: translateY(-200%);
    transition: transform var(--fast);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}


/* ==========================================================================
   04. SHARED TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.94;
}

h1 {
    margin-bottom: 1.25rem;

    font-size: clamp(4.5rem, 9vw, 9.8rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 1.5rem;

    font-size: clamp(3.4rem, 6vw, 6.8rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 0.6rem;

    font-size: clamp(1.8rem, 2.5vw, 2.7rem);
    letter-spacing: -0.025em;
}

h1 em,
h2 em {
    color: var(--orange);
    font-style: italic;
}

.record-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.32fr);
    gap: 4rem;
    align-items: end;

    margin-bottom: 4rem;
}

.record-heading h2 {
    max-width: 12ch;
    margin-bottom: 0;
}

.record-heading__code,
.temperature-record__header > div:first-child > p,
.operations-file__title > p:first-child,
.service-area-record__header > p,
.dispatch-request__header > div:first-child > p,
.route-closed__main > div:first-child > p {
    margin-bottom: 1.25rem;

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.record-heading__note {
    margin: 0 0 0.35rem;

    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.7;
}

.record-heading--dark {
    color: var(--white);
}

.record-heading--dark .record-heading__code {
    color: var(--cyan);
}

.record-heading--dark .record-heading__note {
    color: rgba(255, 255, 255, 0.58);
}


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */

.dispatch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3.5rem;
    padding: 0.9rem 1.35rem;

    border: 1px solid transparent;

    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform var(--fast),
        background-color var(--fast),
        border-color var(--fast),
        color var(--fast);
}

.dispatch-button:hover {
    transform: translateY(-2px);
}

.dispatch-button--signal {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--navy-950);
}

.dispatch-button--signal:hover {
    background: #ff824d;
    border-color: #ff824d;
}

.dispatch-button--line {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.44);
    color: var(--white);
}

.dispatch-button--line:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.dispatch-button--dark {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

.dispatch-button--dark:hover {
    background: var(--navy-950);
    border-color: var(--navy-950);
}


/* ==========================================================================
   06. DISPATCH HEADER
   ========================================================================== */

.dispatch-header {
    position: sticky;
    top: 0;
    z-index: 500;

    background: var(--paper);
    border-bottom: 1px solid var(--navy-950);
}

.dispatch-header__status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.62);
}

.dispatch-header__status p {
    margin: 0;
    padding: 0.42rem 1.25rem;

    border-right: 1px solid rgba(255, 255, 255, 0.13);

    font-family: var(--font-mono);
    font-size: 0.57rem;
    letter-spacing: 0.06em;
}

.dispatch-header__status p:last-child {
    border-right: 0;
    text-align: right;
}

.dispatch-header__status strong,
.dispatch-header__status a {
    margin-left: 0.5rem;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}

.dispatch-header__main {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) auto;
    gap: 2rem;
    align-items: center;

    width: min(100%, var(--content));
    min-height: 6rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.dispatch-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: fit-content;

    text-decoration: none;
}

.dispatch-brand__route {
    margin-bottom: 0.25rem;

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dispatch-brand__name {
    color: var(--navy-950);

    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.dispatch-brand__name span {
    color: var(--orange);
    font-family: var(--font-body);
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: top;
}

.dispatch-brand__tagline {
    margin-top: 0.2rem;

    color: var(--orange-deep);

    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
}

.dispatch-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.dispatch-nav a {
    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.dispatch-nav a:not(.dispatch-nav__request) {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
}

.dispatch-nav a:not(.dispatch-nav__request):hover {
    border-bottom-color: var(--orange);
}

.dispatch-nav__request {
    padding: 0.85rem 1rem;

    background: var(--navy-900);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;

    align-items: center;
    gap: 0.75rem;

    padding: 0;

    background: transparent;
    border: 0;

    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
}

.nav-toggle__marks {
    display: grid;
    gap: 0.32rem;
}

.nav-toggle__marks i {
    display: block;

    width: 1.6rem;
    height: 2px;

    background: currentColor;
}


/* ==========================================================================
   07. MASTER SHIPMENT RECORD
   ========================================================================== */

.shipment-record {
    position: relative;

    width: 100%;
    overflow: hidden;
}

.shipment-record::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(1rem, calc((100vw - var(--content)) / 2));

    z-index: 25;

    width: 1px;

    background: rgba(184, 60, 55, 0.28);

    content: "";
    pointer-events: none;
}


/* ==========================================================================
   08. RECORD 01 — OPEN ROUTE
   ========================================================================== */

.open-route {
    position: relative;

    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);

    min-height: max(50rem, calc(100vh - 7.5rem));

    overflow: hidden;

    background: var(--navy-950);
    color: var(--white);
}


/*
|--------------------------------------------------------------------------
| Hero photograph
|--------------------------------------------------------------------------
| The route photograph is deliberately part of the hero itself.
| It behaves like documentary evidence behind the dispatch interface.
|--------------------------------------------------------------------------
*/

.open-route__evidence {
    position: absolute;
    inset: 0 0 0 4.5rem;
    z-index: 0;

    margin: 0;

    background: var(--navy-950);
}

.open-route__evidence img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 50% center;
}


/*
|--------------------------------------------------------------------------
| Integrated hero shading
|--------------------------------------------------------------------------
*/

.open-route::after {
    position: absolute;
    inset: 0 0 0 4.5rem;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 21, 33, 0.98) 0%,
            rgba(8, 21, 33, 0.95) 28%,
            rgba(8, 21, 33, 0.78) 40%,
            rgba(8, 21, 33, 0.46) 50%,
            rgba(8, 21, 33, 0.20) 61%,
            rgba(8, 21, 33, 0.06) 74%,
            rgba(8, 21, 33, 0.00) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 21, 33, 0.04) 0%,
            rgba(8, 21, 33, 0.03) 60%,
            rgba(8, 21, 33, 0.30) 100%
        );

    content: "";
    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Vertical route rail
|--------------------------------------------------------------------------
*/

.record-rail {
    position: relative;
    z-index: 4;

    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding: 1.25rem 0;

    background: var(--orange);
    color: var(--navy-950);

    writing-mode: vertical-rl;

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.record-rail strong {
    font-size: 0.7rem;
}


/*
|--------------------------------------------------------------------------
| Hero content layer
|--------------------------------------------------------------------------
*/

.open-route__main {
    position: relative;
    z-index: 3;

    grid-column: 2;
    grid-row: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.28fr)
        minmax(19rem, 0.48fr);

    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;

    width: min(
        calc(100% - 3rem),
        calc(var(--content) - 4.5rem)
    );

    margin: 0 auto;

    padding:
        clamp(5rem, 8vw, 8rem)
        0
        clamp(5rem, 8vw, 7rem);
}

.open-route__identity {
    max-width: 55rem;
}

.record-label {
    display: flex;
    flex-wrap: wrap;

    width: fit-content;
    margin-bottom: 2.4rem;

    background: rgba(8, 21, 33, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.28);

    backdrop-filter: blur(8px);
}

.record-label span {
    padding: 0.55rem 0.8rem;

    border-right: 1px solid rgba(255, 255, 255, 0.25);

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.record-label span:last-child {
    border-right: 0;
    color: var(--orange);
}

.open-route__number {
    margin-bottom: -1.1rem;

    color: rgba(255, 255, 255, 0.09);

    font-family: var(--font-mono);
    font-size: clamp(6.5rem, 12vw, 11rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 0.68;
}

.open-route h1 {
    position: relative;
    z-index: 2;

    max-width: 7ch;
}

.open-route__tagline {
    margin-bottom: 1rem;

    color: var(--cyan);

    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-style: italic;
    line-height: 1;
}

.open-route__summary {
    max-width: 38rem;
    margin-bottom: 2rem;

    color: rgba(255, 255, 255, 0.84);

    font-size: 1.05rem;
}

.open-route__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


/*
|--------------------------------------------------------------------------
| Route board
|--------------------------------------------------------------------------
| Positioned low enough that it does not sit across the courier's face.
|--------------------------------------------------------------------------
*/

.route-board {
    position: relative;

    align-self: end;
    justify-self: end;

    width: 100%;
    max-width: 24.5rem;

    margin: 6rem -0.25rem 1.5rem auto;

    background: rgba(220, 229, 226, 0.96);
    border-top: 5px solid var(--cyan);

    box-shadow:
        0 1.5rem 4rem rgba(8, 21, 33, 0.34);

    color: var(--ink);

    backdrop-filter: blur(6px);
}

.route-board::after {
    position: absolute;
    right: -0.65rem;
    bottom: -0.65rem;

    width: 4.5rem;
    height: 4.5rem;

    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);

    content: "";
}

.route-board__header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    padding: 0.72rem 0.9rem;

    background: var(--navy-950);
    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
}

.route-board__header p {
    margin: 0;
}

.route-board__path {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;

    padding: 1.25rem 1rem;
}

.route-node {
    display: grid;
    gap: 0.2rem;
}

.route-node span {
    display: grid;
    place-items: center;

    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.45rem;

    background: var(--navy-900);
    border-radius: 50%;

    color: var(--white);

    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
}

.route-node--destination span {
    background: var(--orange);
    color: var(--navy-950);
}

.route-node strong {
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.04em;
}

.route-node small {
    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.54rem;
}

.route-line {
    position: relative;
    height: 3rem;
}

.route-line::before {
    position: absolute;
    top: 1rem;
    right: 0;
    left: 0;

    height: 2px;

    background: rgba(23, 32, 41, 0.18);

    content: "";
}

.route-line__progress {
    position: absolute;
    top: 1rem;
    left: 0;

    width: 68%;
    height: 2px;

    background: var(--cyan);
}

.route-line__progress::after {
    position: absolute;
    top: 50%;
    right: -0.4rem;

    width: 0.75rem;
    height: 0.75rem;

    background: var(--orange);
    border-radius: 50%;

    content: "";

    transform: translateY(-50%);
}

.route-line small {
    position: absolute;
    right: 0;
    bottom: 0;

    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.48rem;
}

.route-board__data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    margin: 0;

    border-top: 1px solid var(--line-dark);
}

.route-board__data div {
    padding: 0.72rem 0.85rem;

    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.route-board__data div:nth-child(2n) {
    border-right: 0;
}

.route-board__data dt {
    margin-bottom: 0.25rem;

    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-board__data dd {
    margin: 0;

    color: var(--navy-950);

    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Photograph evidence caption
|--------------------------------------------------------------------------
*/

.open-route__evidence figcaption {
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    z-index: 3;

    display: flex;
    gap: 1.5rem;

    padding: 0.65rem 0.8rem;

    background: rgba(8, 21, 33, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: rgba(255, 255, 255, 0.76);

    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;

    backdrop-filter: blur(8px);
}

.record-barcode {
    position: absolute;
    right: 2rem;
    top: 2rem;
    z-index: 3;

    width: 10rem;
    height: 1.8rem;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.64) 0,
            rgba(255, 255, 255, 0.64) 2px,
            transparent 2px,
            transparent 5px,
            rgba(255, 255, 255, 0.64) 5px,
            rgba(255, 255, 255, 0.64) 9px,
            transparent 9px,
            transparent 12px
        );

    opacity: 0.55;
}

/* ==========================================================================
   09. RECORD 02 — LIVE MANIFEST
   ========================================================================== */

.manifest-record {
    padding: 8rem max(2rem, calc((100vw - var(--content)) / 2));

    background:
        linear-gradient(
            rgba(15, 28, 38, 0.025) 1px,
            transparent 1px
        ),
        var(--paper);

    background-size: 100% 38px;

    border-bottom: 1px solid var(--navy-950);
}

.manifest-table {
    border-top: 4px solid var(--navy-950);
    border-left: 1px solid var(--navy-950);
}

.manifest-row {
    display: grid;
    grid-template-columns:
        0.5fr
        1.8fr
        1fr
        1.15fr
        1.05fr
        0.8fr;

    min-height: 5rem;
}

.manifest-row > * {
    display: flex;
    align-items: center;

    padding: 1rem;

    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.manifest-row > span {
    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.manifest-row strong {
    color: var(--navy-950);

    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
}

.manifest-row--header {
    min-height: auto;

    background: var(--navy-950);
    color: var(--white);
}

.manifest-row--header > * {
    padding: 0.7rem 1rem;

    border-color: rgba(255, 255, 255, 0.15);

    color: rgba(255, 255, 255, 0.67);

    font-family: var(--font-mono);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.manifest-row:nth-child(odd):not(.manifest-row--header) {
    background: rgba(255, 255, 255, 0.38);
}

.manifest-row:hover:not(.manifest-row--header) {
    background: rgba(57, 194, 215, 0.07);
}

.manifest-status {
    color: var(--cyan-dark) !important;
    font-weight: 700;
}

.manifest-warning {
    display: grid;
    grid-template-columns: minmax(12rem, 0.3fr) minmax(0, 1fr);
    gap: 2rem;

    margin-top: 2rem;
    padding: 1rem 1.2rem;

    background: rgba(184, 60, 55, 0.08);
    border-left: 5px solid var(--red);
}

.manifest-warning strong {
    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}

.manifest-warning p {
    margin: 0;

    color: var(--ink-soft);
    font-size: 0.88rem;
}


/* ==========================================================================
   10. RECORD 03 — CHAIN OF CUSTODY
   ========================================================================== */

.custody-record {
    padding: 8rem max(2rem, calc((100vw - var(--content)) / 2));

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        var(--navy-950);

    background-size: 48px 48px;

    color: var(--white);
}

.custody-line {
    position: relative;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin: 0;
    padding: 0;

    list-style: none;
}

.custody-line::before {
    position: absolute;
    top: 4.7rem;
    right: 0;
    left: 0;

    height: 2px;

    background: rgba(57, 194, 215, 0.55);

    content: "";
}

.custody-line li {
    position: relative;
    z-index: 1;

    padding-right: 2rem;
}

.custody-line__time {
    display: block;

    margin-bottom: 1.5rem;

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.custody-line__node {
    display: grid;
    place-items: center;

    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 2rem;

    background: var(--navy-950);
    border: 2px solid var(--cyan);
    border-radius: 50%;

    color: var(--orange);

    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
}

.custody-line__code {
    margin-bottom: 0.9rem;

    color: var(--orange);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.custody-line h3 {
    max-width: 8ch;
    color: var(--white);
}

.custody-line li > div > p:last-child {
    max-width: 18rem;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}


/* ==========================================================================
   11. RECORD 04 — ROUTE WINDOW
   ========================================================================== */

.route-window {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(25rem, 0.55fr);

    min-height: 40rem;

    background: var(--paper-deep);
    border-bottom: 1px solid var(--navy-950);
}

.route-window__image {
    position: relative;

    margin: 0;

    background: var(--navy-950);
}

.route-window__image::before {
    position: absolute;
    inset: 1rem;
    z-index: 2;

    border: 1px solid rgba(255, 255, 255, 0.35);

    content: "";
    pointer-events: none;
}

.route-window__image img {
    width: 100%;
    height: 100%;
    min-height: 40rem;

    object-fit: cover;
    object-position: center center;
}

.route-window__image figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 3;

    display: flex;
    justify-content: space-between;

    padding: 0.7rem 0.9rem;

    background: rgba(8, 21, 33, 0.88);
    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.57rem;
    font-weight: 700;
}

.route-window__log {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(3.5rem, 5vw, 5rem);
}

.route-window__topline {
    display: flex;
    justify-content: space-between;

    margin-bottom: 3rem;
    padding-bottom: 0.75rem;

    border-bottom: 2px solid var(--navy-950);

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.route-window h2 {
    max-width: 8ch;
}

.route-window__log > p {
    max-width: 34rem;

    color: var(--ink-soft);
}

.route-window__checklist {
    margin: 2.5rem 0 0;

    border-top: 1px solid var(--navy-950);
}

.route-window__checklist div {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;

    padding: 1rem 0;

    border-bottom: 1px solid var(--line-dark);
}

.route-window__checklist dt {
    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
}

.route-window__checklist dd {
    margin: 0;

    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
}


/* ==========================================================================
   12. RECORD 05 — TEMPERATURE LOG
   ========================================================================== */

.temperature-record {
    padding: 8rem max(2rem, calc((100vw - var(--content)) / 2));

    background:
        linear-gradient(
            rgba(19, 42, 63, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(19, 42, 63, 0.035) 1px,
            transparent 1px
        ),
        var(--screen);

    background-size: 40px 40px;

    border-bottom: 1px solid var(--navy-950);
}

.temperature-record__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
    align-items: end;

    margin-bottom: 4rem;
}

.temperature-record__header h2 {
    max-width: 11ch;
    margin-bottom: 0;
}

.temperature-record__readout {
    min-width: 17rem;
    padding: 1rem 1.25rem;

    background: var(--navy-950);
    border-top: 5px solid var(--cyan);

    color: var(--white);
}

.temperature-record__readout span {
    display: block;

    margin-bottom: 0.25rem;

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.temperature-record__readout strong {
    display: block;

    font-family: var(--font-mono);
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 1;
}

.temperature-record__body {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(25rem, 0.92fr);

    background: var(--navy-950);
    border: 1px solid var(--navy-950);

    box-shadow:
        0 1.25rem 3rem rgba(8, 21, 33, 0.12);
}

.temperature-record__evidence {
    position: relative;

    min-height: 24rem;
    margin: 0;

    overflow: hidden;

    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.temperature-record__evidence::after {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8, 21, 33, 0.02) 55%,
            rgba(8, 21, 33, 0.42) 100%
        );

    content: "";
    pointer-events: none;
}

.temperature-record__evidence img {
    width: 100%;
    height: 100%;
    min-height: 24rem;

    object-fit: cover;
    object-position: center center;
}

.temperature-record__evidence figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.7rem 0.85rem;

    background: rgba(8, 21, 33, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;

    backdrop-filter: blur(6px);
}

.temperature-log {
    display: grid;
    grid-template-columns: 4rem 1fr;

    min-height: 22rem;

    background: var(--navy-950);
    border: 0;
}

.temperature-log__axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 1.5rem 0.8rem 3rem;

    border-right: 1px solid rgba(255, 255, 255, 0.14);

    color: rgba(255, 255, 255, 0.48);

    font-family: var(--font-mono);
    font-size: 0.56rem;
}

.temperature-log__graph {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );

    background-size: 100% 25%, 10% 100%;
}

.temperature-log__safe-zone {
    position: absolute;
    top: 28%;
    right: 0;
    bottom: 27%;
    left: 0;

    background: rgba(57, 194, 215, 0.07);

    border-top: 1px dashed rgba(57, 194, 215, 0.45);
    border-bottom: 1px dashed rgba(57, 194, 215, 0.45);
}

.temperature-log svg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 2.7rem;
    left: 0;

    width: 100%;
    height: calc(100% - 2.7rem);
}

.temperature-log polyline {
    stroke: var(--orange);
    stroke-width: 3;
}

.temperature-log__times {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    justify-content: space-between;

    padding: 0.8rem 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    color: rgba(255, 255, 255, 0.5);

    font-family: var(--font-mono);
    font-size: 0.54rem;
}

.temperature-record__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: start;

    padding-top: 1.5rem;
}

.temperature-record__footer p {
    max-width: 48rem;
    margin: 0;

    color: var(--ink-soft);
    font-size: 0.86rem;
}

.temperature-record__footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.temperature-record__footer li {
    padding: 0.55rem 0.7rem;

    background: var(--paper);
    border: 1px solid var(--navy-950);

    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
}


/* ==========================================================================
   13. RECORD 06 — OPERATIONS FILE
   ========================================================================== */

.operations-file {
    display: grid;
    grid-template-columns: minmax(22rem, 0.72fr) minmax(0, 1.28fr);

    padding: 0;

    background: var(--paper);
    border-bottom: 1px solid var(--navy-950);
}

.operations-file__title {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        7rem
        clamp(
            3rem,
            calc((100vw - var(--content)) / 2),
            6rem
        );

    background: var(--navy-900);
    color: var(--white);
}

.operations-file__title > p:first-child {
    color: var(--cyan);
}

.operations-file__title h2 {
    max-width: 8ch;
}

.operations-file__intro {
    max-width: 30rem;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.62);
}

.operations-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    margin: 0;
}

.operations-fields div {
    min-height: 13rem;
    padding: 2rem;

    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.operations-fields div:nth-child(2n) {
    border-right: 0;
}

.operations-fields dt {
    margin-bottom: 2rem;

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.operations-fields dd {
    max-width: 32rem;
    margin: 0;

    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.2;
}


/* ==========================================================================
   14. RECORD 07 — SERVICE AREA
   ========================================================================== */

.service-area-record {
    padding: 8rem max(2rem, calc((100vw - var(--content)) / 2));

    background: var(--paper-deep);
    border-bottom: 1px solid var(--navy-950);
}

.service-area-record__header {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: end;

    margin-bottom: 4rem;
}

.service-area-record__header h2 {
    max-width: 8ch;
    margin-bottom: 0;
}

.dispatch-matrix {
    border-top: 4px solid var(--navy-950);
    border-left: 1px solid var(--navy-950);
}

.dispatch-matrix > div {
    display: grid;
    grid-template-columns:
        0.7fr
        1.6fr
        1fr
        0.8fr;
}

.dispatch-matrix > div > * {
    display: flex;
    align-items: center;

    min-height: 5rem;
    padding: 1rem;

    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.dispatch-matrix > div > span {
    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.64rem;
}

.dispatch-matrix > div > strong {
    color: var(--navy-950);

    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

.dispatch-matrix__header > * {
    min-height: auto !important;

    background: var(--navy-950);

    color: rgba(255, 255, 255, 0.62) !important;

    font-family: var(--font-mono) !important;
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.matrix-status {
    color: var(--cyan-dark) !important;
    font-weight: 700;
}

.matrix-status--verify {
    color: var(--orange-deep) !important;
}

.service-area-record__footer {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;

    margin-top: 2rem;
}

.service-area-record__footer p {
    max-width: 44rem;
    margin: 0;

    color: var(--ink-soft);
}


/* ==========================================================================
   15. RECORD 08 — DISPATCH REQUEST
   ========================================================================== */

.dispatch-request {
    padding: 8rem max(2rem, calc((100vw - var(--content)) / 2));

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        var(--navy-950);

    background-size: 44px 44px;

    color: var(--white);
}

.dispatch-request__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.42fr);
    gap: 5rem;
    align-items: end;

    margin-bottom: 4rem;
}

.dispatch-request__header > div:first-child > p {
    color: var(--cyan);
}

.dispatch-request__header h2 {
    max-width: 10ch;
    margin-bottom: 0;
}

.dispatch-request__warning {
    padding: 1.2rem;

    background: rgba(184, 60, 55, 0.12);
    border-left: 4px solid var(--red);
}

.dispatch-request__warning strong {
    display: block;
    margin-bottom: 0.5rem;

    color: #ff8f89;

    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}

.dispatch-request__warning p {
    margin: 0;

    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
}

.route-request-form {
    background: var(--paper);
    border-top: 5px solid var(--orange);

    color: var(--ink);

    box-shadow: var(--shadow);
}

.route-request-form__route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;

    background: var(--screen);
    border-bottom: 2px solid var(--navy-950);
}

.route-location {
    padding: 1.4rem 1.5rem;
}

.route-location label {
    display: block;

    margin-bottom: 0.65rem;

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.route-location input {
    width: 100%;

    padding: 0.6rem 0;

    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--navy-950);
    border-radius: 0;

    color: var(--navy-950);

    font-family: var(--font-display);
    font-size: 1.65rem;

    outline: 0;
}

.route-location input:focus {
    border-bottom-color: var(--orange);
}

.route-request-form__arrow {
    display: grid;
    place-items: center;

    width: 5rem;

    background: var(--navy-950);
    color: var(--orange);

    font-family: var(--font-mono);
    font-size: 2rem;
}

.route-request-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.form-field {
    padding: 1.3rem 1.5rem;

    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.form-field:nth-child(2n) {
    border-right: 0;
}

.form-field--wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.form-field--honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.form-field label {
    display: block;

    margin-bottom: 0.55rem;

    color: var(--red);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 0.75rem 0;

    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--paper-warm);
    border-radius: 0;

    color: var(--ink);

    outline: 0;
}

.form-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: var(--orange);
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.route-location input::placeholder {
    color: #8d9595;
}

.route-request-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;

    padding: 1.4rem 1.5rem;

    background: var(--paper-deep);
}

.route-request-form__footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;

    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.route-request-form__status {
    margin: 0;
    padding: 0 1.5rem 1.5rem;

    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.route-request-form__status:empty {
    display: none;
}


/* ==========================================================================
   16. RECORD 09 — ROUTE CLOSED
   ========================================================================== */

/*
|--------------------------------------------------------------------------
| Completed delivery record
|--------------------------------------------------------------------------
| The delivery photograph is part of the record itself.
| It is intentionally NOT rendered as a separate image panel.
|--------------------------------------------------------------------------
*/

.route-closed {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: clamp(45rem, 58vw, 56rem);

    padding:
        clamp(2rem, 4vw, 4rem)
        max(2rem, calc((100vw - var(--content)) / 2));

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(8, 21, 33, 0.01) 0%,
            rgba(8, 21, 33, 0.01) 44%,
            rgba(8, 21, 33, 0.12) 64%,
            rgba(8, 21, 33, 0.54) 100%
        ),
        url("../images/medical-courier-facility-delivery.webp")
        center 44% / cover
        no-repeat;

    color: var(--ink);
}


/*
|--------------------------------------------------------------------------
| Operational frame
|--------------------------------------------------------------------------
*/

.route-closed::before {
    position: absolute;
    inset: 1.25rem;
    z-index: 1;

    border: 1px solid rgba(255, 255, 255, 0.38);

    content: "";
    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Proof label
|--------------------------------------------------------------------------
*/

.route-closed__proof {
    position: absolute;

    top: 2rem;
    left: max(2rem, calc((100vw - var(--content)) / 2));

    z-index: 3;

    display: flex;
    gap: 1.5rem;

    padding: 0.65rem 0.85rem;

    background: rgba(8, 21, 33, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;

    backdrop-filter: blur(6px);
}


/*
|--------------------------------------------------------------------------
| Route closed stamp
|--------------------------------------------------------------------------
*/

.route-closed__stamp {
    position: absolute;

    top: 2rem;
    right: max(2rem, calc((100vw - var(--content)) / 2));

    z-index: 4;

    padding: 0.8rem 1.2rem;

    background: rgba(244, 241, 233, 0.94);
    border: 4px solid var(--red);

    color: var(--red);

    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.08em;

    box-shadow:
        0 0.75rem 2rem rgba(8, 21, 33, 0.14);

    transform: rotate(-4deg);
}


/*
|--------------------------------------------------------------------------
| Delivery receipt
|--------------------------------------------------------------------------
| This card sits directly over the lower portion of the photograph.
|--------------------------------------------------------------------------
*/

.route-closed__main {
    position: relative;
    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(20rem, 0.85fr);

    gap: clamp(3rem, 6vw, 6rem);
    align-items: end;

    width: min(92%, 1320px);

    margin: 0 auto;

    padding:
        clamp(2.25rem, 4vw, 3.4rem);

    background: rgba(244, 241, 233, 0.72);

    border-top: 5px solid var(--orange);
    border-right: 1px solid var(--navy-950);
    border-bottom: 1px solid var(--navy-950);
    border-left: 1px solid var(--navy-950);

    box-shadow:
        0 1.5rem 4rem rgba(8, 21, 33, 0.30);

    backdrop-filter: blur(1px);
}

.route-closed__main::before {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 56%;

    width: 1px;

    background: var(--line-dark);

    content: "";
}

.route-closed__main h2 {
    max-width: 8ch;
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Receipt fields
|--------------------------------------------------------------------------
*/

.route-closed__handoff dl {
    margin: 0 0 2rem;

    border-top: 2px solid var(--navy-950);
}

.route-closed__handoff dl div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;

    padding: 0.9rem 0;

    border-bottom: 1px solid var(--line-dark);
}

.route-closed__handoff dt {
    color: var(--ink-soft);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

.route-closed__handoff dd {
    margin: 0;

    color: var(--navy-950);

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Record 09 tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 960px) {

    .route-closed {
        min-height: 50rem;

        background-position: 55% center;
    }

    .route-closed__main {
        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .route-closed__main::before {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Record 09 mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .route-closed {
        min-height: 48rem;

        padding:
            1rem
            1rem
            2rem;

        background-position: 59% center;
    }

    .route-closed::before {
        inset: 0.65rem;
    }

    .route-closed__proof {
        top: 1rem;
        left: 1rem;

        flex-direction: column;
        gap: 0.2rem;

        font-size: 0.45rem;
    }

    .route-closed__stamp {
        top: 5.5rem;
        right: 1rem;

        font-size: 0.86rem;
    }

    .route-closed__main {
        width: 100%;

        padding:
            1.75rem
            1.25rem;
    }

}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--navy-950);
    color: var(--white);
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(20rem, 1.4fr) minmax(14rem, 0.8fr) minmax(12rem, 0.7fr);
    gap: 4rem;

    width: min(100%, var(--content));
    margin: 0 auto;
    padding: 4rem 2rem;
}

.site-footer__code,
.site-footer__dispatch p {
    margin-bottom: 0.65rem;

    color: var(--cyan);

    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-footer__brand {
    margin-bottom: 0.55rem;

    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.site-footer__brand span {
    color: var(--orange);
    font-family: var(--font-body);
    font-size: 0.45em;
    vertical-align: top;
}

.site-footer__tagline {
    margin: 0;

    color: var(--orange);

    font-family: var(--font-display);
    font-size: 1.18rem;
    font-style: italic;
}

.site-footer__dispatch,
.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.site-footer__dispatch a,
.site-footer__nav a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

.site-footer__dispatch a:hover,
.site-footer__nav a:hover {
    color: var(--cyan);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    width: min(100%, var(--content));
    margin: 0 auto;
    padding: 1rem 2rem;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.42);

    font-family: var(--font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.05em;
}

.site-footer__bottom p {
    margin: 0;
}


/* ==========================================================================
   18. LAPTOP
   ========================================================================== */

@media (max-width: 1200px) {

    .open-route__main {
        grid-template-columns: 1fr 0.85fr;
        gap: 3rem;
    }

    .route-window {
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(24rem, 0.55fr);

        min-height: 0;
    }

    .route-window__image img {
        min-height: 34rem;
        object-position: center center;
    }

    .route-window__log {
        padding: 2.75rem 2.5rem;
    }

    .route-window h2 {
        font-size: clamp(3.3rem, 5.1vw, 4.6rem);
    }

    .route-window__topline {
        margin-bottom: 2rem;
    }

    .route-window__checklist {
        margin-top: 1.75rem;
    }

    .route-window__checklist div {
        padding: 0.75rem 0;
    }

    .operations-file {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .operations-file__title {
        padding-right: 3rem;
        padding-left: 3rem;
    }

}


/* ==========================================================================
   19. TABLET / MOBILE NAV
   ========================================================================== */

@media (max-width: 960px) {

    .dispatch-header__status {
        grid-template-columns: 1fr 1fr;
    }

    .dispatch-header__status p:nth-child(2) {
        display: none;
    }

    .dispatch-header__main {
        min-height: 5rem;
        padding: 0 1.5rem;
    }

    .dispatch-brand__tagline {
        display: none;
    }

    .nav-toggle {
        display: flex;
        justify-self: end;
    }

    .dispatch-nav {
        position: fixed;
        top: calc(5rem + 1.55rem);
        right: 0;
        left: 0;

        display: grid;
        gap: 0;

        padding: 0 1.5rem 1.5rem;

        background: var(--paper);
        border-bottom: 1px solid var(--navy-950);

        opacity: 0;
        pointer-events: none;
        transform: translateY(-1rem);

        transition:
            opacity var(--fast),
            transform var(--fast);
    }

    body.nav-open .dispatch-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .dispatch-nav a {
        padding: 1rem 0;

        border-bottom: 1px solid var(--line-dark) !important;
    }

    .dispatch-nav__request {
        margin-top: 1rem;
        padding: 1rem !important;

        text-align: center;
    }

    .open-route {
        grid-template-columns: 3.5rem minmax(0, 1fr);

        min-height: max(
            48rem,
            calc(100vh - 6.55rem)
        );
    }

    .open-route__evidence {
        inset: 0 0 0 3.5rem;
    }

    .open-route::after {
        inset: 0 0 0 3.5rem;

        background:
            linear-gradient(
                90deg,
                rgba(8, 21, 33, 0.97) 0%,
                rgba(8, 21, 33, 0.90) 38%,
                rgba(8, 21, 33, 0.52) 60%,
                rgba(8, 21, 33, 0.14) 78%,
                rgba(8, 21, 33, 0.02) 100%
            ),
            linear-gradient(
                180deg,
                rgba(8, 21, 33, 0.04),
                rgba(8, 21, 33, 0.30)
            );
    }

    .open-route__evidence img {
        object-position: 52% center;
    }

    .open-route__main {
        grid-template-columns: 1fr;

        width: calc(100% - 3rem);

        padding:
            6rem
            0
            4rem;
    }

    .open-route__identity {
        max-width: 42rem;
    }

    .route-board {
        justify-self: end;

        width: min(100%, 31rem);
        max-width: 31rem;

        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .open-route__evidence figcaption {
        right: 1rem;
        bottom: 1rem;
    }
    .record-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .manifest-row {
        grid-template-columns:
            0.45fr
            1.6fr
            1fr
            0.9fr;
    }

    .manifest-row > *:nth-child(4),
    .manifest-row > *:nth-child(5) {
        display: none;
    }

    .custody-line {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }

    .custody-line::before {
        display: none;
    }

    .route-window {
        grid-template-columns: 1fr;
    }

    .route-window__image img {
        min-height: 34rem;
    }

    .route-window__log {
        padding: 5rem 2rem;
    }

    .temperature-record__body {
        grid-template-columns: 1fr;
    }

    .temperature-record__evidence {
        min-height: 30rem;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .temperature-record__evidence img {
        min-height: 30rem;
    }

    .temperature-record__header {
        grid-template-columns: 1fr;
    }

    .temperature-record__readout {
        width: fit-content;
    }

    .temperature-record__footer {
        grid-template-columns: 1fr;
    }

    .temperature-record__footer ul {
        justify-content: flex-start;
    }

    .operations-file {
        grid-template-columns: 1fr;
    }

    .operations-file__title {
        padding: 5rem 2rem;
    }

    .service-area-record__header {
        display: block;
    }

    .dispatch-request__header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    

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

    .site-footer__main > div:first-child {
        grid-column: 1 / -1;
    }

}


/* ==========================================================================
   20. MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: clamp(4rem, 19vw, 5.7rem);
    }

    h2 {
        font-size: clamp(3rem, 14vw, 4.2rem);
    }

    .shipment-record::before {
        display: none;
    }

    .dispatch-header__status {
        grid-template-columns: 1fr;
    }

    .dispatch-header__status p:first-child {
        border-right: 0;
    }

    .dispatch-header__status p:last-child {
        display: none;
    }

    .dispatch-header__main {
        min-height: 4.6rem;
        padding: 0 1rem;
    }

    .dispatch-brand__route {
        display: none;
    }

    .dispatch-brand__name {
        font-size: 1.4rem;
    }

    .dispatch-nav {
        top: calc(4.6rem + 1.55rem);
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .open-route {
        display: block;

        min-height: auto;

        padding-top: 2.7rem;
    }

    .open-route__evidence {
        inset: 0;
    }

    .open-route::after {
        inset: 0;

        background:
            linear-gradient(
                180deg,
                rgba(8, 21, 33, 0.66) 0%,
                rgba(8, 21, 33, 0.86) 35%,
                rgba(8, 21, 33, 0.97) 66%,
                rgba(8, 21, 33, 0.99) 100%
            );
    }

    .open-route__evidence img {
        object-position: 62% center;
    }

    .record-rail {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 5;

        flex-direction: row;

        height: 2.7rem;
        padding: 0 1rem;

        writing-mode: horizontal-tb;
    }

    .open-route__main {
        position: relative;
        z-index: 3;

        display: grid;
        grid-template-columns: 1fr;

        width: auto;
        margin: 0;

        padding:
            5rem
            1rem
            5.5rem;
    }

    .record-label {
        display: grid;

        width: 100%;
    }

    .record-label span {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .record-label span:last-child {
        border-bottom: 0;
    }

    .open-route__number {
        margin-bottom: -0.65rem;

        font-size: 7rem;
    }

    .open-route h1 {
        max-width: 7ch;
    }

    .open-route__actions {
        display: grid;
    }

    .route-board {
        width: 100%;
        max-width: none;

        margin: 2rem 0 0;
    }

    .route-board__path {
        grid-template-columns: 1fr;
    }

    .route-line {
        height: 6rem;
        margin-left: 1.1rem;
    }

    .route-line::before {
        top: 0;
        bottom: 0;
        left: 0;

        width: 2px;
        height: 100%;
    }

    .route-line__progress {
        top: 0;
        left: 0;

        width: 2px;
        height: 65%;
    }

    .route-line__progress::after {
        top: auto;
        right: auto;
        bottom: -0.4rem;
        left: 50%;

        transform: translateX(-50%);
    }

    .route-line small {
        right: auto;
        bottom: 2.4rem;
        left: 1rem;
    }

    .route-board__data {
        grid-template-columns: 1fr;
    }

    .route-board__data div {
        border-right: 0;
    }

    .open-route__evidence figcaption {
        right: 1rem;
        bottom: 0.8rem;
        left: 1rem;

        justify-content: space-between;

        font-size: 0.47rem;
    }

    .record-barcode {
        display: none;
    }
    .manifest-record,
    .custody-record,
    .temperature-record,
    .service-area-record,
    .dispatch-request {
        padding: 5rem 1rem;
    }

    .manifest-table {
        border: 0;
    }

    .manifest-row {
        display: block;

        margin-bottom: 1rem;

        background: rgba(255, 255, 255, 0.42);
        border: 1px solid var(--navy-950);
    }

    .manifest-row--header {
        display: none;
    }

    .manifest-row > * {
        display: grid !important;
        grid-template-columns: 8rem 1fr;
        gap: 1rem;

        min-height: auto;

        padding: 0.8rem 1rem;

        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .manifest-row > *::before {
        color: var(--red);

        font-family: var(--font-mono);
        font-size: 0.54rem;
        font-weight: 700;
    }

    .manifest-row > *:nth-child(1)::before {
        content: "CODE";
    }

    .manifest-row > *:nth-child(2)::before {
        content: "SHIPMENT";
    }

    .manifest-row > *:nth-child(3)::before {
        content: "PRIORITY";
    }

    .manifest-row > *:nth-child(4)::before {
        content: "HANDLING";
    }

    .manifest-row > *:nth-child(5)::before {
        content: "ROUTE";
    }

    .manifest-row > *:nth-child(6)::before {
        content: "STATUS";
    }

    .manifest-warning {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .custody-line {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .custody-line li {
        display: grid;
        grid-template-columns: 3.5rem 1fr;
        gap: 1rem;

        padding: 0 0 3rem;
    }

    .custody-line__time {
        grid-column: 1 / -1;

        margin-bottom: 0.25rem;
    }

    .custody-line__node {
        margin: 0;
    }

    .custody-line li:not(:last-child)::after {
        position: absolute;
        top: 5.3rem;
        bottom: 0;
        left: 1.55rem;

        width: 2px;

        background: rgba(57, 194, 215, 0.5);

        content: "";
    }

    .route-window__image img {
        min-height: 27rem;
    }

    .route-window__image figcaption {
        flex-direction: column;
        gap: 0.25rem;
    }

    .route-window__log {
        padding: 4rem 1rem;
    }

    .temperature-record__readout {
        width: 100%;
    }

    .temperature-record__evidence {
        min-height: 22rem;
    }

    .temperature-record__evidence img {
        min-height: 22rem;
        object-position: center center;
    }

    .temperature-record__evidence figcaption {
        flex-direction: column;
        gap: 0.25rem;

        font-size: 0.47rem;
    }

    .temperature-log {
        grid-template-columns: 3rem 1fr;
        min-height: 18rem;
    }

    .temperature-log__times {
        font-size: 0.47rem;
    }

    .operations-file__title {
        padding: 4rem 1rem;
    }

    .operations-fields {
        grid-template-columns: 1fr;
    }

    .operations-fields div {
        min-height: 0;
        border-right: 0;
    }

    .dispatch-matrix {
        border: 0;
    }

    .dispatch-matrix__header {
        display: none !important;
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) {
        display: block;

        margin-bottom: 1rem;

        border: 1px solid var(--navy-950);
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > * {
        display: grid;
        grid-template-columns: 8rem 1fr;
        gap: 1rem;

        min-height: auto;

        border-right: 0;
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > *:nth-child(1)::before {
        content: "ZONE";
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > *:nth-child(2)::before {
        content: "COVERAGE";
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > *:nth-child(3)::before {
        content: "ROUTE";
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > *:nth-child(4)::before {
        content: "STATUS";
    }

    .dispatch-matrix > div:not(.dispatch-matrix__header) > *::before {
        color: var(--red);

        font-family: var(--font-mono);
        font-size: 0.52rem;
        font-weight: 700;
    }

    .service-area-record__footer {
        display: grid;
        gap: 1.5rem;
    }

    .route-request-form__route {
        display: block;

        background: var(--screen);
        border-bottom: 2px solid var(--navy-950);
    }

    .route-location {
        padding: 1.25rem 1rem;
    }

    .route-location + .route-location {
        border-top: 1px solid var(--line-dark);
    }

    .route-location input {
        font-size: 1.15rem;
    }

    .route-request-form__arrow {
        display: grid;
        place-items: center;

        width: 100%;
        height: 2.75rem;

        transform: none;
        font-size: 1.35rem;
        line-height: 1;
    }

    .route-request-form__grid {
        grid-template-columns: 1fr;
    }

    .form-field {
        border-right: 0;
    }

    .route-request-form__footer {
        display: grid;
    }

    

    

    

    









    

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 2.5rem;

        padding: 3rem 1rem;
    }

    .site-footer__main > div:first-child {
        grid-column: auto;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 0.5rem;

        padding-right: 1rem;
        padding-left: 1rem;
    }

}


/* ==========================================================================
   21. VERY SMALL MOBILE
   ========================================================================== */

@media (max-width: 390px) {

    .dispatch-brand__name {
        font-size: 1.2rem;
    }

    .nav-toggle > span:first-child {
        display: none;
    }

    .open-route h1 {
        font-size: 3.85rem;
    }

    .route-board__header {
        display: grid;
        gap: 0.25rem;
    }

    .temperature-log__times span:nth-child(2),
    .temperature-log__times span:nth-child(4) {
        display: none;
    }

}


/* ==========================================================================
   22. ULTRAWIDE
   ========================================================================== */

@media (min-width: 1750px) {

    :root {
        --content: 1600px;
    }

    .open-route__main {
        padding-top: 9rem;
        padding-bottom: 5rem;
    }

    .open-route__identity {
        max-width: 64rem;
    }

    .operations-file {
        max-width: 1480px;
        margin-right: auto;
        margin-left: auto;

        border-right: 1px solid var(--navy-950);
        border-left: 1px solid var(--navy-950);
    }

    .route-window {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(28rem, 34rem);

        max-width: 1480px;
        margin: 0 auto;
    }

    .route-window__log {
        padding: 5rem clamp(2rem, 3vw, 3rem);
    }

}


/* ==========================================================================
   23. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}


/* RECORD 09 VISIBILITY TUNE START */

.route-closed__main {
    background: rgba(244, 241, 233, 0.58);

    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.route-closed__main h2,
.route-closed__main p {
    color: #0b1a2d;
}


/*
|--------------------------------------------------------------------------
| Receipt labels
|--------------------------------------------------------------------------
*/

.route-closed__handoff dt {
    color: rgba(11, 26, 45, 0.92);

    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.35;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Receipt values
|--------------------------------------------------------------------------
*/

.route-closed__handoff dd {
    color: #081521;

    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.3;
}


/*
|--------------------------------------------------------------------------
| Receipt rows
|--------------------------------------------------------------------------
*/

.route-closed__handoff dl div {
    min-height: 3.4rem;

    padding:
        0.9rem
        0.15rem;

    border-bottom:
        1px solid
        rgba(11, 26, 45, 0.30);
}


/*
|--------------------------------------------------------------------------
| Receipt CTA
|--------------------------------------------------------------------------
*/

.route-closed__handoff .dispatch-button {
    min-height: 3.65rem;

    padding:
        1rem
        1.45rem;

    font-size: 0.74rem;
    letter-spacing: 0.055em;
}

 /* RECORD 09 VISIBILITY TUNE END */
