/* Shared layout for the news samples; each publication sets its own colors, type, and extras below. */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.sample-bar { margin: 0; padding: 8px 16px; background: var(--bar-bg); color: var(--bar-ink); font: 13px/1.5 var(--ui); text-align: center; }
.sample-bar a { color: var(--accent); }
.wrap { width: min(1220px, 100% - 32px); margin: 0 auto; }
.wrap-n { width: min(720px, 100% - 32px); margin: 0 auto; }
.wrap-w { width: min(1000px, 100% - 32px); margin: 0 auto; }

.mast { position: sticky; top: 0; z-index: 100; background: var(--mast); color: var(--mast-ink); box-shadow: 0 1px 0 var(--mast-line); }
.mast-in { display: flex; align-items: center; gap: 24px; width: min(1220px, 100% - 32px); margin: 0 auto; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin: 0; text-decoration: none; }
.seal { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); font: 700 14px var(--ui); letter-spacing: 0.04em; color: var(--accent); }
.logo-t { font: var(--logo-font); letter-spacing: var(--logo-ls, -0.01em); white-space: nowrap; }
.main-nav { display: flex; gap: 26px; margin-left: auto; font: 500 15px var(--ui); }
.main-nav a { text-decoration: none; opacity: 0.85; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { opacity: 1; border-bottom-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--btn-r, 10px); font: 600 15px var(--ui); text-decoration: none; cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.btn-sub { background: var(--btn); color: var(--btn-ink); }
.btn-sub:hover { transform: translateY(-1px); filter: brightness(1.08); }
.menu { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--mast-line); border-radius: 10px; background: none; color: inherit; font: 600 14px var(--ui); cursor: pointer; }
.sections { border-top: 1px solid var(--mast-line); }
.sections ul { display: flex; justify-content: center; gap: 6px 30px; flex-wrap: wrap; width: min(1220px, 100% - 32px); margin: 0 auto; padding: 10px 0; list-style: none; font: 500 14px var(--ui); }
.sections a { text-decoration: none; opacity: 0.8; display: inline-block; min-width: 24px; padding: 6px 0; text-align: center; }
.sections a:hover { opacity: 1; color: var(--accent); }
@media (max-width: 980px) {
  .main-nav, .mast-in > .btn-sub { display: none; }
  .menu { display: inline-flex; align-items: center; margin-left: auto; }
  .sections { display: none; } .sections.open { display: block; }
  .sections ul { justify-content: flex-start; gap: 4px 22px; }
  .logo-t { font-size: 20px; white-space: normal; }
}

.front { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 1000px) { .front { grid-template-columns: minmax(0, 1fr) 360px; } }
.lead { display: grid; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
@media (min-width: 760px) { .lead { grid-template-columns: 0.85fr 1fr; } }
.lead-txt { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 3.4vw, 40px); }
.badge { align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 4px; background: var(--badge); color: var(--badge-ink); font: 700 11px var(--ui); letter-spacing: 0.14em; text-transform: uppercase; }
.topic { margin: 0; color: var(--topic); font: 600 14px var(--ui); }
.lead h1 { margin: 0; font: var(--h1-font); letter-spacing: -0.015em; }
.lead h1 a, .card h3 a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s; }
.lead h1 a:hover, .card h3 a:hover { background-size: 100% 2px; }
.dek { margin: 0; color: var(--mute); font-size: 1.05rem; }
.meta { margin: 0; color: var(--mute); font: 13px var(--ui); }
.meta .date { color: var(--accent-2); font-weight: 600; }
.lead-img { position: relative; display: block; min-height: 280px; overflow: hidden; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.lead-img img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.credit { position: absolute; right: 10px; bottom: 8px; color: #fff; font: 11px var(--ui); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.top { overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.top h2 { margin: 0; padding: 18px 20px; background: var(--top-h); color: var(--top-h-ink); font: 700 20px var(--ui); border-bottom: 3px solid var(--accent); }
.top ol { margin: 0; padding: 6px 0; list-style: none; }
.top li a { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: start; padding: 12px 20px; text-decoration: none; }
.top li a:hover b { color: var(--accent-2); }
.top li + li a { border-top: 1px solid var(--line); }
.top img { width: 74px; height: 52px; object-fit: cover; border-radius: 6px; }
.top li a:hover img { filter: brightness(1.08); }
.top b { display: block; font: 700 15px/1.3 var(--ui); transition: color 0.2s; }
.top em { display: block; margin-top: 4px; font: normal 12px var(--ui); color: var(--mute); }

.latest { margin-top: 56px; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sec-h { margin: 0; font: var(--h2-font); letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 13px var(--ui); cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--page); }
.filter-note { min-height: 1.4em; margin: 10px 0 0; color: var(--mute); font: 13px var(--ui); }
.grid { display: grid; gap: 22px; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.card { overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); transition: transform 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-b { display: grid; gap: 6px; padding: 18px 20px 22px; }
.card h3 { margin: 0; font: var(--h3-font); }

.band { margin-top: 64px; padding: 56px 0; background: var(--band); }
.two { display: grid; gap: 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.panel-note { margin: 4px 0 16px; color: var(--mute); font: 13px var(--ui); }

.news { margin-top: 64px; padding: 56px 0; background: var(--news); color: var(--news-ink); }
.news-in { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .news-in { grid-template-columns: 1fr 1fr; } }
.news h2 { margin: 0; font: var(--h2-font); }
.news p { margin: 8px 0 0; opacity: 0.85; }
.news-f { display: flex; flex-wrap: wrap; gap: 10px; }
.news-f input { flex: 1 1 220px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--btn-r, 10px); background: rgba(255, 255, 255, 0.08); color: inherit; font: 15px var(--ui); }
.news-f input::placeholder { color: inherit; opacity: 0.6; }
.tiny { flex-basis: 100%; margin: 0; font: 13px var(--ui); opacity: 0.75; }

.foot { padding: 48px 0 70px; background: var(--foot); color: var(--foot-ink); font: 14px var(--ui); }
.foot-in { display: grid; gap: 28px; width: min(1220px, 100% - 32px); margin: 0 auto; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p { margin: 0 0 10px; opacity: 0.85; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot a { display: inline-block; padding: 4px 0; text-decoration: none; opacity: 0.85; } .foot a:hover { opacity: 1; text-decoration: underline; }
.foot-h { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.foot-logo { margin-bottom: 14px !important; opacity: 1 !important; }
/* Pause motion lives in the header, so it never covers the page */
.motion { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-width: 38px; min-height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; }
.motion .mi { position: relative; width: 10px; height: 10px; }
.motion .mi::before, .motion .mi::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; }
.motion .mi::before { left: 1px; } .motion .mi::after { right: 1px; }
.motion[aria-pressed="true"] .mi::before { left: 1px; width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.motion[aria-pressed="true"] .mi::after { display: none; }
@media (max-width: 700px) { .motion { padding: 0; width: 38px; } .motion .ml { display: none; } }
.motion { border: 1px solid var(--mast-line); background: transparent; color: var(--mast-ink); font-family: var(--ui); }
@media (max-width: 980px) { .mast-in .motion { margin-left: auto; } .mast-in .menu { margin-left: 0; } }
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }
.motion-off .rise { opacity: 1; transform: none; transition: none; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }

/* Story page */
.story { padding-top: 40px; }
.story-h { display: grid; gap: 14px; }
.story-h .badge { justify-self: start; }
.story-h h1 { margin: 0; font: var(--story-h1); letter-spacing: -0.02em; }
.story-h .dek { font-size: 1.2rem; }
.story-fig { margin-top: 30px; margin-bottom: 0; }
.story-fig img { width: 100%; border-radius: var(--r); }
.story-fig figcaption { margin-top: 8px; color: var(--mute); font: 13px var(--ui); }
.story-body { margin-top: 30px; font: var(--story-body); }
.story-body p { margin: 0 0 1.3em; }
.story-body > p:first-of-type::first-letter { float: left; margin: 0.08em 0.1em 0 0; font: 700 3.6em/0.85 var(--display); color: var(--accent-2); }
.points { margin: 0 0 30px; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; background: var(--band); font: 15px/1.6 var(--ui); }
.points h2 { margin: 0 0 8px; font: 700 13px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.points ul { margin: 0; padding-left: 18px; }
.pull { margin: 34px 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent); }
.pull p { margin: 0; font: var(--pull-font); color: var(--ink); }
.endmark { padding-top: 18px; border-top: 1px solid var(--line); color: var(--mute); font: italic 14px var(--ui); }
.related { margin-top: 40px; margin-bottom: 20px; }
.related ul { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.related a { display: grid; gap: 10px; text-decoration: none; font: 700 16px/1.35 var(--ui); }
.related img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.related a:hover b { color: var(--accent-2); }
/* The Cedar Harbor Ledger: forest green masthead, warm paper, classic serif. */
:root { --page: #f7f3ea; --card: #ffffff; --ink: #1c2420; --mute: #5d665f; --line: #e6e0d2; --line-2: #d6cfbf;
  --accent: #e8613c; --accent-2: #b8462a; --on-accent: #fff; --topic: #1f6a52;
  --mast: #163a30; --mast-ink: #f7f3ea; --mast-line: rgba(247, 243, 234, 0.18); --bar-bg: #0e2620; --bar-ink: #cfe0d8;
  --btn: #e8613c; --btn-ink: #fff; --badge: #f2c14e; --badge-ink: #1c2420; --top-h: #163a30; --top-h-ink: #fff;
  --band: #ece5d6; --news: #163a30; --news-ink: #f7f3ea; --foot: #0e2620; --foot-ink: #cfe0d8;
  --r: 6px; --shadow: 0 1px 2px rgba(28, 36, 32, 0.08), 0 8px 24px -12px rgba(28, 36, 32, 0.18); --shadow-h: 0 18px 40px -16px rgba(28, 36, 32, 0.35);
  --display: Georgia, "Times New Roman", serif; --body: Georgia, "Times New Roman", serif; --ui: "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --logo-font: 700 26px Georgia, serif; --h1-font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1.12 Georgia, serif; --h2-font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 Georgia, serif;
  --h3-font: 700 1.22rem/1.3 Georgia, serif; --story-h1: 700 clamp(2.2rem, 5vw, 3.4rem)/1.08 Georgia, serif; --story-body: 1.18rem/1.75 Georgia, serif; --pull-font: italic 1.5rem/1.4 Georgia, serif; }
.wx { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-family: var(--ui); }
.wx li { display: grid; grid-template-columns: 48px 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wx em { font-style: normal; font-weight: 700; }
.wx-i { width: 28px; height: 28px; border-radius: 50%; }
.wx-sun { background: radial-gradient(circle, #f2c14e 45%, rgba(242, 193, 78, 0.25) 48%); animation: spinS 12s linear infinite; }
.wx-fog { background: repeating-linear-gradient(0deg, #9aa7a0 0 3px, transparent 3px 7px); border-radius: 6px; }
.wx-rain { background: radial-gradient(circle at 50% 35%, #7f95a8 45%, transparent 47%), repeating-linear-gradient(100deg, transparent 0 5px, #4c88c4 5px 6px); }
@keyframes spinS { to { transform: rotate(360deg); } }
.tide { height: 90px; margin-top: 18px; border-radius: 6px; overflow: hidden; background: #e6f0ef; }
.tide svg { width: 200%; height: 100%; animation: tide 9s linear infinite; }
.tide-w { fill: #6fb3b8; opacity: 0.85; } .tide-now { stroke: #e8613c; stroke-width: 2; }
@keyframes tide { to { transform: translateX(-50%); } }
.tide-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 8px 0 0; font: 13px var(--ui); color: var(--mute); }
.events { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-family: var(--ui); }
.events li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: #faf7f0; }
.ev-d { display: grid; place-items: center; height: 52px; border-radius: 8px; background: var(--mast); color: #fff; font-weight: 700; }
.events b { display: block; } .events span { color: var(--mute); font-size: 14px; }
