/* Shared styles for the Manx Teams content pages (About, FAQ, category and
   town pages, admin). Mirrors the visual identity in index.html: deep sea
   blue, warm sand, a red rule from the flag, plain unpretentious copy. Kept as
   one small file so every content page stays consistent without a build step.
   Content pages carry no inline style attributes: the Worker serves them
   under a hashed style-src, so everything visual lives here or in a <style>
   block. */
:root{
  --ink:#0B2545;
  --ink-2:#13315C;
  --bg:#F4EFE6;
  --surface:#FFFFFF;
  --line:#DED6C8;
  --muted:#5B6473;
  --accent:#C8102E;
  --accent-deep:#A50D26;
  --link:#1F4E9A;
  --go:#1B7A4E;
  --radius:14px;
  --shadow:0 6px 24px rgba(11,37,69,.14);
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--sans);color:var(--ink);background:var(--bg);margin:0;
  -webkit-font-smoothing:antialiased;line-height:1.6;
}
.wrap{max-width:760px;margin:0 auto;padding:0 20px 80px}

.topbar{
  background:var(--surface);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:10;
}
.topbar-inner{
  max-width:760px;margin:0 auto;padding:12px 20px;
  display:flex;align-items:center;gap:12px;
}
.bib{
  width:36px;height:36px;border-radius:9px;flex:none;
  display:grid;place-items:center;color:#fff;font-weight:800;
  letter-spacing:.02em;font-size:15px;background:var(--ink);text-decoration:none;
}
.topbar a.home{
  font-size:15px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);text-decoration:none;
}
.topbar .back{
  margin-left:auto;font-size:14px;font-weight:600;color:var(--link);
  text-decoration:none;display:inline-flex;align-items:center;gap:6px;
}
.topbar .back:hover{text-decoration:underline}
.topbar .back svg{width:15px;height:15px}

header.page{padding:44px 0 8px}
.eyebrow{
  font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);margin:0 0 10px;
}
h1{font-size:32px;line-height:1.15;font-weight:800;margin:0 0 8px;letter-spacing:-.01em}
.lede{font-size:18px;color:var(--ink-2);margin:0}

main{margin-top:8px}
h2{font-size:21px;font-weight:800;margin:36px 0 10px;letter-spacing:-.01em}
h3{font-size:16px;font-weight:700;margin:22px 0 6px}
p{margin:0 0 14px}
a{color:var(--link)}
ul,ol{margin:0 0 14px;padding-left:22px}
li{margin:0 0 7px}
strong{font-weight:700}

.faq-item{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;margin:0 0 12px;
}
.faq-item h3{margin:0 0 6px;font-size:16.5px}
.faq-item p:last-child{margin-bottom:0}

.cta{
  display:inline-flex;align-items:center;gap:8px;margin-top:8px;
  background:var(--accent);color:#fff;font-weight:700;font-size:15px;
  padding:13px 20px;border-radius:12px;text-decoration:none;
  box-shadow:var(--shadow);transition:filter .12s ease,transform .12s ease;
}
.cta:hover{filter:brightness(1.05)}
.cta:active{transform:translateY(1px)}
.cta.alt{background:var(--surface);color:var(--ink);border:1.5px solid var(--line)}
.cta.alt:hover{background:var(--bg)}
/* The same red call to action in the top bar of every page. */
.topbar .topcta{margin:0 0 0 auto;padding:9px 15px;font-size:14px;border-radius:10px;white-space:nowrap}
@media (max-width:420px){.topbar .topcta{padding:8px 11px;font-size:13px}.topbar a.home{font-size:13px}}

.docfoot{
  margin-top:48px;padding-top:24px;border-top:1px solid var(--line);
  font-size:14px;color:var(--muted);
}
.docfoot a{color:var(--muted);text-decoration:none;font-weight:600}
.docfoot a:hover{text-decoration:underline}
.docfoot .links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:10px}

a:focus-visible,.cta:focus-visible,button:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:4px}

@media (max-width:560px){
  h1{font-size:26px}
  .lede{font-size:16.5px}
}

/* Visually hidden text for screen readers (pin names on category-page maps). */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Leaflet's stylesheet loads after this one, so match its specificity. */
.leaflet-container .leaflet-control-attribution a{text-decoration:underline;color:var(--link)}

/* Utility classes so content pages carry no inline style attributes. */
.cta-row{margin-top:24px}
.cta-row-lg{margin-top:28px}
.tight{margin:10px 0 0}
.warn{color:var(--accent-deep)}
.warn-b{color:var(--accent-deep);font-weight:700}
.muted{color:var(--muted)}
.pad-li{padding:6px 2px}
.mt-lg{margin-top:34px}
.mt-md{margin-top:22px}
.hidden{display:none}

/* Category grid, shared by the landing page and the teams index. Colours
   come from config.js as cat-<slug> classes written by landing.js. */
.catgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:14px 0 0;padding:0;list-style:none}
.catgrid li{margin:0}
.cat{
  display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px 18px 16px 20px;text-decoration:none;color:var(--ink);position:relative;overflow:hidden;
  transition:transform .12s ease,box-shadow .12s ease;
}
.cat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c,var(--ink-2))}
.cat:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.cat .glyph{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--c,var(--ink-2));color:#fff;font-weight:800;font-size:12px;margin-bottom:8px}
.cat h3{margin:0 0 4px;font-size:16px}
.cat p{margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.cat .n{display:block;margin-top:8px;font-size:12.5px;font-weight:700;color:var(--link)}
