/* WSMC public pages — matches WSMCoop.org (navy #1e3a5f, green #1a936f,
   light blue #a0c4e8, Work Sans headings). Self-contained: nothing from the
   staff app's stylesheet or Bootstrap is loaded on these pages. */

:root {
    --navy: #1e3a5f;
    --navy-deep: #0f1e32;
    --green: #1a936f;
    --green-dark: #14724f;
    --mint: #5fd4a8;
    --sky: #a0c4e8;
    --paper: #f8f9fa;
    --line: #e0e0e0;
    --ink: #333333;
    --ink-soft: #5a6672;
    --heading: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: var(--body); color: var(--ink); line-height: 1.6; background: #fff; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 1.5rem; }

/* Header: white bar, seal + wordmark, links back to the main site. */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--navy); }
.brand img { width: 56px; height: 56px; }
.brand .wordmark { font-family: var(--heading); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.15; text-transform: uppercase; }
.brand .wordmark small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .12em; color: var(--ink-soft); }
.emergency { font-family: var(--heading); font-weight: 700; color: var(--green); white-space: nowrap; text-decoration: none; }

/* Hero band, the navy of the site's stats bar. */
.hero { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #27507f 100%); color: #fff; padding: 3rem 0 2.5rem; }
.hero h1 { font-family: var(--heading); font-weight: 700; font-size: 2.6rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.hero .kicker { font-family: var(--heading); font-weight: 700; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: .6rem; }
.hero p { max-width: 820px; color: #dbe6f3; margin-top: .9rem; }
.hero p a { color: var(--sky); }

/* Stats strip. */
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1.8rem; }
.stat .num { font-family: var(--heading); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.stat .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-top: .35rem; }

/* Toolbar: search + download. */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.4rem 0 1rem; }
.toolbar form { display: flex; gap: .5rem; flex: 1 1 320px; }
.toolbar input[type=search] { flex: 1; font: inherit; padding: .65rem .9rem; border: 1px solid #c9d2dc; border-radius: 4px; }
.toolbar input[type=search]:focus { outline: 2px solid var(--sky); border-color: var(--navy); }
.btn { font-family: var(--heading); font-weight: 600; font-size: .9rem; padding: .65rem 1.2rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.count { color: var(--ink-soft); font-size: .95rem; }

/* The list. */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 2rem; }
table { width: 100%; min-width: 1300px; border-collapse: collapse; font-size: .92rem; }
thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-family: var(--heading); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: .7rem .75rem; white-space: nowrap; }
thead th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sky); font-size: .72rem; }
tbody td { padding: .55rem .75rem; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody tr:hover { background: #eef5fb; }
td.name { font-weight: 600; color: var(--navy); white-space: nowrap; }
td.type { min-width: 230px; }
td.oil { min-width: 210px; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.muted, .muted { color: var(--ink-soft); }
tr.hidden { display: none; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--ink-soft); }

/* Footer, as on the site. */
.site-footer { background: var(--navy); color: #c9d7e6; padding: 2rem 0; font-size: .9rem; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.site-footer strong { color: #fff; font-family: var(--heading); }
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { font-size: .78rem; color: #8ea4bb; width: 100%; }

/* Notice-of-arrival form. */
.noa-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem 1.25rem; margin: 1.25rem 0; }
.noa-form legend { font-family: var(--heading); font-weight: 700; color: var(--navy); padding: 0 .5rem; font-size: 1.05rem; }
.noa-form .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.2rem; }
.noa-form .span2 { grid-column: span 2; }
.noa-form .span3 { grid-column: span 3; }
.noa-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.noa-form input:not([type=checkbox]), .noa-form textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1rem; color: var(--ink); padding: .55rem .7rem; border: 1px solid #c9d2dc; border-radius: 4px; }
.noa-form input:focus, .noa-form textarea:focus { outline: 2px solid var(--sky); border-color: var(--navy); }
.noa-form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink); font-size: .95rem; margin: .35rem 0; }
.noa-form label.check input { width: 1.05rem; height: 1.05rem; margin: 0; }
.noa-form .routes-label { font-weight: 600; margin: 1rem 0 .35rem; }
.noa-form .routes-label span { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.noa-form .actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: .5rem 0 2rem; }
.noa-form .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice-problems { background: #fff4e5; border: 1px solid #f0c28a; border-left: 4px solid #d97706; border-radius: 6px; padding: .9rem 1.1rem; margin-top: 1.25rem; }
.notice-problems ul { margin: .4rem 0 0 1.2rem; }
.done-card { border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; max-width: 720px; }
.done-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin-bottom: 1rem; }
.done-card dt { font-weight: 600; color: var(--ink-soft); }
.done-card .warn { background: #fff4e5; border-left: 4px solid #d97706; padding: .7rem .9rem; border-radius: 4px; }

@media (max-width: 720px) {
    .noa-form .grid { grid-template-columns: 1fr; }
    .noa-form .span2, .noa-form .span3 { grid-column: span 1; }
    .site-header .wrap { flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 1.9rem; }
    .stats { gap: 1.5rem; }
    .emergency { display: none; }
}
@media print {
    .toolbar, .site-footer, .emergency { display: none; }
    .hero { background: none; color: #000; padding: 0 0 1rem; }
    .hero p, .hero .kicker, .stat .lbl { color: #333; }
    thead th { background: #fff; color: #000; border-bottom: 2px solid #000; position: static; }
    .table-wrap { border: 0; overflow: visible; }
}
