/* Island Harbour Yacht Club
   Colours from the club burgee and badge. Headings in Archivo (wide), text in Source Serif 4. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #0B2D6B;
  --deep: #071D45;
  --red: #E3132C;
  --red-dark: #B50E22;
  --brass: #C9A23A;
  --mist: #EEF2F8;
  --line: #D3DCEA;
  --ink: #1C2433;
  --muted: #4A5568;
  --white: #fff;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 var(--s2); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--head); font-stretch: 118%; color: var(--navy); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 700; font-stretch: 110%; letter-spacing: 0; }
.prose { max-width: 40rem; }
.prose-long > section + section { margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; font-family: var(--head); font-stretch: 112%; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: 4px; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--deep); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.file { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .12rem .38rem; border-radius: 3px; background: var(--mist); color: var(--navy); }
.btn-light .file { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.link-strong { font-family: var(--head); font-stretch: 112%; font-weight: 650; color: var(--navy); }

/* Masthead */
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead-in { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gut); display: flex; align-items: center; gap: var(--s2); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--head); font-stretch: 120%; font-weight: 800; font-size: 1.02rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-name span { display: block; font-weight: 500; font-stretch: 110%; font-size: .86rem; color: var(--red-dark); letter-spacing: .01em; }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .5rem .95rem; font: 650 1rem var(--head); font-stretch: 112%; color: var(--navy); background: var(--mist); border: 0; border-radius: 4px; cursor: pointer; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -6px; } .menu-btn-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a:not(.btn) { font-family: var(--head); font-stretch: 112%; font-weight: 600; text-decoration: none; color: var(--ink); }
.site-menu a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); }

@media (max-width: 979px) {
  .js .site-menu { display: none; }
  .js .site-menu.open { display: block; }
  .site-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--navy); padding: var(--s1) var(--gut) var(--s3); box-shadow: 0 14px 30px rgba(7,29,69,.18); }
  .site-menu li a { display: block; padding: .85rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: .8rem; }
  .menu-join { margin-top: var(--s3); width: 100%; justify-content: center; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-menu { position: static; box-shadow: none; border: 0; padding: 0; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .site-menu { display: flex; align-items: center; gap: var(--s3); }
  .site-menu ul { display: flex; gap: 1.35rem; }
  .site-menu li a { display: block; padding: .5rem 0; font-size: .98rem; }
  .site-menu li a:hover { color: var(--red-dark); }
}

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--deep); min-height: min(88svh, 760px); display: grid; overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,29,69,.15) 0%, rgba(7,29,69,.05) 35%, rgba(7,29,69,.82) 78%, rgba(7,29,69,.94) 100%); }
.hero-in { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: var(--s6) var(--gut) var(--s5); display: flex; align-items: flex-end; }
.hero-text { max-width: 40rem; }
.hero h1 { color: #fff; font-stretch: 125%; font-size: clamp(2.5rem, 8.4vw, 5.2rem); line-height: .98; margin-bottom: var(--s3); text-shadow: 0 2px 30px rgba(7,29,69,.45); }
.hero-lede { font-size: clamp(1.1rem, 2.3vw, 1.3rem); max-width: 34rem; color: #E9EEF7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }

/* The signal hoist: I H Y C in code flags, run up a halyard */
.hoist { position: absolute; z-index: 3; top: 0; bottom: 0; right: var(--gut); margin: 0; width: clamp(46px, 7vw, 84px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, 1vw, 12px); padding-top: clamp(14px, 3vw, 34px); }
.hoist-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.25)); }
.hoist-flag { position: relative; margin-left: 2px; width: 100%; aspect-ratio: 1; box-shadow: 0 6px 18px rgba(7,29,69,.35); animation: hoist 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i) * .12s); }
.hoist-flag svg { width: 100%; height: 100%; }
.hoist-flag b { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); font: 700 .9rem var(--head); color: #fff; opacity: .85; }
@keyframes hoist { from { transform: translateY(70vh); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hoist-flag { animation: none; } }
@media (max-width: 599px) { .hoist { width: 38px; right: 1rem; bottom: auto; padding-bottom: 1.5rem; } .hoist-flag b { display: none; } .hero-in { padding-top: 15rem; } }

/* Notice band */
.notice { background: var(--navy); color: #fff; }
.notice-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-block: var(--s3); }
.notice h2 { color: #fff; font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin-bottom: .25rem; }
.notice p { margin: 0; color: #DCE4F1; }

/* Intro and the club particulars */
.intro { display: grid; gap: var(--s4); padding-block: var(--s6) var(--s5); }
@media (min-width: 900px) { .intro { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.particulars { margin: 0; border: 2px solid var(--navy); border-radius: 6px; padding: var(--s1) var(--s3); background: var(--mist); }
.particulars div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s2); padding: .8rem 0; border-bottom: 1px solid var(--line); }
.particulars div:last-child { border-bottom: 0; }
.particulars dt { font-family: var(--head); font-stretch: 105%; font-weight: 600; font-size: .9rem; color: var(--muted); padding-top: .15rem; }
.particulars dd { margin: 0; font-weight: 600; color: var(--navy); }
@media (max-width: 420px) { .particulars div { grid-template-columns: 1fr; gap: 0; } }

/* Club life */
.life { background: var(--mist); padding-block: var(--s5) var(--s6); }
.life-grid { display: grid; gap: var(--s4) var(--s3); margin-top: var(--s3); }
.life-item picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.life-item div { padding-top: var(--s2); max-width: 32rem; }
.life-item h3 { margin-bottom: .4rem; }
.life-item p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .life-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .life-grid { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "c d b"; }
  .life-a { grid-area: a; } .life-b { grid-area: b; } .life-c { grid-area: c; } .life-d { grid-area: d; }
  .life-a picture img { aspect-ratio: 16 / 8; }
  .life-b picture img { aspect-ratio: 3 / 4.6; }
}

/* Charities */
.charity { padding-block: var(--s6); }
.charity-in { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .charity-in { grid-template-columns: 1fr 1fr; } }
.charity-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.charity-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s3); }
.charity-list li { font-family: var(--head); font-stretch: 108%; font-weight: 600; font-size: .95rem; padding: .35rem .8rem; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); }

/* The Cockle */
.cockle { display: grid; gap: var(--s4); align-items: center; padding-block: 0 var(--s6); }
@media (min-width: 900px) { .cockle { grid-template-columns: .9fr 1.1fr; } }
.cockle-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }

/* Join band */
.join-band { background: var(--navy); color: #fff; padding-block: var(--s5); }
.join-band h2 { color: #fff; }
.join-band p { color: #DCE4F1; max-width: 36rem; }

/* Inner page heads */
.page-head { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.page-head-photo, .page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,29,69,.2), rgba(7,29,69,.88)); }
.page-head-in { position: relative; z-index: 2; padding-block: clamp(7rem, 22vw, 12rem) var(--s4); }
.page-head h1 { color: #fff; margin-bottom: var(--s1); }
.page-head p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38rem; margin: 0; color: #E9EEF7; }
.page-head-plain { background: var(--mist); color: var(--ink); }
.page-head-plain::after { display: none; }
.page-head-plain .page-head-in { padding-block: var(--s5) var(--s4); }
.page-head-plain h1 { color: var(--navy); }
.page-head-plain p { color: var(--muted); }

/* Two-column text and picture */
.split { display: grid; gap: var(--s4); padding-block: var(--s5); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr .8fr; gap: var(--s5); } }
.split-photo img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }
.split-photo.tall img { aspect-ratio: 3 / 4; }
.section-lede { color: var(--muted); max-width: 40rem; }

/* Committee */
.committee { background: var(--mist); padding-block: var(--s5); }
.crew { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: 0 var(--s4); }
@media (min-width: 700px) { .crew { grid-template-columns: 1fr 1fr; } }
.crew li { padding: var(--s2) 0; border-top: 2px solid var(--navy); display: grid; gap: .15rem; }
.crew-name { font-family: var(--head); font-stretch: 115%; font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.crew-role { color: var(--muted); }
.crew-note { max-width: 40rem; }

/* Membership */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s3) 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s3) 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.05rem var(--head); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.15rem - 1px); top: 2.4rem; bottom: .3rem; width: 2px; background: var(--line); }
.docs { display: grid; gap: .7rem; margin: var(--s3) 0; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 1rem 1.2rem; border: 1.5px solid var(--navy); border-radius: 6px; text-decoration: none; font-family: var(--head); font-stretch: 110%; font-weight: 650; color: var(--navy); }
.doc:hover { background: var(--navy); color: #fff; }
.doc:hover .file { background: #fff; }
.rya { padding: var(--s3); border: 1px solid var(--line); border-radius: 6px; }
.rya img { width: 160px; margin-bottom: var(--s2); }
.rya p { margin: 0; color: var(--muted); font-size: .95rem; }
.discounts { background: var(--mist); padding-block: var(--s5); }
.disc-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 0 var(--s4); }
@media (min-width: 760px) { .disc-list { grid-template-columns: 1fr 1fr; } }
.disc-list li { padding: .95rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.disc-name { font-size: 1.12rem; }
.disc-name i { font-weight: 600; }
.disc-what { color: var(--muted); font-size: .97rem; }

/* Click-to-load embeds */
.embed-wrap { padding-block: 0 var(--s5); }
.embed { position: relative; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--mist); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed-cover { padding: var(--s4) var(--s3); display: grid; justify-items: start; gap: var(--s2); }
.embed-title { font-family: var(--head); font-stretch: 115%; font-weight: 700; font-size: 1.3rem; color: var(--navy); margin: 0; }
.embed-note { margin: 0; color: var(--muted); font-size: .95rem; max-width: 36rem; }
.embed-short .embed-cover { padding-block: var(--s3); }
.embed-loaded { background: #fff; }
.embed-loaded .weatherwidget-io { display: block; }

/* Contact */
.contact { display: grid; gap: var(--s5); padding-block: var(--s5); }
@media (min-width: 900px) { .contact { grid-template-columns: 1.3fr .7fr; } }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-family: var(--head); font-stretch: 108%; font-weight: 650; color: var(--navy); margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem .9rem; border: 1.5px solid #8A97AE; border-radius: 4px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(227,19,44,.35); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red-dark); }
.field-error, .form-error { color: var(--red-dark); font-weight: 600; margin: .4rem 0 0; }
.form-error { padding: .8rem 1rem; border-left: 4px solid var(--red); background: #FDECEE; margin-bottom: var(--s3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .92rem; margin-top: var(--s2); }
.sent { padding: var(--s4) var(--s3); background: var(--mist); border-left: 5px solid var(--navy); border-radius: 0 6px 6px 0; }
.sent:focus { outline: none; }
.contact-details .detail { padding: var(--s2) 0 var(--s3); border-top: 2px solid var(--navy); }
.contact-details h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.contact-details p { margin: 0; }

/* Lists of links */
.link-list { padding-left: 1.2rem; }
.link-list li { margin-bottom: .45rem; }

/* Flag etiquette */
.flags-layout { display: grid; gap: var(--s4); padding-block: var(--s4) var(--s6); }
.essentials { background: var(--navy); color: #fff; border-radius: 6px; padding: var(--s3) var(--s3) var(--s2); }
.essentials h2 { color: #fff; font-size: 1.5rem; }
.essentials ul { padding-left: 1.15rem; margin: 0; }
.essentials li { margin-bottom: .7rem; }
.essentials li::marker { color: var(--brass); }
.essentials strong { color: #fff; }
.toc { border-left: 3px solid var(--red); padding-left: var(--s2); }
.toc h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin-bottom: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1000px) {
  .flags-layout { grid-template-columns: 15rem 1fr; column-gap: var(--s5); }
  .essentials { grid-column: 1 / -1; }
  .essentials ul { columns: 2; column-gap: var(--s4); }
  .essentials li { break-inside: avoid; }
  .toc { position: sticky; top: var(--s3); align-self: start; }
}
.flags-body { max-width: 44rem; }
.figure { margin: var(--s3) 0; }
.parts-svg { width: 100%; max-width: 420px; font-family: var(--head); }
.terms { display: grid; gap: .6rem; }
.terms div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s2); }
.terms dt { font-family: var(--head); font-stretch: 112%; font-weight: 700; color: var(--navy); }
.terms dd { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: end; margin: var(--s3) 0; }
.pair figure { margin: 0; }
.pair img, .pair svg { width: 100%; }
.pair-small { max-width: 30rem; }
figcaption { font-size: .92rem; color: var(--muted); margin-top: .45rem; line-height: 1.45; }
.flag-svg { width: 100%; border-radius: 2px; }
.table-scroll { overflow-x: auto; margin: var(--s3) 0; }
.sizes { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 30rem; }
.sizes caption { text-align: left; font-family: var(--head); font-stretch: 108%; font-weight: 650; color: var(--navy); padding-bottom: .6rem; }
.sizes th, .sizes td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sizes thead th { font-family: var(--head); font-stretch: 105%; font-size: .88rem; color: var(--muted); border-bottom: 2px solid var(--navy); }
.sizes tbody th { font-family: var(--head); font-stretch: 108%; color: var(--navy); white-space: nowrap; }
.sizes tbody tr:nth-child(odd) { background: var(--mist); }
.positions { display: grid; gap: var(--s3); align-items: start; margin: var(--s3) 0; }
@media (min-width: 640px) { .positions { grid-template-columns: 17rem 1fr; } }
.positions-svg { width: 100%; max-width: 300px; font-family: var(--head); }
.pos-list { padding-left: 1.4rem; margin: 0; }
.pos-list li { margin-bottom: .8rem; }
.pos-list li::marker { font-family: var(--head); font-weight: 700; color: var(--red-dark); }
.boat { border-top: 1px solid var(--line); }
.boat:last-of-type { border-bottom: 1px solid var(--line); }
.boat summary { cursor: pointer; list-style: none; padding: 1rem 2.4rem 1rem 0; position: relative; font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.boat summary::-webkit-details-marker { display: none; }
.boat summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.boat[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.boat-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.boat-figs figure { margin: 0; }
.boat-figs img { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.aside-fig { max-width: 260px; }
.aside-fig img { border-radius: 6px; }
.ensign-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: var(--s3) 0; }
.ensign { margin: 0; }
.ensign img, .ensign svg { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.ensign figcaption strong { display: block; font-family: var(--head); font-stretch: 110%; color: var(--navy); font-size: 1rem; margin-bottom: .15rem; }
.ensign-avoid img { filter: saturate(.85); }
.callout { background: var(--mist); border-radius: 6px; padding: var(--s3); margin: var(--s4) 0; }
.callout h3 { margin-top: 0; }
blockquote { margin: var(--s3) 0; padding: var(--s2) var(--s3); border-left: 4px solid var(--navy); background: var(--mist); font-style: italic; }
blockquote p { margin-bottom: .5rem; }
blockquote footer { font-style: normal; font-size: .92rem; color: var(--muted); }
.byline { margin-top: var(--s3); font-style: italic; }

/* Footer */
.foot { background: var(--deep); color: #C9D3E6; font-size: .97rem; }
.foot a { color: #fff; }
.foot a:hover { color: #fff; text-decoration-thickness: 2px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: var(--s5) var(--gut) var(--s4); display: grid; gap: var(--s4); }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand img { width: 260px; margin-bottom: var(--s2); }
.foot h2 { color: #fff; font-size: 1.05rem; font-stretch: 112%; margin-bottom: .6rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45rem; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: var(--s3) var(--gut); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); font-size: .9rem; }
.foot-base p { margin: 0; }

@media print {
  .masthead, .foot, .hoist, .toc, .embed-wrap { display: none; }
  .page-head { background: none; color: var(--ink); }
  .page-head::after, .page-head-photo { display: none; }
  .page-head h1 { color: var(--navy); }
  .boat:not([open]) > *:not(summary) { display: block; }
}

/* Visitor statistics report */
.stats { padding-block: var(--s4) var(--s6); }
.stats-pick { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.stats-pick label { font-family: var(--head); font-weight: 650; color: var(--navy); }
.stats-pick select { font: inherit; padding: .5rem .7rem; border: 1.5px solid #8A97AE; border-radius: 4px; }
.stats-total { font-size: 1.2rem; }
.stats-total strong { font-family: var(--head); font-stretch: 118%; font-size: 2rem; color: var(--navy); margin-right: .3rem; }
.stats-days { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 3px; max-width: 46rem; }
.stats-days li { display: grid; grid-template-columns: 4.5rem 1fr 3rem; align-items: center; gap: .6rem; font-size: .9rem; }
.sd-bar { height: 14px; background: var(--mist); border-radius: 2px; position: relative; }
.sd-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy); border-radius: 2px; }
.sd-n { text-align: right; font-variant-numeric: tabular-nums; }
.stats-cols { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .stats-cols { grid-template-columns: 1fr 1fr; } }
.stats-table { min-width: 0; margin-bottom: var(--s4); }
.stats-table td { font-variant-numeric: tabular-nums; }
.pct { color: var(--muted); font-size: .85rem; }
