/* ── Reset & Base ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

a {
  color: #00008b;
  text-decoration: none;
}
a:hover { text-decoration: underline; color: #c00; }
a:visited { color: #551a8b; }

/* ── Header ────────────────────────────────────────────────── */
#header {
  padding: 8px 12px 0;
  background: linear-gradient(135deg, #1b3a5c 0%, #0077b6 65%, #1a7a8a 100%);
  border-bottom: 3px solid #005f8e;
  position: relative;
}

#header h1 {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* Clickable logo link — wraps SVG + site name */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
.site-logo-link:hover  { text-decoration: none; opacity: 0.85; color: #fff; }
.site-logo-link:visited { color: #fff; }

.site-logo {
  flex-shrink: 0;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.title-name {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.title-flag {
  font-size: 20px;
  line-height: 1;
  font-style: normal;
}

.tagline {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,0.80);
  margin-top: 1px;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.tagline-canada {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.52);
  font-style: italic;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.top-nav {
  font-size: 11px;
  color: rgba(255,255,255,0.70);
  line-height: 2;
}
.top-nav a {
  color: rgba(255,255,255,0.92);
  font-size: 11px;
}
.top-nav a:hover { color: #fff; }

/* ── Main Layout ───────────────────────────────────────────── */
#main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
}

/* ── Sections ──────────────────────────────────────────────── */
section {
  border-top: 1px solid #ccc;
  padding: 10px 0 14px;
  margin-bottom: 4px;
}

section:nth-child(even) {
  background: #f6f2ea;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-top-color: #e0d5c0;
}

section h2 {
  font-size: 15px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 6px;
  padding-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #0077b6;
  border-bottom: 1px solid #cce0ef;
  background: linear-gradient(90deg, #f0f7fb 0%, transparent 55%);
}

.section-note {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-bottom: 6px;
}

/* ── Columns ───────────────────────────────────────────────── */
.columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 280px;
}

/* ── Sub-headings ──────────────────────────────────────────── */
.col h3 {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 2px;
}
.col h3:first-child { margin-top: 0; }

/* ── Lists ─────────────────────────────────────────────────── */
ul {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

ul li {
  padding: 1px 0;
  font-size: 12.5px;
  line-height: 1.6;
}

ul li::before {
  content: "›  ";
  color: #888;
  font-size: 11px;
}

ul li em {
  font-style: italic;
  color: #333;
}

/* ── Ads & Sponsors ────────────────────────────────────────── */

/* Leaderboard banner below nav */
.ad-leaderboard {
  background: #1b3a5c;
  border-bottom: 2px solid #0077b6;
  border-top: none;
  text-align: center;
  padding: 0;
  line-height: 0;
}

/* Inline mid-page ad */
.ad-inline {
  text-align: center;
  margin: 12px 0;
  line-height: 0;
}

/* Footer ad strip */
.ad-footer-strip {
  background: #1b3a5c;
  border-top: 2px solid #0077b6;
  text-align: center;
  padding: 0;
  line-height: 0;
}

/* Placeholder shown until real ads are activated */
.ad-placeholder {
  display: block;
  line-height: 0;
}

/* ── SailboatsUSA self-promo banner ─────────────────────────── */
/* ── Rotating photo banner ──────────────────────────────────── */
.sbusa-rotator {
  position: relative;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  overflow: hidden;
  background: #0d1f38;
  display: block;
  cursor: pointer;
}

/* Individual photo slides */
.sbusa-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}
.sbusa-slide.active { opacity: 1; }

/* Per-photo focus points — centre the most dramatic part of each image */
.sbusa-slide:nth-child(1) { background-position: center 35%; }  /* stormy waves — show crest */
.sbusa-slide:nth-child(2) { background-position: center 55%; }  /* sunset — show horizon */
.sbusa-slide:nth-child(3) { background-position: center 40%; }  /* blue swell */
.sbusa-slide:nth-child(4) { background-position: center 50%; }  /* purple sunset */

/* Overlay removed — banners are pure photos */

/* Navigation dots */
.sbusa-dots {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  pointer-events: all;
}
.sbusa-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.40);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none; padding: 0;
}
.sbusa-dot.active {
  background: rgba(255,255,255,0.92);
  transform: scale(1.3);
}
.sbusa-dot:hover { background: rgba(255,255,255,0.70); }

@media (max-width: 760px) {
  .sbusa-rotator { height: 70px; }
  .sbusa-rotator-brand { font-size: 13px; }
  .sbusa-rotator-url  { font-size: 10.5px; }
}

/* Sponsor cards — between sections */
.sponsor-card {
  border: 1px solid #d4b483;
  background: #fffdf5;
  padding: 8px 12px;
  margin: 6px 0;
  position: relative;
}

.sponsor-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  background: #fff;
  border: 1px solid #d4b483;
  padding: 1px 5px;
  position: absolute;
  top: -8px;
  left: 10px;
}

.sponsor-content {
  padding-top: 4px;
}

.sponsor-placeholder {
  font-size: 12px;
  color: #888;
  margin: 0;
  font-style: italic;
}

.sponsor-placeholder a {
  color: #800;
  font-style: normal;
}

/* ── Footer ────────────────────────────────────────────────── */
#footer {
  background: #1b3a5c;
  border-top: 3px solid #0077b6;
  padding: 10px 12px 12px;
  margin-top: 20px;
  text-align: center;
  color: #a8c4dc;
  font-size: 11px;
}

#footer strong { color: #d0e8f8; }

.footer-note {
  color: #6a90b0;
  margin-top: 4px;
}

.footer-links {
  margin-top: 8px;
  font-size: 11px;
}

.footer-links a {
  color: #7ecbe8;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-small {
  color: #4a6a88;
  margin-top: 4px;
}
.footer-small a { color: #5a8aaa; }

/* ── Back to Top Button ────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 22px;
  right: 14px;
  z-index: 9998;
  background: #8b0000;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 6px 11px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.2px;
}
#back-to-top.visible {
  opacity: 0.88;
  visibility: visible;
}
#back-to-top:hover {
  opacity: 1;
  background: #0077b6;
  text-decoration: none;
  color: #fff;
}

/* ── Rope-style horizontal rule ────────────────────────────── */
hr {
  border: none;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    #b8914a 0px, #b8914a 6px,
    #d4b070 6px, #d4b070 10px,
    #8b6914 10px, #8b6914 14px,
    #d4b070 14px, #d4b070 18px
  );
  border-radius: 4px;
  opacity: 0.45;
  margin: 12px 0;
}

/* ── Search Box ────────────────────────────────────────────── */
#header { position: relative; }

#search-wrap {
  position: absolute;
  top: 8px;
  right: 120px;
  z-index: 100;
  width: 260px;
}

#search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  padding: 3px 6px;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

#search-box:focus-within {
  border-color: #7ecbe8;
  box-shadow: 0 0 0 2px rgba(126,203,232,0.35);
}

#search-icon {
  color: #888;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

#search-input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #333;
  width: 100%;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

#search-input::placeholder { color: #aaa; }

#search-clear {
  color: #bbb;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  line-height: 1;
}
#search-clear:hover { color: #800; }

#search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 999;
}

.sr-item {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  cursor: pointer;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active {
  background: #f5f0f0;
  text-decoration: none;
}

.sr-title {
  display: block;
  font-size: 12.5px;
  font-weight: bold;
  color: #00008b;
  line-height: 1.4;
}
.sr-item:hover .sr-title, .sr-item.active .sr-title { color: #800; }

.sr-desc {
  display: block;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
  margin-top: 1px;
}

.sr-item mark {
  background: #fff3a8;
  color: #333;
  font-style: normal;
  padding: 0 1px;
  border-radius: 1px;
}

.sr-none {
  padding: 10px;
  font-size: 12px;
  color: #999;
  font-style: italic;
  text-align: center;
}

@media (max-width: 680px) {
  #search-wrap {
    position: static;
    width: 100%;
    margin-top: 6px;
  }
}

/* ── Nav Grid (compact 4-column) ───────────────────────────── */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border-radius: 4px 4px 0 0;
  margin-top: 8px;
  padding: 6px 8px 4px;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.15) inset;
}

.nav-col {
  flex: 1;
  min-width: 140px;
  padding: 0 10px 4px 0;
  border-right: 1px solid #ebebeb;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
}
.nav-col:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.nav-col h4 {
  font-size: 9.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  margin: 0 0 4px;
  padding: 2px 5px;
  border-radius: 2px;
  border-bottom: none;
}

/* Each column gets its own nautical color */
.nav-col:nth-child(1) h4 { background: #1b3a5c; }   /* Navy   */
.nav-col:nth-child(2) h4 { background: #0077b6; }   /* Ocean  */
.nav-col:nth-child(3) h4 { background: #1a7a8a; }   /* Teal   */
.nav-col:nth-child(4) h4 { background: #2e6b4a; }   /* Marine */

/* Links are direct children — no <ul> needed */
.nav-col > a {
  font-size: 10.5px;
  color: #00008b;
  text-decoration: none;
  line-height: 1.55;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-col > a:hover { text-decoration: underline; color: #c00; }
.nav-col > a:visited { color: #551a8b; }
.nav-col > a strong { font-weight: bold; }

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin: 3px 0 4px;
  align-items: center;
}
.lang-btn {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.12s, color 0.12s;
  line-height: 1.6;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.lang-btn.active {
  background: rgba(255,255,255,0.28);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

/* ── Region Detection Banner ───────────────────────────────── */
#region-bar {
  display: none;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 5px 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.88);
  position: relative;
  line-height: 1.5;
}
#region-bar a {
  color: #7ecbe8;
  font-weight: bold;
  text-decoration: none;
}
#region-bar a:hover { color: #fff; text-decoration: underline; }
.region-change {
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 10.5px;
  text-decoration: underline;
}
.region-change:hover { color: rgba(255,255,255,0.85); }
.region-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  padding: 2px 4px;
}
.region-dismiss:hover { color: rgba(255,255,255,0.85); }

/* ── Sailing News Widget ───────────────────────────────────── */
.news-section {
  border-top: 1px solid #ccc;
  padding: 10px 0 14px;
}
.news-section h2 {
  font-size: 15px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 8px;
  padding-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #0077b6;
  border-bottom: 1px solid #cce0ef;
  background: linear-gradient(90deg, #f0f7fb 0%, transparent 55%);
}

/* Tab bar */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.news-tab {
  background: #eef4f8;
  border: 1px solid #c0d4e0;
  color: #1b3a5c;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 12px;
  cursor: pointer;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.news-tab:hover { background: #d8eaf4; }
.news-tab.active {
  background: #0077b6;
  color: #fff;
  border-color: #005f8e;
}

/* Individual news item — compact single-line layout */
.news-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid #f0f4f8;
  flex-wrap: wrap;
}
.news-item:last-child { border-bottom: none; }

.news-badge {
  font-size: 8.5px;
  font-weight: bold;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.news-date {
  font-size: 10.5px;
  color: #aaa;
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news-title {
  font-size: 12.5px;
  color: #00008b;
  text-decoration: none;
  line-height: 1.5;
  flex: 1;
  min-width: 120px;
}
.news-title:hover { color: #c00; text-decoration: underline; }
.news-title:visited { color: #551a8b; }

/* Status / meta line */
#news-status {
  font-size: 10.5px;
  color: #999;
  margin-top: 6px;
  line-height: 1.8;
}
#news-status a { color: #0077b6; }

/* Loading / error states */
.news-loading { font-size: 12px; color: #0077b6; font-style: italic; }
.news-empty   { font-size: 12px; color: #888; font-style: italic; }
.news-error   { font-size: 12px; color: #a00; }
.news-error-links { font-size: 12px; color: #555; margin-top: 4px; }

/* Inline refresh/link buttons in status bar */
.news-link-btn {
  background: none;
  border: none;
  color: #0077b6;
  font-size: 10.5px;
  cursor: pointer;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: underline;
}
.news-link-btn:hover { color: #c00; }

/* ── Patreon Support Block ─────────────────────────────────── */
.patreon-block {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
  border: 1px solid #f0c090;
  border-left: 5px solid #f96854;
  padding: 12px 16px;
  margin: 12px 0;
}
.patreon-block h3 {
  font-size: 14px;
  font-weight: bold;
  color: #c0391b;
  margin-bottom: 5px;
}
.patreon-block p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 8px;
}
.patreon-btn {
  display: inline-block;
  background: #f96854;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: bold;
  padding: 7px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}
.patreon-btn:hover { background: #e0533f !important; color: #fff !important; text-decoration: none !important; }

/* Patreon inline footer link */
a.patreon-footer-link {
  color: #f96854 !important;
  font-weight: bold;
}
a.patreon-footer-link:hover { color: #e0533f !important; }

/* ── Comic Strip Interaction Widget ───────────────────────── */
.comic-wrap { margin: 0 auto 4px; max-width: 825px; }
.comic-disclaimer {
  background: #fffbf0; border: 1px solid #e8d890; border-left: 4px solid #c8a800;
  border-radius: 0 0 0 0; padding: 6px 12px; font-size: 11.5px; color: #666;
  line-height: 1.6; margin: 0; text-align: center;
}
.comic-disclaimer strong { color: #7a5800; }
.comic-interact {
  background: #f9f9f9; border: 1px solid #e0e0e0; border-top: none;
  border-radius: 0 0 4px 4px; padding: 10px 14px; margin-bottom: 16px;
  max-width: 825px; margin-left: auto; margin-right: auto;
}
.comic-vote-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.vote-label { font-size: 11.5px; color: #888; font-style: italic; margin-right: 2px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px; border: 2px solid #ddd;
  background: #fff; cursor: pointer; font-size: 13px;
  font-family: Arial, Helvetica, sans-serif; font-weight: bold;
  transition: all 0.15s; color: #555;
}
.vote-btn:hover { border-color: #aaa; background: #f5f5f5; }
.vote-btn[data-dir="up"].voted   { border-color: #2e6b4a; background: #edfff3; color: #2e6b4a; }
.vote-btn[data-dir="down"].voted { border-color: #c00;    background: #fff0f0; color: #c00; }
.vote-btn .vote-emoji { font-size: 16px; line-height: 1; }
.vote-count { font-size: 13px; font-weight: bold; min-width: 18px; text-align: center; }
.comic-comments-section { border-top: 1px solid #eee; padding-top: 8px; margin-top: 4px; }
.comic-comments-heading {
  font-size: 11.5px; font-weight: bold; color: #555;
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px;
}
.comic-comment {
  display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0f0f0;
}
.comic-comment:last-child { border-bottom: none; }
.comic-commenter-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid #ddd; display: block; flex-shrink: 0;
}
.comic-commenter-initials {
  width: 28px; height: 28px; border-radius: 50%; background: #1b3a5c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: bold; flex-shrink: 0;
}
.comic-comment-body { flex: 1; min-width: 0; }
.comic-comment-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px;
}
.comic-comment-name  { font-size: 12px; font-weight: bold; color: #1b3a5c; }
.comic-comment-time  { font-size: 10.5px; color: #bbb; }
.comic-comment-text  { font-size: 12px; color: #333; line-height: 1.6; word-break: break-word; }
.comic-no-comments   { font-size: 12px; color: #aaa; font-style: italic; margin: 4px 0; }
.comic-delete-btn {
  background: none; border: none; cursor: pointer;
  color: #ddd; font-size: 11px; padding: 0 4px; margin-left: auto;
}
.comic-delete-btn:hover { color: #c00; }
.comic-comment-form  { margin-top: 8px; }
.comic-comment-form textarea {
  width: 100%; box-sizing: border-box; font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 7px 9px; border: 1px solid #ccc; border-radius: 3px;
  resize: vertical; min-height: 60px; line-height: 1.5; color: #333;
}
.comic-comment-form textarea:focus {
  outline: none; border-color: #0077b6; box-shadow: 0 0 0 2px rgba(0,119,182,0.12);
}
.comic-comment-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 5px; flex-wrap: wrap; gap: 6px;
}
.comic-char-count { font-size: 10.5px; color: #aaa; }
.comic-char-count.over { color: #c00; font-weight: bold; }
.comment-submit-btn {
  background: #0077b6; color: #fff; border: none; padding: 5px 14px;
  font-size: 12px; font-weight: bold; border-radius: 3px; cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.comment-submit-btn:hover { background: #005f8e; }
.comment-submit-btn:disabled { background: #aaa; cursor: not-allowed; }
.comic-login-prompt {
  font-size: 11.5px; color: #888; font-style: italic; padding: 6px 0; margin-top: 6px;
}
.comic-login-prompt a { color: #0077b6; font-style: normal; font-weight: bold; }

/* ── Featured Book Card ────────────────────────────────────── */
.featured-book {
  border: 1px solid #b8d4e8;
  border-left: 5px solid #0077b6;
  background: linear-gradient(135deg, #f0f7fb 0%, #f7fbff 100%);
  padding: 12px 14px 12px 14px;
  margin: 10px 0 6px;
  position: relative;
}
.featured-book-badge {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  font-size: 8.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.featured-book-title {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #1b3a5c;
  line-height: 1.3;
  margin-bottom: 3px;
  font-family: Georgia, 'Times New Roman', serif;
}
.featured-book-author {
  font-size: 12px;
  color: #444;
  margin-bottom: 7px;
}
.featured-book-author a { color: #0077b6; }
.featured-book-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}
.featured-book-buy {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  font-size: 11.5px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 3px;
  text-decoration: none;
  margin-right: 8px;
}
.featured-book-buy:hover { background: #005f8e; color: #fff; text-decoration: none; }
.featured-book-channel {
  font-size: 11px;
  color: #888;
  font-style: italic;
  vertical-align: middle;
}
.featured-book-channel a { color: #0077b6; font-style: normal; }

/* ── Jokes Section ─────────────────────────────────────────── */
.jokes-section {
  border-top: 1px solid #ccc;
  padding: 10px 0 14px;
}
.jokes-section h2 {
  font-size: 15px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 8px;
  padding-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #0077b6;
  border-bottom: 1px solid #cce0ef;
  background: linear-gradient(90deg, #f0f7fb 0%, transparent 55%);
}
.joke-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.joke-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: #fffdf5;
  border: 1px solid #e8d890;
  border-left: 3px solid #c8a800;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.55;
}
.joke-card .punchline {
  font-style: italic;
  color: #800;
  margin-top: 3px;
}

/* ── Visitor Poll ──────────────────────────────────────────── */
.poll-section {
  border-top: 1px solid #ccc;
  padding: 10px 0 14px;
}
.poll-section h2 {
  font-size: 15px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 4px;
  padding-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #0077b6;
  border-bottom: 1px solid #cce0ef;
  background: linear-gradient(90deg, #f0f7fb 0%, transparent 55%);
}
.poll-section p.poll-intro {
  font-size: 11.5px;
  color: #555;
  margin-bottom: 10px;
  font-style: italic;
}
#poll-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.poll-q {
  flex: 1;
  min-width: 180px;
}
.poll-q label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  margin-bottom: 3px;
}
.poll-q select {
  width: 100%;
  font-size: 12px;
  padding: 3px 5px;
  border: 1px solid #bbb;
  background: #fff;
  color: #333;
}
#poll-submit {
  align-self: flex-end;
  background: #800;
  color: #fff;
  border: none;
  padding: 5px 18px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.3px;
}
#poll-submit:hover { background: #a00; }
#poll-results { margin-top: 10px; }
#poll-results h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #800;
  margin-bottom: 8px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 2px;
}
.result-group { margin-bottom: 10px; }
.result-group h4 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  margin-bottom: 4px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 11px;
}
.result-label { min-width: 140px; color: #333; }
.result-bar-wrap {
  flex: 1;
  background: #eee;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.result-bar {
  height: 100%;
  background: #800;
  border-radius: 2px;
  transition: width 0.4s;
}
.result-pct { min-width: 36px; color: #666; text-align: right; }
.result-count { color: #aaa; font-size: 10px; min-width: 40px; }
#poll-thanks {
  font-size: 12px;
  color: #2a7a2a;
  margin-bottom: 8px;
  font-style: italic;
}
.poll-reset {
  font-size: 10px;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  margin-top: 4px;
}

/* Results header with collapse toggle */
.poll-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #e0e0e0;
}
.poll-results-header span { font-size: 11.5px; color: #666; font-style: italic; }
.poll-toggle-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #800;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.poll-toggle-btn:hover { background: #f5f0f0; border-color: #800; }

/* ── State Hub Page ────────────────────────────────────────── */
.state-region {
  border-top: 1px solid #ccc;
  padding: 10px 0 14px;
}
.state-region h2 {
  font-size: 14px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 8px;
  padding-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #1a7a8a;
  border-bottom: 1px solid #cce0ef;
  background: linear-gradient(90deg, #f0f7fb 0%, transparent 55%);
}
.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.state-card {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 7px 9px;
}
.state-card h4 {
  font-size: 12.5px;
  font-weight: bold;
  color: #800;
  margin: 0 0 4px;
  border-bottom: 1px dotted #ddd;
  padding-bottom: 2px;
}
.state-card ul { margin: 0; padding: 0; }
.state-card ul li {
  font-size: 11px;
  line-height: 1.6;
  padding: 0;
}
.state-card ul li::before { content: "› "; color: #aaa; font-size: 10px; }
.state-card ul li a { font-size: 11px; }
.state-nav-bar {
  font-size: 11px;
  color: #666;
  margin-bottom: 10px;
  line-height: 2.2;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}
.state-nav-bar a { color: #00008b; font-size: 11px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .columns { flex-direction: column; }
  .nav-grid { flex-wrap: wrap; }
  .nav-col {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 6px;
    padding-bottom: 4px;
  }
  #header h1 { font-size: 20px; }
  .joke-card { min-width: 90%; }
  .state-card { min-width: 90%; }
  #poll-form { flex-direction: column; }
}
@media (max-width: 420px) {
  .nav-col { flex: 0 0 100%; min-width: 100%; }
  #search-wrap { position: static; width: 100%; margin-top: 6px; }
}
