:root {
  color-scheme: dark;
  --bg: #0e1722;
  --panel: #142232;
  --panel-soft: #172637;
  --line: #2c4054;
  --text: #f3f1ec;
  --muted: #adbbca;
  --accent: #ff9d81;
  --teal: #8ed4cc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background: var(--bg); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 6; background: var(--text); color: var(--bg); padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.shell { width: min(1232px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid #223345; background: #101b28; }
.nav-wrap { min-height: 76px; display: flex; gap: clamp(1rem, 4vw, 3.5rem); align-items: center; }
.brand { color: #f6f1e9; display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; white-space: nowrap; font: 23px/1.1 var(--serif); letter-spacing: -.03em; }
.brand strong { font-weight: normal; color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); background: #332731; border: 1px solid #604050; border-radius: 11px; font: 20px/1 var(--sans); }
.nav { display: flex; align-items: stretch; gap: clamp(.45rem, 2.2vw, 1.5rem); min-height: inherit; }
.nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; text-decoration: none; padding: 0 .15rem; font-size: .93rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.nav-data { margin-left: auto; white-space: nowrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .95rem; border: 1px solid transparent; font-weight: 700; font-size: .94rem; border-radius: 9px; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.solid { color: #191419; background: var(--accent); }
.secondary { background: #243346; border-color: #42546a; color: var(--text); }
.ghost { color: var(--text); background: transparent; border-color: var(--line); }
.text-link { padding: 0; border: 0; background: transparent; color: var(--teal); text-decoration: underline; text-underline-offset: .22em; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; min-height: 430px; margin-top: 25px; border-radius: 21px; border: 1px solid #324255; background: #243344; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url('/assets/sailing.jpg') right 54% / 73% auto no-repeat; }
.hero::after { background: linear-gradient(90deg,#121f2e 0%,#152435 34%,#172739e6 46%,#10213147 71%,#101b2b1f 100%); }
.hero-content { width: min(735px, 72%); padding: clamp(1.8rem, 4.4vw, 3.4rem); }
.kicker { margin: 0 0 .65rem; font-size: .82rem; font-weight: 800; letter-spacing: .16em; color: var(--teal); }
.kicker span { display: inline-block; width: 23px; height: 1px; margin-right: .5rem; vertical-align: middle; background: var(--teal); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--serif); font-weight: normal; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(2.85rem, 5.45vw, 4.7rem); }
.hero h1 em { font-weight: normal; color: var(--accent); }
.hero-description { max-width: 385px; font-size: 1.0625rem; color: #d6dfe7; margin-top: 1rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.45rem; }
.hero-perk { position: absolute; right: 26px; bottom: 24px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #b1c2d474; background: #122131dc; display: grid; gap: .08rem; }
.hero-perk span { font-size: .7rem; color: #b3c7e6; letter-spacing: .095em; font-weight: 700; }
.hero-perk strong { font: 1.36rem/1.3 var(--serif); }
.hero-perk small { color: #cad2de; font-size: .84rem; }
.directory { padding-block: 3rem; scroll-margin-top: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.15rem; }
.section-head h2 { font-size: clamp(2.15rem, 4vw, 3.1rem); }
.section-head p:not(.kicker), .page-head p:not(.kicker) { margin-top: .7rem; color: var(--muted); max-width: 650px; }
.search-panel, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.search-panel { padding: 1rem 1.1rem; }
.search-fields { display: grid; grid-template-columns: minmax(210px, 1.7fr) 1fr 1fr; gap: .8rem; }
label { display: grid; gap: .32rem; min-width: 0; color: #d8e0e9; font-weight: 600; font-size: .88rem; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 42px; color: var(--text); background-color: #0e1a28; border: 1px solid #3a4e63; border-radius: 8px; padding: .52rem .67rem; font-size: 1rem; font-weight: normal; }
input::placeholder, textarea::placeholder { color: #8c9bad; }
select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 50%, #a6b7cb 50%), linear-gradient(135deg, #a6b7cb 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.categories { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.categories button, .guide-nav a { border: 1px solid #3a4e63; background: transparent; color: #bbc8d6; border-radius: 22px; font-size: .88rem; padding: .3rem .72rem; min-height: 36px; font-weight: 600; text-decoration: none; }
.categories button:hover, .categories button[aria-pressed=true], .guide-nav a:hover { color: #b8ebe3; border-color: #5f9b98; background: #203b44; }
.results-head { display: flex; justify-content: space-between; gap: 1rem; margin: .85rem 0; color: var(--muted); font-size: .89rem; }
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.perk-card { min-width: 0; display: grid; align-content: start; gap: .45rem; background: #142131; border: 1px solid #2c4054; border-radius: 13px; padding: 1.1rem 1.15rem; }
.perk-card h3 { line-height: 1.25; font-family: var(--serif); font-weight: normal; font-size: 1.45rem; overflow-wrap: anywhere; }
.provider { display: flex; align-items: center; gap: .45rem; color: var(--program-color, var(--teal)); font-size: .89rem; font-weight: 680; }
.provider span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.perk-card p, .fine { color: var(--muted); font-size: .91rem; }
.perk-card .meta { color: #c3d0dd; font-size: .88rem; }
.perk-card a { width: fit-content; color: var(--teal); font-size: .88rem; }
.more { grid-column: 1 / -1; justify-self: center; margin: .4rem 0 0; }
.empty { grid-column: 1 / -1; color: var(--muted); border: 1px dashed var(--line); padding: 1.25rem; border-radius: 12px; }
.page-head { margin-top: clamp(2rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.45rem, 5.3vw, 4.8rem); }
.planner-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; padding-bottom: 3rem; }
.plan { min-width: 0; padding: 1.2rem; }
.plan h2, .offer-balances h2, .guide h2 { font-size: 1.85rem; margin-bottom: .8rem; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.full { grid-column: 1 / -1; }
.plan-result { min-height: 107px; padding: .8rem; margin: .85rem 0; border: 1px solid #44716e; border-radius: 10px; background: #19333e; }
.plan-result strong { display: block; color: #c1eee6; font: 1.55rem/1.2 var(--serif); }
.plan-result p { color: #c7d4dd; font-size: .91rem; margin-top: .25rem; }
.sailing-list, .guide-perks { display: grid; gap: .65rem; }
.sailing { border: 1px solid #314558; padding: .75rem; border-radius: 9px; }
.sailing header { display: flex; justify-content: space-between; align-items: center; gap: .45rem; margin-bottom: .55rem; }
.sailing h3 { font-size: .97rem; }
.sailing button { min-height: 34px; padding: .15rem .55rem; font-size: .84rem; }
.sailing .fine { margin-top: .35rem; }
.checkbox { display: flex; align-items: flex-start; gap: .48rem; font-weight: normal; }
.checkbox input { margin: .35em 0 0; accent-color: var(--teal); }
.plan-add { margin-top: .8rem; }
.plan-source { display: block; margin-top: .7rem; }
.offer-balances { padding: 1.2rem; }
.membership-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.member-card { border: 1px solid var(--line); border-radius: 9px; padding: .8rem; }
.member-card h3 { font-size: 1.05rem; }
.member-card p { font-size: .89rem; margin-top: .3rem; color: var(--muted); }
.member-card .btn { margin-top: .55rem; font-size: .87rem; }
.wallet-heading { margin-top: 1.5rem; }
.inline-label { display: flex; align-items: center; gap: .5rem; }
#wallet { margin-bottom: 3rem; }
.offer-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .35rem 0; }
.offer-money div { min-width: 0; border-top: 1px solid var(--line); padding-top: .4rem; }
.offer-money dt { font-size: .82rem; color: var(--muted); }
.offer-money dd { margin: 0; overflow-wrap: anywhere; }
.offer-actions { margin: .3rem 0 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; border-top: 1px solid var(--line); padding: 1.1rem 0 2rem; font-size: .87rem; color: var(--muted); }
.foot strong { color: var(--text); }
.foot a { color: var(--teal); }
dialog { width: min(540px, calc(100% - 22px)); max-height: calc(100dvh - 24px); padding: 1.1rem; border: 1px solid #455b71; border-radius: 15px; background: var(--panel-soft); color: var(--text); }
dialog::backdrop { background: #040914c9; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .85rem; }
.dialog-head h2 { font-size: 1.9rem; }
.closer { min-width: 40px; font-size: 1.4rem; line-height: 1; }
#toast { position: fixed; z-index: 9; bottom: 15px; right: 15px; max-width: min(410px,calc(100% - 30px)); background: #203745; border: 1px solid #618d94; color: var(--text); border-radius: 9px; padding: .7rem .95rem; }
#toast:empty { display: none; }
.guide-page { max-width: 950px; padding-bottom: 3rem; }
.guide-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.guide { margin-bottom: 1rem; padding: clamp(1rem,3vw,1.6rem); }
.guide > p, .guide-row p, #program-guides > p { color: var(--muted); margin-bottom: .45rem; }
.guide-row { display: flex; justify-content: space-between; gap: .65rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.guide-row a { flex: none; color: var(--teal); }
.guide-row p { margin-bottom: 0; }
@media (max-width: 860px) {
  .shell { width: min(100% - 42px,1232px); }
  .nav-wrap { gap: .9rem 1.35rem; }
  .nav { gap: .7rem; }
  .hero::before { background-size: 83% auto; }
  .hero::after { background: linear-gradient(90deg,#121f2e 0%,#152435 34%,#172739c9 56%,#10213133 86%); }
  .perk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 26px); }
  .nav-wrap { flex-wrap: wrap; min-height: 0; gap: 0 .55rem; padding-top: .45rem; }
  .brand { font-size: 21px; }
  .brand-mark { width: 33px; height: 33px; }
  .nav { order: 2; flex-basis: 100%; min-height: 44px; gap: .25rem; justify-content: space-between; flex-wrap: wrap; }
  .nav a { min-height: 42px; font-size: .84rem; }
  .nav-data { order: 1; min-height: 38px; font-size: .83rem; padding-inline: .63rem; }
  .hero { margin-top: 15px; min-height: 434px; align-items: end; border-radius: 14px; }
  .hero::before { background-size: 100% auto; background-position: right top; }
  .hero::after { background: linear-gradient(0deg,#12202e 3%,#12202ef0 36%,#16273891 67%,#1322320b 100%); }
  .hero-content { width: 100%; padding: 1.12rem; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.75rem); }
  .hero-description { font-size: 1rem; margin-top: .65rem; }
  .hero-perk { display: none; }
  .actions { margin-top: .9rem; }
  .directory { padding-block: 1.75rem 2.1rem; }
  .section-head { align-items: start; flex-wrap: wrap; }
  .section-head h2 { font-size: 2.15rem; }
  .search-panel { padding: .8rem; }
  .search-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .search-label { grid-column: 1 / -1; }
  .results-head { flex-wrap: wrap; gap: .15rem; }
  .perk-grid, .planner-grid, .membership-grid { grid-template-columns: 1fr; }
  .guide-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
