/* Dive Shop Tools. The palette and type are Roleystone Diver Training's, from its vector logo ([RDIVE]/assets/logos/print_transparent.svg). */
:root {
  --navy: #142754;
  --blue: #5797cf;
  --teal: #4bc1db;
  --sky: #79d2f5;
  --pale: #a5dbf3;
  --ink: #142754;
  --ink-soft: #3d4b6b;
  --paper: #ffffff;
  --mist: #f1f7fb;
  --line: #d6e6f0;
  --accent: #1f6fa8;          /* darker than --blue so links pass contrast on white */
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.brand-tag { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.header-end { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--mist); box-shadow: inset 0 -2px 0 var(--teal); }

/* the share QR (the suite's, [WATB]/site/assets/css/toolbox.css): hover, keyboard focus, or a tap (js/qr.js) */
.qr { position: relative; display: flex; flex: none; }
.qr__btn { display: flex; padding: 6px; background: none; border: 0; cursor: pointer; color: var(--ink-soft); }
.qr__btn:hover, .qr.is-open .qr__btn { color: var(--navy); }
.qr__btn svg { width: 20px; height: 20px; }
.qr__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 244px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(20,39,84,.15); visibility: hidden; opacity: 0; transition: opacity .15s ease; }
.qr__pop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.qr__pop img { width: 100%; height: auto; }
.qr.is-open .qr__pop, .qr__btn:focus-visible + .qr__pop { visibility: visible; opacity: 1; }
@media (hover: hover) { .qr:hover .qr__pop { visibility: visible; opacity: 1; } }

@media (max-width: 719px) { .brand-tag { display: none; } .site-header { position: static; } .header-end { margin-left: 0; justify-content: flex-start; } }

main.wrap { padding-top: 28px; padding-bottom: 32px; }   /* main.wrap, or .wrap's own padding wins and the hero touches the header */
main > section, main > header { margin-bottom: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* hero: a navy band, until there is a real photo of a fill station */
.hero { background: var(--navy); border-radius: var(--radius); padding: 36px 24px; }
@media (min-width: 720px) { .hero { padding: 56px 44px; } }
.hero h1 { color: #fff; max-width: 18em; }
.hero .eyebrow { color: var(--sky); }
.hero .lede { color: #e6f3fa; margin-bottom: 0; }

/* the two tools */
.pillars { display: grid; gap: 16px; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } }
.pillar { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.pillar:nth-child(1) { border-top-color: var(--navy); }
.pillar:nth-child(2) { border-top-color: var(--blue); }
.pillar:nth-child(3) { border-top-color: var(--teal); }
.pillar:nth-child(4) { border-top-color: var(--sky); }
.pillar:nth-child(5) { border-top-color: var(--blue); }
.pillar:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,39,84,.08); color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-soft); }
.pillar h2 { margin-top: 8px; }
.status { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--navy); background: var(--mist); border: 1px solid var(--pale); border-radius: 999px; padding: 2px 10px; }

.band { background: var(--mist); border-radius: var(--radius); padding: 28px 20px; }
@media (min-width: 720px) { .band { padding: 36px; } }
.band > :last-child { margin-bottom: 0; }
.ticks { margin: 0 0 1em; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.5em; margin-bottom: .55em; max-width: 46em; }
.ticks li::before { content: ""; position: absolute; left: .1em; top: .55em; width: .6em; height: .6em; border-radius: 50%; background: var(--teal); }
.small { font-size: .88rem; color: var(--ink-soft); }

footer { border-top: 1px solid var(--line); padding: 22px 0 32px; }
footer p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
