/* Imsouane Surf Guide: one stylesheet, no framework. Style: Zellige. */
@font-face { font-family: "Gloock"; src: url("/static/fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* brand */
  --terra-text: #9E4E2E; --emerald: #1F6A5D; --emerald-deep: #17554A; --saffron: #F0AE2D; --terra: #B9603C; --indigo: #1B1F3B; --cream: #FFF6E5;
  /* surfaces and text */
  --bg: #FFF6E5; --paper: #FFFFFF; --paper-2: #FBEFD6; --ink: #1B1F3B; --ink-2: #44486A; --ink-3: #5B5F75;
  --line: #EAD9B7; --line-2: #F3E6CB; --link: #1F6A5D; --link-hover: #A84F31;
  --mint: #DCEEE9; --mint-ink: #17554A; --blush: #F8DCD4; --blush-ink: #8E2F1C;
  --sea: #D3E8E2; --land: #F6E6C4; --star-off: #E3D3B0;
  /* ratings, the usual red-to-green order: flat, poor, fair, good, very good, epic */
  --r0: #DDD3C2; --r1: #E58A6E; --r2: #F2C14E; --r3: #8FCB9B; --r4: #2E9A6E; --r5: #17554A;
  --shadow: 0 1px 2px rgba(27,31,59,.06), 0 10px 30px -16px rgba(27,31,59,.28);
  --radius: 18px; --radius-s: 12px; --max: 1200px;
  --serif: "Gloock", ui-serif, Georgia, serif; --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='%231F6A5D'/%3E%3Crect x='7' y='7' width='14' height='14' fill='%23B9603C'/%3E%3Crect x='7' y='7' width='14' height='14' fill='%23B9603C' transform='rotate(45 14 14)'/%3E%3Ccircle cx='14' cy='14' r='3.5' fill='%23F0AE2D'/%3E%3Crect x='-3' y='-3' width='6' height='6' fill='%23FFF6E5' transform='rotate(45 0 0)'/%3E%3Crect x='25' y='25' width='6' height='6' fill='%23FFF6E5' transform='rotate(45 28 28)'/%3E%3Crect x='25' y='-3' width='6' height='6' fill='%23FFF6E5' transform='rotate(45 28 0)'/%3E%3Crect x='-3' y='25' width='6' height='6' fill='%23FFF6E5' transform='rotate(45 0 28)'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12.00,0.50 14.53,5.90 20.13,3.87 18.10,9.47 23.50,12.00 18.10,14.53 20.13,20.13 14.53,18.10 12.00,23.50 9.47,18.10 3.87,20.13 5.90,14.53 0.50,12.00 5.90,9.47 3.87,3.87 9.47,5.90'/%3E%3C/svg%3E");
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.6rem); }
h3, h2.h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
table, .tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.kicker { font: 700 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }


/* header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1; }
.brand img { height: 56px; width: auto; flex: none; }
.brand b { display: block; font: 400 1.5rem/1 var(--serif); }
.brand small { display: block; font: 700 .66rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--terra-text); margin-top: 5px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); border-bottom-color: var(--terra); }
.tools { display: flex; align-items: center; gap: 6px; }
.chip-btn, .lang summary { white-space: nowrap; appearance: none; border: 0; background: var(--indigo); color: var(--cream); font: 700 .8rem/1 var(--sans); padding: 10px 13px; border-radius: 999px; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; }
.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 160px; }
.lang li a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--mint); color: var(--mint-ink); }
.menu-btn { display: none; }
.menu-btn svg { display: block; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 18px 18px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--terra); }
  .tools { margin-left: auto; }
}
@media (max-width: 520px) {
  .top .wrap { gap: 10px; padding: 0 14px; height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .brand img { height: 48px; }
  .brand b { font-size: 1.25rem; }
  .brand small { letter-spacing: .24em; }
  .tools { gap: 4px; }
  .chip-btn, .lang summary { padding: 9px 10px; }
  .wrap { padding: 0 16px; }
}

/* emerald panels (home hero, page heroes, spot hero) */
.panel { background: var(--emerald); color: var(--cream); border-radius: 30px; position: relative; overflow: hidden; }
.panel a { color: var(--cream); }
.panel a:hover { color: var(--saffron); }
.panel .kicker { color: #FFD98A; }
.panel .lede { color: #DCEEE9; }
.hero { margin: 24px 0 0; padding: 56px 56px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: end; min-height: 560px; }
.hero h1 { margin-top: 14px; max-width: 15ch; font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.2rem); }
.lede { font-size: 1.15rem; line-height: 1.6; max-width: 54ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 56px; }
.page-hero { margin: 24px 0 0; padding: 40px 48px 44px; }
.page-hero h1 { margin: 10px 0 14px; }
.page-hero .lede { margin: 0; }
.crumbs { font-size: .9rem; margin: 0 0 6px; }
.panel .crumbs { color: #D3E8E2; }
.panel .crumbs a { color: #FFF6E5; }
.panel-deco { position: absolute; right: -70px; top: -70px; width: 300px; height: 300px; opacity: .22; pointer-events: none; }
@media (max-width: 640px) { .panel-deco { display: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 36px 24px 0; min-height: 0; gap: 8px; }
  .hero .actions { margin-bottom: 28px; }
  .page-hero { padding: 30px 24px 32px; border-radius: 24px; }
  .panel { border-radius: 24px; }
}

/* the arch: best bet card */
.arch { background: var(--paper); color: var(--ink); border: 10px solid var(--saffron); border-bottom: 0; border-radius: 240px 240px 0 0; padding: 70px 34px 34px; text-align: center; }
.arch a { color: var(--ink); }
.arch .kicker { color: var(--terra-text); }
.arch h2 { margin: 10px 0 6px; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.arch h2 a { text-decoration: none; }
.arch .size { font: 400 2.6rem/1.05 var(--serif); color: var(--link); margin-top: 16px; }
.arch .chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.arch .stars { justify-content: center; }
.arch .why { margin: 12px auto 0; max-width: 34ch; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.arch .badge.win { background: var(--saffron); color: var(--indigo); }
.arch .medal { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--terra); color: #fff; font-size: .78rem; vertical-align: 1px; }
/* podium: three arches rising from the bottom of the hero */
.hero.has-podium { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
.hero.has-podium .hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; }
.hero.has-podium .hero-copy .kicker, .hero.has-podium .hero-copy h1 { grid-column: 1; }
.hero.has-podium .hero-copy .lede { grid-column: 2; grid-row: 2; margin: 0 0 6px; }
.hero.has-podium .hero-copy .actions { grid-column: 2; margin: 0; }
.hero.has-podium .podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.podium .place-1 { order: 2; }
.podium .place-2 { order: 1; }
.podium .place-3 { order: 3; }
.hero.has-podium .arch { padding: 52px 22px 28px; border-radius: 200px 200px 0 0; }
.hero.has-podium .arch:not(.place-1) { border-color: var(--cream); border-width: 8px; padding-top: 44px; }
.hero.has-podium .arch:not(.place-1) h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.hero.has-podium .arch:not(.place-1) .size { font-size: 2rem; }
.hero.has-podium .place-1 { padding-top: 76px; padding-bottom: 40px; }
@media (max-width: 900px) {
  .hero.has-podium .hero-copy { grid-template-columns: 1fr; }
  .hero.has-podium .hero-copy > * { grid-column: 1 !important; grid-row: auto !important; }
  .hero.has-podium .hero-copy .actions { margin: 16px 0 8px; }
  .hero.has-podium .podium { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 -6px; }
  .podium .place-1 { order: 0; grid-column: 1 / -1; margin-bottom: 6px; }
  .hero.has-podium .arch.place-1 { border-bottom: 8px solid var(--saffron); border-radius: 180px 180px 22px 22px; padding-bottom: 28px; }
  .hero.has-podium .arch:not(.place-1) { border-radius: 120px 120px 0 0; padding: 34px 10px 18px; border-width: 6px; }
  .hero.has-podium .arch:not(.place-1) h2 { font-size: 1.25rem; }
  .hero.has-podium .arch:not(.place-1) .size { font-size: 1.5rem; }
  .hero.has-podium .arch:not(.place-1) .why { display: none; }
  .hero.has-podium .arch:not(.place-1) .chips .badge.win { display: none; }
  .hero.has-podium .arch:not(.place-1) .kicker { font-size: .7rem; }
}
@media (max-width: 900px) { .arch { border-width: 8px; border-radius: 180px 180px 0 0; padding: 54px 20px 26px; margin: 0 -6px; } }

/* buttons, pills, badges */
.btn { appearance: none; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--saffron); color: var(--indigo); font: 700 1rem/1 var(--sans); padding: 15px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn:hover { color: var(--indigo); filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px currentColor; }
.panel .btn, .panel .btn:hover { color: var(--indigo); }
.panel .btn.ghost, .panel .btn.ghost:hover { color: var(--cream); }
.btn.terra { background: var(--terra); color: var(--cream); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--paper-2); color: var(--ink); }
.panel .pill { background: rgba(0,0,0,.2); color: var(--cream); }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem/1 var(--sans); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.wind-offshore, .wind-glassy, .wind-cross_off { background: var(--mint); color: var(--mint-ink); }
.wind-cross { background: #FCEBC0; color: #6B4E00; }
.wind-cross_on, .wind-onshore { background: var(--blush); color: var(--blush-ink); }
.arrow { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; color: currentColor; }

/* rating: zellige stars */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i { width: 18px; height: 18px; display: block; background: var(--star-off); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.stars i.on { background: var(--saffron); }
.stars i.half { background: linear-gradient(90deg, var(--saffron) 50%, var(--star-off) 50%); }
.stars.lg i { width: 26px; height: 26px; }
.panel .stars i:not(.on):not(.half) { background: rgba(255,246,229,.25); }
.rc0 { --rc: var(--r0); --rc-ink: var(--indigo); } .rc1 { --rc: var(--r1); --rc-ink: var(--indigo); } .rc2 { --rc: var(--r2); --rc-ink: var(--indigo); }
.rc3 { --rc: var(--r3); --rc-ink: var(--indigo); } .rc4 { --rc: var(--r4); --rc-ink: var(--indigo); } .rc5 { --rc: var(--r5); --rc-ink: var(--cream); }

/* cards and sections */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.card.dark { background: var(--indigo); color: var(--cream); border-color: var(--indigo); }
.card.dark a { color: var(--saffron); }
.pad { padding: 24px; }
section { margin: 48px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } section { margin: 36px 0; } }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv > span { font-size: .78rem; color: var(--ink-3); font-weight: 600; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; overflow-x: auto; max-width: 100%; }
.tabs button { appearance: none; border: 0; background: none; color: var(--ink); font: 700 .9rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--indigo); color: var(--cream); }
[role="tabpanel"][hidden] { display: none; }

/* ranking */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank li { display: grid; grid-template-columns: 40px minmax(0, 1.3fr) auto minmax(0, 1fr) max-content; align-items: center; gap: 14px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.rank .pos { font: 400 2rem/1 var(--serif); color: var(--terra); }
.rank .name { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: block; }
.rank .name:hover { color: var(--link); }
.rank .sub { font-size: .85rem; color: var(--ink-3); }
.rank .size { font: 400 1.35rem/1.1 var(--serif); color: var(--link); }
.rank li > div:last-child { white-space: nowrap; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.more-btn { display: none; }
@media (max-width: 640px) {
  .js .rank.clip li:nth-child(n+6) { display: none; }
  .js .more-btn { display: flex; width: 100%; margin-top: 12px; }
}

/* week: arch tiles */
.strip { display: grid; grid-template-columns: repeat(10, minmax(108px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.day { background: var(--rc); color: var(--rc-ink); border-radius: 70px 70px 14px 14px; padding: 34px 10px 16px; text-align: center; text-decoration: none; }
.day:hover { color: var(--rc-ink); transform: translateY(-2px); }
.day .d { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.day .h { font: 400 1.05rem/1.2 var(--serif); margin-top: 10px; white-space: nowrap; }
.day .s { font-size: .8rem; font-weight: 600; margin-top: 4px; }
.day .stars i.on, .day .stars i.half { background: currentColor; }
.day .stars i { background: color-mix(in srgb, currentColor 25%, transparent); width: 12px; height: 12px; }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(10, 112px); } }

/* map */
.mapwrap { position: relative; border-radius: 14px; overflow: hidden; }
.map svg { width: 100%; height: auto; display: block; }
.imap { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.imap.zoomed { touch-action: none; cursor: grab; }
.imap.dragging { cursor: grabbing; }
.map .sea { fill: var(--sea); }
.map .land { fill: var(--land); stroke: none; }
.map .coast { fill: none; stroke: var(--emerald); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map .contour { fill: none; stroke: var(--emerald); opacity: .14; vector-effect: non-scaling-stroke; }
.map .town circle { fill: var(--ink-3); }
.map .town text { fill: var(--ink-3); font: 600 12px var(--sans); paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; }
.map .pin { cursor: pointer; outline: none; }
.map .pin .hit { fill: transparent; }
.map .pin .dot { stroke: var(--indigo); stroke-width: 2; transition: r .15s; }
.map .pin text { font: 700 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; stroke-linejoin: round; }
.map .pin:hover .dot, .map .pin:focus-visible .dot { r: 11; }
.map .pin:focus-visible .dot { stroke: var(--terra); stroke-width: 3; }
.map .lead { stroke: var(--ink-3); stroke-width: 1; opacity: .7; }
.mapctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapctl button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); font: 700 1.25rem/1 var(--sans); box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(27, 31, 59, .14); cursor: pointer; }
.mapctl button:hover { background: var(--paper-2); }
.mapjump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mapjump .chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; }
.mapjump .chip:hover { border-color: var(--emerald); }

/* forecast table */
.fc-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scrollbar-width: thin; }
table.fc { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .88rem; }
table.fc th, table.fc td { padding: 8px 9px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
table.fc th[scope="row"] { position: sticky; left: 0; z-index: 2; background: var(--paper); text-align: left; font-weight: 700; color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; box-shadow: 1px 0 0 var(--line); }
table.fc .dayhead th { background: var(--paper-2); text-align: left; font: 400 1.08rem/1.2 var(--serif); border-left: 3px solid var(--bg); padding: 12px 10px; }
table.fc .dayhead th:first-child { border-left: 0; }
table.fc .dayhead .dl { position: sticky; left: 118px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { table.fc .dayhead .dl { left: 84px; } }
table.fc td.dstart, table.fc th.dstart { border-left: 3px solid var(--line-2); }
table.fc td.night { background: color-mix(in srgb, var(--indigo) 5%, transparent); color: var(--ink-3); }
table.fc td { min-width: 82px; }
table.fc td.is-now { box-shadow: inset 2px 0 0 var(--terra), inset -2px 0 0 var(--terra); background: color-mix(in srgb, var(--saffron) 9%, transparent); }
table.fc td.is-now.now-top { box-shadow: inset 2px 0 0 var(--terra), inset -2px 0 0 var(--terra), inset 0 2px 0 var(--terra); }
table.fc td.is-now.now-bottom { box-shadow: inset 2px 0 0 var(--terra), inset -2px 0 0 var(--terra), inset 0 -2px 0 var(--terra); }
.fc .cs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.fc .cs-main { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-weight: 600; }
.fc .cs-main .arrow { width: 14px; height: 14px; }
.fc .cs small:not(.badge) { color: var(--ink-3); font-size: .78rem; }
.fc .cs .badge { padding: 4px 8px; font-size: .7rem; }
.hbar { display: flex; align-items: flex-end; justify-content: center; height: 46px; }
.hbar span { width: 20px; border-radius: 10px 10px 3px 3px; background: var(--rc); min-height: 4px; }
.cell-r { display: block; width: 100%; height: 6px; border-radius: 4px; background: var(--rc); }
@media (max-width: 760px) {
  table.fc th[scope="row"] { font-size: .64rem; padding: 6px; }
  table.fc { font-size: .82rem; }
  table.fc td { min-width: 72px; }
  .fc-wrap:not(.end) { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* charts */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .axis text { fill: var(--ink-3); font: 600 12px var(--sans); }
.chart .bars rect:hover { opacity: .8; }
.chart .tidecurve { fill: rgba(126,211,191,.22); stroke: var(--saffron); stroke-width: 3; }
.chart .nowline { stroke: var(--terra); stroke-width: 3; }
.chart .ext text { fill: currentColor; font: 700 13px var(--sans); }
.chart .ext circle { fill: var(--saffron); }
.card.dark .chart .grid line { stroke: rgba(255,246,229,.18); }
.card.dark .chart .axis text { fill: #C9C6D6; }
#surfchart { overflow-x: auto; }
@media (max-width: 760px) { #surfchart svg { width: 760px; max-width: none; } }
.tip { position: absolute; pointer-events: none; background: var(--indigo); color: var(--cream); font-size: .82rem; font-weight: 600; padding: 8px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; z-index: 50; }
.tip.on { opacity: 1; }

/* spot page */
.spot-hero { margin: 24px 0 0; padding: 40px 44px 44px; }
.spot-hero h1 { margin: 8px 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spot-hero .now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.spot-hero .now > div { background: var(--cream); color: var(--indigo); border-radius: 16px; padding: 16px 18px; }
.spot-hero .now .l { font-size: .78rem; font-weight: 700; color: #5B5F75; letter-spacing: .04em; margin-bottom: 6px; }
.spot-hero .now .v { font: 400 1.9rem/1.1 var(--serif); color: var(--emerald); }
.spot-hero .now .s { font-size: .9rem; font-weight: 600; margin-top: 4px; color: #44486A; }
.spot-hero .now .stars i:not(.on):not(.half) { background: #D9C394; }
@media (max-width: 900px) { .spot-hero .now .stars.lg i { width: 20px; height: 20px; } .spot-hero { padding: 28px 18px 18px; } .spot-hero .now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .spot-hero .now .v { font-size: 1.5rem; } }
dl.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
dl.facts-list dt { color: var(--ink-3); font-size: .9rem; }
dl.facts-list dd { margin: 0; font-weight: 700; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.months span { text-align: center; font-size: .72rem; font-weight: 700; padding: 10px 0 8px; border-radius: 20px 20px 6px 6px; background: var(--paper-2); color: var(--ink-3); }
.months span.on { background: var(--emerald); color: var(--cream); }
.prose { max-width: 68ch; }
.prose p { font-size: 1.06rem; }
.warn { border-radius: 14px; padding: 14px 16px; background: var(--blush); color: var(--blush-ink); }
.warn strong { color: inherit; }
details.faq { border-top: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 1.04rem; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* reports */
.reports .summary { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.seg button { appearance: none; border: 0; background: var(--paper-2); color: var(--ink); font: 700 .86rem/1 var(--sans); padding: 12px 14px; border-radius: 999px; cursor: pointer; min-height: 44px; min-width: 44px; }
.seg button[aria-pressed="true"] { background: var(--emerald); color: var(--cream); }
.seg .stars i { width: 14px; height: 14px; }
.seg button[aria-pressed="true"] .stars i.on { background: var(--saffron); }
.hp { position: absolute; left: -5000px; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .92rem; flex-wrap: wrap; }

/* tables: tides, climate */
table.tt, table.clim { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.tt th, table.tt td, table.clim th, table.clim td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.tt thead th, table.clim thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
table.tt .H { color: var(--link); font-weight: 700; }
table.tt .L { color: var(--ink-2); }
table.tt tr.today, table.clim tr.today { background: color-mix(in srgb, var(--saffron) 16%, transparent); }
.tt-wrap { overflow-x: auto; }
.cons { display: inline-flex; gap: 3px; }
.cons i { width: 14px; height: 14px; background: var(--line); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.cons i.on { background: var(--emerald); }
.thermo { font: 400 3.6rem/1 var(--serif); color: var(--saffron); }
.season-card h2 { font-size: 1.6rem; }

/* money */
.ad { margin: 32px auto; text-align: center; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 6px; }
.ad ins { display: block; width: 100%; }
.ad.xad-box { min-height: 0; margin: 28px auto; }
.xad { width: 100%; display: flex; justify-content: center; height: 250px; overflow: hidden; }
@media (min-width: 800px) { .xad { height: 90px; } }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.partner { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: var(--ink); }
.partner:hover { color: var(--ink); border-color: var(--saffron); }
.partner .tag { font: 700 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--terra-text); }
.partner b { font: 400 1.35rem/1.2 var(--serif); }
.partner span.cta { color: var(--link); font-weight: 700; margin-top: auto; }
.partner.invite { background: var(--paper-2); border-style: dashed; }

/* spot cards */
.spot-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.spot-card:hover { transform: translateY(-3px); color: var(--ink); border-color: var(--saffron); }
.spot-card h3 { margin: 0; font: 400 1.5rem/1.15 var(--serif); }
.mini-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.mini-days span { height: 30px; border-radius: 12px 12px 4px 4px; background: var(--rc); color: var(--rc-ink); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; }

/* footer */
footer.foot { margin-top: 72px; background: var(--indigo); color: #D9D4C6; font-size: .92rem; }
footer .wrap.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 56px; }
footer h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--saffron); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 7px 0; }
footer a { color: var(--cream); }
footer a:hover { color: var(--saffron); }
footer .brand { color: var(--cream); margin-bottom: 18px; }
footer .brand img { height: 96px; }
footer .brand small { color: var(--saffron); }
@media (max-width: 800px) { footer .wrap.cols { grid-template-columns: 1fr; } }

aside > section { margin: 0 0 20px; }

/* practical info */
.prac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prac h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.25rem; }
.prac p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.prac .ico { width: 28px; height: 28px; flex: none; padding: 5px; border-radius: 9px; background: var(--emerald); stroke: var(--cream); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prac.boards { box-shadow: inset 0 6px 0 var(--saffron); }
.prac .today { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.prac .today .lbl { width: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-text); }
.prac .today .badge { background: var(--indigo); color: var(--cream); }
.amen { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.amen li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.amen .yes { background: color-mix(in srgb, var(--emerald) 14%, transparent); color: var(--link); }
.amen .no { background: color-mix(in srgb, var(--terra) 12%, transparent); color: var(--terra-text); }
.prac-tip { margin: 16px 0 0; padding: 14px 18px; border-left: 4px solid var(--terra); background: color-mix(in srgb, var(--saffron) 14%, transparent); border-radius: 0 14px 14px 0; font-size: .95rem; }
@media (max-width: 1100px) { .prac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prac-grid { grid-template-columns: 1fr; } }
.sotd { display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--saffron); color: var(--indigo); font-weight: 700; }

/* contact + advertise */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.cform { display: grid; gap: 16px; }
.cform .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cform label:not(.hp) { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.cform input, .cform select, .cform textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.cform textarea { resize: vertical; min-height: 150px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 25%, transparent); }
.cform .btn { justify-self: start; }
.cform [data-c=msg]:empty { display: none; }
.cform [data-c=msg] { margin: 0; font-weight: 600; }
.contact-side .mail { font-weight: 700; word-break: break-all; }
.card.dark .btn, .card.dark .btn:hover { color: var(--indigo); }
.card.dark .btn.ghost, .card.dark .btn.ghost:hover { color: var(--cream); }
.contact-grid > section, .contact-side > section { margin: 0; }
.ad-cta .h3 { font: 400 1.9rem/1.1 var(--serif); }
.ad-who { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ad-who li { margin: 0; line-height: 1.55; }
.ad-opt { position: relative; }
.ad-opt h3 { margin: 6px 0 8px; }
.ad-opt p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.ad-opt .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--emerald); color: var(--cream); font-weight: 700; }
.ad-opt.featured { box-shadow: inset 0 6px 0 var(--saffron); }
.ad-how { padding-left: 1.2em; line-height: 1.7; }
.ad-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 900px) { .contact-grid, .ad-who { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cform .row2 { grid-template-columns: 1fr; } .cform .btn { justify-self: stretch; } }

/* ---- QA fixes ---- */
footer .foot-h { font: 700 .74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--saffron); margin: 1.2em 0 .8em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--saffron); }
.panel :focus-visible, .card.dark :focus-visible, footer :focus-visible { outline-color: var(--cream); }
/* home ranking: same column widths on every row */
/* ranking rows adapt to the width they actually get (container query), not the window */
.rank { container-type: inline-size; }
.rank li { grid-template-columns: 34px minmax(0, 1fr) 104px 140px 150px; }
.rank .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .name { overflow-wrap: anywhere; }
@container (max-width: 720px) {
  .rank li { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 8px; padding: 14px; }
  .rank li > :nth-child(4) { grid-column: 2 / 3; }
  .rank li > :nth-child(5) { grid-column: 3 / 4; justify-self: end; align-items: flex-end; }
  .rank li > :nth-child(4) .sub { display: inline; margin-left: 8px; }
}
@container (max-width: 420px) {
  .rank li > :nth-child(4), .rank li > :nth-child(5) { grid-column: 2 / -1; justify-self: start; }
  .rank li > div:last-child { flex-direction: row; align-items: center; gap: 8px; }
}
/* 10-day strip fits without a cut-off tile */
.strip { grid-template-columns: repeat(10, minmax(96px, 1fr)); gap: 10px; }
/* dark mode contrast */
.arch .medal { background: var(--terra-text); }
/* long unbreakable words (URLs) never widen the page */
.prose p, .prose li, .prac p { overflow-wrap: anywhere; }
/* contact form: visible field borders (3:1) and error states */
.cform input, .cform select, .cform textarea { border-color: var(--ink-3); }
.cform [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px color-mix(in srgb, #B3261E 18%, transparent); }
.cform [data-c=msg]:empty { display: block; min-height: 0; }
.cform [data-c=msg].err { color: #B3261E; }
/* spot page: both columns start at the same height */
.wrap > div.grid-2 { margin-top: 48px; }
.wrap > div.grid-2 > div > section:first-child { margin-top: 0; }
.tip { left: 0; top: 0; }
.tip:not(.on) { visibility: hidden; }

/* trip planning + affiliate links */
.btn.small { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
.afrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aff { background: var(--emerald); color: var(--cream); }
.aff:hover { background: var(--emerald-deep); color: var(--cream); }
.plan-top { margin-top: 28px; }
.plan-top p { color: var(--ink-2); line-height: 1.55; }
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check h3 { margin: 0 0 8px; font-size: 1.15rem; }
.check p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.disclosure { margin-top: 18px; max-width: 80ch; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opts h3 { margin: 0 0 6px; font-size: 1.1rem; }
.opts p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
table.drive { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.drive th, table.drive td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
table.drive thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.bases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.base h2 { margin: 0 0 8px; }
.base p { color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; }
.tripstrip { margin: 32px 0; }
.tripstrip h2 { margin: 0; }
@media (max-width: 900px) { .checklist, .bases, .opts { grid-template-columns: 1fr; } }
.card .tt-wrap { overflow-x: auto; }
table.drive thead th { white-space: normal; }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* forecast widget configurator */
.wcfg { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; margin: 32px 0 0; align-items: start; }
.wopts fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.wopts fieldset:last-child { margin-bottom: 0; }
.wopts legend { font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra-text); margin-bottom: 12px; padding: 0; }
.wlayouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--bg); }
.wl input { position: absolute; opacity: 0; pointer-events: none; }
.wl b { font-size: .95rem; }
.wl small { color: var(--ink-3); font-size: .78rem; line-height: 1.35; }
.wl:has(input:checked) { border-color: var(--emerald); background: var(--mint); box-shadow: 0 0 0 1px var(--emerald); }
.wl:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }
.wl-ico { display: flex; gap: 3px; height: 22px; align-items: flex-end; margin-bottom: 4px; }
.wl-ico i { display: block; width: 10px; border-radius: 3px; background: var(--emerald); }
.wl-now i:nth-child(1) { height: 22px; width: 26px; } .wl-now i:nth-child(2) { height: 12px; } .wl-now i:nth-child(3) { height: 12px; }
.wl-days i { height: 18px; width: 14px; } .wl-days i:nth-child(2) { background: var(--saffron); }
.wl-week i { height: 8px; width: 34px; border-radius: 2px; } .wl-week { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.wl-week i:nth-child(2) { background: var(--saffron); width: 28px; } .wl-week i:nth-child(3) { width: 20px; background: var(--terra); }
.wl-rank { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.wl-rank i { height: 5px; } .wl-rank i:nth-child(1) { width: 36px; } .wl-rank i:nth-child(2) { width: 28px; background: var(--saffron); } .wl-rank i:nth-child(3) { width: 20px; background: var(--terra); }
.wf { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.wf[hidden] { display: none; }
.wf select { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--ink-3); border-radius: 12px; padding: 11px 12px; width: 100%; }
.wf input[type=range] { width: 100%; accent-color: var(--emerald); }
.w2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wseg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; gap: 2px; justify-self: start; }
.wseg label { cursor: pointer; }
.wseg input { position: absolute; opacity: 0; pointer-events: none; }
.wseg span { display: block; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.wseg input:checked + span { background: var(--indigo); color: var(--cream); }
.wseg input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 1px; }
.wcheck { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; margin: 0 0 14px; cursor: pointer; }
.wcheck input { width: 20px; height: 20px; accent-color: var(--emerald); }
.wsw { display: flex; flex-wrap: wrap; gap: 8px; }
.wsw label { position: relative; cursor: pointer; }
.wsw input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.wsw label > span, .wsw-custom input[type=color] { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.wsw input[type=radio]:checked + span, .wsw-custom:has(input[type=radio]:checked) input[type=color] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--indigo); }
.wsw input[type=radio]:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 3px; }
.wsw-custom input[type=color] { padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.wsw-custom input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.wsw-custom input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.wsw-custom input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.wright { display: grid; gap: 24px; min-width: 0; }
.wright > section { margin: 0; }
.wstage { border-radius: 14px; padding: 18px; background-color: #F3EBDD; background-image: linear-gradient(45deg, #EBE1CF 25%, transparent 25%, transparent 75%, #EBE1CF 75%), linear-gradient(45deg, #EBE1CF 25%, transparent 25%, transparent 75%, #EBE1CF 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; overflow: hidden; }
.wstage iframe { display: block; border: 0; width: 100%; transition: height .15s; background: transparent; }
.wcredit { margin: 6px 0 0; font: 13px/1.4 system-ui, sans-serif; color: #333; }
#wcode { width: 100%; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1.5px solid var(--ink-3); border-radius: 12px; padding: 12px; resize: vertical; }
.wcopy { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.whow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cta-widget { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.cta-widget p { margin: 0; }
@media (max-width: 1080px) { .whow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .wcfg { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .wstage { padding: 10px; margin: 0 -8px; } .whow { grid-template-columns: 1fr; } .w2 { grid-template-columns: 1fr; } }

/* ad consent (Adsterra) */
.btn.dark { background: var(--indigo); color: var(--cream); }
.btn.dark:hover { color: var(--cream); }
.consent { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(580px, calc(100% - 24px)); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px -12px rgba(27,31,59,.45); padding: 16px 18px; display: grid; gap: 12px; }
.consent p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.consent strong { color: var(--ink); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-btns .btn { min-width: 128px; }
@media (max-width: 520px) { .consent { bottom: 10px; padding: 14px; } .consent-btns .btn { flex: 1; } }
