/* Home page and data sources page (M17). Same type and colours as the app (ui/style.css). */
:root { --ink:#1f2933; --muted:#667085; --line:#d5d9e0; --bg:#f4f5f7; --panel:#fff; --accent:#1d5a8a; --navy:#17324a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--panel); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 29px 0; }
section.wrap { padding: 29px 20px; }
section.band { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; font-weight: 600; letter-spacing: .2px; }
h2 { font-size: 24px; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 17px; margin: 12px 0 4px; }
.text { max-width: 720px; margin: 0 0 14px; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; background: var(--navy); color: #fff; }
.top .brand { color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a { color: #cfdbe6; font-size: 14px; text-decoration: none; }
.top nav a:hover { color: #fff; }

.btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #174a72; }
.top nav a.btn.small { padding: 5px 12px; font-size: 13px; color: var(--navy); background: #fff; border-color: #fff; white-space: nowrap; }
.top nav a.btn.small.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.top nav a.btn.small.ghost:hover { border-color: #fff; }

.hero { padding: 29px 0 0; }
.hero > .wrap { max-width: 1500px; }  /* the headline block may run wider than the body column; it still shrinks with the window */
.hero .lead { font-size: 21px; line-height: 1.4; margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* The satellite band is shown a third shorter than the image (aspect 2.91 -> 4.34): the top, southern Canada, is cropped
   away and the bottom (the Gulf, Key West) is kept, so the band's top edge sits near 47 N (Matthew, 2026-11-13). */
@media (min-width: 761px) {
  .hero-img > img { height: calc(100vw * 977 / 2844 * 0.67); object-fit: cover; object-position: center bottom; display: block; }
}
.hero-img figcaption { max-width: 1080px; margin: 0 auto; padding: 8px 20px 0; font-size: 13px; color: var(--muted); }

.thumbs { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.thumbs a { display: block; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; }
.thumbs img { width: 100%; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 6px; background: #fff; }
.thumbs a:hover img { border-color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.steps a:hover img { border-color: var(--accent); }
.steps h3 span { display: inline-block; width: 24px; height: 24px; line-height: 24px; margin-right: 6px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 13px; text-align: center; }
.steps p { margin: 0; font-size: 15px; }

.points { max-width: 760px; padding: 0; margin: 0 0 18px; list-style: none; }
.points li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.points li:first-child { border-top: 1px solid var(--line); }
.not { font-weight: 600; }

.usmap { width: 100%; margin-top: 10px; }
.key .k { display: inline-block; width: 16px; height: 11px; margin: 0 5px 0 0; vertical-align: baseline; border: 2px solid var(--accent); }
.key .k.next { border-style: dashed; margin-left: 14px; }

/* pricing page */
.pricing h1 { font-size: 30px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; margin: 22px 0 30px; }
.plan { border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; background: #fff; }
.plan h2 { font-size: 17px; margin: 0 0 6px; }
.plan .price { font-size: 34px; font-weight: 600; line-height: 1.1; margin: 0 0 6px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan p { margin: 0; }
.included { max-width: 720px; padding-left: 20px; margin: 0 0 26px; }
.included li { padding: 3px 0; }
.faq { max-width: 720px; }
.faq h3 { margin: 16px 0 2px; }
.faq p { margin: 0; }

.foot { background: var(--navy); color: #cfdbe6; padding: 22px 0; font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.foot .fine { color: #a9bccd; margin-top: 6px; }

/* data sources page */
.sources h1 { font-size: 30px; }
.sources h2 { font-size: 18px; margin: 30px 0 6px; }
.sources p { max-width: 760px; }
.tablewrap { overflow-x: auto; }
.sources table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.sources th, .sources td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.sources th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sources td:nth-child(2) { max-width: 340px; }
.sources code { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 32px 0; }
  section.wrap { padding: 32px 20px; }
  h1 { font-size: 32px; }
  .hero { padding-top: 20px; }
  .hero .lead { font-size: 18px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .top nav a.open { display: none; }
  .plans { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* The exhibit row floats over the satellite image, on southern Canada. The image is 2.91 times as wide as it is
   tall and the 49th parallel is 27 % down it (scripts/landing_assets.py HERO_BBOX), so the band above the border is
   9.2vw high whatever the window; the row is sized in vw to stay inside it: 0.8 top + 6.1 page + 1.5 label = 8.4vw. */
.hero-img { position: relative; margin-top: 26px; }
.hero-thumbs .thumbs { margin: 0; }
@media (min-width: 761px) {
  .hero-thumbs { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); max-width: none; padding: 0; }  /* the row is centred on the band and overlaps the northern states on purpose (Matthew, 2026-11-13) */
  .hero-thumbs .thumbs { display: flex; justify-content: center; gap: 2.6vw; }
  .hero-thumbs .thumbs li { width: 10.5vw; }
  .hero-thumbs .thumbs a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); font-size: clamp(11px, 1vw, 15px); line-height: 2vw; white-space: nowrap; }
  .hero-thumbs .thumbs a span { display: block; margin: 0 -1.2vw; }
  .hero-thumbs .thumbs img { border: 2px solid #fff; border-radius: 2px; margin-bottom: 0; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
  .hero-thumbs .thumbs a:hover img { border-color: var(--accent); }
  .hero-thumbs .fine { display: none; }
}
@media (max-width: 760px) {
  .hero-thumbs { padding: 14px 20px 0; }
}

/* sign-in, invite, account and admin pages (M18, lde.web.auth) */
body.plain { min-height: 100vh; display: flex; flex-direction: column; }
body.plain main { flex: 1; }
.top nav .who { color: #cfdbe6; font-size: 13px; margin-right: 4px; }
.top nav form.inline { display: inline; margin: 0; }
.top nav button.btn.small { padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; }
.top nav button.btn.small:hover { border-color: #fff; }
.auth { max-width: 520px; }
.auth h1, .admin h1 { font-size: 30px; }
.auth h2 { font-size: 18px; margin: 26px 0 10px; }
.card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.card label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.card .opt { font-weight: 400; color: var(--muted); }
.card input, .card textarea, .admin .row input[type=email], .linkbox input { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; width: 100%; }
.card input:focus, .card textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.card button.btn, .admin button.btn { font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; justify-self: start; }
.card .hp { position: absolute; left: -5000px; }
.msg { max-width: 720px; padding: 10px 14px; border-radius: 4px; margin: 0 0 14px; font-size: 15px; }
.msg.error { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1c12; }
.msg.ok { background: #e9f5ec; border: 1px solid #b5d9bd; color: #1c5a2b; }
.admin h2 { font-size: 18px; margin: 30px 0 8px; }
.admin .count { font-size: 13px; font-weight: 400; color: var(--muted); }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); }
.admin th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.admin code { font-size: 12px; color: var(--muted); }
.admin .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 720px; }
.admin .row input[type=email] { flex: 1 1 260px; width: auto; }
.admin .row.notice input[type=text] { flex: 1 1 220px; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; }
.admin .check { font-size: 14px; white-space: nowrap; }
.admin form.inline { display: inline; }
.admin button.link { font: inherit; font-size: 13.5px; color: var(--accent); background: none; border: 0; padding: 0; margin-right: 10px; cursor: pointer; text-decoration: underline; }
.linkbox { max-width: 860px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--accent); border-radius: 6px; background: #eef4f9; }
.linkbox p { margin: 0 0 8px; }
.linkbox p:last-child { margin: 0; display: flex; gap: 8px; }
.linkbox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.fb { max-width: 860px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fb .fine { margin: 0 0 4px; }
.fbtext { margin: 0; white-space: pre-wrap; }
