/* www/www/lowtide/lowtide.css — Low Tide newsprint style */

:root {
  --ink: #1d1b18;
  --paper: #f2ecdf;
  --spot: #b3261e;
  --sans: Archivo, Helvetica, Arial, sans-serif;
  --black: 'Archivo Black', Archivo, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(40, 30, 10, .05) 1px, transparent 1.2px),
    radial-gradient(rgba(40, 30, 10, .035) 1px, transparent 1.2px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

a { color: var(--ink); }
a:hover { color: var(--spot); }
a:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }

.ink { text-shadow: 0 0 .5px rgba(29, 27, 24, .55); }

.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 48px; }

/* Masthead */
.masthead { border-bottom: 4px solid var(--ink); padding-bottom: 10px; }
.dateline {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.title-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.masthead h1 {
  margin: 6px 0 0; font-family: var(--black); font-weight: 400;
  font-size: clamp(64px, 11vw, 132px); line-height: .9; letter-spacing: -.02em;
}
.masthead.small h1 { font-size: clamp(40px, 7vw, 72px); }
.masthead h1 a { text-decoration: none; color: var(--ink); }
.tagline { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 19px; max-width: 380px; line-height: 1.35; }

/* "This week's pick" in the masthead's empty right side; drops under the title on phones */
.title-row.has-pick { align-items: stretch; gap: 16px 28px; }
.title-main { flex: 1 1 380px; min-width: 0; }
.title-main .tagline { margin-top: 12px; max-width: 460px; }
.mast-pick {
  flex: 0 1 380px; min-width: 260px; align-self: center; margin: 8px 0 10px;
  border: 3px solid var(--spot); padding: 10px 14px 8px; background: rgba(255, 255, 255, .35);
}
.mp-label { margin: 0; color: var(--spot); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mast-pick h3 { margin: 4px 0 4px; font-family: var(--black); font-weight: 400; font-size: 26px; line-height: 1.02; }
.mast-pick h3 .star { float: right; }
.mp-text { margin: 0 0 6px; font-family: var(--serif); font-size: 16px; line-height: 1.38; }
.mast-pick .meta { margin: 0; font-size: 13px; font-weight: 700; }
@media (max-width: 700px) { .mast-pick { flex-basis: 100%; min-width: 0; } }
/* Phones turned sideways and small tablets: keep the pick beside the title, with a smaller title */
@media (min-width: 701px) and (max-width: 1100px) {
  .title-row.has-pick { flex-wrap: nowrap; gap: 20px; }
  .has-pick .title-main { flex: 1 1 auto; }
  .has-pick h1 { font-size: clamp(54px, 7.6vw, 84px); }
  .has-pick .tagline { font-size: 16px; }
  .has-pick .mast-pick { flex: 0 1 300px; min-width: 240px; padding: 8px 12px 6px; }
  .has-pick .mast-pick h3 { font-size: 21px; }
  .has-pick .mp-text { font-size: 14px; }
}

/* Filters: one row for When, one for Town; options wrap beside their label */
.filters { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.frow { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.pill.on { background: var(--ink); color: var(--paper); text-shadow: none; }
.town {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px;
  border-bottom: 3px solid transparent; text-decoration: none; font-size: 16px; font-weight: 600;
}
.town.on { border-bottom-color: var(--spot); font-weight: 800; }
@media (max-width: 520px) {
  .frow { grid-template-columns: 1fr; row-gap: 4px; }
  .pill { padding: 6px 12px; font-size: 14px; }
}

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; align-items: flex-start; }
.side { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 22px; }
.main { flex: 999 1 560px; min-width: 0; }

.howto { font-size: 15px; line-height: 1.38; font-weight: 700; }
.howto p { margin: 0 0 10px; }

.sections { border-top: 4px solid var(--ink); padding-top: 8px; display: flex; flex-direction: column; }
.sections h2 { margin: 0 0 6px; font-family: var(--black); font-weight: 400; font-size: 22px; letter-spacing: .02em; }
.sec {
  display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 6px 8px;
  border-bottom: 1px dotted var(--ink); text-decoration: none; font-size: 17px; font-weight: 700;
}
.sec span:last-child { font-size: 13px; font-weight: 600; }
.sec.on { background: var(--ink); color: var(--paper); text-shadow: none; }

.submit {
  display: block; text-align: center; text-decoration: none; padding: 14px 12px;
  border: 3px solid var(--ink); font-family: var(--black); font-size: 18px; letter-spacing: .04em;
}

/* Calendar */
.calbar { background: var(--ink); color: var(--paper); text-align: center; padding: 4px 12px 1px; }
.calbar h2 {
  margin: 0; font-family: var(--black); font-weight: 400; text-shadow: none;
  font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: .06em;
}

.halftone {
  background-color: #cfc6b4;
  background-image:
    radial-gradient(circle, var(--ink) 38%, transparent 42%),
    radial-gradient(ellipse at 30% 40%, rgba(242, 236, 223, .9), transparent 60%);
  background-size: 5px 5px, 100% 100%;
}

.highlights { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.pick { flex: 1 1 220px; min-width: 0; }
.pick .halftone { height: 170px; margin-bottom: 8px; }
.pick h3 { margin: 0 0 4px; font-family: var(--black); font-weight: 400; font-size: 24px; line-height: 1.05; }
.pick p { margin: 0 0 6px; font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.pick .meta { font-family: var(--sans); font-size: 13px; font-weight: 700; }

.summary { margin: 10px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.empty { font-family: var(--serif); font-style: italic; font-size: 20px; padding: 24px 0; }

.columns { column-width: 240px; column-gap: 28px; column-rule: 1px solid var(--ink); }

.ongoing-head {
  break-after: avoid; margin: 0 0 6px; padding: 4px 8px 2px;
  background: var(--ink); color: var(--paper); text-shadow: none;
  font-family: var(--black); font-weight: 400; font-size: 24px; letter-spacing: .03em;
}
.weekday { break-after: avoid; margin: 8px 0 6px; font-size: 24px; font-weight: 700; }

.dayhead {
  display: table; break-after: avoid; break-inside: avoid; margin: 4px 0 10px; padding: 3px 10px 2px;
  background: var(--ink); color: var(--paper); text-shadow: none;
  font-family: var(--black); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: .01em; text-transform: lowercase;
}
.dayhead small { font-family: Archivo, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dayhead .today { background: var(--spot); border-color: var(--spot); color: #fff; text-transform: uppercase; font-family: Archivo, sans-serif; }
.today {
  display: inline-block; margin-left: 6px; vertical-align: middle; padding: 2px 5px;
  border: 2px solid var(--spot); color: var(--spot);
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
}

.listing { break-inside: avoid; margin: 0 0 12px; font-size: 15px; line-height: 1.36; }
.tags { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: lowercase; }
.free { color: var(--spot); font-weight: 800; }

.roadtrip { margin-top: 24px; border: 3px solid var(--ink); padding: 12px 16px; }
.roadtrip h3 { margin: 0 0 10px; font-family: var(--black); font-weight: 400; font-size: 28px; letter-spacing: .04em; }
.roadtrip h3 span { background: var(--ink); color: var(--paper); padding: 0 6px; text-shadow: none; }

/* Legal pages */
.doc-body { max-width: 760px; margin: 24px auto 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.doc-body h2 { font-family: var(--sans); font-weight: 800; font-size: 22px; margin: 28px 0 8px; }
.doc-body .doc-title { font-family: var(--black); font-weight: 400; font-size: 36px; margin-top: 0; }
.doc-version { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Footer */
.foot {
  margin-top: 32px; border-top: 1px solid var(--ink); padding-top: 10px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* Forms (join, submit) */
.formpage { max-width: 640px; margin: 24px auto 0; }
.form-title { margin: 0 0 8px; font-family: var(--black); font-weight: 400; font-size: 36px; line-height: 1.05; }
.lede { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin: 0 0 12px; }
.signed-in { font-size: 14px; margin: 0 0 18px; }
.notice { border: 2px solid var(--ink); padding: 10px 12px; font-weight: 800; }
.errors { border: 3px solid var(--spot); padding: 8px 12px; margin-bottom: 16px; }
.errors p { margin: 4px 0; color: var(--spot); font-weight: 700; }

.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.form .req { font-size: 11px; color: var(--spot); letter-spacing: .1em; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=url],
.form input[type=date], .form input[type=time], .form select, .form textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: rgba(255, 255, 255, .45);
  border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; min-height: 44px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--spot); outline-offset: 1px; }
.hint { margin: 0; font-size: 13px; font-family: var(--serif); font-style: italic; }
.form .check {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; line-height: 1.35;
}
.form .check input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: var(--ink); }
.agreements { border: 2px solid var(--ink); margin: 18px 0 0; padding: 8px 14px 14px; }
.agreements legend { font-family: var(--black); font-size: 18px; padding: 0 6px; }
.agreements ul { margin: 6px 0 0; padding-left: 18px; font-size: 16px; line-height: 1.6; }
.ver { font-size: 12px; font-weight: 700; }
.btn {
  margin-top: 22px; min-height: 52px; padding: 12px 18px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; text-shadow: none;
  font-family: var(--black); font-size: 19px; letter-spacing: .04em;
}
.btn:hover { background: var(--spot); }
.btn:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }

/* Event submission form */
.formpage.wide { max-width: 760px; }
.group { border: 0; border-top: 4px solid var(--ink); margin: 22px 0 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.group legend { font-family: var(--black); font-size: 22px; padding: 0 8px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.form textarea { resize: vertical; line-height: 1.4; }
.label-like { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.hint-inline { text-transform: none; letter-spacing: 0; font-weight: 600; font-family: var(--serif); font-style: italic; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.form .tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 6px 12px;
  border: 2px solid var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; cursor: pointer;
}
.form .tag input { width: 18px; height: 18px; accent-color: var(--ink); }
.form .tag:has(input:checked) { background: var(--ink); color: var(--paper); text-shadow: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice p { margin: 4px 0; font-weight: 600; }

.mine { margin-top: 36px; border-top: 4px solid var(--ink); padding-top: 8px; }
.mine h3 { margin: 0 0 8px; font-family: var(--black); font-weight: 400; font-size: 22px; }
.mine ul { list-style: none; margin: 0; padding: 0; }
.mine li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted var(--ink); font-size: 15px; }
.st { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 2px solid var(--ink); }
.st-approved { background: var(--ink); color: var(--paper); text-shadow: none; }
.st-rejected, .st-removed { border-color: var(--spot); color: var(--spot); }
.why { flex: 1 1 100%; font-family: var(--serif); font-style: italic; font-size: 14px; }

/* The Ocean box: tides, water, swell, weather, sun */
.ocean { border: 3px solid var(--ink); padding: 10px 12px 8px; background: rgba(255,255,255,.35); }
.ocean h2 { margin: 0 0 6px; font-family: var(--black); font-weight: 400; font-size: 22px; letter-spacing: .03em;
  border-bottom: 2px solid var(--ink); padding-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.ocean h2 small { font-family: Archivo, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ocean .oline { margin: 0; padding: 5px 0; border-bottom: 1px dotted var(--ink); font-size: 15px; line-height: 1.35; }
.ocean .olab { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ocean .tides { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.ocean .tides li { font-size: 15px; white-space: nowrap; }
.ocean .tides li span { font-variant-numeric: tabular-nums; }
.ocean .tides li.next { color: var(--spot); }
.ocean .tides li em { font-style: normal; font-family: Archivo, sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ocean .lowtide { margin: 8px 0 4px; padding: 6px 8px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.35; text-shadow: none; }
.ocean .lowtide b { font-family: Archivo, sans-serif; font-weight: 800; letter-spacing: .06em; display: block; font-size: 12px; }
.ocean .lowtide ul { list-style: none; margin: 3px 0 3px; padding: 0; }
.ocean .lowtide li { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocean .lowtide li span { font-weight: 800; }

/* Most clicked this week (only shown once there are clicks) */
.popular { border-top: 4px solid var(--ink); padding-top: 8px; }
.popular h2 { margin: 0 0 6px; font-family: var(--black); font-weight: 400; font-size: 22px; letter-spacing: .02em; }
.popular ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.35; }
.popular li { margin: 0 0 6px; }
.popular li b { font-weight: 800; }
.popular li span { display: block; font-size: 13px; font-weight: 600; }
.pop-note { margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ocean .osrc { margin: 6px 0 0; font-family: Archivo, sans-serif; font-size: 11px; line-height: 1.3; color: #4d4840; }

/* ☆ My List */
button.star { -webkit-appearance: none; appearance: none; float: right; border: 0; background: transparent; box-shadow: none;
  padding: 0 0 2px 10px; margin: -3px 0 0 0; cursor: pointer; font: inherit; font-size: 20px; line-height: 1; color: var(--ink);
  border-radius: 0; }
.pick h3 .star { margin-top: 2px; }
#cal { scroll-margin-top: 8px; }
.star.on { color: var(--spot); }
.star:disabled { opacity: .5; }
.star:focus-visible { outline: 2px solid var(--spot); outline-offset: 1px; }
.pick h3 .star { font-size: 24px; }
.mylist-link { display: block; text-align: center; padding: 10px 12px 8px; border: 3px solid var(--spot); color: var(--spot);
  font-family: var(--black); font-size: 18px; letter-spacing: .04em; text-decoration: none; }
.mylist-link:hover { background: var(--spot); color: var(--paper); }

.join { width: min(440px, calc(100vw - 32px)); border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 18px 20px 14px; box-sizing: border-box; font-size: 16px; line-height: 1.4; }
.join::backdrop { background: rgba(29, 27, 24, .55); }
.join h2 { margin: 0 0 8px; font-family: var(--black); font-weight: 400; font-size: 26px; line-height: 1.05; padding-right: 36px; }
.join p { margin: 0 0 12px; }
.join label { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.join input { width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; margin-bottom: 10px; }
#lt-code { letter-spacing: .3em; font-size: 24px; text-align: center; }
.join-go { width: 100%; min-height: 46px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--black); font-size: 18px; letter-spacing: .04em; cursor: pointer; margin-bottom: 10px; }
.join-go:disabled { opacity: .6; }
.join .fine { font-size: 13px; color: #4d4840; }
.join-x { position: absolute; top: 8px; right: 10px; margin: 0; }
.join-x button { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); min-width: 40px; min-height: 40px; }
.join-msg { color: var(--spot); font-weight: 700; min-height: 1em; margin: 0; }
.join-msg a { color: var(--spot); }
.join { position: fixed; }

.linkish { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--spot); }
form.inline { display: inline; margin: 0; }
.saved { break-inside: avoid; margin-bottom: 12px; }
.saved .listing { margin-bottom: 4px; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-family: Archivo, sans-serif; font-weight: 700; font-size: 14px; }
.saved-actions form { margin: 0; }
.saved-actions .linkish { color: var(--spot); font-weight: 700; }
form.gone { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; }
.muted-note { font-size: 14px; color: #4d4840; }

/* My List page */
.mylist-title { margin: 18px 0 6px; font-family: var(--black); font-weight: 400; font-size: 40px; line-height: 1;
  border-bottom: 4px solid var(--ink); padding-bottom: 8px; }
.mylist-list { max-width: 720px; }
.mylist-group { margin-top: 18px; }
.mylist-when { margin: 0 0 8px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .1em;
  text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.mylist .saved { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dotted var(--ink); }
.mylist .saved:last-child { border-bottom: 0; }
.mylist .foot form.inline .linkish { font: inherit; text-transform: inherit; letter-spacing: inherit; }


/* ---------- Phones: compact filters ----------
   When, Town and What (sections) are each one line that scrolls sideways, so all three fit
   near the top. The calendar comes before the side column (The Ocean, My List, Submit). */
.phone-only { display: none; }
.mp-short { display: none; }
@media (max-width: 700px) {
  .filters { gap: 6px; padding: 10px 0; }
  .frow, .frow.phone-only { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px; row-gap: 0; }
  .label { font-size: 11px; letter-spacing: .08em; }
  .opts {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 0;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .opts.more-right            { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
  .opts.more-left             { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%); mask-image: linear-gradient(to right, transparent, #000 14%); }
  .opts.more-left.more-right  { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
  #filters { scroll-margin-top: 8px; }
  .opts::-webkit-scrollbar { display: none; }
  .pill { min-height: 40px; padding: 6px 11px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .town { min-height: 40px; padding: 6px 9px; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
  .town small { margin-left: 6px; color: var(--spot); font-size: 12px; font-weight: 800; }

  .main { order: -1; }
  .side { max-width: none; }
  .side .sections { display: none; }

  /* This week's pick: a short line with More ▾; tap to open the write-up */
  .mast-pick { margin: 4px 0 8px; border-width: 2px; padding: 7px 10px 6px; }
  .mp-label { font-size: 10px; }
  .mast-pick h3 { margin: 2px 0 2px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.15; }
  .mast-pick h3 .star { font-size: 18px; }
  .mp-short { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; }
  .mp-toggle {
    flex-shrink: 0; min-height: 36px; padding: 4px 8px; border: 0; background: none; color: var(--ink); cursor: pointer;
    font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  }
  .mast-pick:not(.open) .mp-full { display: none; }
  .mast-pick.open .mp-short span { visibility: hidden; }
  .mp-text { margin-top: 2px; font-size: 15px; }
}

/* ---------- "Pass it on" ---------- */
.passline { margin: 6px 0 12px; font-family: var(--serif); font-style: italic; font-size: 16px; }
.pass-open {
  border: 0; background: none; padding: 4px 0 1px; margin-left: 2px; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--spot);
}
.pass-open:hover { color: var(--spot); }
.foot .pass-open { font-size: inherit; letter-spacing: inherit; }
.pass-clip {
  width: min(92vw, 400px); padding: 20px 20px 16px; overflow: visible;
  border: 2px dashed var(--ink); background: #f7f2e7; color: var(--ink);
}
.pass-clip::backdrop { background: rgba(29, 27, 24, .45); }
.pass-clip .scissors { position: absolute; top: -15px; left: 18px; background: #f7f2e7; padding: 0 6px; font-size: 20px; line-height: 1.4; }
.pass-clip h2:focus { outline: none; }
.pass-clip h2 { margin: 0; font-family: var(--black); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.pass-lede { margin: 6px 0 12px; font-family: var(--serif); font-size: 16px; line-height: 1.38; }
.pass-qr-row { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0; }
.pass-qr-row p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.38; }
.pass-qr-row b { font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 13px; }
.pass-qr { flex-shrink: 0; width: 150px; height: 150px; padding: 8px; background: #fff; border: 1px solid var(--ink); box-sizing: content-box; }
.pass-qr svg { display: block; width: 100%; height: 100%; }
.pass-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 12px 0 0; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pass-actions a, .pass-actions button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0 4px; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; border-bottom: 2px solid var(--spot);
}
.pass-text { display: inline-flex; align-items: center; gap: 12px; }
.pass-text[hidden] { display: none; }
.pass-note { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 12px; color: #4a453e; }
@media (max-width: 380px) { .pass-qr { width: 120px; height: 120px; } }

/* Phones: "Next tide · The Ocean, My List & more ↓" above the calendar, and "↑ Back to top" below */
.seealso, .backtop { display: none; }
@media (max-width: 700px) {
  .seealso {
    display: block; margin: 0 0 10px; padding: 6px 0; border-top: 1px dotted var(--ink); border-bottom: 1px dotted var(--ink);
    font-size: 13px; font-weight: 600; line-height: 1.5;
  }
  .seealso b { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
  .seealso a, .backtop {
    font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    border-bottom: 2px solid var(--spot); white-space: nowrap;
  }
  .backtop { display: block; align-self: center; padding: 10px 0 2px; }
  #side { scroll-margin-top: 8px; }
}

/* "SOCAL" set small and widely spaced under the DE of TIDE, flush with its right edge */
.masthead h1 a { display: inline-flex; flex-direction: column; align-items: flex-end; }
.masthead h1 .socal {
  display: block; margin: -.38em -.92em -.1em 0; /* pulled up close under DE; the right margin cancels the space after the last letter */
  font-size: .2em; line-height: .8; letter-spacing: .92em;
}

/* ---------- "Your Edition" ---------- */
/* One ruled line of small caps under the title, like a paper's "North County Edition" */
.edition {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: nowrap; gap: 4px 14px;
  margin: 8px 0 0; padding: 5px 0; border-top: 1px solid var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
.edition[hidden] { display: none; }
.edition i { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; }
.ed-acts { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ed-link {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); white-space: nowrap;
  font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; border-bottom: 2px solid var(--spot);
}
.ed-link:hover { color: var(--spot); }
.ed-x { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; color: var(--ink); }
form.inline { display: inline; margin: 0; }

/* The Your Edition page: a clip-out coupon */
.coupon { position: relative; max-width: 560px; margin: 22px auto 0; border: 2px dashed var(--ink); padding: 22px 20px 18px; background: #f7f2e7; }
.coupon .scissors { position: absolute; top: -15px; left: 18px; background: #f7f2e7; padding: 0 6px; font-size: 20px; line-height: 1.4; }
.coupon h2 { margin: 0; text-align: center; font-family: var(--black); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: .02em; }
.coupon .lede { text-align: center; font-style: italic; font-size: 16px; margin: 8px 0 4px; }
.coupon fieldset { border: 0; margin: 14px 0 0; padding: 0; }
.coupon legend {
  width: 100%; padding: 0 0 3px; margin-bottom: 4px; border-bottom: 1px solid var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.coupon .opts-line { display: flex; flex-wrap: wrap; gap: 2px 18px; font-family: var(--serif); font-size: 17px; }
.coupon label.mark { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; cursor: pointer; }
.coupon label.mark input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 17px; height: 17px; flex-shrink: 0;
  border: 1.5px solid var(--ink); background: transparent; display: inline-grid; place-content: center; cursor: pointer;
}
.coupon label.mark input[type="radio"] { border-radius: 50%; }
.coupon label.mark input:checked::before { content: "✕"; font-family: var(--sans); font-weight: 800; font-size: 13px; line-height: 1; }
.coupon label.mark input[type="radio"]:checked::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.coupon label.mark input:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.coupon .coupon-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ink); }
.coupon .print-btn { border: 3px solid var(--ink); background: none; cursor: pointer; color: var(--ink); font-family: var(--black); font-size: 17px; letter-spacing: .06em; padding: 10px 18px; min-height: 44px; }
.coupon .print-btn:hover { background: var(--ink); color: var(--paper); }
.coupon .note { margin: 10px 0 0; font-style: italic; font-size: 13px; color: #4a453e; }
.coupon .saved-note { margin: 0 0 6px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.coupon .signin label { display: block; margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.coupon .signin input[type="email"], .coupon .signin input[type="text"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 17px; border: 2px solid var(--ink); background: rgba(255,255,255,.5); border-radius: 0;
}
.coupon .signin .print-btn { margin-top: 12px; }
.coupon .msg { min-height: 1.4em; margin: 8px 0 0; color: var(--spot); font-weight: 700; }
.edition.ed-hint, .edition.ed-invite { flex-wrap: wrap; }
.edition > span:first-child { white-space: nowrap; }
.edition.ed-hint > span:first-child, .edition.ed-invite > span:first-child { white-space: normal; }

/* Highlight photos: printed as a color halftone by the nightly script */
.pick-photo { margin: 0 0 8px; }
.pick-photo img { display: block; width: 100%; height: 170px; object-fit: cover; }
.pick-photo figcaption { margin-top: 3px; text-align: right; font-size: 10px; font-weight: 600; letter-spacing: .02em; color: #6b655c; }
.pick .halftone { margin-bottom: 22px; } /* lines up with a photo's credit line */

/* ---------- "Make a Guide" ---------- */
.guide-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 4px; font-weight: 700; }
.guide-dates input[type="date"] { min-height: 44px; padding: 6px 8px; font: inherit; font-size: 16px; border: 2px solid var(--ink); background: rgba(255,255,255,.5); border-radius: 0; color: var(--ink); }
.coupon label.guide-pick { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dotted var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.3; }
.coupon label.guide-pick input { margin-top: 2px; }
.coupon label.guide-pick small { font-size: 12px; font-weight: 600; }
.coupon + .coupon { margin-top: 34px; }

/* The guide: a mini edition, set up for screen and for a letter-size page */
.guide-page { max-width: 820px; }
.guide-ready { position: relative; display: block; margin: 18px auto 26px; }
.guide-tools { text-align: right; margin: 10px 0 0; }
.guide-sheet { margin-top: 16px; }
.guide-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 4px solid var(--ink); padding: 6px 0 10px; }
.guide-head h1 { margin: 0; font-family: var(--black); font-weight: 400; font-size: clamp(48px, 10vw, 84px); line-height: .9; letter-spacing: -.02em; }
.guide-head h1 a { color: var(--ink); text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-end; }
.guide-head h1 .socal { display: block; margin: -.38em -.92em -.1em 0; font-size: .2em; line-height: .8; letter-spacing: .92em; }
.guide-range { text-align: right; }
.guide-range small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-range b { font-family: var(--black); font-weight: 400; font-size: clamp(20px, 4vw, 30px); line-height: 1.05; }
.guide-cols { column-width: 300px; column-gap: 28px; column-rule: 1px solid var(--ink); margin-top: 16px; }
.g-item { break-inside: avoid; margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.g-item .ser { font-family: var(--serif); }
.guide-foot { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--ink); margin-top: 18px; padding-top: 12px; break-inside: avoid; }
.guide-foot p { margin: 0; font-size: 14px; line-height: 1.4; }
.guide-qr { width: 90px; height: 90px; flex-shrink: 0; }
.guide-qr svg { display: block; width: 100%; height: 100%; }

@media print {
  @page { size: letter; margin: 0.5in; }
  html, body.guide-body { background: #fff !important; }
  .guide-body .no-print, .guide-body .guide-tools { display: none !important; }
  .guide-body .page { padding: 0; max-width: none; }
  .guide-body .ink { text-shadow: none; }
  .guide-body .dayhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-body .guide-cols { column-count: 2; column-width: auto; }
  .guide-body .g-item { font-size: 11pt; }
  .guide-body .more { display: none; }
  .guide-body a { color: #1d1b18; text-decoration: none; }
}
.guide-ready { box-sizing: border-box; width: auto; max-width: 460px; }
.guide-ready .pass-qr-row p, .guide-foot b { overflow-wrap: anywhere; }
.guide-head h1 { white-space: nowrap; }
@media (max-width: 560px) {
  .guide-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .guide-head h1 { font-size: 15vw; }
  .guide-range { text-align: left; }
  .guide-ready .pass-qr { width: 110px; height: 110px; }
}
.coupon .guide-day { margin: 14px 0 2px; font-family: var(--black); font-weight: 400; font-size: 17px; letter-spacing: .02em; }
.coupon .guide-day:first-of-type { margin-top: 6px; }

/* Guide: way back, the ocean, the two codes */
.guide-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 0 8px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-nav a { text-decoration: none; border-bottom: 2px solid var(--spot); min-height: 32px; display: inline-flex; align-items: flex-end; }
.g-item .tags { display: block; }
.g-ocean b:first-child { display: block; }
.g-note { font-size: 12px; font-style: italic; color: #4a453e; }
.guide-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.guide-foot-box { flex: 1 1 260px; display: flex; gap: 12px; align-items: center; }
.guide-foot-box p { margin: 0; font-size: 13px; line-height: 1.4; }
.guide-foot-box .cap { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-foot-box small { font-weight: 700; overflow-wrap: anywhere; }
.see-it { border: 2px solid var(--spot); padding: 8px 10px; }
@media print {
  .guide-body .g-item .tags { font-size: 8pt; }
  .guide-body .see-it a { text-decoration: none; }
}
.coupon .my-guide { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dotted var(--ink); font-size: 15px; }
.coupon .my-guide .ed-acts { gap: 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.coupon .guide-new { margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--spot); }

/* Photos keep their 16:9 shape (the script crops around the subject); a lone highlight sits
   photo-left, text-right instead of stretching into a thin strip */
.pick-photo img { height: auto; aspect-ratio: 16 / 9; max-height: 300px; }
.pick:only-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
.pick:only-child > .pick-photo, .pick:only-child > .halftone { grid-row: 1 / span 4; margin-bottom: 0; }
.pick:only-child > .halftone { aspect-ratio: 16 / 9; height: auto; }
@media (max-width: 700px) { .pick:only-child { display: block; } .pick:only-child > .pick-photo { margin-bottom: 8px; } }

/* Guide: every detail of each event, and the ocean in the same box as the calendar */
.g-full { break-inside: avoid; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px dotted var(--ink); }
.g-full .g-title { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.g-full .g-by { display: block; font-size: 13px; font-weight: 600; margin-top: 1px; }
.g-full .g-desc { display: block; margin: 4px 0 6px; font-size: 15px; line-height: 1.42; }
.g-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; margin: 0; font-size: 14px; line-height: 1.35; }
.g-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.g-facts dd { margin: 0; overflow-wrap: anywhere; }
.g-ocean-box { break-inside: avoid; margin: 4px 0 16px; }
.g-ocean-box h2 small { font-size: 11px; }
.g-oday .g-wx, .g-oday .g-sun { display: block; font-size: 14px; line-height: 1.4; }
.g-oday .tides { margin: 2px 0; }
.guide-pick .tags { display: block; font-size: 11px; }
@media print {
  .guide-body .g-full .g-title { font-size: 12pt; }
  .guide-body .g-full .g-desc, .guide-body .g-facts { font-size: 10pt; }
  .guide-body .g-facts dd a { color: #1d1b18; }
  .guide-body .ocean { background: #fff; }
  .guide-body .ocean .lowtide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Phones: highlights stacked one per row; a rule between them so each photo clearly belongs to
   the title under it (photo, credit, title and details sit tight together) */
@media (max-width: 700px) {
  .highlights { flex-direction: column; gap: 0; }
  .highlights .pick { flex: none; padding: 16px 0 18px; border-top: 1px solid var(--ink); }
  .highlights .pick:first-child { border-top: 0; padding-top: 4px; }
  .pick-photo { margin: 0 0 6px; }
  .pick-photo img { max-height: 220px; }
  .pick-photo figcaption { margin-top: 2px; font-size: 9px; }
  .pick .halftone { aspect-ratio: auto; height: 90px; margin-bottom: 8px; }
  .pick h3 { margin-top: 2px; }
}
