/* =====================================================================
   VHL — Associazione Italiana Famiglie VHL
   Design notes: calm, clinical, trustworthy. The brand blue carries the
   structure; the red is an accent only (CTAs, active states) — on a
   patient-association site a wall of red reads as alarm, not energy.
   Single stylesheet, no framework, no build step.
   ===================================================================== */

/* ---- tokens --------------------------------------------------------- */
:root {
  --blue-900:#003a5f;
  --blue-700:#00558b;   /* brand primary (from the logo) */
  --blue-600:#0a6aa8;
  --blue-100:#e7f1f8;
  --blue-050:#f4f9fc;

  --red-600:#c92c30;    /* accent — derived from the old #e0383b, darkened
                           to reach 4.5:1 on white for body-size text */
  --red-500:#e0383b;    /* original brand red — large text / decoration only */

  --ink-900:#16202a;
  --ink-700:#33414f;
  --ink-500:#5b6b7a;
  --ink-300:#93a1ae;

  --line:#dfe6ec;
  --bg:#ffffff;
  --bg-soft:#f5f8fa;

  --radius:10px;
  --radius-lg:14px;
  --shadow-sm:0 1px 2px rgba(16,32,45,.06), 0 1px 3px rgba(16,32,45,.08);
  --shadow-md:0 2px 6px rgba(16,32,45,.07), 0 8px 24px rgba(16,32,45,.08);

  --wrap:1180px;
  --gap:clamp(1rem, 2.4vw, 2rem);

  --sans:"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---- reset ---------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink-900);
  font:400 clamp(16px,.35vw + 15px,17px)/1.65 var(--sans);
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue-700);text-underline-offset:.18em;text-decoration-thickness:from-font}
a:hover{color:var(--blue-900)}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em;color:var(--ink-900);letter-spacing:-.01em}
p,ul,ol{margin:0 0 1em}
:focus-visible{outline:3px solid var(--blue-600);outline-offset:2px;border-radius:3px}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1rem,3vw,2rem)}
.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}
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--blue-700);color:#fff;
  padding:.7rem 1.1rem;border-radius:0 0 var(--radius) 0}
.skip:focus{left:0}
.skip:hover,.skip:focus{color:#fff}
.muted{color:var(--ink-500);font-size:.9em}

/* ---- header --------------------------------------------------------- */
.site-head{background:var(--blue-700);color:#fff;
  background-image:linear-gradient(180deg,var(--blue-700),var(--blue-900))}
.head-inner{display:flex;align-items:center;gap:var(--gap);
  justify-content:space-between;padding-block:.85rem;flex-wrap:wrap}
/* Needs an explicit :hover. The global `a:hover` is (0,1,1) and out-specifies
   this rule's (0,1,0), so without it the site name turns dark blue on the blue
   header and disappears into the background. Same for .skip below. */
.brand{display:flex;align-items:center;gap:.85rem;color:#fff;text-decoration:none;min-width:0}
.brand:hover,.brand:focus-visible{color:#fff}
.brand:hover .brand-text strong{text-decoration:underline;text-underline-offset:.2em}
.brand:hover .brand-text small{color:#dbeaf5}
.brand-mark{background:#fff;border-radius:50%;padding:5px;flex:none;
  width:56px;height:56px;object-fit:contain}
.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-text strong{font-size:clamp(1rem,1.4vw,1.22rem);font-weight:700;letter-spacing:.005em;line-height:1.2}
.brand-text small{font-size:clamp(.74rem,.9vw,.84rem);color:#c7dcec;font-weight:400;margin-top:.15rem}
.head-actions{display:flex;align-items:center;gap:.6rem}

.searchbox{display:flex;align-items:center;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);border-radius:999px;overflow:hidden}
.searchbox input{background:none;border:0;color:#fff;padding:.5rem .3rem .5rem .95rem;
  font:inherit;font-size:.9rem;width:clamp(120px,16vw,190px)}
.searchbox input::placeholder{color:#bcd5e8}
.searchbox input:focus{outline:none}
.searchbox:focus-within{background:rgba(255,255,255,.22);border-color:#fff}
.searchbox button{background:none;border:0;color:#fff;padding:.5rem .85rem .4rem;cursor:pointer}
.social{color:#fff;display:grid;place-items:center;width:40px;height:40px;
  border-radius:50%;background:rgba(255,255,255,.14);transition:background .15s}
.social:hover{background:rgba(255,255,255,.28);color:#fff}

/* ---- main nav ------------------------------------------------------- */
.mainnav{background:var(--bg);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;box-shadow:var(--shadow-sm)}
.navlist{display:flex;flex-wrap:wrap;gap:.15rem;list-style:none;margin:0;padding:0}
.navlist a{display:block;padding:.95rem .95rem;color:var(--ink-700);font-weight:600;
  font-size:.925rem;text-decoration:none;border-bottom:3px solid transparent;transition:.15s}
.navlist a:hover{color:var(--blue-700);background:var(--blue-050)}
.navlist a[aria-current="page"]{color:var(--blue-700);border-bottom-color:var(--red-500)}
.navtoggle{display:none}
.nav-search-item{display:none}   /* only when the header search box is hidden */

/* ---- layout --------------------------------------------------------- */
.layout{display:grid;gap:clamp(1.5rem,3vw,2.75rem);padding-block:clamp(1.5rem,3.5vw,2.75rem);
  grid-template-columns:minmax(0,1fr)}
@media (min-width:62rem){ .layout{grid-template-columns:minmax(0,1fr) 20.5rem} }
.main{min-width:0}
.sidebar{display:flex;flex-direction:column;gap:1.1rem;min-width:0}

/* ---- hero ----------------------------------------------------------- */
.hero{background:linear-gradient(135deg,var(--blue-050),var(--blue-100));
  border:1px solid #d5e6f2;border-radius:var(--radius-lg);
  padding:clamp(1.4rem,3.2vw,2.6rem);margin-bottom:clamp(1.6rem,3vw,2.4rem)}
.hero-eyebrow{margin:0 0 .35rem;font-size:.78rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--blue-600)}
.hero-title{font-size:clamp(1.55rem,3.6vw,2.35rem);margin:0 0 .5rem;color:var(--blue-900)}
.hero-text{max-width:56ch;color:var(--ink-700);margin-bottom:1.3rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:0}

/* ---- buttons -------------------------------------------------------- */
.btn{display:inline-block;padding:.7rem 1.3rem;border-radius:999px;font-weight:600;
  font-size:.94rem;text-decoration:none;border:2px solid transparent;cursor:pointer;
  transition:.15s;font-family:inherit}
.btn--primary{background:var(--blue-700);color:#fff;border-color:var(--blue-700)}
.btn--primary:hover{background:var(--blue-900);border-color:var(--blue-900);color:#fff}
.btn--ghost{background:#fff;color:var(--blue-700);border-color:#bcd6e8}
.btn--ghost:hover{border-color:var(--blue-700);background:var(--blue-050);color:var(--blue-900)}

/* ---- headings / crumbs ---------------------------------------------- */
.section-head{font-size:1.32rem;margin:0 0 1rem;padding-bottom:.5rem;
  border-bottom:2px solid var(--line);position:relative}
.section-head::after{content:"";position:absolute;left:0;bottom:-2px;width:3.2rem;
  height:2px;background:var(--red-500)}
.section-head .count{color:var(--ink-300);font-weight:400;font-size:.85rem}
.page-title{font-size:clamp(1.6rem,3.4vw,2.15rem);margin-bottom:.9rem}
.crumbs{font-size:.85rem;color:var(--ink-500);margin-bottom:.9rem}
.crumbs a{color:var(--ink-500)}
.crumbs a:hover{color:var(--blue-700)}
.crumbs span[aria-hidden]{margin-inline:.35rem;color:var(--ink-300)}
.lead{font-size:1.06rem;color:var(--ink-700);max-width:66ch}
.empty{color:var(--ink-500);background:var(--bg-soft);padding:1.4rem;border-radius:var(--radius);
  border:1px dashed var(--line)}

/* ---- latest-news strip ---------------------------------------------- */
.strip{margin-bottom:clamp(1.6rem,3vw,2.4rem)}
.strip-head{display:flex;align-items:flex-end;gap:1rem}
.strip-head .section-head{flex:1;margin-bottom:1rem}
.strip-nav{display:flex;gap:.4rem;padding-bottom:1rem}
.strip-nav[hidden]{display:none}
.strip-btn{width:34px;height:34px;border-radius:50%;border:1px solid #c9d9e5;background:#fff;
  color:var(--blue-700);display:grid;place-items:center;cursor:pointer;transition:.15s}
.strip-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.strip-btn:hover:not(:disabled){background:var(--blue-700);border-color:var(--blue-700);color:#fff}
.strip-btn:disabled{opacity:.35;cursor:default}

.strip-all{padding-bottom:1rem;font-size:.88rem;font-weight:600;text-decoration:none;white-space:nowrap}
.strip-all:hover{text-decoration:underline}

/* Smoothing lives in CSS, not in scrollBy({behavior:'smooth'}).
   That option is a silent no-op in some engines and whenever the user asks for
   reduced motion — the arrows then appear to do nothing at all. Assigning
   scrollLeft always moves; the browser animates it here when it can. */
.strip-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);
  gap:.8rem;list-style:none;margin:0;padding:0 0 .4rem;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:thin;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){ .strip-track{scroll-behavior:auto} }
@media (min-width:48rem){ .strip-track{grid-auto-columns:minmax(210px,1fr)} }
.strip-track:focus-visible{outline:3px solid var(--blue-600);outline-offset:3px;border-radius:6px}
.mini{scroll-snap-align:start}
.mini-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  transition:border-color .15s, box-shadow .15s, transform .15s}
.mini-link:hover{border-color:var(--blue-700);box-shadow:var(--shadow-md);transform:translateY(-2px);
  color:inherit}
.mini-media{display:block;aspect-ratio:16/9;background:var(--blue-050);overflow:hidden}
.mini-media img{width:100%;height:100%;object-fit:cover}
.mini-media__none{width:100%;height:100%;display:grid;place-items:center;
  color:var(--blue-600);font-weight:700;font-size:.9rem;letter-spacing:.08em;
  background:linear-gradient(135deg,var(--blue-100),var(--blue-050))}
.mini-body{padding:.6rem .75rem .75rem;display:flex;flex-direction:column;gap:.25rem}
.mini-date{font-size:.72rem;color:var(--ink-500)}
.mini-title{font-size:.87rem;font-weight:600;line-height:1.35;color:var(--ink-900)}
.mini-link:hover .mini-title{color:var(--blue-700)}

/* ---- cards / feed --------------------------------------------------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.15rem 1.25rem}
.card-title{font-size:1rem;font-weight:700;color:var(--blue-900);margin:0 0 .7rem;
  padding-bottom:.5rem;border-bottom:1px solid var(--line)}

.cards{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:1.1rem}
@media (min-width:40rem){ .cards{grid-template-columns:1fr 1fr} }

.post{display:flex;flex-direction:column;overflow:hidden;padding:0;
  transition:box-shadow .18s, transform .18s, border-color .18s}
.post:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:#c9d9e5}
@media (min-width:40rem){ .post--lead{grid-column:1 / -1;flex-direction:row} }
.post-media{display:block;background:var(--blue-050);overflow:hidden;flex:none}
.post-media img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9;transition:transform .3s}
.post:hover .post-media img{transform:scale(1.03)}
@media (min-width:40rem){
  .post--lead .post-media{width:46%}
  .post--lead .post-media img{aspect-ratio:auto;min-height:100%}
}
.post-media--video{display:grid;place-items:center;aspect-ratio:16/9;
  background:linear-gradient(135deg,var(--blue-100),var(--blue-050))}
.play{width:54px;height:54px;border-radius:50%;background:var(--red-500);position:relative;
  box-shadow:var(--shadow-md)}
.play::after{content:"";position:absolute;left:53%;top:50%;transform:translate(-50%,-50%);
  border-left:16px solid #fff;border-block:10px solid transparent}
.post-body{padding:1.05rem 1.2rem 1.2rem;display:flex;flex-direction:column;flex:1}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 .45rem;
  font-size:.8rem;color:var(--ink-500)}
.tag{background:var(--blue-050);color:var(--blue-700);border:1px solid #d5e6f2;
  padding:.1rem .55rem;border-radius:999px;font-size:.73rem;font-weight:600}
.post-title{font-size:1.06rem;margin:0 0 .45rem;line-height:1.35}
.post--lead .post-title{font-size:clamp(1.15rem,2.1vw,1.45rem)}
.post-title a{color:var(--ink-900);text-decoration:none}
.post-title a:hover{color:var(--blue-700);text-decoration:underline}
.post-teaser{color:var(--ink-700);font-size:.925rem;margin:0 0 .8rem}
.post-more{margin:auto 0 0}
.more{font-weight:600;font-size:.9rem;text-decoration:none;color:var(--blue-700)}
.more:hover{text-decoration:underline}
.section-more{margin-top:.4rem}

/* ---- pager ---------------------------------------------------------- */
.pager{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;
  margin:1.6rem 0;padding-top:1.2rem;border-top:1px solid var(--line)}
.pager-btn{display:inline-block;padding:.55rem 1.05rem;border:1px solid #c9d9e5;
  border-radius:999px;text-decoration:none;font-weight:600;font-size:.9rem}
.pager-btn:hover{background:var(--blue-050);border-color:var(--blue-700)}
.pager-now{color:var(--ink-500);font-size:.88rem}

/* ---- article -------------------------------------------------------- */
.article{max-width:74ch}
.article-title{font-size:clamp(1.6rem,3.6vw,2.25rem);margin-bottom:.6rem}
.article-head{margin-bottom:1.3rem;padding-bottom:1rem;border-bottom:2px solid var(--line)}
.article-figure{margin:0 0 1.5rem}
.article-figure img{width:100%;border-radius:var(--radius);border:1px solid var(--line)}
.article-figure figcaption{font-size:.85rem;color:var(--ink-500);margin-top:.5rem;font-style:italic}
.embed{position:relative;aspect-ratio:16/9;margin:0 0 1.5rem;border-radius:var(--radius);
  overflow:hidden;background:#000;border:1px solid var(--line)}
.embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---- rich text (migrated bodies) ------------------------------------ */
.rte{max-width:74ch}
.rte > :last-child{margin-bottom:0}
.rte-intro{font-size:1.06rem;color:var(--ink-700);margin-bottom:1.1rem}
.rte-intro > :last-child{margin-bottom:0}
.rte h2{font-size:1.32rem;margin:1.8rem 0 .6rem;color:var(--blue-900)}
.rte h3{font-size:1.12rem;margin:1.5rem 0 .5rem;color:var(--blue-900)}
.rte h4{font-size:1rem;margin:1.3rem 0 .45rem}
.rte p{margin:0 0 1.05em}
.rte ul,.rte ol{margin:0 0 1.05em;padding-left:1.35rem}
.rte li{margin-bottom:.35em}
.rte a{font-weight:500}
.rte img{border-radius:var(--radius);margin:1.1rem 0;height:auto}
.rte strong{font-weight:700;color:var(--ink-900)}
.rte em{font-style:italic}
.rte hr{border:0;border-top:1px solid var(--line);margin:1.8rem 0}
.rte blockquote{margin:1.4rem 0;padding:.35rem 0 .35rem 1.15rem;
  border-left:4px solid var(--blue-100);color:var(--ink-700);font-style:italic}
/* legacy layout tables -> readable, scrollable */
.rte table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.94rem;
  display:block;overflow-x:auto}
.rte th,.rte td{border:1px solid var(--line);padding:.6rem .75rem;text-align:left;
  vertical-align:top}
.rte th{background:var(--bg-soft);font-weight:700}
.rte iframe{max-width:100%;border-radius:var(--radius)}

/* ---- galleries ------------------------------------------------------ */
.gallery{display:grid;gap:.6rem;margin:1.3rem 0;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.gallery-item{display:block;border-radius:var(--radius);overflow:hidden;background:var(--blue-050);
  border:1px solid var(--line);aspect-ratio:4/3;transition:.18s}
.gallery-item:hover{border-color:var(--blue-700);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.gallery-item img{width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
@media (max-width:30rem){ .gallery{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))} }

/* lightbox (progressive: without JS the links open the image directly) */
.lb{position:fixed;inset:0;z-index:200;background:rgba(8,18,28,.93);
  display:grid;grid-template-rows:1fr auto;place-items:center;padding:1rem}
.lb[hidden]{display:none}
.lb img{max-width:min(96vw,1400px);max-height:82vh;width:auto;height:auto;border-radius:6px;
  box-shadow:0 10px 50px rgba(0,0,0,.5)}
.lb-cap{color:#dbe7f0;font-size:.9rem;text-align:center;padding:.8rem 1rem 0;max-width:70ch}
.lb-close,.lb-prev,.lb-next{position:absolute;background:rgba(255,255,255,.12);color:#fff;
  border:1px solid rgba(255,255,255,.25);width:46px;height:46px;border-radius:50%;
  font-size:1.4rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.lb-close:hover,.lb-prev:hover,.lb-next:hover{background:rgba(255,255,255,.26)}
.lb-close{top:1rem;right:1rem}
.lb-prev{left:1rem;top:50%;transform:translateY(-50%)}
.lb-next{right:1rem;top:50%;transform:translateY(-50%)}
.lb-count{position:absolute;top:1.15rem;left:1.25rem;color:#9dbdd4;font-size:.85rem;
  font-variant-numeric:tabular-nums}
@media (max-width:34rem){ .lb-prev{left:.35rem} .lb-next{right:.35rem} }

/* ---- downloads ------------------------------------------------------ */
.downloads{margin-top:2.2rem;padding-top:1.4rem;border-top:2px solid var(--line)}
.dl-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.dl{display:flex;align-items:center;gap:.85rem;padding:.75rem .95rem;background:var(--bg-soft);
  border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;
  color:var(--ink-900);transition:.15s}
.dl:hover{background:var(--blue-050);border-color:var(--blue-700);color:var(--blue-900)}
.dl-ico{flex:none;display:grid;place-items:center;width:2.9rem;height:2.2rem;border-radius:5px;
  background:var(--red-600);color:#fff;font-size:.62rem;font-weight:700;letter-spacing:.04em}
.dl-name{flex:1;font-weight:600;font-size:.93rem;min-width:0;overflow-wrap:anywhere}
.dl-size{flex:none;color:var(--ink-500);font-size:.82rem;font-variant-numeric:tabular-nums}

/* ---- adjacent posts ------------------------------------------------- */
.adjacent{display:grid;gap:.75rem;margin-top:2rem}
@media (min-width:40rem){ .adjacent{grid-template-columns:1fr 1fr} }
.adj{display:flex;flex-direction:column;gap:.2rem;padding:.9rem 1.1rem;border:1px solid var(--line);
  border-radius:var(--radius);text-decoration:none;background:#fff;transition:.15s}
.adj:hover{border-color:var(--blue-700);background:var(--blue-050)}
.adj--next{text-align:right}
.adj-lbl{font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-500);font-weight:700}
.adj-t{font-weight:600;font-size:.92rem;color:var(--ink-900)}

/* ---- lists / sidebar ------------------------------------------------ */
.linklist{list-style:none;margin:0;padding:0}
.linklist li{border-bottom:1px solid var(--line)}
.linklist li:last-child{border-bottom:0}
.linklist a{display:block;padding:.55rem 0;text-decoration:none;font-weight:500;font-size:.94rem}
.linklist a:hover{color:var(--blue-900);text-decoration:underline}
.linklist--cols{columns:2;column-gap:2rem}
@media (max-width:40rem){ .linklist--cols{columns:1} }

/* ---- sidebar: flat sections, label does the separating ---------------
   Cards cost ~2.5rem of a 20rem column in border + padding, on a column
   that is already narrow. Flat sections give that width back to the
   content; the section title carries the visual separation instead. */
.side-sec{padding-block:0 .2rem}
.side-sec + .side-sec{border-top:1px solid var(--line);padding-top:1.35rem}
.side-title{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  color:var(--blue-700);margin:0 0 .75rem;padding-bottom:.5rem;position:relative}
/* same short red rule as .section-head in the main column, so the two read as one system */
.side-title::after{content:"";position:absolute;left:0;bottom:0;width:2.2rem;height:2px;
  background:var(--red-500)}

.side-sec .rte{font-size:.92rem;max-width:none}
.side-sec .rte p:last-child{margin-bottom:0}
.side-sec .rte img{margin:0 auto .6rem;border-radius:6px}
.side-sec .rte iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:6px}
.side-sec .linklist a{padding:.5rem 0}

/* The one deliberate exception: the 5x1000 block is a donation CTA, so it
   keeps a tinted panel. Everything else stays flat. */
.side-sec--cinque-per-mille{background:linear-gradient(160deg,var(--blue-050),#fff);
  border:1px solid #d9e8f3;border-radius:var(--radius);padding:1rem 1.1rem;text-align:center}
.side-sec--cinque-per-mille + .side-sec{border-top:0;padding-top:0}
.side-sec--cinque-per-mille strong{color:var(--blue-900)}
.side-sec--cinque-per-mille .side-title{text-align:left}

/* ---- forms ---------------------------------------------------------- */
.form{max-width:38rem;margin-bottom:2rem}
.form--inline{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;max-width:none}
.form--inline input[type=search]{flex:1;min-width:14rem}
.field{margin-bottom:1.05rem}
.field label{display:block;font-weight:600;font-size:.92rem;margin-bottom:.35rem;color:var(--ink-700)}
.field input,.field textarea,.form--inline input{
  width:100%;padding:.65rem .85rem;border:1px solid #c3d1dc;border-radius:var(--radius);
  font:inherit;font-size:.95rem;background:#fff;color:var(--ink-900)}
.field input:focus,.field textarea:focus{border-color:var(--blue-700);outline:2px solid var(--blue-100)}
.field [aria-invalid="true"]{border-color:var(--red-600);background:#fdf6f6}
.field--check label{display:flex;gap:.6rem;align-items:flex-start;font-weight:400;font-size:.92rem}
.field--check input{width:auto;margin-top:.25rem;flex:none}
.req{color:var(--red-600)}
.hp{position:absolute;left:-9999px}
.notice{padding:1rem 1.15rem;border-radius:var(--radius);margin-bottom:1.4rem;border:1px solid}
.notice ul{margin:.5rem 0 0;padding-left:1.2rem}
.notice--ok{background:#eef8f1;border-color:#b6ddc3;color:#15532c}
.notice--err{background:#fdf2f2;border-color:#f0c0c0;color:#8d1f22}
.result-count{color:var(--ink-500);font-size:.92rem}
.results{list-style:none;margin:0;padding:0}
.results li{padding:1.1rem 0;border-bottom:1px solid var(--line)}
.results h2{font-size:1.08rem;margin:0 0 .3rem}
.results h2 a{text-decoration:none}
.results h2 a:hover{text-decoration:underline}
.contact-alt{margin-top:1.5rem}

/* ---- footer --------------------------------------------------------- */
.site-foot{background:var(--blue-900);color:#cfe0ec;margin-top:clamp(2rem,5vw,4rem);
  padding-top:clamp(2rem,4vw,3rem);font-size:.92rem}
.foot-grid{display:grid;gap:var(--gap);padding-bottom:2rem}
@media (min-width:48rem){ .foot-grid{grid-template-columns:repeat(3,1fr)} }
.foot-col h2{font-size:.82rem;text-transform:uppercase;letter-spacing:.09em;color:#fff;
  margin:0 0 .9rem;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.18)}
.foot-col .rte{font-size:.9rem;max-width:none}
.foot-col .rte p{margin-bottom:.4em;text-align:left !important}
.foot-col .rte strong{color:#fff}
.foot-col img{margin:.6rem 0;border-radius:6px;background:#fff;padding:5px}
.site-foot a{color:#a9d3ee}
.site-foot a:hover{color:#fff}
.site-foot .linklist li{border-bottom-color:rgba(255,255,255,.12)}
.site-foot .linklist a{color:#cfe0ec;font-weight:400}
.foot-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;
  padding-block:1.1rem;border-top:1px solid rgba(255,255,255,.15);font-size:.85rem;color:#9dbdd4}
.foot-legal p{margin:0}

/* ---- mobile nav ----------------------------------------------------- */
@media (max-width:61.99rem){
  .navtoggle{display:flex;align-items:center;gap:.6rem;width:100%;padding:.85rem 0;
    background:none;border:0;font:inherit;font-weight:700;font-size:.95rem;
    color:var(--blue-700);cursor:pointer}
  .bars{display:inline-flex;flex-direction:column;gap:4px;width:20px}
  .bars span{height:2px;background:currentColor;border-radius:2px;transition:.2s}
  .navtoggle[aria-expanded="true"] .bars span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .navtoggle[aria-expanded="true"] .bars span:nth-child(2){opacity:0}
  .navtoggle[aria-expanded="true"] .bars span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .navlist{display:none;flex-direction:column;padding-bottom:.6rem}
  .navlist.is-open{display:flex}
  .navlist a{padding:.7rem .5rem;border-bottom:1px solid var(--line);border-left:3px solid transparent}
  .navlist a[aria-current="page"]{border-bottom-color:var(--line);border-left-color:var(--red-500);
    background:var(--blue-050)}
  .head-inner{gap:.75rem}
}
@media (max-width:47.99rem){
  /* keep the brand and the actions on ONE row: the brand text was taking the
     full width and pushing the social icon onto a line of its own. */
  .head-inner{flex-wrap:nowrap}
  .brand{flex:1 1 auto;min-width:0}
  .brand-text{min-width:0}
  .brand-text strong{font-size:.98rem;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .brand-text small{display:none}
  .brand-mark{width:44px;height:44px}
  .head-actions{flex:none}
  .searchbox{display:none}          /* …so surface it in the menu instead */
  .nav-search-item{display:block}
}

/* ---- print ---------------------------------------------------------- */
@media print{
  .mainnav,.sidebar,.site-foot,.head-actions,.pager,.adjacent,.skip{display:none}
  body{font-size:11pt}
  .layout{display:block}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#555}
}

/* ---- motion --------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  .post:hover{transform:none}
  .post:hover .post-media img{transform:none}
}
