/* ==========================================================================
   eboatnews — theme-v3.css
   Light editorial redesign layered on top of theme.css: white header with
   a green Newsletter button, a rounded split hero card, the "Fresh from
   the water" story list and a mint newsletter band. Loaded after
   theme.css/reading.css on every public page, so it only overrides — the
   class hooks used by main.js and by the server-rendered article/category
   templates stay the same.
   ========================================================================== */

:root {
  --navy:        #0E1C36;
  --navy-hover:  #1B2D50;
  --green:       #158A66;
  --green-hover: #0F7254;
  --green-text:  #127A5A;
  --mint:        #E3F1EC;
  --slate:       #5B6577;
  --rule:        #E3E7EC;
  --page:        #F7F9FA;
  --radius:      14px;
  --radius-sm:   8px;

  --ink:         var(--navy);
  --ink-soft:    #24324D;
  --bg-page:     var(--page);
  --text-body:   #2A3342;
  --text-muted:  var(--slate);
  --line:        var(--rule);
  --brand:       var(--green);
  --brand-dark:  var(--green-hover);

  --f-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;

  --bs-primary-rgb: 21,138,102;
  --bs-link-color: var(--green-text);
  --bs-link-hover-color: var(--navy);
  --bs-body-bg: var(--page);
}

body { background: var(--page); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Buttons --------------------------------------------------------------- */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.4rem; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.ed-btn-green { background: var(--green); color: #fff; }
.ed-btn-green:hover { background: var(--green-hover); color: #fff; }
.ed-btn-navy { background: var(--navy); color: #fff; }
.ed-btn-navy:hover { background: var(--navy-hover); color: #fff; }
.ed-btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.ed-btn-outline:hover { background: var(--navy); color: #fff; }
.ed-btn-lg { font-size: 1.05rem; padding: 1rem 1.9rem; }
.ed-btn:disabled { opacity: .7; }

.btn-brand { background: var(--green); border-color: var(--green); border-radius: var(--radius-sm); font-weight: 600; }
.btn-brand:hover { background: var(--green-hover); border-color: var(--green-hover); }
.section-title::after { background: var(--green); }

/* Text atoms ------------------------------------------------------------ */
.ed-cat-label {
  display: inline-block; color: var(--green-text); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .55rem;
}
.ed-cat-label:hover { color: var(--navy); }
.ed-meta { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--slate); }

/* One green accent for every category (labels, icons, links). */
.cat-boats, .cat-motors, .cat-batteries, .cat-charging, .cat-control, .cat-marinas {
  --cat: var(--green); --cat-ink: var(--green-text); --cat-text: #fff; --cat-soft: var(--mint);
}
.cat-badge {
  background: transparent; color: var(--green-text); padding: 0; border-radius: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.cat-badge .bi { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.ed-header { background: var(--page); position: relative; z-index: 1030; }
.ed-header .site-navbar { background: transparent; border: 0; padding: 0; }
.ed-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.ed-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.ed-logo img, .ed-logo .brand-logo { height: 76px; width: auto; margin-left: 14px; }
.ed-header .site-navbar .nav-link { color: var(--navy); font-weight: 500; font-size: 1rem; padding: .6rem 1rem; }
.ed-header .site-navbar .nav-link:hover,
.ed-header .site-navbar .nav-link.active { color: var(--green-text); }
.ed-header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.ed-icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.2rem;
}
.ed-icon-btn:hover { background: #E9EEF2; }
.ed-icon-btn:focus { box-shadow: none; }
.ed-account .reader-account-link { color: var(--navy); margin-left: 0; font-size: .92rem; font-weight: 500; }
.ed-account .reader-account-link:hover { color: var(--green-text); }
.reader-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; }
.ed-account .dropdown-toggle::after { margin-left: .35rem; vertical-align: middle; }
.ed-account .dropdown-menu { border-radius: var(--radius-sm); border-color: var(--rule); box-shadow: 0 12px 30px rgba(14, 28, 54, .12); }

.ed-search-bar { border-top: 1px solid var(--rule); background: #fff; }
.ed-search { position: relative; display: flex; gap: .75rem; padding: 1rem 0; }
.ed-search > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--slate); }
.ed-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: .75rem 1rem .75rem 2.6rem; font-size: 1rem; background: var(--page); outline: none;
}
.ed-search input:focus { border-color: var(--green); background: #fff; }

/* ==========================================================================
   Home: hero card
   ========================================================================== */
.ed-hero-wrap { padding-top: .25rem; }
.ed-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 50px rgba(14, 28, 54, .07);
}
.ed-hero-media { display: block; min-height: 480px; position: relative; overflow: hidden; }
.ed-hero-media .ed-hero-img, .ed-hero-media .art-panel {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: auto; border: 0; border-radius: 0;
}
.ed-hero-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 3rem 3.25rem; }
.ed-hero-title { font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1.25rem; }
.ed-hero-title a { color: var(--navy); }
.ed-hero-title a:hover { color: var(--green-text); }
.ed-hero-dek {
  font-size: 1.15rem; line-height: 1.55; color: var(--slate); margin-bottom: 2rem; max-width: 36ch;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==========================================================================
   Home: sections, story list, newsletter band
   ========================================================================== */
.ed-section { padding-top: 3.5rem; }
.ed-section-head { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 1.5rem; }
.ed-section-rule { display: block; width: 44px; height: 2px; background: var(--green); flex-shrink: 0; }
.ed-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; letter-spacing: -.035em; }

.ed-story {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; align-items: center;
  gap: 2.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.ed-story:last-of-type { border-bottom: none; }
.ed-story-media { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.ed-story-media .art-panel { width: 100%; aspect-ratio: 11/4; height: auto; border: 0; border-radius: 0; transition: transform .5s ease; }
.ed-story:hover .ed-story-media .art-panel { transform: scale(1.03); }
.ed-story-title { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.025em; }
.ed-story-title a { color: var(--navy); }
.ed-story-title a:hover { color: var(--green-text); }
.ed-story-dek {
  color: var(--slate); font-size: 1.02rem; line-height: 1.5; margin: 0; max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ed-story-arrow { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--navy); font-size: 1.6rem; }
.ed-story-arrow:hover { background: var(--mint); color: var(--green-text); }
.ed-more-wrap { padding-top: 1.5rem; }

.ed-newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  background: var(--mint); border-radius: var(--radius); padding: 2.25rem 2.5rem;
}
.ed-newsletter h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .5rem; letter-spacing: -.035em; }
.ed-newsletter p { color: var(--slate); font-size: 1.05rem; margin: 0; max-width: 46ch; }
.ed-newsletter .newsletter-note { color: var(--green-text); margin-top: .5rem; font-size: .88rem; }
.ed-subscribe { display: flex; gap: .6rem; }
.ed-subscribe input[type="email"] {
  flex: 1 1 auto; min-width: 0; border: 1px solid #D5DDE3; border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-size: 1rem; background: #fff; color: var(--navy); outline: none;
}
.ed-subscribe input[type="email"]:focus { border-color: var(--green); }

.ed-card-media { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: .9rem; }
.ed-card-media .art-panel { width: 100%; aspect-ratio: 3/2; height: auto; border: 0; border-radius: 0; }
.ed-card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: .5rem; letter-spacing: -.02em; }
.ed-card h3 a { color: var(--navy); }
.ed-card h3 a:hover { color: var(--green-text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ed-footer { background: #fff; color: var(--slate); border-top: 1px solid var(--rule); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.ed-footer .ed-logo img { height: 68px; }
body[data-page="home"] .ed-footer-news { display: none; }
.ed-footer h6 { color: var(--navy); font-family: var(--f-display); font-size: .95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.ed-footer p { font-size: .92rem; line-height: 1.65; }
.ed-footer a { color: var(--slate); }
.ed-footer a:hover { color: var(--green-text); }
.ed-footer-links li { margin-bottom: .55rem; }
.ed-footer .newsletter-note { color: var(--green-text); }
.ed-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--page); border: 1px solid var(--rule); color: var(--navy); margin-right: .4rem; }
.ed-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.ed-tags:has(#tagCloud:empty) { display: none; }
.ed-footer .tag-pill { border: 1px solid var(--rule); color: var(--slate); border-radius: 30px; }
.ed-footer .tag-pill:hover { border-color: var(--green); color: var(--green-text); }
.ed-footer .footer-bottom { border-top: 1px solid var(--rule); color: var(--slate); margin-top: 2.5rem; padding: 1.25rem 0 0; font-size: .85rem; }

/* ==========================================================================
   Category / search / saved grids (.news-card) and article page
   ========================================================================== */
.breadcrumb-bar { padding-top: .5rem; }
.breadcrumb-bar a { color: var(--slate); }
#categoryTitle .bi { display: none; }
#categoryTitle { letter-spacing: -.035em; }

.news-card { background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14, 28, 54, .06); }
.news-card:hover { box-shadow: 0 16px 40px rgba(14, 28, 54, .1); }
.news-card > a { display: block; overflow: hidden; }
.news-card .art-panel { height: auto; aspect-ratio: 3/2; border-radius: 0; transition: transform .5s ease; }
.news-card:hover .art-panel { transform: scale(1.03); }
.news-card .news-card-body { padding: 1.25rem 1.35rem 1.4rem; }
.news-card h6 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.news-card h6 a:hover { color: var(--green-text); }
.news-card p.dek { color: var(--slate); }

.article-header h1 { letter-spacing: -.035em; }
.author-chip .avatar { background: var(--navy); color: #fff; }
.toolbar { background: var(--page); }
.toolbar-btn { border-radius: var(--radius-sm); }
.toolbar-btn:hover { border-color: var(--green); color: var(--green-text); }
.toolbar-btn[data-active="true"] { background: var(--navy); border-color: var(--navy); }
.article-banner { border-radius: var(--radius); }
.sidebar-card, .discussion-card { border-radius: var(--radius); border-color: var(--rule); }
.related-item h6 { text-transform: none; letter-spacing: -.01em; font-size: .92rem; color: var(--navy); }
.prev-next a { border-radius: var(--radius); color: var(--navy); font-family: var(--f-display); font-weight: 700; }
.prev-next a:hover { border-color: var(--green); color: var(--green-text); }
.tag-footer .tag:hover { border-color: var(--green); color: var(--green-text); }
.newsletter-band { border-radius: var(--radius); background: var(--mint); }
.newsletter-band::after { display: none; }
.newsletter-band h3 { color: var(--navy); }
.newsletter-band p { color: var(--slate); }
.newsletter-band .newsletter-note { color: var(--green-text); }
.newsletter-band .btn { background: var(--navy); border-color: var(--navy); }
.cat-tabs .nav-link.active { background: var(--green); }
.modal-content { border-radius: var(--radius); }
@media screen { .print-footer { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .ed-header-inner { flex-wrap: wrap; gap: 0 .5rem; min-height: 72px; }
  .ed-logo img, .ed-logo .brand-logo { height: 56px; margin-left: 8px; }
  .ed-header-actions { margin-left: auto; gap: .35rem; }
  .ed-header .navbar-collapse { order: 3; flex-basis: 100%; padding-bottom: .75rem; }
  .ed-header .site-navbar .nav-link { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .ed-hero { grid-template-columns: 1fr; }
  .ed-hero-media { min-height: 0; aspect-ratio: 16/10; }
  .ed-hero-body { padding: 2rem 1.75rem 2.25rem; }
  .ed-newsletter { grid-template-columns: 1fr; padding: 2rem 1.75rem; }
}
@media (max-width: 767.98px) {
  .ed-section { padding-top: 2.5rem; }
  .ed-section-head { gap: 1rem; }
  .ed-section-rule { width: 28px; }
  .ed-story { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .ed-story-media .art-panel { aspect-ratio: 16/9; }
  .ed-story-arrow { display: none; }
  .ed-story-dek { -webkit-line-clamp: 3; }
  .ed-subscribe { flex-direction: column; }
  .ed-footer { margin-top: 3rem; }
}
@media (max-width: 399.98px) {
  .ed-account .reader-signin-text { display: none; }
  .ed-account .reader-account-link .bi-person-circle { font-size: 1.35rem; }
}

/* ==========================================================================
   Listen to the article (listen.js)
   ========================================================================== */
.listen-btn {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 1rem;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff;
  padding: .45rem 1.1rem .45rem .45rem; font-weight: 600; font-size: .95rem;
}
.listen-btn:hover { background: var(--navy-hover); }
.listen-btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); font-size: 1.15rem; }
.listen-btn-meta { color: rgba(255,255,255,.7); font-weight: 500; font-size: .85rem; }
.listen-btn.is-playing .listen-btn-icon { background: #fff; color: var(--navy); }

.listen-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: var(--navy); color: #fff; box-shadow: 0 -8px 30px rgba(14, 28, 54, .25);
  padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom));
}
.listen-player-inner { display: flex; align-items: center; gap: .5rem; }
.listen-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: .1rem; flex-shrink: 0;
  min-width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem;
}
.listen-ctl small { font-size: .6rem; font-weight: 700; }
.listen-ctl:hover { background: rgba(255,255,255,.1); }
.listen-play { background: var(--green); font-size: 1.4rem; width: 44px; height: 44px; }
.listen-play:hover { background: var(--green-hover); }
.listen-speed { border-radius: 999px; font-size: .85rem; font-weight: 700; padding: 0 .6rem; border: 1px solid rgba(255,255,255,.25); height: 32px; }
.listen-track { flex: 1 1 auto; min-width: 0; padding: 0 .5rem; }
.listen-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen-progress-row { display: flex; align-items: center; gap: .6rem; }
.listen-time { font-size: .75rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.listen-range { flex: 1 1 auto; accent-color: var(--green); min-width: 0; }
body.has-listen-player { padding-bottom: 80px; }
@media (max-width: 575.98px) {
  #listenBack, #listenFwd { display: none; }
  .listen-track { padding: 0 .25rem; }
}
.article-byline-row .listen-btn { margin-top: 0; margin-left: auto; }
@media (max-width: 575.98px) { .article-byline-row .listen-btn { margin-left: 0; } }

/* Reading progress (progress.js) */
.read-badge {
  display: inline-flex; align-items: center; gap: .2rem; margin-left: .5rem; padding: .1rem .5rem;
  border-radius: 999px; background: var(--mint); color: var(--green-text);
  font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: none; vertical-align: middle;
}
h1 .read-badge, h2 .read-badge, h3 .read-badge, h4 .read-badge, h6 .read-badge { margin: 0 .5rem 0 0; }
[data-article-id].is-read .ed-story-media img, [data-article-id].is-read .ed-card-media img,
[data-article-id].is-read > a > img, [data-article-id].is-read .art-panel { opacity: .6; }
[data-article-id].is-read .ed-story-title a, [data-article-id].is-read h3 a,
[data-article-id].is-read h6 a, [data-article-id].is-read h6 { color: var(--slate); }

/* ==========================================================================
   Home briefing: play the unread stories back to back (briefing.js)
   ========================================================================== */
.briefing-band {
  display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(110deg, var(--navy) 0%, #12305a 60%, #145a52 100%); color: #fff;
  box-shadow: 0 14px 40px rgba(14, 28, 54, .14);
}
.briefing-wave { display: inline-flex; align-items: center; gap: 4px; height: 34px; flex-shrink: 0; }
.briefing-wave span { width: 4px; height: 30%; border-radius: 2px; background: var(--green); opacity: .9; }
.briefing-wave span:nth-child(2) { height: 70%; } .briefing-wave span:nth-child(3) { height: 100%; }
.briefing-wave span:nth-child(4) { height: 55%; } .briefing-wave span:nth-child(5) { height: 35%; }
.briefing-band.is-playing .briefing-wave span { animation: briefing-wave 1s ease-in-out infinite; }
.briefing-band.is-playing .briefing-wave span:nth-child(2) { animation-delay: -.8s; }
.briefing-band.is-playing .briefing-wave span:nth-child(3) { animation-delay: -.6s; }
.briefing-band.is-playing .briefing-wave span:nth-child(4) { animation-delay: -.4s; }
.briefing-band.is-playing .briefing-wave span:nth-child(5) { animation-delay: -.2s; }
@keyframes briefing-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.briefing-text { flex: 1 1 auto; min-width: 0; }
.briefing-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FE3C4; }
.briefing-title { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.briefing-meta { font-size: .88rem; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.briefing-play {
  display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0;
  border: 0; border-radius: 999px; background: #fff; color: var(--navy);
  padding: .4rem 1.25rem .4rem .4rem; font-weight: 700; font-size: 1rem;
}
.briefing-play:hover { background: var(--mint); }
.briefing-play-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.45rem; }

.briefing-modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; }
/* No backdrop-filter: on some GPU/Chrome combinations it paints the page
   behind it displaced and magnified. A plain dim layer is reliable. */
.briefing-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 32, .72); }
.briefing-sheet {
  position: relative; display: flex; flex-direction: column; width: min(720px, 94vw); max-height: 90vh;
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(8, 16, 32, .35);
}
.briefing-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem .5rem 1.5rem; }
.briefing-count { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.briefing-icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--page); color: var(--navy); font-size: 1.1rem; }
.briefing-icon-btn:hover { background: var(--mint); }
.briefing-scroll { overflow-y: auto; padding: 0 1.5rem 1rem; }
.briefing-media { border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.briefing-media img, .briefing-media .art-panel { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; height: auto; }
.briefing-story-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.03em; margin: .1rem 0 .6rem; }
.briefing-dek { color: var(--slate); font-size: 1.05rem; }
.briefing-body { font-size: 1rem; line-height: 1.7; color: var(--text-body); }
.briefing-body p { margin-bottom: .9rem; }
.briefing-body h2 { font-size: 1.15rem; margin: 1.2rem 0 .6rem; }
.briefing-open { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--green-text); margin: .25rem 0 1.25rem; }
.briefing-upnext h3 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .5rem; }
.briefing-upnext ol { list-style: none; padding: 0; margin: 0; }
.briefing-upnext li button {
  display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: .65rem 0;
  border: 0; border-top: 1px solid var(--rule); background: transparent; text-align: left; color: var(--navy); font-weight: 600;
}
.briefing-upnext li button:hover .briefing-q-title { color: var(--green-text); }
.briefing-q-time { color: var(--slate); font-weight: 500; font-variant-numeric: tabular-nums; }
.briefing-q-empty { color: var(--slate); padding: .6rem 0; border-top: 1px solid var(--rule); }
.briefing-controls { padding: .75rem 1.5rem 1rem; border-top: 1px solid var(--rule); background: var(--page); }
.briefing-controls .listen-time { color: var(--slate); }
.briefing-buttons { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .4rem; }
.briefing-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: .1rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.35rem;
}
.briefing-ctl small { font-size: .6rem; font-weight: 700; }
.briefing-ctl:hover:not(:disabled) { background: var(--mint); }
.briefing-ctl:disabled { opacity: .3; }
.briefing-ctl-play { width: 58px; height: 58px; background: var(--green); color: #fff; font-size: 1.9rem; }
.briefing-ctl-play:hover:not(:disabled) { background: var(--green-hover); }
.briefing-controls .listen-speed { color: var(--navy); border-color: var(--rule); }
body.briefing-modal-open { overflow: hidden; padding-right: var(--briefing-scrollbar, 0px); }
@media (max-width: 575.98px) {
  .briefing-band { flex-wrap: wrap; gap: .75rem 1rem; padding: 1rem; }
  .briefing-wave { display: none; }
  .briefing-play { width: 100%; justify-content: center; }
  .briefing-title, .briefing-meta { white-space: normal; }
  .briefing-modal { align-items: flex-end; }
  .briefing-sheet { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .briefing-buttons { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .briefing-band.is-playing .briefing-wave span { animation: none; } }

.briefing-members { display: inline-flex; align-items: center; gap: .25rem; margin-left: .5rem; padding: .05rem .5rem;
  border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; letter-spacing: .04em; }
.reader-auth-intro { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; padding: .75rem .9rem;
  border-radius: var(--radius-sm); background: var(--mint); color: var(--navy); font-size: .92rem; }
.reader-auth-intro .bi { color: var(--green-text); font-size: 1.15rem; line-height: 1.2; }

/* ==========================================================================
   Sign-in page (/signin.html)
   ========================================================================== */
.signin-wrap { display: flex; justify-content: center; padding: 3rem 16px 4.5rem; }
.signin-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid #E3E8EE; border-radius: 18px;
  padding: 2.25rem 2rem; box-shadow: 0 10px 30px rgba(14, 28, 54, .06); }
.signin-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.75rem; color: var(--navy); margin-bottom: .35rem; }
.signin-sub { color: #5B6678; margin-bottom: 1.5rem; }
.signin-card .form-label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.signin-card .form-control { border-radius: 10px; padding: .7rem .85rem; border-color: #D5DCE4; }
.signin-card .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(21, 138, 102, .15); }
.signin-card .ed-btn { justify-content: center; padding-top: .75rem; padding-bottom: .75rem; }
.signin-code { font-size: 1.35rem; letter-spacing: .3em; text-align: center; }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.75rem; }
.pw-toggle { position: absolute; top: 50%; right: .5rem; transform: translateY(-50%); border: 0; background: transparent;
  color: #6B7686; padding: .25rem .4rem; font-size: 1.05rem; }
.pw-toggle:hover { color: var(--navy); }
.signin-link { color: var(--green-text); font-weight: 600; text-decoration: none; }
.signin-link:hover { text-decoration: underline; color: var(--green-text); }
.signin-divider { display: flex; align-items: center; gap: .75rem; margin: 1.75rem 0 1rem; color: #6B7686; font-size: .9rem; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: #E3E8EE; }
.signin-foot { margin: 1.25rem 0 0; text-align: center; color: #5B6678; font-size: .92rem; }
.signin-note { margin: 1rem 0 0; min-height: 1.2em; font-size: .92rem; color: #B42318; text-align: center; }
.signin-note.is-ok { color: var(--green-text); }
.signin-note:empty { margin: 0; min-height: 0; }
@media (max-width: 575.98px) {
  .signin-wrap { padding: 1.5rem 16px 3rem; }
  .signin-card { padding: 1.75rem 1.25rem; border-radius: 14px; }
}

/* Profile page + "complete your profile" reminder */
.profile-card { max-width: 520px; }
.profile-status { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.profile-status.is-incomplete { background: #FFF4D6; color: #8A5A00; }
.profile-status.is-complete { background: var(--mint); color: var(--green-text); }
.profile-card .form-control[readonly] { background: #F2F4F7; color: #5B6678; }
.profile-nag { background: var(--mint); border-top: 1px solid #CFE6DD; border-bottom: 1px solid #CFE6DD; }
.profile-nag-inner { display: flex; align-items: center; gap: .85rem; padding-top: .7rem; padding-bottom: .7rem; }
.profile-nag-inner > .bi { color: var(--green-text); font-size: 1.35rem; flex-shrink: 0; }
.profile-nag-text { flex: 1; color: var(--navy); font-size: .93rem; }
.profile-nag-btn { flex-shrink: 0; padding: .45rem 1rem; font-size: .88rem; }
.profile-nag-close { border: 0; background: transparent; color: #5B6678; padding: .3rem; flex-shrink: 0; }
.profile-nag-close:hover { color: var(--navy); }
@media (max-width: 575.98px) {
  .profile-nag-inner { flex-wrap: wrap; gap: .5rem .75rem; }
  .profile-nag-inner > .bi { display: none; }
  .profile-nag-text { flex-basis: calc(100% - 2.5rem); font-size: .88rem; }
  .profile-nag-btn { order: 3; }
}
.profile-card { max-width: 620px; }
.profile-section { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin: 1.75rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid #E3E8EE; }
.profile-card form > .profile-section:first-child { margin-top: .5rem; padding-top: 0; border-top: 0; }
.profile-card .req { color: #B42318; }
.profile-card .form-select { border-radius: 10px; padding: .7rem .85rem; border-color: #D5DCE4; }
.profile-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-pill { position: relative; cursor: pointer; margin: 0; }
.profile-pill input { position: absolute; opacity: 0; pointer-events: none; }
.profile-pill span { display: inline-block; padding: .5rem 1rem; border: 1px solid #D5DCE4; border-radius: 999px; color: var(--navy); font-size: .92rem; font-weight: 500; background: #fff; }
.profile-pill:hover span { border-color: var(--green); }
.profile-pill input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.profile-pill input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(21, 138, 102, .25); }
.profile-check { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; color: var(--navy); font-size: .93rem; margin: 0; }
.profile-check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex-shrink: 0; accent-color: var(--green); }
.profile-consented .bi { color: var(--green-text); }

/* Privacy notice page */
.legal-page { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4rem; color: #2E3A4D; }
.legal-page h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--navy); }
.legal-page h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy); margin-top: 2rem; }
.legal-page li { margin-bottom: .35rem; }
.signup-consent { font-size: .88rem; color: #3A4658; }

/* ==========================================================================
   Briefing hero: the audio briefing as the top of the home page.
   Look: "wave" (deep sea, sound turning into water), chosen by the owner
   from three designs; data-variant on #briefingBand keeps room for others.
   ========================================================================== */
.bx-wrap { margin-top: 1.25rem; margin-bottom: 1.75rem; }
.bx.briefing-band {
  --bx-p: 0; --bx-accent: #3EE0A6; --bx-ink: #fff; --bx-sub: rgba(255,255,255,.74); --bx-card: rgba(255,255,255,.08);
  --bx-card-line: rgba(255,255,255,.14);
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem;
  align-items: center; margin: 0; padding: 2.5rem 2.5rem 2.75rem; border-radius: 24px; overflow: hidden;
  color: var(--bx-ink); isolation: isolate; box-shadow: 0 24px 60px rgba(14, 28, 54, .22);
}
.bx-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bx-deco svg { position: absolute; display: none; }
.bx-main, .bx-side { position: relative; min-width: 0; }
.bx-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bx-accent); }
.bx-kicker .briefing-members { margin-left: .35rem; }
.bx-headline { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2rem, 4.2vw, 3.35rem); margin: .7rem 0 .9rem; color: var(--bx-ink); }
.bx-headline span { color: var(--bx-accent); }
.bx-meta { color: var(--bx-sub); font-size: 1.05rem; margin: 0 0 1.6rem; max-width: 34rem; }
.bx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.bx-play { display: inline-flex; align-items: center; gap: .9rem; border: 0; background: transparent; color: var(--bx-ink);
  padding: 0; text-align: left; }
.bx-play-ring { position: relative; display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: conic-gradient(var(--bx-accent) calc(var(--bx-p) * 1turn), rgba(255,255,255,.18) 0); flex-shrink: 0;
  transition: transform .15s ease; }
.bx-play:hover .bx-play-ring { transform: scale(1.05); }
.bx-play-icon.briefing-play-icon { width: 68px; height: 68px; font-size: 2.2rem; background: var(--bx-accent); color: #062018;
  box-shadow: 0 10px 30px rgba(62, 224, 166, .35); }
.bx-play-text { display: flex; flex-direction: column; line-height: 1.25; }
.bx-play-text strong { font-size: 1.2rem; font-weight: 800; }
.bx-play-text small { color: var(--bx-sub); font-size: .9rem; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-read { display: none; align-items: center; gap: .4rem; border: 1px solid var(--bx-card-line); border-radius: 999px;
  background: var(--bx-card); color: var(--bx-ink); padding: .55rem 1rem; font-weight: 600; font-size: .92rem; }
.bx-read:hover { border-color: var(--bx-accent); }
.bx.is-active .bx-read { display: inline-flex; }
.bx-eq.briefing-wave { height: 40px; gap: 5px; margin-left: auto; }
.bx-eq.briefing-wave span { width: 5px; background: var(--bx-accent); }
.bx-eq.briefing-wave span:nth-child(6) { height: 80%; } .bx-eq.briefing-wave span:nth-child(7) { height: 45%; }
.bx.is-playing .bx-eq span:nth-child(6) { animation-delay: -.7s; } .bx.is-playing .bx-eq span:nth-child(7) { animation-delay: -.3s; }

.bx-side { display: flex; flex-direction: column; gap: 1rem; }
.bx-label { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bx-sub); }
.bx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--bx-accent); box-shadow: 0 0 0 0 var(--bx-accent);
  animation: bx-live 1.6s ease-out infinite; }
@keyframes bx-live { 0% { box-shadow: 0 0 0 0 rgba(62,224,166,.6); } 100% { box-shadow: 0 0 0 10px rgba(62,224,166,0); } }
.bx-now { border-radius: 16px; background: var(--bx-card); border: 1px solid var(--bx-card-line); overflow: hidden; }
.bx-now-card { display: flex; gap: 1rem; align-items: center; width: 100%; padding: 1rem; border: 0; background: transparent;
  color: var(--bx-ink); text-align: left; }
.bx-thumb { width: 112px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.1); }
.bx-thumb img, .bx-thumb .art-panel { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-now-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.bx-now-title { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-now-card:hover .bx-now-title { text-decoration: underline; text-underline-offset: 3px; }
.bx-now-meta { color: var(--bx-sub); font-size: .85rem; }
.bx-progress { height: 4px; background: rgba(255,255,255,.12); }
.bx-progress span { display: block; height: 100%; background: var(--bx-accent); transition: width .3s linear; }
.bx-next .bx-label { margin-bottom: .35rem; }
.bx-next-list { list-style: none; margin: 0; padding: 0; }
.bx-next-list li button { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; width: 100%;
  padding: .6rem .25rem; border: 0; border-top: 1px solid var(--bx-card-line); background: transparent; color: var(--bx-ink);
  text-align: left; font-weight: 600; font-size: .95rem; }
.bx-next-list li:first-child button { border-top: 0; }
.bx-next-list li button:hover .bx-next-title { color: var(--bx-accent); }
.bx-n { font-variant-numeric: tabular-nums; font-size: .78rem; font-weight: 800; color: var(--bx-accent); }
.bx-next-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-next-time { color: var(--bx-sub); font-weight: 500; font-size: .85rem; font-variant-numeric: tabular-nums; }
.bx-next-more, .bx-next-empty { color: var(--bx-sub); font-size: .88rem; padding: .55rem .25rem; border-top: 1px solid var(--bx-card-line); }
.bx-next-empty { border-top: 0; }

/* A · Wave — deep sea, sound turning into water */
[data-variant="wave"] .bx { background: radial-gradient(120% 140% at 0% 0%, #17406b 0%, #0E1C36 55%), #0E1C36; }
[data-variant="wave"] .bx-deco-waves { display: block; left: -4%; bottom: -2px; width: 108%; height: 38%; max-height: 150px; }
[data-variant="wave"] .bx-deco-waves path { animation: bx-swell 9s ease-in-out infinite alternate; transform-origin: center bottom; }
[data-variant="wave"] .bx-deco-waves .w1 { fill: rgba(21, 138, 102, .22); }
[data-variant="wave"] .bx-deco-waves .w2 { fill: rgba(62, 224, 166, .14); animation-duration: 7s; animation-direction: alternate-reverse; }
[data-variant="wave"] .bx-deco-waves .w3 { fill: rgba(8, 18, 36, .55); animation-duration: 11s; }
@keyframes bx-swell { from { transform: translateX(-2%) scaleY(1); } to { transform: translateX(2%) scaleY(1.12); } }

@media (max-width: 991.98px) {
  .bx.briefing-band { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem 2.25rem; }
}
@media (max-width: 575.98px) {
  .bx-wrap { padding-left: 12px; padding-right: 12px; margin-top: .75rem; margin-bottom: 1.25rem; }
  [data-variant="wave"] .bx-deco-waves { height: 90px; }
  .bx.briefing-band { padding: 1.6rem 1.15rem 1.9rem; border-radius: 18px; }
  .bx-meta { font-size: .97rem; margin-bottom: 1.25rem; }
  .bx-eq.briefing-wave { display: none; }
  .bx-thumb { width: 88px; height: 64px; }
  .bx-play-ring { width: 66px; height: 66px; } .bx-play-icon.briefing-play-icon { width: 58px; height: 58px; font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-deco svg path, .bx-live { animation: none !important; }
}

/* Read-along pop-up: the next story stays visible at the top */
.briefing-sheet-head { gap: .75rem; }
.briefing-count { flex-shrink: 0; }
.briefing-head-next { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; flex: 0 1 auto; margin-left: auto;
  padding: .45rem .5rem .45rem .85rem; border: 1px solid #CFE6DD; border-radius: 999px; background: var(--mint);
  color: var(--navy); font-size: .9rem; text-align: left; }
.briefing-head-next:hover:not(:disabled) { border-color: var(--green); }
.briefing-head-next-label { flex-shrink: 0; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.briefing-head-next-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; max-width: 26rem; }
.briefing-head-next .bi { flex-shrink: 0; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .95rem; }
.briefing-head-next.is-last { background: var(--page); border-color: var(--rule); color: var(--slate); }
.briefing-head-next.is-last .bi, .briefing-head-next.is-last .briefing-head-next-label { display: none; }
@media (max-width: 575.98px) {
  .briefing-sheet-head { padding-left: 1rem; }
  .briefing-count { display: none; }
  .briefing-head-next { margin-left: 0; flex: 1 1 auto; }
}

/* Phone: country code list + number */
.phone-field { display: flex; gap: .5rem; }
.phone-field .form-select { flex: 0 0 13.5rem; width: 13.5rem; min-width: 0; text-overflow: ellipsis; }
.phone-field .form-control { flex: 1 1 auto; min-width: 0; }
@media (max-width: 575.98px) { .phone-field .form-select { flex-basis: 9.5rem; width: 9.5rem; } }
.propulsion-sad { font-style: normal; margin-left: .15rem; }

/* Briefing: everything heard */
.bx-done { display: none; align-items: center; gap: .85rem; margin: 0 0 .9rem; padding: .75rem 1.1rem .75rem .85rem;
  border-radius: 14px; background: rgba(62, 224, 166, .14); border: 1px solid rgba(62, 224, 166, .45); max-width: 30rem; }
.bx.is-done .bx-done { display: flex; animation: bx-pop .45s ease-out; }
.bx-done > .bi { font-size: 2rem; color: var(--bx-accent); line-height: 1; }
.bx-done strong { display: block; font-size: 1.1rem; font-weight: 800; color: #fff; }
.bx-done span { display: block; color: var(--bx-sub); font-size: .9rem; }
.bx.is-done .bx-headline { opacity: .55; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.bx-heard-icon { color: var(--bx-accent); font-size: .9rem; }
.bx-next-list li.is-heard .bx-n { color: var(--bx-accent); font-size: 1rem; }
.bx-next-list li.is-heard .bx-next-title { color: var(--bx-sub); }
.bx.is-done .bx-thumb { position: relative; }
.bx.is-done .bx-thumb::after { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 28, 54, .55); color: var(--bx-accent); font-size: 1.8rem; }
@keyframes bx-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bx.is-done .bx-done { animation: none; } }
