/* Gulf Coast Velocity Data — site styles. No framework; edit freely. */
:root {
  --ink: #102029;
  --ink-2: #33444f;
  --muted: #5b6b75;
  --line: #dce3e7;
  --soft: #f3f6f7;
  --bg: #ffffff;
  --brand: #3d7a12;        /* logo green, darkened for AA contrast on white */
  --brand-hover: #2f5f0d;
  --brand-tint: #eef6e6;
  --brand-bright: #8cc63f; /* logo green as drawn; decoration only */
  --deep: #0c1a24;         /* hero / footer */
  --deep-2: #14293a;
  --warn: #9a5b00;
  --warn-tint: #fff4e0;
  --danger: #b3261e;
  --ok: #2e6b12;
  --radius: 8px;
  --wrap: 1180px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
[hidden] { display: none !important; }
.section { padding-top: 48px; padding-bottom: 48px; }
.narrow { max-width: 440px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: var(--radius);
  border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-added { background: var(--brand-tint); color: var(--brand); border-color: #cfe4bb; }
.btn-sm { padding: .42em .8em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--danger); }

/* ---- Header ---- */
.promo { background: var(--brand); color: #fff; text-align: center; font-size: .875rem; font-weight: 500; padding: 6px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1.02rem; }
.brand small { color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-nav > ul > li > a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(16, 32, 41, .12); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .sub a { display: block; padding: 7px 10px; border-radius: 5px; color: var(--ink-2); text-decoration: none; }
.site-nav .sub a:hover { background: var(--soft); color: var(--ink); }
.nav-search input { width: 200px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem; background: var(--soft); }
.nav-search input:focus { background: #fff; }
.cart-link { position: relative; display: inline-flex; padding: 8px; color: var(--ink); border-radius: 6px; }
.cart-link:hover { background: var(--soft); color: var(--ink); }
.cart-count { position: absolute; top: 0; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand);
  color: #fff; font-size: .72rem; font-weight: 600; line-height: 19px; text-align: center; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(16, 32, 41, .1); }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-search input { width: 100%; }
  .cart-link { align-self: flex-start; }
  .site-header { position: relative; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, var(--deep-2), var(--deep)); color: #e8eef1; }
.hero .seismic { position: absolute; inset: 0; width: 100%; height: 100%; color: #5fa3b8; opacity: .22; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 26, 36, .96) 0%, rgba(12, 26, 36, .78) 45%, rgba(12, 26, 36, .15) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; max-width: var(--wrap); }
.hero-inner > * { max-width: 700px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.eyebrow { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright); margin-bottom: 18px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 720px; }
.hero .lede { color: #c5d2d9; }
.hero-search { display: flex; gap: 8px; margin: 28px 0 14px; max-width: 620px; }
.hero-search input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; }
.page-hero .hero-search input { border-color: var(--line); }
.hero-links { font-size: .95rem; color: #9fb2bc; }
.hero-links a { color: #fff; }
.page-hero .hero-links, .page-hero .hero-links a { color: var(--brand); }
@media (max-width: 560px) { .hero-search { flex-direction: column; } .hero-inner { padding-top: 56px; padding-bottom: 56px; } }

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero.compact { padding: 32px 0 24px; }
.page-hero .lede:last-child { margin-bottom: 0; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .9rem; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

/* ---- Home ---- */
.stats { border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row > div { padding: 22px 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.stats-row > div:first-child { border-left: 0; padding-left: 0; }
.stats-row strong { font: 600 1.6rem/1.2 var(--mono); }
.stats-row span { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr 1fr; } .stats-row > div:nth-child(3) { border-left: 0; padding-left: 0; } .stats-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { color: var(--ink); border-color: #b9c6cd; box-shadow: 0 10px 28px rgba(16, 32, 41, .08); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .95rem; }
.card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card dd { margin: 0; font-size: .88rem; font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.05rem; }
.card-foot small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.card .arrow { color: var(--brand); transition: transform .15s; }
.card:hover .arrow { transform: translateX(4px); }

.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: 500 .85rem var(--mono); color: var(--brand); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.band-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }

/* ---- Content ---- */
.prose-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .prose-2 { grid-template-columns: 1fr; gap: 24px; } }
.prose p { font-size: 1.05rem; }
.datasets { display: grid; gap: 0; padding-top: 0; }
.dataset-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.dataset-row h2 a { color: var(--ink); text-decoration: none; }
.dataset-row h2 a:hover { color: var(--brand); }
.dataset-row p { color: var(--ink-2); }
@media (max-width: 900px) { .dataset-row { grid-template-columns: 1fr; gap: 16px; } .dataset-row .btn { justify-self: start; } }
.spec { display: grid; gap: 6px 16px; grid-template-columns: max-content 1fr; margin: 0; font-size: .93rem; }
.spec > div { display: contents; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.spec.wide { grid-template-columns: max-content 1fr max-content 1fr; margin-bottom: 24px; }
@media (max-width: 720px) { .spec.wide { grid-template-columns: max-content 1fr; } }

.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.contact-card h2 { font-size: 1.05rem; margin-top: 4px; }
.contact-card .big { font: 600 1.4rem var(--mono); text-decoration: none; }

.faq h2 { margin-top: 28px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* ---- Memorial ---- */
.memorial { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 720px) { .memorial { grid-template-columns: 1fr; gap: 20px; } }
.memorial-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); text-align: center; }
.memorial-card img { border-radius: 8px; margin-bottom: 12px; filter: grayscale(0.2); }
.memorial-card .eyebrow { color: var(--brand); margin-bottom: 8px; }
.memorial-card h2 { margin-bottom: 4px; }
.memorial-card p { margin: 0; }

/* ---- Dataset page header + samples ---- */
.hero-body { max-width: 820px; margin-top: 16px; color: var(--ink-2); }
.hero-body p { margin-bottom: .6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.hero-actions .btn { background: #fff; }
.site-nav .sub-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.samples { display: grid; gap: 22px; }
.sample { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; scroll-margin-top: 90px; }
.sample:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.sample-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.sample-head h2 { margin-bottom: 2px; }
.sample-head p { margin: 0; }
.sample-preview { background: var(--deep); color: #d6e2e8; font: .78rem/1.5 var(--mono); padding: 14px 16px; border-radius: 8px; overflow-x: auto; max-height: 320px; }
.sample-img { display: block; max-width: 100%; max-height: 520px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; }

/* ---- Brochure ---- */
.brochure-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.brochure-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; }
.brochure-stats strong { font: 600 1.9rem/1.1 var(--mono); }
.brochure-stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .brochure-stats { grid-template-columns: 1fr 1fr; } }
.brochure-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .brochure-products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .brochure-products { grid-template-columns: 1fr; } }
.brochure-products article { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.brochure-products p { margin: 0 0 6px; font-size: .93rem; }
.brochure-products .big-num { font: 600 1.5rem var(--mono); margin: 2px 0 8px; }
.brochure-products .big-num span { font: 400 .85rem var(--sans); color: var(--muted); }
.brochure-products .price-line { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.price-table.compact th, .price-table.compact td { padding: 7px 10px; }
.price-table.compact { min-width: 0; }
.warehouse-line { margin-top: 12px; padding: 12px 14px; background: var(--brand-tint); border-radius: 8px; }
.brochure-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 40px; padding: 26px 28px; border-radius: 14px; background: var(--deep); color: #dfe8ec; }
.brochure-cta h2 { color: #fff; margin-bottom: 4px; }
.brochure-cta p { margin: 0; color: #b9c8cf; }
.cta-contact { display: grid; text-align: right; gap: 2px; }
.cta-contact strong { color: #fff; font-size: 1.2rem; }
@media (max-width: 720px) { .brochure-cta { grid-template-columns: 1fr; } .cta-contact { text-align: left; } }
@media print {
  @page { size: letter; margin: 12mm; }
  .promo, .site-nav, .nav-toggle, .site-footer, .print-hide, .skip { display: none !important; }
  .site-header { position: static; border: 0; }
  body { font-size: 11pt; }
  .hero, .brochure-cta, .warehouse-offer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .brochure-hero .hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .section { padding-top: 22px; padding-bottom: 22px; }
  body { font-size: 9.5pt; }
  .wrap { padding: 0; max-width: none; }
  .brochure-stats { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
  .brochure-stats > div { padding: 10px 12px; }
  .brochure-stats strong { font-size: 1.45rem; }
  .brochure-products { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .brochure-products article { padding: 10px 12px; }
  .brochure-products .big-num { font-size: 1.2rem; margin: 0 0 4px; }
  .prose-2 { grid-template-columns: 1fr 1fr !important; gap: 22px; }
  .brochure-cta { grid-template-columns: minmax(0, 1fr) auto !important; margin-top: 18px; padding: 16px 20px; }
  .cta-contact { text-align: right !important; }
  .brochure-hero h1 { font-size: 2rem; }
  .brochure-hero .lede { font-size: .95rem; }
  .price-table.compact th, .price-table.compact td { padding: 4px 8px; }
  h2 { font-size: 1.15rem; }
  .brochure-products article, .brochure-stats > div, .prose-2 > div, .brochure-cta { break-inside: avoid; }
  .mt-section { margin-top: 16px; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Pricing packages ---- */
.mt-section { margin-top: 44px; }
.price-table td small, .price-table th small { display: block; color: var(--muted); font-size: .76rem; font-family: var(--sans); font-weight: 400; }
.price-table td.num, .price-table th.num { text-align: right; }
.warehouse-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 30px; border-radius: 14px;
  background: radial-gradient(120% 140% at 85% 0%, var(--deep-2), var(--deep)); color: #dfe8ec; }
.warehouse-offer h2 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.warehouse-offer p { margin: 0; color: #b9c8cf; max-width: 560px; }
.offer-price { display: grid; justify-items: end; gap: 4px; text-align: right; }
.offer-price strong { font: 600 2rem var(--mono); }
.warehouse-offer .offer-price strong { color: #fff; font-size: 2.4rem; }
.offer-price .was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.warehouse-offer .offer-price .was { color: #8397a2; }
.offer-price .save { color: var(--brand-bright); font-weight: 600; font-size: .9rem; }
.pkg-builder .offer-price .save { color: var(--ok); }
.offer-price .btn { margin-top: 6px; }
@media (max-width: 720px) { .warehouse-offer, .pkg-result { grid-template-columns: 1fr; } .offer-price { justify-items: start; text-align: left; } }
.pkg-builder { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--soft); }
.pkg-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 720px) { .pkg-controls { grid-template-columns: 1fr; } }
.pkg-controls label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.pkg-controls select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.pkg-controls .opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.pkg-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.pkg-result h3 { margin: 2px 0 4px; }
.pkg-result p { margin: 0; }

/* ---- Pricing ---- */
.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--soft); }
.price-table thead small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.price-table tbody th a { color: var(--ink); font-weight: 600; text-decoration: none; }
.price-table td { font-family: var(--mono); font-size: .92rem; }
.price-table td:last-child { font-family: var(--sans); color: var(--muted); }
.na { color: var(--muted); font-family: var(--sans); }
.complete { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; margin-top: 28px; padding: 26px 28px; border-radius: 12px;
  background: var(--deep); color: #dfe8ec; }
.complete h2 { color: #fff; margin-bottom: 4px; }
.complete p { margin: 0; }
.complete-price { font: 600 2rem var(--mono); color: #fff; }
@media (max-width: 720px) { .complete { grid-template-columns: 1fr; } }

/* ---- Tables / catalog ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table, .data { min-width: 640px; }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th, .data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data thead th { position: sticky; top: 0; background: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.data tbody tr:hover { background: #fafcfb; }
.data tbody tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5.5em; }
.data td.mono { font-family: var(--mono); font-size: .86rem; }
.data td.act { width: 1%; text-align: right; }
/* In catalog tables, let names wrap so the whole row fits before anything scrolls sideways */
.catalog-table td:not(.num):not(.mono):not(.act) { white-space: normal; min-width: 80px; }
.data td.wrap { min-width: 170px; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.data td.empty { white-space: normal; text-align: center; padding: 40px 16px; color: var(--muted); }
.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.sort:hover { color: var(--ink); }

.catalog-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 56px; }
.catalog-controls { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 12px; }
@media (max-width: 720px) { .catalog-controls { grid-template-columns: 1fr 1fr; } .catalog-controls input[type=search]:first-child { grid-column: 1 / -1; } }
.catalog-controls input, .catalog-controls select, .form input, .form textarea, .form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
.catalog-controls input:focus, .form input:focus, .form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.catalog .table-scroll { max-height: calc(100vh - 140px); min-height: 320px; overflow: auto; }
.catalog-table thead th { z-index: 2; }
.catalog-table thead th:last-child { z-index: 3; }
.catalog-table .pick { width: 1%; padding-right: 0; }
.catalog-table .pick input { width: 16px; height: 16px; vertical-align: middle; }
.catalog-table thead th.pick { position: sticky; left: 0; }
.catalog-table td .sub-line { display: block; color: var(--muted); font-size: .78rem; }
.catalog-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 8px; }
.catalog-summary { margin: 0; color: var(--muted); font-size: .9rem; }
.catalog.loading .table-scroll { opacity: .55; transition: opacity .2s; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; font-size: .9rem; }
.catalog-note { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--brand-bright); padding-left: 16px; max-width: 820px; }
.catalog-note p:last-child { margin-bottom: 0; }
/* Keep price + cart button in view when the table scrolls sideways */
.catalog-table th:last-child, .catalog-table td:last-child { position: sticky; right: 0; background: #fff; z-index: 1; box-shadow: -8px 0 8px -8px rgba(16, 32, 41, .18); }
.catalog-table td.act { min-width: 84px; }
.catalog-table thead th:last-child { background: var(--soft); z-index: 2; }
.catalog-table tbody tr:hover td { background: #fafcfb; }

/* ---- Cart / downloads ---- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items h2 { font-size: 1.1rem; margin-top: 8px; }
.cart-list, .downloads { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.cart-list li, .downloads li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-list li > div, .downloads li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-list .muted, .downloads .muted { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.cart-list .price { font-family: var(--mono); }
.cart-summary { position: sticky; top: 90px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 14px; }
.cart-summary .row strong { font-family: var(--mono); }
.cart-summary .row.discount { font-size: .95rem; color: var(--ok); margin-bottom: 8px; }
.cart-summary .row.total { border-top: 1px solid var(--line); padding-top: 12px; }
.code-form { display: flex; gap: 6px; margin: 4px 0 14px; }
.code-form input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem; text-transform: uppercase; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin: 0 0 10px; }
.check input { margin-top: 3px; }
.empty-cart { text-align: center; padding: 40px 0; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.tag.warn { background: var(--warn-tint); border-color: #f3d9a8; color: var(--warn); }

/* ---- Forms ---- */
.form { display: grid; gap: 14px; max-width: 640px; margin-bottom: 24px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form .opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-status { margin: 0; font-size: .93rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }
.hp { position: absolute; left: -9999px; }
.flash { background: var(--warn-tint); border: 1px solid #f3d9a8; color: var(--warn); padding: 10px 14px; border-radius: var(--radius); }
.flash.ok { background: var(--brand-tint); border-color: #cfe4bb; color: var(--ok); }

/* ---- Signup ---- */
.signup { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.signup input[type=email] { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .9rem; }
.page-hero ~ .section .signup input[type=email], .narrow .signup input[type=email] { border-color: var(--line); background: #fff; color: var(--ink); }
.signup .btn { padding: .5em .9em; font-size: .85rem; }
.signup .form-status { flex-basis: 100%; margin: 0; min-height: 0; }
.site-footer .mt { margin-top: 8px; }

/* ---- Toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: .93rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--brand-bright); margin-left: 4px; }

/* ---- Map search ---- */
.map-page .site-footer { display: none; }
.map-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - 102px); min-height: 520px; }
@media (max-width: 1100px) { .map-layout { grid-template-columns: 320px minmax(0, 1fr); } }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; grid-template-rows: auto 70vh; height: auto; } }
.map-panel { padding: 20px; border-right: 1px solid var(--line); overflow-y: auto; background: #fff; }
.map-panel h1 { font-size: 1.5rem; }
.map { position: relative; background: #dfe7ea; }
.map.selecting { cursor: crosshair; }
.ds-toggles { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.ds-toggles legend { font-weight: 600; margin-bottom: 6px; }
.ds-toggles label { display: flex; align-items: center; gap: 8px; font-size: .93rem; cursor: pointer; }
.sym { width: 13px; height: 13px; background: var(--c); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(16,32,41,.35); flex: none; }
.sym-circle { border-radius: 50%; }
.sym-square { border-radius: 1px; }
.sym-triangle { border: 0; box-shadow: none; clip-path: polygon(50% 0, 100% 90%, 0 90%); }
.layer-toggle { margin: -4px 0 12px; }
.legend-note { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 14px; }
.sym-ring { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 2px;
  background: conic-gradient(#d9480f 0 33%, #7048e8 0 66%, #2f9e44 0);
  -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px); mask: radial-gradient(circle, transparent 3.5px, #000 4px); }
.map-actions { display: grid; gap: 8px; margin-bottom: 16px; }
.map-find input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem; }
.map-results h2 { font-size: 1.05rem; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.area-head h2 { margin: 0; }
.group-switch { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.group-switch button { border: 1px solid var(--line); background: #fff; padding: 3px 10px; border-radius: 6px; font: inherit; cursor: pointer; color: var(--ink-2); }
.group-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ds-section { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.ds-section > summary { display: grid; grid-template-columns: 12px 14px minmax(0, 1fr); grid-template-areas: "caret sym title" ". stats stats"; column-gap: 8px; row-gap: 4px;
  align-items: center; padding: 8px 10px; cursor: pointer; list-style: none; background: var(--soft); border-radius: 8px; }
.ds-section > summary::before { grid-area: caret; }
.ds-section > summary > .sym { grid-area: sym; }
.ds-section > summary .ds-title { grid-area: title; }
.ds-section > summary .ds-stats { grid-area: stats; }
.ds-section > summary .ds-tools { grid-area: stats; justify-self: end; }
.ds-section[open] > summary { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.ds-section > summary::-webkit-details-marker { display: none; }
.ds-section > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform .15s; justify-self: center; }
.ds-section[open] > summary::before { transform: rotate(45deg); }
.ds-section > summary:hover { background: #e9eef0; }
.ds-section:not([open]) { margin-bottom: 6px; }
.group-switch { flex-wrap: wrap; white-space: nowrap; }
.fold-all { margin-left: auto; display: inline-flex; gap: 12px; }
.group-switch .fold-all .link-btn { border: 0; background: none; padding: 0; border-radius: 0; color: var(--brand); font-size: .82rem; }
.group-switch .fold-all .link-btn:hover { color: var(--brand-hover); }
.ds-title { display: block; line-height: 1.25; min-width: 0; }
.ds-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-stats { white-space: nowrap; }
.ds-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.ds-rows { list-style: none; margin: 0; padding: 0; }
.ds-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "chk main price add" ". det det det";
  column-gap: 8px; row-gap: 2px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--soft); grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "chk main add" ". det det"; }
.ds-rows li > input { grid-area: chk; }
.ds-rows li > .row-main { grid-area: main; }
.ds-rows li > .price { grid-area: price; }
.ds-rows li > .btn { grid-area: add; }
.row-det { grid-area: det; display: grid; gap: 1px; font-size: .8rem; line-height: 1.35; }
.ds-rows li:first-child { border-top: 0; }
.ds-rows li:hover { background: #fffbea; }
.row-main { display: grid; gap: 0; line-height: 1.3; text-align: left; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--ink); min-width: 0; }
.row-main .mono { font-size: .82rem; }
.row-op { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-more { color: var(--brand); }
.row-more .sym { display: inline-block; width: 9px; height: 9px; margin: 0 3px 0 2px; vertical-align: -1px; }
.ds-section .price { font-family: var(--mono); font-size: .85rem; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink-2); }
.ds-chip:hover { border-color: var(--ink-2); }
.ds-chip.on { background: var(--brand-tint); border-color: #cfe4bb; color: var(--ok); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-syms { display: inline-flex; gap: 4px; }
.card-syms .sym, .ds-chip .sym, .area-well .check .sym { width: 11px; height: 11px; }
.area-well .check .sym { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.area-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; position: sticky; top: -20px; background: #fff; padding: 8px 0; z-index: 1; border-bottom: 1px solid var(--line); }
.area-actions .check { margin: 0 auto 0 0; }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.area-well { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.area-well:hover { border-color: #e67700; box-shadow: 0 0 0 2px rgba(255, 212, 59, .35); }
.area-well-head { display: grid; gap: 1px; width: 100%; text-align: left; background: none; border: 0; padding: 0 0 6px; font: inherit; cursor: pointer; color: var(--ink); }
.area-well ul { list-style: none; padding: 6px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.area-well ul li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.area-well .check { margin: 0; }
.area-well .price { font-family: var(--mono); font-size: .85rem; }
.map-popup { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 240px; box-shadow: 0 10px 30px rgba(16,32,41,.18); position: relative; font-size: .9rem; }
.popup-close { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.popup-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.popup-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.popup-list .price { font-family: var(--mono); }
.popup-ds { display: grid; line-height: 1.3; }
.popup-ds .sym { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.popup-ds small, .row-ind { display: block; color: var(--ink-2); font-family: var(--mono); font-size: .74rem; }
.map-popup { max-width: 360px; }
.ol-attribution { font-size: .72rem; }

/* ---- Admin ---- */
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.admin-head nav, .filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-head nav a, .filters a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); font-size: .9rem; }
.admin-head nav a[aria-current], .filters a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-actions { display: grid; gap: 20px; margin-top: 24px; }
.admin-actions form:first-child { display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-block; font-size: .78rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; vertical-align: middle; background: var(--soft); color: var(--ink-2); }
.s-fulfilled { background: var(--brand-tint); color: var(--ok); }
.s-needs_files, .s-paid { background: var(--warn-tint); color: var(--warn); }
.s-refunded, .s-cancelled { background: var(--line, #e3e7ea); color: var(--muted, #5b6770); text-decoration: line-through; }
.message { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.message summary { cursor: pointer; }
.message pre { white-space: pre-wrap; font: .9rem/1.5 var(--mono); background: var(--soft); padding: 12px; border-radius: 6px; }

/* ---- Footer ---- */
.site-footer { background: var(--deep); color: #b6c5cd; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #b6c5cd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 24px; font-size: .85rem; color: #8397a2; }
