/* boatparking.ca — "chart room" design: chart paper, deep navy, buoy orange, brass. */
:root {
  --paper: #f4f0e6;
  --paper-2: #ebe5d6;
  --card: #fffdf8;
  --ink: #0d2436;
  --ink-2: #33495a;
  --muted: #5d6c76;
  --sea: #1c4a68;
  --sea-2: #2d6a8f;
  --shoal: #d6e6ea;
  --shoal-2: #b9d3da;
  --buoy: #d4471b;
  --buoy-dark: #a8360f;
  --brass: #a87b2f;
  --green: #2e6b4c;
  --line: #d8d0bd;
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--buoy-dark); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 10px; top: 10px; }
.mono, .kicker, .coords { font-family: var(--mono); }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--brass); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; margin-right: auto; }
.brand:hover { color: #fff; }
.brand small { font-family: var(--mono); font-size: .72rem; color: #c9b58a; font-weight: 400; letter-spacing: .08em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #e9eef2; text-decoration: none; font-size: .97rem; padding: 8px 11px; border-radius: var(--radius); display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.site-nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: 8px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 3px solid var(--brass); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 22px 18px; }
  .site-nav a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-block; background: var(--buoy); color: #fff !important; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: var(--radius); border: 2px solid var(--buoy); font-size: 1.02rem; line-height: 1.2; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--buoy-dark); border-color: var(--buoy-dark); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.on-dark .btn.ghost, .hero.home .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.75); }
.on-dark .btn.ghost:hover, .hero.home .btn.ghost:hover { background: #fff; color: var(--ink) !important; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* breadcrumbs */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 9px 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }

/* chart texture */
.chart-bg { background-color: var(--shoal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260'%3E%3Cg fill='none' stroke='%231c4a68' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M0 40c60-22 120 18 190 4s120-40 190-14 100 26 140 8'/%3E%3Cpath d='M0 95c70-26 130 22 200 6s110-38 180-12 90 28 140 6'/%3E%3Cpath d='M0 150c55-18 125 24 195 8s125-42 195-16 85 22 130 10'/%3E%3Cpath d='M0 205c65-24 135 20 205 4s115-36 185-10 80 24 130 8'/%3E%3C/g%3E%3Cg fill='%231c4a68' fill-opacity='.22' font-family='monospace' font-size='10'%3E%3Ctext x='64' y='70'%3E4%3C/text%3E%3Ctext x='300' y='124'%3E7%3C/text%3E%3Ctext x='150' y='182'%3E12%3C/text%3E%3Ctext x='430' y='232'%3E18%3C/text%3E%3C/g%3E%3C/svg%3E"); }

/* hero */
.hero { padding: 54px 0 46px; position: relative; }
.hero:not(.home) { background-color: var(--shoal); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero.no-photo .wrap { grid-template-columns: 1fr; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 640px; }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--buoy-dark); margin: 0 0 12px; font-weight: 600; }
.coords { display: inline-block; font-size: .78rem; color: var(--sea); letter-spacing: .06em; border: 1px solid var(--shoal-2); background: rgba(255,255,255,.55); padding: 3px 8px; border-radius: 3px; margin: 0 0 14px; }
.hero .photo img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(13,36,54,.55); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-family: var(--mono); font-size: .8rem; background: var(--card); border: 1px solid var(--line); padding: 5px 10px; border-radius: 3px; color: var(--ink-2); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 26px; } .hero { padding: 36px 0 34px; } }

/* home hero with full photo */
.hero.home { padding: 0; background: var(--ink); color: #fff; overflow: hidden; }
.hero.home .bgphoto { position: absolute; inset: 0; }
.hero.home .bgphoto img { width: 100%; height: 100%; object-fit: cover; }
.hero.home .bgphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,42,.92) 0%, rgba(10,28,42,.78) 45%, rgba(10,28,42,.25) 100%); }
.hero.home .wrap { position: relative; padding-top: 74px; padding-bottom: 74px; grid-template-columns: 1.15fr .85fr; }
.hero.home h1, .hero.home .lead { color: #fff; }
.hero.home .lead { color: #dfe7ec; }
.hero.home .kicker { color: #e8b468; }
.hero.home .badges li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #eef3f6; }
@media (max-width: 860px) { .hero.home .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; } .hero.home .bgphoto::after { background: rgba(10,28,42,.82); } }

/* quick finder card */
.finder { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); border-top: 5px solid var(--buoy); }
.finder h2 { font-size: 1.4rem; margin-bottom: 4px; }
.finder p.sub { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.finder label { display: block; font-size: .88rem; font-weight: 600; margin: 12px 0 4px; }
.finder .btn { width: 100%; margin-top: 18px; text-align: center; }
.finder .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* sections */
.section { padding: 50px 0; }
.section + .section { padding-top: 10px; }
.section.alt { background: var(--paper-2); }
.section h2 { margin-bottom: .6em; }
.intro-h { max-width: 760px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(13,36,54,.45); color: var(--ink); }
.card .photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; color: var(--ink-2); margin-bottom: 12px; }
.card .meta { font-family: var(--mono); font-size: .78rem; color: var(--sea); margin-top: auto; }
.card .more { font-weight: 600; color: var(--buoy-dark); font-size: .92rem; margin-top: auto; }
.card .meta + .more { margin-top: 6px; }

/* list / steps */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 28px; }
.list > div { border-left: 3px solid var(--sea-2); padding: 2px 0 2px 16px; }
.list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.list p { font-size: .97rem; color: var(--ink-2); margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .85rem; color: #fff; background: var(--sea); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.no-photo { grid-template-columns: 1fr; max-width: 780px; }
.split .photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 22px; } }

/* notice */
.notice { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brass); padding: 16px 20px; border-radius: var(--radius); }

/* tables */
.tablewrap { overflow-x: auto; }
table.prices { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .98rem; }
table.prices th, table.prices td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.prices td:last-child { font-family: var(--mono); font-size: .92rem; white-space: nowrap; }
table.spec td:last-child { white-space: normal; font-family: var(--sans); font-size: .98rem; }
table.spec thead th { background: var(--ink); color: #fff; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
table.prices tbody th { font-weight: 600; }
.fine { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* spec sheet (data plate) */
.plate { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.plate div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plate dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.plate dd { margin: 4px 0 0; font-weight: 600; font-size: 1.02rem; }

/* season strip */
.season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 14px 0 10px; }
.season span { font-family: var(--mono); font-size: .75rem; text-align: center; padding: 14px 0 8px; border-radius: 3px; position: relative; color: var(--ink); background: var(--paper-2); }
.season .w { background: var(--sea-2); color: #fff; }
.season .l { background: var(--green); color: #fff; }
.season .h { background: var(--buoy); color: #fff; }
.season .y { background: var(--sea); color: #fff; }
.season .hard { background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, #ddd5c2 6px 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; color: var(--ink-2); list-style: none; padding: 0; margin: 0 0 8px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.season-rows { display: grid; gap: 4px; }
.season-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: center; }
.season-row .season { margin: 0; }
.season-row a { font-size: .95rem; }
@media (max-width: 700px) { .season-row { grid-template-columns: 1fr; } .season span { font-size: .62rem; } }

/* facts */
.facts { padding-left: 1.1em; }
.facts li { margin-bottom: .55em; }
.facts .src { font-size: .82rem; font-family: var(--mono); margin-left: 4px; }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--buoy); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* link lists */
.linklist { columns: 3 230px; column-gap: 30px; padding: 0; list-style: none; }
.linklist li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.linklist span { color: var(--muted); font-size: .9rem; }
.related { border-top: 1px solid var(--line); padding-top: 26px; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 7px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; text-decoration: none; font-size: .95rem; }
.related a:hover { border-color: var(--sea); }

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px 30px; }
.glossary div { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.glossary dt { font-family: var(--mono); font-weight: 600; color: var(--sea); }
.glossary dd { margin: 3px 0 0; font-size: .97rem; color: var(--ink-2); }

/* calculator */
.calc { background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.calc .out { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.calc .out .big { font-family: var(--mono); font-size: 2.3rem; color: #f2c27a; line-height: 1.1; margin: 4px 0 8px; }
.calc .out p { color: #d5dfe6; font-size: .93rem; margin-bottom: 8px; }
.calc .out .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* forms */
label { font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #b9b19d; border-radius: var(--radius); background: #fff; color: var(--ink); margin-top: 4px; }
textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; margin: 0; background: var(--card); }
legend { font-weight: 600; padding: 0 6px; font-size: .95rem; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; margin: 0 0 9px; }
.check input { width: auto; margin-top: 6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.form-step { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--buoy-dark); grid-column: 1 / -1; margin: 12px 0 -6px; border-top: 1px solid var(--line); padding-top: 18px; }
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { margin-top: 14px; padding: 0; border-radius: var(--radius); }
.form-status.is-ok { background: #e3f1e8; border: 1px solid #9cc8ad; padding: 14px 16px; }
.form-status.is-error { background: #fbe7e0; border: 1px solid #e3a58f; padding: 14px 16px; }
@media (max-width: 640px) { .form-grid, .checks, .finder .row2 { grid-template-columns: 1fr; } }

/* cta band */
.cta-band { background: var(--ink); color: #fff; padding: 46px 0; border-top: 3px solid var(--brass); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfdae2; margin: 0; max-width: 640px; }

/* footer */
.site-footer { background: #0a1c2a; color: #c3cfd8; padding: 50px 0 24px; font-size: .95rem; }
.site-footer a { color: #e5ecf1; text-decoration: none; }
.site-footer a:hover { color: #f2c27a; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #c9b58a; font-weight: 500; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* province / region index */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px 30px; }
.regions h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--buoy-dark); border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.regions h3 a { color: inherit; text-decoration: none; }
.regions ul { list-style: none; padding: 0; margin: 0; }
.regions li { padding: 6px 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 10px; }
.regions li span { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }

.credits li { margin-bottom: 6px; }
