/* yachtdestinations.org public site */
:root {
  --navy: #1d3a52;
  --navy-2: #284f6e;
  --sea: #2f7ea8;
  --sand: #f6f3ec;
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #5f6c7b;
  --line: #d9dee4;
  --ok-bg: #e7f4ea; --ok-ink: #1e5a2f;
  --err-bg: #fbe9e7; --err-ink: #8a2416;
  --info-bg: #e8f1f8; --info-ink: #1d3a52;
  --gold: #e3b23c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--sea); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px; flex: 1; }
main.wide { flex: 1; display: flex; flex-direction: column; }

/* header */
.site-header { background: var(--navy); color: #fff; }
.site-header .bar { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; flex-wrap: wrap; min-height: 58px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .2px; margin-right: 24px; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a, .site-nav .linklike { color: #dce7f0; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .97rem; }
.site-nav a:hover, .site-nav .linklike:hover { background: var(--navy-2); color: #fff; }
.site-nav a.active { background: #fff; color: var(--navy); }
.site-nav .btn-small { background: var(--gold); color: var(--navy); font-weight: 600; }
.site-nav .btn-small:hover { background: #f0c75e; color: var(--navy); }
.nav-spacer { flex: 1; }
.nav-toggle, .nav-toggle-label { display: none; }
form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle-label { display: block; margin-left: auto; font-size: 1.6rem; cursor: pointer; padding: 4px 8px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-spacer { display: none; }
  .site-nav a, .site-nav .linklike { text-align: left; width: 100%; }
}

/* footer */
.site-footer { background: #e9e4d8; color: var(--muted); font-size: .88rem; }
.site-footer .container { padding: 16px; flex: none; }

/* notices */
.notice { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice-err { background: var(--err-bg); color: var(--err-ink); }
.notice-info { background: var(--info-bg); color: var(--info-ink); }
main.wide > .notice { margin: 12px 16px 0; }

/* cards & forms */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.narrow { max-width: 480px; margin: 0 auto; }
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #b9c2cc; border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block; background: var(--sea); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-secondary { background: #e4e9ee; color: var(--navy); }
.btn-secondary:hover { background: #d3dbe2; color: var(--navy); }
.btn-danger { background: #b23a2a; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hp { position: absolute; left: -5000px; }   /* honeypot field */
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* home */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; }
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: 10px; display: block; box-shadow: var(--shadow); }
.hero figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.hero h1 { font-size: 2rem; }
.hero .lead { font-size: 1.1rem; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.steps .card h3 { margin-bottom: .3em; }
.burgee-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; padding: 18px 0; }
.burgee-strip a { display: block; }
.burgee-strip img { height: 42px; width: auto; display: block; transition: transform .15s; }
.burgee-strip a:hover img { transform: scale(1.15); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* map */
.map-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .92rem; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.legend img { height: 22px; vertical-align: middle; margin-right: 4px; }
#map { flex: 1; min-height: 460px; }
.map-msg { padding: 40px 16px; text-align: center; color: var(--muted); }
.iw { max-width: 280px; font-size: .92rem; line-height: 1.4; }
.iw h3 { font-size: 1rem; margin: 0 0 4px; }
.iw img.burgee { height: 34px; float: right; margin: 0 0 6px 8px; }
.iw .status { font-weight: 600; }
.iw .status.yes { color: #8a6500; }

/* details table */
.filters { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .form-row { margin: 0; min-width: 180px; }
.filters .seg { display: inline-flex; border: 1px solid #b9c2cc; border-radius: 6px; overflow: hidden; }
.filters .seg a { padding: 8px 12px; text-decoration: none; color: var(--navy); background: #fff; font-size: .92rem; }
.filters .seg a.on { background: var(--navy); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
table.clubs { border-collapse: collapse; width: 100%; font-size: .94rem; }
table.clubs th, table.clubs td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.clubs th { background: #eef2f5; color: var(--navy); font-weight: 600; white-space: nowrap; }
table.clubs th a { color: inherit; text-decoration: none; }
table.clubs th a:hover { text-decoration: underline; }
table.clubs tr:hover td { background: #f8fafb; }
table.clubs td.burgee img { height: 28px; width: auto; display: block; }
table.clubs td.num { text-align: right; white-space: nowrap; }
table.clubs td.icons { white-space: nowrap; }
table.clubs td.icons a { text-decoration: none; margin-right: 8px; }
.stale { color: #b23a2a; font-size: .8rem; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.search-toggle, .search-toggle-label { display: none; }
/* phones (Bob, 2026-10-23): search fields fold behind "Search ▸"; smaller table type so it fits without sideways scrolling */
@media (max-width: 760px) {
  .page-details h1 { font-size: 1.4rem; }
  .search-toggle-label { display: inline-block; font-size: 1rem; color: var(--sea); cursor: pointer; margin: 0 0 10px; }
  .search-toggle-label::after { content: " ▸"; }
  .search-toggle:checked + .search-toggle-label::after { content: " ▾"; }
  .search-toggle:not(:checked) ~ .filters .srch { display: none; }
  .filters { gap: 8px 12px; }
  .filters .form-row { min-width: 0; flex: 1 1 160px; }
  .filters .form-row:has(button) { flex: 0 0 auto; }
  .filters label { font-size: .85rem; margin-bottom: 2px; }
  .filters input[type=text], .filters select { padding: 6px 8px; font-size: 16px; }  /* 16px stops iPhone zooming in */
  .filters .btn { padding: 7px 14px; }
  .filters .seg a { padding: 6px 10px; font-size: .85rem; }
  table.clubs { font-size: .78rem; }
  table.clubs th, table.clubs td { padding: 5px 5px; }
  table.clubs td.burgee img { height: 20px; }
  table.clubs td.icons a { margin-right: 4px; }
  table.clubs .badge { padding: 1px 6px; font-size: .72rem; }
}
/* portrait phones: drop Dist and Info updated so the map/print icons stay in view (Bob) */
@media (max-width: 760px) and (orientation: portrait) {
  table.clubs .col-dist, table.clubs .col-upd { display: none; }
}

/* club page */
.club-head { display: flex; gap: 20px; align-items: flex-start; }
.club-head img.burgee { height: 72px; width: auto; }
.club-head .addr { color: var(--muted); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-recip { background: #fff3cd; color: #7a5600; }
.badge-home { background: #dbeafe; color: #1d4e89; }
.badge-no { background: #eceff2; color: var(--muted); }
/* members of several clubs: which burgee to fly at a reciprocal club */
.fly-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: .9rem; }
.fly-burgee { height: 22px; width: auto; vertical-align: middle; }
.fly { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.fly .fly-burgee { height: 16px; }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.sections .card h2 { margin-top: 0; font-size: 1.1rem; }
/* Club information reads as one column: three narrow columns made short lines and long paragraphs (Bob) */
.sections.club-info { grid-template-columns: 1fr; }
/* the whole club page (heading, buttons, sections, notes) is one centred column on a single left edge (Bob) */
.club-wrap { max-width: 820px; margin: 0 auto; }
.club-info dl.facts { grid-template-columns: minmax(130px, 30%) 1fr; }
dl.facts { margin: 0; display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; font-size: .94rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.news { background: #fffbea; border-left: 4px solid var(--gold); }
.signin-note { font-size: .9rem; }

/* account */
.club-list { list-style: none; padding: 0; margin: 0 0 12px; }
.club-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.club-list li .name { flex: 1; }

@media print {
  .site-header, .site-footer, .no-print, .actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .container { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
