/* ================================================================
   ahoyamsterdam.nl — "delft-canal" design system
   Archetype: broadside-calendar · Prefix: ahoy-
   Fonts: Bricolage Grotesque (display) + Public Sans (body), self-hosted
   Signature: marquee-drift · curtain-wipe · ticket-tear-underline
   ================================================================ */

@font-face { font-family:'Bricolage Grotesque'; font-weight:400; font-display:optional; src:url('../fonts/bricolage-grotesque-400.woff2') format('woff2'); }
@font-face { font-family:'Bricolage Grotesque'; font-weight:600; font-display:optional; src:url('../fonts/bricolage-grotesque-600.woff2') format('woff2'); }
@font-face { font-family:'Bricolage Grotesque'; font-weight:700; font-display:optional; src:url('../fonts/bricolage-grotesque-700.woff2') format('woff2'); }
@font-face { font-family:'Bricolage Grotesque'; font-weight:800; font-display:optional; src:url('../fonts/bricolage-grotesque-800.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-weight:400; font-display:optional; src:url('../fonts/public-sans-400.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-weight:500; font-display:optional; src:url('../fonts/public-sans-500.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-weight:600; font-display:optional; src:url('../fonts/public-sans-600.woff2') format('woff2'); }
@font-face { font-family:'Public Sans'; font-weight:700; font-display:optional; src:url('../fonts/public-sans-700.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root{
  --delft-900:#122a52;   /* deepest canal night */
  --delft-800:#1b3a6b;   /* primary delft blue */
  --delft-600:#2f5aa8;   /* mid canal */
  --delft-400:#6d94cf;   /* daylight water */
  --delft-100:#dbe6f5;   /* faience wash */
  --brick:#b3593c;       /* amsterdam brick / terracotta accent */
  --brick-dark:#8f4229;
  --paper:#f7f4ec;       /* broadsheet paper */
  --paper-2:#efe9db;     /* ruled paper alt */
  --ink:#17202e;         /* text ink */
  --ink-soft:#495468;
  --line:#c8cdb9;        /* hairline rule (warm) */
  --white:#ffffff;
  --maxw:1120px;
  --measure:68ch;
  --r:3px;               /* sharp, print-like corners (not the pill-card slop) */
  --shadow:0 1px 0 var(--line);
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:'Public Sans',system-ui,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  font-size:clamp(16px,0.95rem + 0.2vw,18px);
  overflow-x:hidden; /* layout-qa: no horizontal scroll */
  overflow-wrap:break-word;
  -webkit-hyphens:auto;hyphens:auto; /* long NL compounds (grachtenevenementen…) must break, not overflow */
}
h1,h2,h3,h4,.ahoy-brand,.ahoy-when{overflow-wrap:break-word}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--delft-800)}

/* ---------- typography ---------- */
h1,h2,h3,h4{font-family:'Bricolage Grotesque',Georgia,serif;line-height:1.08;color:var(--delft-900);letter-spacing:-.01em}
h1{font-weight:800;font-size:clamp(2rem,1.4rem + 2.6vw,3.4rem)}
h2{font-weight:700;font-size:clamp(1.5rem,1.2rem + 1.3vw,2.2rem);margin-top:2.2em}
h3{font-weight:600;font-size:clamp(1.15rem,1rem + .5vw,1.4rem);margin-top:1.6em}
p,ul,ol{margin:0 0 1.1em}
.ahoy-prose{max-width:none} /* body text spans the full container width, matching the hero image above it */
.ahoy-prose ul,.ahoy-prose ol{padding-left:1.3em}
.ahoy-prose li{margin:.35em 0}

/* boat-wake underline (niche signature moment) under section headings — layered water ripple */
.ahoy-wake{position:relative;display:inline-block;padding-bottom:.26em}
.ahoy-wake::after{content:"";position:absolute;left:0;bottom:0;width:2.2em;height:2px;background:#b3593c;border-radius:2px}


/* ---------- layout ---------- */
.ahoy-wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
.ahoy-section{padding-block:clamp(2rem,4vw,3.5rem)}
.ahoy-rule{border:0;border-top:1px solid var(--line);margin-block:0}

/* ---------- skip link ---------- */
.ahoy-skip{position:absolute;left:-999px;top:0;background:var(--delft-900);color:#fff;padding:.6em 1em;z-index:200}
.ahoy-skip:focus{left:0}

/* ---------- header / nav (identical every page; layout-qa) ---------- */
.ahoy-top{background:#0d2345;color:#fff;position:sticky;top:0;z-index:100;border-bottom:3px solid var(--brick)}
.ahoy-top .ahoy-wrap{display:flex;align-items:center;gap:1rem;min-height:64px}
.ahoy-brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:#fff;font-family:'Bricolage Grotesque';font-weight:800;font-size:1.15rem;letter-spacing:-.02em;min-width:0}
.ahoy-brand img{width:34px;height:34px}
.ahoy-logo{background:#f4f1e8;border-radius:7px;padding:4px;box-shadow:0 1px 3px rgba(0,0,0,.35);flex-shrink:0} /* delft-tile chip so the mark reads on the dark nav; never shrinks */
.ahoy-brand-word{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ahoy-nav{margin-left:auto;display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}
.ahoy-nav a{color:#d9e2f2;text-decoration:none;font-weight:600;font-size:.95rem;padding:.5em .7em;border-radius:var(--r)}
.ahoy-nav a:hover{color:#fff;background:rgba(255,255,255,.1)}
.ahoy-nav a[aria-current="page"]{color:#fff;background:var(--brick)} /* active = distinct color */
/* dropdown */
.ahoy-navitem{position:relative;display:flex;align-items:center}
.ahoy-subtoggle{display:inline-flex;align-items:center;gap:.35em;background:none;border:0;cursor:pointer;
  color:#d9e2f2;font-family:'Public Sans';font-weight:600;font-size:.95rem;padding:.5em .7em;border-radius:var(--r)}
.ahoy-subtoggle:hover{color:#fff;background:rgba(255,255,255,.1)}
.ahoy-caret{transition:transform .2s;opacity:.85}
.ahoy-has-sub:hover .ahoy-caret,.ahoy-has-sub:focus-within .ahoy-caret,.ahoy-has-sub.open .ahoy-caret{transform:rotate(180deg)}
.ahoy-has-sub.is-active>.ahoy-subtoggle{color:#fff;background:var(--brick)}
.ahoy-sub{position:absolute;top:calc(100% + 10px);left:0;min-width:248px;list-style:none;margin:0;padding:.4rem;
  background:var(--white);border:1px solid var(--line);border-top:3px solid var(--brick);border-radius:0 0 7px 7px;
  box-shadow:0 14px 32px rgba(13,35,69,.3);opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s,transform .18s,visibility 0s .18s;z-index:120}
.ahoy-has-sub:hover .ahoy-sub,.ahoy-has-sub:focus-within .ahoy-sub,.ahoy-has-sub.open .ahoy-sub{
  opacity:1;visibility:visible;transform:translateY(0);transition-delay:0s}
.ahoy-sub::before{content:"";position:absolute;top:-8px;left:24px;width:14px;height:14px;background:var(--white);
  border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.ahoy-sub a{display:block;padding:.55em .7em;color:var(--delft-900);font-weight:600;font-size:.92rem;
  text-decoration:none;border-radius:4px;background:none}
.ahoy-sub a:hover{background:var(--delft-800);color:#fff;box-shadow:inset 3px 0 0 var(--brick)}
.ahoy-sub a[aria-current="page"]{color:var(--brick);background:var(--paper-2)}
/* language pill */
.ahoy-lang{display:inline-flex;align-items:center;margin-left:.7rem;border:1px solid rgba(255,255,255,.32);
  border-radius:999px;overflow:hidden;font-size:.82rem;font-weight:700}
.ahoy-lang a{color:#cdd9ee;padding:.34em .68em;text-decoration:none}
.ahoy-lang a:hover{color:#fff;background:rgba(255,255,255,.12)}
.ahoy-lang a[aria-current="true"]{color:#fff;background:var(--brick)}
.ahoy-burger{display:none;margin-left:auto;background:none;border:1px solid rgba(255,255,255,.35);color:#fff;font-size:1.3rem;line-height:1;padding:.35em .55em;border-radius:var(--r);cursor:pointer}
/* narrow phones: shrink the wordmark, never the logo mark, so the crest stays a constant size */
@media(max-width:400px){.ahoy-brand{font-size:1rem;gap:.45rem}}
@media(max-width:340px){.ahoy-brand{font-size:.86rem}}

@media(max-width:860px){
  .ahoy-burger{display:block;margin-left:.4rem}
  .ahoy-nav{position:fixed;inset:64px 0 auto 0;flex-direction:column;align-items:stretch;background:#0d2345;
    gap:0;padding:.5rem clamp(16px,4vw,32px) 1rem;border-bottom:3px solid var(--brick);
    transform:translateY(-8px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-height:calc(100vh - 64px);overflow-y:auto}
  .ahoy-nav.open{transform:none;opacity:1;pointer-events:auto}
  .ahoy-nav a{padding:.75em .4em;border-bottom:1px solid rgba(255,255,255,.08)}
  .ahoy-navitem{display:block}
  .ahoy-subtoggle{width:100%;justify-content:space-between;padding:.75em .4em;border-bottom:1px solid rgba(255,255,255,.08)}
  .ahoy-has-sub.is-active>.ahoy-subtoggle{background:none;color:#fff}
  .ahoy-sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;background:transparent;
    padding:0;min-width:0;max-height:0;overflow:hidden;transition:max-height .28s ease}
  .ahoy-has-sub.open .ahoy-sub{max-height:520px;padding:.1rem 0 .3rem}
  .ahoy-sub::before{display:none}
  .ahoy-sub a{color:#cdd9ee;padding:.6em .4em .6em 1.3rem}
  .ahoy-sub a:hover{background:rgba(255,255,255,.08);box-shadow:inset 3px 0 0 var(--brick)}
  .ahoy-sub a[aria-current="page"]{color:#fff;background:transparent;box-shadow:inset 3px 0 0 var(--brick)}
  .ahoy-lang{margin:0 0 0 auto}
}

/* ---------- masthead (broadside) ---------- */
.ahoy-masthead{background:linear-gradient(180deg,var(--delft-800),var(--delft-900));color:#fff;position:relative;overflow:hidden}
.ahoy-masthead .ahoy-wrap{position:relative;z-index:2;padding-block:clamp(2.4rem,5vw,4.5rem);text-align:center}
.ahoy-masthead h1{color:#fff;max-width:16ch;margin-inline:auto}
/* light title settle on load: letters ease in from slightly raised + tight (no per-letter spans) */
@keyframes ahoy-title{from{opacity:.55;transform:translateY(8px)}to{opacity:1;transform:none}}
.ahoy-masthead h1{animation:ahoy-title .95s cubic-bezier(.2,.7,.2,1) both}
.ahoy-kicker{text-transform:uppercase;letter-spacing:.22em;font-size:.78rem;font-weight:700;color:var(--delft-100);margin-bottom:.9rem}
.ahoy-lede{max-width:60ch;margin:1rem auto 0;color:#e4ecf8;font-size:1.1rem}
/* hero-as-background masthead */
.ahoy-masthead--hero{isolation:isolate}
.ahoy-masthead--hero .ahoy-wrap{padding-block:clamp(3.5rem,9vw,7rem)}
.ahoy-mh-bg{position:absolute;inset:0;z-index:0;overflow:hidden}
.ahoy-mh-bg picture,.ahoy-mh-bg img{width:100%;height:100%;object-fit:cover;display:block}
/* gentle Ken-Burns zoom on load (one-time, settles and holds) */
@keyframes ahoy-kenburns{from{transform:scale(1.02)}to{transform:scale(1.11)}}
.ahoy-mh-bg img{transform:scale(1.02);animation:ahoy-kenburns 14s ease-out both}
.ahoy-mh-veil{position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(18,42,82,.62),rgba(18,42,82,.82)),
             linear-gradient(90deg,rgba(18,42,82,.55),rgba(18,42,82,.2))}
.ahoy-masthead--hero .ahoy-wrap{position:relative;z-index:2}
.ahoy-masthead--hero .ahoy-lede{color:#f2f6fc;text-shadow:0 1px 2px rgba(0,0,0,.35)}
/* home only: soften the hero photo + concentrate the veil behind the calendar
   (right on desktop, bottom on mobile) so the calendar's own tile art isn't image-on-image */
.ahoy-masthead--map .ahoy-mh-bg img{filter:blur(3px) saturate(.92);transform:scale(1.06)}
.ahoy-masthead--map .ahoy-mh-veil{
  background:linear-gradient(90deg,rgba(13,35,69,.34) 0%,rgba(13,35,69,.5) 42%,rgba(13,35,69,.9) 100%),
             linear-gradient(180deg,rgba(13,35,69,.35),rgba(13,35,69,.45))}
@media(max-width:859px){
  .ahoy-masthead--map .ahoy-mh-veil{
    background:linear-gradient(180deg,rgba(13,35,69,.34) 0%,rgba(13,35,69,.5) 42%,rgba(13,35,69,.92) 100%)}
}
/* marquee-drift: slow ripple band, reduced-motion-safe */
.ahoy-ripple{position:absolute;inset:auto 0 0 0;height:60px;z-index:1;opacity:.5;
  background:repeating-linear-gradient(90deg,transparent 0 28px,rgba(255,255,255,.12) 28px 30px);
  animation:ahoy-drift 24s linear infinite}
@keyframes ahoy-drift{to{background-position:120px 0}}

/* ---------- masthead interactive flip calendar (home) ---------- */
.ahoy-masthead--map .ahoy-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;text-align:left}
.ahoy-masthead--map h1{margin-inline:0;max-width:none}
.ahoy-masthead--map .ahoy-lede{margin-inline:0;max-width:none}
.ahoy-flipcal{position:relative;background:var(--paper-2);border-radius:8px;
  box-shadow:0 26px 60px rgba(0,0,0,.5),0 6px 16px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.14);
  padding:1.6rem .9rem .9rem}
.ahoy-fc-rings{position:absolute;top:-15px;left:0;right:0;display:flex;justify-content:center;gap:34%;pointer-events:none;z-index:6}
.ahoy-fc-rings i{position:relative;width:16px;height:34px;border-radius:9px;
  background:linear-gradient(90deg,#697285 0%,#f4f7fb 32%,#b3bccb 54%,#5f6878 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -3px 3px rgba(0,0,0,.28),0 4px 5px rgba(0,0,0,.35)}
.ahoy-fc-rings i::after{content:"";position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);
  width:11px;height:6px;border-radius:50%;background:rgba(18,42,82,.5);filter:blur(.6px)}
.ahoy-fc-btn{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;
  border:0;background:var(--brick);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;z-index:5;
  display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.3);transition:background .15s,transform .15s}
.ahoy-fc-btn:hover{background:var(--brick-dark)}
.ahoy-fc-btn:active{transform:translateY(-50%) scale(.92)}
.ahoy-fc-prev{left:-15px}
.ahoy-fc-next{right:-15px}
.ahoy-fc-stage{position:relative;perspective:1100px;height:380px}
.ahoy-fc-page{position:absolute;inset:0;background:var(--white);border:1px solid var(--line);border-radius:6px;
  padding:.95rem 1.05rem;display:flex;flex-direction:column;transform-origin:50% 0;
  transform:rotateX(70deg);opacity:0;pointer-events:none;visibility:hidden;
  transition:transform .45s ease,opacity .4s ease,visibility 0s .45s;backface-visibility:hidden}
.ahoy-fc-page.is-on{transform:rotateX(0);opacity:1;pointer-events:auto;visibility:visible;z-index:2;transition-delay:0s}
.ahoy-fc-page.out{transform:rotateX(-80deg);opacity:0;visibility:visible;z-index:1}
/* landmark watermark: background layer, never an accent */
.ahoy-fc-bg{position:absolute;inset:10px;background:center/contain no-repeat;opacity:.1;pointer-events:none;z-index:0}
.ahoy-fc-page>*:not(.ahoy-fc-bg){position:relative;z-index:1}
.ahoy-fc-mh{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--delft-900);padding-bottom:.35rem}
.ahoy-fc-mh b{font-family:'Bricolage Grotesque';font-weight:800;font-size:1.45rem;color:var(--delft-900);letter-spacing:-.01em}
.ahoy-fc-year{font-size:.85rem;color:var(--ink-soft);font-weight:600}
.ahoy-fc-dow,.ahoy-fc-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.ahoy-fc-dow{font-size:.72rem;font-weight:700;color:var(--brick);text-transform:uppercase;letter-spacing:.04em;margin:.55rem 0 .2rem}
.ahoy-fc-grid span{font-size:.95rem;color:var(--ink-soft);padding:.26em 0}
.ahoy-fc-grid .is-today{display:inline-block;width:1.9em;margin:0 auto;background:var(--brick);color:#fff;border-radius:999px;font-weight:700}
.ahoy-fc-events{margin-top:auto;display:grid;gap:.4rem;padding-top:.7rem;border-top:1px dashed var(--line)}
.ahoy-fc-ev{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);
  padding:.35rem .45rem;border-radius:4px;transition:background .15s}
.ahoy-fc-ev:hover{background:var(--delft-100)}
.ahoy-fc-ev .ahoy-go{margin-left:auto}
.ahoy-fc-ico{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:50%;background:var(--white);border:2px solid var(--delft-800)}
.ahoy-fc-ico svg{width:17px;height:17px}
.ahoy-fc-ev:hover .ahoy-fc-ico{border-color:var(--brick)}
.ahoy-fc-evt{display:flex;flex-direction:column;gap:.15rem;font-size:.88rem}
.ahoy-fc-evt b{font-family:'Bricolage Grotesque';color:var(--delft-900);line-height:1.2}
.ahoy-fc-quiet{color:var(--ink-soft);font-style:italic;font-size:.88rem;margin:0}
.ahoy-pin-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.66rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.05em;padding:.14em .5em;border-radius:2px;
  background:var(--delft-100);color:var(--delft-800);align-self:flex-start}
.ahoy-pin-badge--t{background:var(--paper-2);color:var(--brick-dark)}
@media(max-width:899px){
  .ahoy-masthead--map .ahoy-wrap{grid-template-columns:1fr;text-align:center}
  .ahoy-masthead--map h1{margin-inline:auto}
  .ahoy-masthead--map .ahoy-lede{margin-inline:auto}
  .ahoy-flipcal{max-width:520px;margin-inline:auto;width:100%}
}
@media(prefers-reduced-motion:reduce){
  .ahoy-fc-page{transition:none}
  .ahoy-fc-btn{transition:none}
}

/* ---------- masthead pro canal map with event pins (map page) ---------- */
.ahoy-xmap{position:relative;border-radius:8px;box-shadow:0 18px 44px rgba(0,0,0,.28)}
.ahoy-xmap picture,.ahoy-xmap img{display:block;width:100%;height:auto;border-radius:8px}
.ahoy-xpin{position:absolute;margin:-18px 0 0 -18px;width:36px;height:36px;text-decoration:none;z-index:3} /* centered via margin, NOT transform — a transformed ancestor would break the mobile position:fixed card */
.ahoy-xpin:hover,.ahoy-xpin:focus-within,.ahoy-xpin.open{z-index:80} /* lift the active pin (and its card) above sibling pins */
.ahoy-xdot{position:relative;display:flex;width:36px;height:36px;border-radius:50%;background:var(--white);
  border:2px solid var(--delft-800);align-items:center;justify-content:center;
  box-shadow:0 3px 10px rgba(18,42,82,.35);transition:transform .18s,border-color .18s}
.ahoy-xdot svg{width:18px;height:18px}
.ahoy-xdot::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid rgba(47,90,168,.5);
  animation:ahoy-pulse 3s ease-out infinite}
.ahoy-xpin:nth-child(odd) .ahoy-xdot::after{animation-delay:1.1s}
.ahoy-xpin:nth-child(3n) .ahoy-xdot::after{animation-delay:2s}
@keyframes ahoy-pulse{0%{transform:scale(1);opacity:.7}70%{transform:scale(1.9);opacity:0}100%{transform:scale(1.9);opacity:0}}
.ahoy-xpin:hover .ahoy-xdot,.ahoy-xpin:focus-visible .ahoy-xdot,.ahoy-xpin.open .ahoy-xdot{
  border-color:var(--brick);transform:scale(1.14)}
.ahoy-xcard{position:absolute;top:calc(100% + 8px);left:50%;margin-left:-120px;width:240px;max-width:calc(100vw - 32px);
  background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:0 10px 24px rgba(18,42,82,.2);padding:.75rem .85rem;z-index:60;text-align:left;
  opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .18s,transform .18s}
.ahoy-xpin:hover .ahoy-xcard,.ahoy-xpin:focus-visible .ahoy-xcard,.ahoy-xpin.open .ahoy-xcard{
  opacity:1;visibility:visible;transform:translateY(0)}
.ahoy-xcard--up{top:auto;bottom:calc(100% + 8px)}
.ahoy-xcard--left{left:auto;right:-8px;margin-left:0}
.ahoy-xcard--right{left:-8px;margin-left:0}
/* small screens: keep the popover anchored to its pin (as on desktop), just smaller */
@media(max-width:560px){
  .ahoy-xcard{width:190px;margin-left:-95px;padding:.6rem .72rem}
  .ahoy-xcard--left{margin-left:0}
  .ahoy-xcard--right{margin-left:0}
  .ahoy-xcard b{font-size:.9rem}
  .ahoy-xcard p{font-size:.8rem}
}
.ahoy-xcard b{font-family:'Bricolage Grotesque';color:var(--delft-900);font-size:.95rem}
.ahoy-xcard p{margin:.35rem 0 0;font-size:.84rem;color:var(--ink-soft);line-height:1.45}
@media(max-width:899px){.ahoy-xmap{max-width:560px;margin-inline:auto;width:100%}}
@media(prefers-reduced-motion:reduce){
  .ahoy-xdot::after{animation:none;opacity:0}
  .ahoy-xdot,.ahoy-xcard{transition:none}
}

/* ---------- "coming up on the water" — client-side next event, our own data ---------- */
.ahoy-next{background:var(--delft-900);border-bottom:1px solid rgba(255,255,255,.08)}
.ahoy-next .ahoy-wrap{padding-block:1.1rem 1.2rem}
.ahoy-next-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:700;
  color:var(--delft-100);margin:0 0 .7rem}
.ahoy-next-card{display:none;align-items:center;gap:1.1rem;text-decoration:none;
  background:var(--white);border-radius:8px;padding:.9rem 1.1rem;box-shadow:0 8px 22px rgba(0,0,0,.3)}
.ahoy-next-card.is-on{display:flex}
.ahoy-next-ico{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:46px;height:46px;
  border-radius:50%;background:var(--delft-100);border:2px solid var(--delft-800)}
.ahoy-next-ico svg{width:24px;height:24px}
.ahoy-next-txt{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.ahoy-next-when{font-size:.76rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
.ahoy-next-tag{color:var(--brick-dark);font-weight:800}
.ahoy-next-card b{font-family:'Bricolage Grotesque';color:var(--delft-900);font-size:1.15rem;line-height:1.15}
.ahoy-next-blurb{color:var(--ink-soft);font-size:.9rem}
.ahoy-next-go{margin-left:auto;flex-shrink:0;align-self:center;background:var(--brick);color:#fff;font-weight:700;
  font-size:.9rem;padding:.55em 1em;border-radius:var(--r);white-space:nowrap}
.ahoy-next-card:hover .ahoy-next-go{background:var(--brick-dark)}
.ahoy-next-card:hover .ahoy-next-ico{border-color:var(--brick)}
@media(max-width:620px){
  .ahoy-next-card{flex-wrap:wrap;gap:.7rem}
  .ahoy-next-blurb{flex-basis:100%;order:4}
  .ahoy-next-go{margin-left:0;width:100%;text-align:center}
}

.ahoy-tide{position:relative;z-index:5;height:26px;margin-top:-26px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27130%27%20height%3D%2726%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2013%20q16.25%20-11%2032.5%200%20t32.5%200%20t32.5%200%20t32.5%200%20V26%20H0%20Z%27%20fill%3D%27%236d94cf%27%20opacity%3D%270.55%27%2F%3E%3Cpath%20d%3D%27M0%2017%20q16.25%20-11%2032.5%200%20t32.5%200%20t32.5%200%20t32.5%200%20V26%20H0%20Z%27%20fill%3D%27%23f7f4ec%27%2F%3E%3C%2Fsvg%3E") repeat-x bottom;background-size:130px 26px}

/* ---------- meta line ---------- */
.ahoy-meta{font-size:.85rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.06em}
.ahoy-meta time{font-weight:600}

/* ---------- factsheet (broadsheet ruled table) ---------- */
.ahoy-facts{width:100%;border-collapse:collapse;margin:1.4rem 0;background:var(--white);border:1px solid var(--line)}
.ahoy-facts th,.ahoy-facts td{text-align:left;padding:.7em .9em;border-bottom:1px solid var(--line);vertical-align:top}
.ahoy-facts th{font-family:'Bricolage Grotesque';font-weight:600;color:var(--delft-800);width:32%;background:var(--paper-2)}
.ahoy-facts tr:last-child th,.ahoy-facts tr:last-child td{border-bottom:0}

/* ---------- event index: perforated tickets (ties into the ticket-tear signature) ---------- */
.ahoy-tixlist{list-style:none;padding:0;margin:1.6rem 0;display:grid;gap:1.25rem}
.ahoy-tix a{position:relative;display:grid;grid-template-columns:112px 1fr auto;align-items:center;gap:1.1rem;
  text-decoration:none;color:inherit;background:var(--white);border:1px solid var(--line);border-radius:6px;
  padding:0 1.1rem 0 0;box-shadow:0 2px 8px rgba(18,42,82,.07);
  transition:transform .18s,box-shadow .18s}
.ahoy-tix:nth-child(odd) a{transform:rotate(-.3deg)}
.ahoy-tix:nth-child(even) a{transform:rotate(.3deg)}
.ahoy-tix a:hover{transform:rotate(0) translateY(-3px);box-shadow:0 10px 24px rgba(18,42,82,.16)}
.ahoy-tix-stub{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  background:var(--delft-100);border-right:2px dashed var(--delft-400);border-radius:6px 0 0 6px;
  padding:.75rem .5rem;min-height:78px}
.ahoy-tix a:hover .ahoy-tix-stub{background:#f2ddd2}
.ahoy-tix-stub b{font-family:'Bricolage Grotesque';font-weight:800;color:var(--brick);text-transform:uppercase;
  font-size:.76rem;letter-spacing:.06em;text-align:center;line-height:1.15}
.ahoy-tix-stub svg{width:20px;height:20px}
/* die-cut punch holes on the perforation */
.ahoy-tix a::before,.ahoy-tix a::after{content:"";position:absolute;left:112px;width:14px;height:14px;border-radius:50%;
  background:var(--paper);border:1px solid var(--line);transform:translateX(-50%);z-index:1}
.ahoy-tix a::before{top:-8px}
.ahoy-tix a::after{bottom:-8px}
.ahoy-tix-body{padding:.8rem 0}
.ahoy-tix-body h3{margin:0;color:var(--delft-900);font-size:1.08rem;display:inline}
.ahoy-tix-body .ahoy-pin-badge{margin-left:.45rem;vertical-align:middle}
.ahoy-tix-body p{margin:.25em 0 0;color:var(--ink-soft);font-size:.94rem;max-width:60ch}
.ahoy-go{align-self:center;color:var(--delft-600);font-weight:700;font-size:1.3rem}
@media(max-width:620px){
  .ahoy-tix a{grid-template-columns:88px 1fr;gap:.8rem}
  .ahoy-tix a::before,.ahoy-tix a::after{left:88px}
  .ahoy-tix .ahoy-go{display:none}
  .ahoy-tix-stub{min-height:68px}
}
@media(prefers-reduced-motion:reduce){.ahoy-tix a{transition:none}}

/* ---------- thumbs strip on event pages ---------- */
.ahoy-figure{margin:1.5rem 0}
.ahoy-figure img{width:100%;border:1px solid var(--line);border-radius:var(--r)}
.ahoy-figure figcaption{font-size:.85rem;color:var(--ink-soft);margin-top:.5em;font-style:italic}

/* ---------- ticket-tear underline (signature link treatment, in prose) ---------- */
.ahoy-prose a,.ahoy-tear{
  color:var(--delft-800);text-decoration:none;
  background-image:linear-gradient(var(--brick),var(--brick));
  background-repeat:repeat-x;background-position:0 100%;background-size:6px 2px; /* perforated */
  padding-bottom:1px;transition:background-size .18s,color .15s}
.ahoy-prose a:hover,.ahoy-tear:hover{color:var(--brick-dark);background-size:6px 100%;background-image:linear-gradient(var(--delft-100),var(--delft-100))}

/* ---------- buttons ---------- */
.ahoy-btn{display:inline-block;background:var(--brick);color:#fff;font-weight:700;text-decoration:none;
  padding:.7em 1.3em;border-radius:var(--r);border:0;cursor:pointer;font-family:'Public Sans'}
.ahoy-btn:hover{background:var(--brick-dark)}
.ahoy-btn--ghost{background:transparent;color:var(--delft-800);box-shadow:inset 0 0 0 2px var(--delft-800)}
.ahoy-btn--ghost:hover{background:var(--delft-800);color:#fff}

/* ---------- FAQ (details/summary, h3 inside — never a flat wall) ---------- */
.ahoy-faq details{border-bottom:1px solid var(--line)}
.ahoy-faq summary{list-style:none;cursor:pointer;padding:1rem .2rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.ahoy-faq summary::-webkit-details-marker{display:none}
.ahoy-faq summary h3{margin:0;font-size:1.08rem}
.ahoy-faq summary::after{content:"+";font-family:'Bricolage Grotesque';font-size:1.5rem;color:var(--brick);transition:transform .2s}
.ahoy-faq details[open] summary::after{transform:rotate(45deg)}
.ahoy-faq details>div{padding:0 .2rem 1.1rem;max-width:var(--measure);color:var(--ink-soft)}

/* ---------- year-ring: the 12 months as a canal ring ---------- */
.ahoy-yearwrap{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;margin:1.5rem 0}
.ahoy-yearring{position:relative;max-width:420px;width:100%;margin-inline:auto}
.ahoy-yearring svg{display:block;width:100%;height:auto}
.ahoy-yearring path{transition:opacity .15s}
.ahoy-yearring:hover path{opacity:.85}
.ahoy-yr-lbl{font-family:'Public Sans',sans-serif;font-size:14px;font-weight:600;fill:#495468}
.ahoy-yr-ctr1{font-family:'Bricolage Grotesque',sans-serif;font-size:30px;font-weight:800;fill:#122a52}
.ahoy-yr-ctr2{font-family:'Public Sans',sans-serif;font-size:13.5px;fill:#495468}
.ahoy-yearwrap .ahoy-timeline{margin:0}
@media(max-width:859px){
  .ahoy-yearwrap{grid-template-columns:1fr}
  .ahoy-yearring{max-width:360px}
}

/* ---------- historical timeline: the canal as a flowing line ---------- */
.ahoy-hist{position:relative;margin:2rem 0 2.5rem}
.ahoy-hist::before{content:"";position:absolute;left:50%;top:8px;bottom:8px;width:6px;transform:translateX(-50%);
  border-radius:3px;
  background:
    repeating-linear-gradient(180deg,transparent 0 14px,rgba(255,255,255,.35) 14px 17px),
    linear-gradient(180deg,var(--delft-400),var(--delft-800));
  animation:ahoy-histflow 16s linear infinite}
@keyframes ahoy-histflow{to{background-position:0 136px,0 0}}
.ahoy-hist-item{position:relative;display:grid;grid-template-columns:1fr 96px 1fr;align-items:center;margin:1rem 0}
.ahoy-hist-year{grid-column:2;justify-self:center;z-index:1;background:var(--white);
  border:2px solid var(--delft-800);border-radius:999px;padding:.22em .75em;
  font-family:'Bricolage Grotesque';font-weight:800;color:var(--brick);font-size:.95rem;
  box-shadow:0 3px 10px rgba(18,42,82,.15)}
.ahoy-hist-card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);
  padding:.85rem 1.05rem;max-width:430px;box-shadow:0 6px 18px rgba(18,42,82,.08)}
.ahoy-hist-item:nth-child(odd) .ahoy-hist-card{grid-column:1;grid-row:1;justify-self:end;text-align:right}
.ahoy-hist-item:nth-child(even) .ahoy-hist-card{grid-column:3;grid-row:1;justify-self:start}
.ahoy-hist-card b{font-family:'Bricolage Grotesque';color:var(--delft-900);font-size:1.02rem;display:block;margin-bottom:.25rem}
.ahoy-hist-card p{margin:0;font-size:.9rem;color:var(--ink-soft);line-height:1.5}
@media(max-width:719px){
  .ahoy-hist::before{left:44px}
  .ahoy-hist-item{grid-template-columns:88px 1fr;gap:.6rem}
  .ahoy-hist-year{grid-column:1;font-size:.82rem;padding:.2em .55em}
  .ahoy-hist-item:nth-child(odd) .ahoy-hist-card,
  .ahoy-hist-item:nth-child(even) .ahoy-hist-card{grid-column:2;grid-row:1;justify-self:start;text-align:left}
}
@media(prefers-reduced-motion:reduce){.ahoy-hist::before{animation:none}}

/* ---------- seasonal timeline (map page) ---------- */
.ahoy-timeline{list-style:none;padding:0;margin:1.5rem 0;display:grid;gap:.5rem}
.ahoy-timeline li{display:grid;grid-template-columns:minmax(72px,auto) 1fr;gap:1rem;align-items:baseline;
  padding:.6rem .2rem;border-bottom:1px dashed var(--line)}
.ahoy-timeline b{font-family:'Bricolage Grotesque';color:var(--delft-800);white-space:nowrap}
.ahoy-pinnum{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;
  background:var(--brick);color:#fff;border-radius:50%;font-size:.78rem;margin-right:.15em;vertical-align:middle}
.ahoy-map{margin:1.5rem 0}

/* ---------- embed box ---------- */
.ahoy-embed{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.1rem;margin:1.5rem 0}
.ahoy-embed textarea{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;border:1px solid var(--line);border-radius:var(--r);padding:.6em;min-height:76px;background:var(--white);color:var(--ink)}

/* ---------- footer ---------- */
.ahoy-foot{background:var(--delft-900);color:#c9d6ec;margin-top:2rem;border-top:3px solid var(--brick)}
.ahoy-foot .ahoy-wrap{padding-block:2.4rem;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
.ahoy-foot h4{color:#fff;font-size:1rem;margin-bottom:.6rem}
.ahoy-foot a{color:#c9d6ec;text-decoration:none}
.ahoy-foot a:hover{color:#fff;text-decoration:underline}
.ahoy-foot ul{list-style:none;padding:0;margin:0}
.ahoy-foot li{margin:.35em 0}
.ahoy-foot small{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);padding-top:1rem;color:#8ea3c6}
@media(max-width:720px){.ahoy-foot .ahoy-wrap{grid-template-columns:1fr}}

/* ---------- back-to-top (layout-qa) ---------- */
.ahoy-toplink{position:fixed;right:18px;bottom:18px;z-index:90;background:var(--delft-800);color:#fff;
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:1.2rem;box-shadow:0 2px 8px rgba(18,42,82,.35);
  opacity:0;pointer-events:none;transition:opacity .25s}
.ahoy-toplink.show{opacity:1;pointer-events:auto}
.ahoy-toplink:hover{background:var(--brick)}

/* ---------- curtain-wipe reveal (signature) ---------- */
.js .ahoy-reveal{opacity:0;clip-path:inset(0 0 12% 0);transform:translateY(10px);transition:opacity .5s ease,transform .5s ease,clip-path .5s ease}
.js .ahoy-reveal.in{opacity:1;clip-path:inset(0 0 0 0);transform:none}

@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto}
  .ahoy-ripple{animation:none}
  .ahoy-mh-bg img{animation:none;transform:scale(1.04)}
  .ahoy-wake::after{animation:none}
  .ahoy-masthead h1{animation:none}
  .js .ahoy-reveal{opacity:1;transform:none;clip-path:none;transition:none}
}
