/* === A Daily Moment — Bilingual Archive Platform === */

:root {
  /* Palette (from approved template) */
  --cream: #F8F3EA;
  --cream-warm: #F3EBDA;
  --cream-dark: #EFE7D8;
  --cream-border: #DDD0BB;
  --cream-deep: #E5D9BF;
  --ink: #2C2416;
  --ink-light: #5C4F3A;
  --ink-muted: #9A8C78;
  --ink-faint: #B7AC97;
  --gold: #B5893A;
  --gold-light: #D4A94E;
  --gold-soft: rgba(181, 137, 58, 0.14);
  --gold-line: rgba(181, 137, 58, 0.32);
  --sky: #4A7FA5;
  --scripture-dark: #2C2416;
  --scripture-dark-2: #3D3022;
  --shadow-1: 0 2px 8px rgba(44, 36, 22, 0.06);
  --shadow-2: 0 8px 28px rgba(44, 36, 22, 0.10);
  --shadow-3: 0 18px 52px rgba(44, 36, 22, 0.18);
  --r-card: 14px;
  --r-pill: 999px;

  --font-serif-tc: "Noto Serif TC", "Source Han Serif", "STSong", serif;
  --font-sans-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif-en: "Cormorant Garamond", "Lora", Georgia, serif;
  --font-sans-en: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans-tc);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.lang-eng {
  font-family: var(--font-sans-en);
}

/* Subtle paper grain over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}
#root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ─────────────── Top bar ─────────────── */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 243, 234, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cream-border);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(212, 169, 78, 0.35), 0 2px 6px rgba(44, 36, 22, 0.18);
  transition: transform 0.2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg { display: block; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand-cht { font-family: var(--font-serif-tc); font-size: 16px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); }
.brand-eng { font-family: var(--font-serif-en); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.18em; text-transform: uppercase; }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  max-width: 560px; width: 100%;
  justify-self: center;
}
.searchbar:focus-within {
  border-color: var(--gold-line);
  background: #FBF7EE;
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.searchbar input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font: inherit; color: var(--ink);
  font-size: 14px;
}
.searchbar input::placeholder { color: var(--ink-muted); }
.search-clear {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-muted); transition: color 0.15s, background 0.15s;
}
.search-clear:hover { background: var(--cream-deep); color: var(--ink); }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-1);
}
.lang-toggle button:not(.active):hover { color: var(--ink); }

.nav-btn {
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-btn:hover { background: var(--cream-deep); color: var(--ink); }
.nav-btn.primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-1);
}
.nav-btn.primary:hover { background: #1d1709; color: var(--cream); }

/* ─────────────── Page shell ─────────────── */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

/* ─────────────── Archive: Hero header ─────────────── */

.archive-hero {
  text-align: center;
  padding: 36px 0 28px;
  position: relative;
}
.archive-hero .ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.archive-hero .ribbon::before,
.archive-hero .ribbon::after {
  content: ""; height: 1px; width: 28px; background: var(--gold-line);
}
.archive-hero h1 {
  font-family: var(--font-serif-tc);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  line-height: 1.15;
}
body.lang-eng .archive-hero h1 {
  font-family: var(--font-serif-en);
  letter-spacing: 0.02em;
  font-style: italic;
  font-weight: 500;
}
.archive-hero .alt-title {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
body.lang-eng .archive-hero .alt-title {
  font-family: var(--font-serif-tc);
  font-style: normal;
  letter-spacing: 0.12em;
}
.archive-hero p.tagline {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 18px;
  letter-spacing: 0.04em;
}
.divider-cross {
  margin: 22px auto 0;
  width: 80px; display: flex; align-items: center; gap: 10px;
  color: var(--gold);
  opacity: 0.85;
}
.divider-cross .line { flex: 1; height: 1px; background: var(--gold-line); }

/* ─────────────── Featured Today block ─────────────── */

.featured {
  margin-top: 32px;
  background: linear-gradient(180deg, #FAF5EB 0%, #F2E9D3 100%);
  border: 1px solid var(--cream-border);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: stretch;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute; right: -120px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 169, 78, 0.2), transparent 70%);
  pointer-events: none;
}
.featured-image {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-2);
  aspect-ratio: 9 / 16;
  position: relative;
}
.featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.featured-body {
  display: flex; flex-direction: column;
  padding: 8px 8px 8px 0;
  position: relative; z-index: 1;
}
.featured-eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase; font-weight: 600;
}
.featured-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 169, 78, 0.25);
}
.featured-date {
  font-family: var(--font-serif-tc);
  font-size: 32px; line-height: 1.2;
  color: var(--ink);
  margin-top: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
body.lang-eng .featured-date {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 500;
}
.featured-scripture {
  margin-top: 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--scripture-dark) 0%, var(--scripture-dark-2) 100%);
  border-radius: 14px;
  color: #F0E6D0;
  font-family: var(--font-serif-tc);
  font-size: 19px;
  line-height: 1.65;
  position: relative;
}
body.lang-eng .featured-scripture { font-family: var(--font-serif-en); font-style: italic; }
.featured-scripture .verse {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
.featured-scripture .ref {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  font-style: normal;
  font-family: var(--font-sans-tc);
}
body.lang-eng .featured-scripture .ref { font-family: var(--font-sans-en); }
.featured-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 22px;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-light);
}
.meta-chip .ico { color: var(--gold); display: inline-flex; }
.featured-cta {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  align-self: flex-start;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-1);
}
.featured-cta:hover { background: #1d1709; transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* ─────────────── Filters ─────────────── */

.filters-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  margin: 48px 0 16px;
  flex-wrap: wrap;
}
.filters-left {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-serif-tc);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
}
body.lang-eng .section-title {
  font-family: var(--font-serif-en);
  font-style: italic;
  letter-spacing: 0.02em;
}
.section-count {
  font-size: 13px; color: var(--ink-muted); letter-spacing: 0.04em;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  color: var(--ink-light);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.chip:hover { background: var(--cream-deep); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.chip .count {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 2px;
}
.chip:not(.active) .count {
  background: var(--cream-deep);
  color: var(--ink-muted);
}
.filter-group-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 6px;
  font-weight: 600;
}
.filter-line {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
.clear-filters {
  font-size: 12px;
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}
.clear-filters:hover { color: var(--ink); }

/* ─────────────── Archive grid ─────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .grid { grid-template-columns: 1fr; } }

.card {
  background: #FCF8EF;
  border: 1px solid var(--cream-border);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold-line);
}
.card-thumb {
  aspect-ratio: 9 / 16;
  width: 100%;
  position: relative;
  background: var(--cream-warm);
  overflow: hidden;
  border-bottom: 1px solid var(--cream-border);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.card-date {
  font-family: var(--font-serif-tc);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.05em;
}
body.lang-eng .card-date {
  font-family: var(--font-serif-en);
  font-style: italic;
}
.card-ref {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.card-mood {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ─────────────── Mini Infographic (renderable thumbnail) ─────────────── */

.mini-info {
  width: 100%; height: 100%;
  background: #F5EDD9;
  position: relative;
  padding: 14px 12px 12px;
  display: flex; flex-direction: column;
  font-family: var(--font-serif-tc);
  color: var(--ink);
  overflow: hidden;
}
.mini-info.lang-eng { font-family: var(--font-serif-en); }
.mini-info::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.mini-info > * { position: relative; z-index: 1; }
.mini-header { text-align: center; margin-bottom: 8px; }
.mini-title {
  font-size: 16px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.mini-info.lang-eng .mini-title {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-style: italic;
}
.mini-date {
  font-size: 9px;
  color: var(--ink-light);
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.mini-cross {
  margin: 4px auto 6px;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.mini-weather {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 8.5px;
  color: var(--ink-light);
  margin-bottom: 6px;
  border: 1px solid rgba(221, 208, 187, 0.6);
  text-align: center;
  line-height: 1.4;
}
.mini-weather .badge {
  display: inline-block;
  background: var(--sky);
  color: white;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 8px;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.mini-history {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 6px;
}
.mini-h {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 5px 4px;
  text-align: center;
  font-size: 7px;
  color: var(--ink-light);
  border: 1px solid rgba(221, 208, 187, 0.6);
  line-height: 1.35;
}
.mini-h .icon { font-size: 11px; }
.mini-h .year { color: var(--gold); font-weight: 600; font-size: 7.5px; }
.mini-scripture-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--scripture-dark) 0%, var(--scripture-dark-2) 100%);
  border-radius: 8px;
  color: #F0E6D0;
  padding: 10px 8px 8px;
  text-align: center;
  display: flex; flex-direction: column;
  justify-content: center;
  margin-bottom: 6px;
  border: 1px solid #1a1408;
  min-height: 0;
}
.mini-scripture-panel .label {
  font-size: 8px;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}
.mini-scripture-panel .verse {
  font-size: 11px;
  line-height: 1.5;
  color: #F0E6D0;
  font-weight: 500;
  padding: 0 2px;
}
.mini-info.lang-eng .mini-scripture-panel .verse {
  font-style: italic;
  font-size: 10.5px;
}
.mini-scripture-panel .ref {
  font-size: 8.5px;
  color: var(--gold-light);
  margin-top: 5px;
  letter-spacing: 0.06em;
  font-family: var(--font-sans-tc);
}
.mini-info.lang-eng .mini-scripture-panel .ref { font-family: var(--font-sans-en); font-style: normal; }
.mini-reflection {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 8.5px;
  text-align: center;
  color: var(--ink-light);
  border: 1px solid rgba(221, 208, 187, 0.6);
  line-height: 1.4;
}
.mini-reflection .heart { color: var(--gold); font-weight: 600; }
.mini-foot {
  text-align: center;
  font-size: 7px;
  color: var(--ink-muted);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.mini-foot .brand {
  font-family: var(--font-serif-tc);
  color: var(--ink-light);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  margin-top: 1px;
}
.mini-info.lang-eng .mini-foot .brand { font-family: var(--font-serif-en); font-style: italic; }

/* Mood-based tint variations to give visual variety */
.mini-info.mood-sunny    { background: #F8EFD2; }
.mini-info.mood-rain     { background: #ECECDA; }
.mini-info.mood-cloud    { background: #EFE9DB; }
.mini-info.mood-storm    { background: #E8E1D0; }
.mini-info.mood-humid    { background: #EFE8D2; }
.mini-info.mood-windy    { background: #E7E2D2; }
.mini-info.mood-drizzle  { background: #ECE6D5; }

.real-tag {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 5;
  background: var(--gold);
  color: white;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--shadow-1);
}

/* ─────────────── Empty state ─────────────── */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
}
.empty .icon { font-size: 28px; color: var(--gold); margin-bottom: 10px; }

/* ─────────────── Entry detail ─────────────── */

.entry {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: flex-start;
  margin-top: 24px;
}
@media (max-width: 980px) { .entry { grid-template-columns: 1fr; gap: 32px; } }

/* Full-HTML article (iframe) */
.article-iframe-wrap {
  background: #FCF8EF;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  min-height: 720px;
  height: calc(100vh - 200px);
  max-height: 1200px;
}
.article-iframe-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(180deg, #FAF5EB 0%, #F3EBD8 100%);
  border-bottom: 1px solid var(--cream-border);
  flex-shrink: 0;
}
.article-iframe-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.article-iframe-meta .sep { opacity: 0.5; }
.article-iframe-meta .article-iframe-date {
  text-transform: none;
  font-family: var(--font-serif-tc);
  letter-spacing: 0.04em;
  color: var(--ink-light);
  font-weight: 500;
  font-size: 12.5px;
}
body.lang-eng .article-iframe-meta .article-iframe-date {
  font-family: var(--font-serif-en); font-style: italic;
}
.article-iframe-meta .dot-light {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 169, 78, 0.22);
}
.article-iframe-actions { display: inline-flex; gap: 6px; }
.iframe-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  color: var(--ink-light);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.iframe-action:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.article-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cream);
  display: block;
}
.article-no-html-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}

.entry-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-light);
  letter-spacing: 0.05em;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  transition: background 0.15s;
}
.entry-back:hover { background: var(--cream-deep); color: var(--ink); }

.entry-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 12px;
  gap: 12px;
}
.day-stepper {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 4px;
}
.day-stepper button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--ink-light);
  transition: background 0.15s, color 0.15s;
}
.day-stepper button:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.day-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.day-stepper .label {
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.05em;
  font-family: var(--font-serif-tc);
}
body.lang-eng .day-stepper .label { font-family: var(--font-serif-en); font-style: italic; }

.entry-image-col {
  position: sticky; top: 88px;
}
.entry-image-frame {
  aspect-ratio: 9 / 16;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  position: relative;
}
.entry-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.entry-image-actions {
  display: flex; gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.image-action {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.image-action:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.article-col h2.article-title {
  font-family: var(--font-serif-tc);
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}
body.lang-eng .article-col h2.article-title {
  font-family: var(--font-serif-en);
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.article-col .article-date {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.article-col .article-divider {
  width: 60px; height: 1px;
  background: var(--gold-line);
  margin: 24px 0;
}

.article-section {
  margin-bottom: 36px;
}
.article-section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.article-section h3 {
  font-family: var(--font-serif-tc);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
body.lang-eng .article-section h3 {
  font-family: var(--font-serif-en);
  font-style: italic;
  letter-spacing: 0.02em;
}
.article-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-light);
}
body.lang-eng .article-body { font-size: 16px; line-height: 1.75; }
.article-body p + p { margin-top: 14px; }

.weather-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  padding: 20px 22px;
}
.weather-card .badge-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sky);
  color: white;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.history-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .history-rows { grid-template-columns: 1fr; } }
.history-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.history-card .icon { font-size: 22px; }
.history-card .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  font-weight: 600;
}
.history-card .year {
  font-family: var(--font-serif-tc);
  font-size: 24px;
  color: var(--gold);
  margin-top: 6px;
  letter-spacing: 0.06em;
}
body.lang-eng .history-card .year { font-family: var(--font-serif-en); font-style: italic; }
.history-card .text {
  font-size: 13.5px;
  color: var(--ink-light);
  margin-top: 4px;
  line-height: 1.6;
}

.scripture-panel {
  background: linear-gradient(135deg, var(--scripture-dark) 0%, var(--scripture-dark-2) 100%);
  border-radius: 14px;
  padding: 32px 28px 26px;
  color: #F0E6D0;
  text-align: center;
  position: relative;
}
.scripture-panel .label {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 18px;
}
.scripture-panel .verse {
  font-family: var(--font-serif-tc);
  font-size: 26px;
  line-height: 1.55;
  color: #F8F0D9;
  font-weight: 500;
  letter-spacing: 0.04em;
}
body.lang-eng .scripture-panel .verse {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 25px;
  letter-spacing: 0;
}
.scripture-panel .verse-bar {
  width: 100px; height: 1px;
  background: var(--gold-line);
  margin: 18px auto 14px;
}
.scripture-panel .ref {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  font-family: var(--font-sans-tc);
}
body.lang-eng .scripture-panel .ref { font-family: var(--font-sans-en); }

.reflection-card {
  background: linear-gradient(135deg, rgba(107, 124, 94, 0.08), rgba(181, 137, 58, 0.08));
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 24px 26px;
}
.reflection-card .heart { color: var(--gold); }
.reflection-card .text {
  font-family: var(--font-serif-tc);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.03em;
}
body.lang-eng .reflection-card .text {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0;
}

.article-sources {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-border);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─────────────── About / Reflection page ─────────────── */

.about-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 80px;
  text-align: center;
}

.about-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.about-eyebrow .line {
  width: 36px; height: 1px;
  background: var(--gold-line);
}

.about-title {
  font-family: var(--font-serif-tc);
  font-size: 40px;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 500;
  margin-bottom: 8px;
}
body.lang-eng .about-title {
  font-family: var(--font-serif-en);
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.about-body {
  margin-top: 36px;
  text-align: left;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-light);
}
body.lang-eng .about-body {
  font-size: 17px;
  line-height: 1.85;
}

.about-para {
  margin-bottom: 18px;
  font-family: var(--font-sans-tc);
}
body.lang-eng .about-para {
  font-family: var(--font-sans-en);
}

.about-para-final {
  font-family: var(--font-serif-tc);
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
  padding: 18px 0 4px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  border-top: 1px solid var(--cream-border);
}
body.lang-eng .about-para-final {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
}

/* RTHK link card */
.rthk-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 40px;
  padding: 20px 22px;
  background: #FCF8EF;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  text-align: left;
  transition: all 0.18s;
  color: inherit;
}
.rthk-card:hover {
  border-color: var(--gold-line);
  background: #FAF3DF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.rthk-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--scripture-dark), var(--scripture-dark-2));
  color: var(--gold-light);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(212, 169, 78, 0.25);
}
.rthk-eyebrow {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.rthk-title {
  font-family: var(--font-serif-en);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.rthk-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.rthk-cta {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-light);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.rthk-card:hover .rthk-cta { color: var(--ink); }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  width: 40px; height: 40px;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.about-signoff {
  margin-top: 50px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.about-signoff svg { color: var(--gold); }

@media (max-width: 600px) {
  .about-page { padding: 56px 22px 64px; }
  .about-title { font-size: 30px; }
  .rthk-card { grid-template-columns: 48px 1fr; gap: 14px; }
  .rthk-card .rthk-cta { grid-column: 1 / -1; margin-top: 4px; }
}

/* ─────────────── Admin page ─────────────── */

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 100px;
}
.admin-header { text-align: center; margin-bottom: 36px; }
.admin-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 14px;
}
.admin-title {
  font-family: var(--font-serif-tc);
  font-size: 38px; letter-spacing: 0.1em;
  color: var(--ink); font-weight: 500;
}
body.lang-eng .admin-title {
  font-family: var(--font-serif-en); font-style: italic; letter-spacing: 0.02em;
}
.admin-lede {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

.dropzone {
  border: 2px dashed var(--cream-border);
  border-radius: 20px;
  background: #FBF7EE;
  padding: 44px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.dropzone:hover, .dropzone.active {
  border-color: var(--gold-line);
  background: #F8F2E2;
  box-shadow: var(--shadow-1);
}
.dropzone-icon { color: var(--gold); margin-bottom: 12px; }
.dropzone-title {
  font-family: var(--font-serif-tc);
  font-size: 22px; color: var(--ink); font-weight: 500;
  letter-spacing: 0.05em;
}
body.lang-eng .dropzone-title { font-family: var(--font-serif-en); font-style: italic; }
.dropzone-sub {
  margin-top: 8px; font-size: 13px; color: var(--ink-muted);
}
.dropzone-actions {
  margin-top: 18px;
  display: flex; gap: 10px; justify-content: center;
}
.ghost-btn, .primary-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.05em;
  border: 1px solid var(--cream-border);
  background: var(--cream-warm);
  color: var(--ink-light);
  transition: all 0.15s;
}
.ghost-btn:hover:not(:disabled) { background: var(--cream-deep); color: var(--ink); }
.ghost-btn:disabled, .primary-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.primary-btn {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.primary-btn:hover:not(:disabled) { background: #1d1709; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; gap: 28px; } }

.admin-section-title {
  font-family: var(--font-serif-tc);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 12px;
}
body.lang-eng .admin-section-title {
  font-family: var(--font-sans-en);
  letter-spacing: 0.2em;
}

.file-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 16px;
  background: #FCF8EF;
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  align-items: center;
  transition: all 0.15s;
}
.file-row.have { border-color: var(--gold-line); background: #FAF3DF; }
.file-row.optional:not(.have) { opacity: 0.7; }
.file-status {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-muted);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.file-row.have .file-status { background: var(--gold); color: white; }
.file-name { font-family: var(--font-sans-en); font-size: 13.5px; color: var(--ink); font-weight: 500; }
.file-sub { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }

.validation-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.validation-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  align-items: flex-start;
}
.val-ok    { background: rgba(107, 142, 90, 0.10); color: #4A6A3C; }
.val-warn  { background: rgba(212, 169, 78, 0.16); color: #8B6320; }
.val-fail  { background: rgba(210, 38, 48, 0.10);  color: #A8262F; }
.val-wait  { background: rgba(154, 140, 120, 0.12); color: var(--ink-muted); }
.val-icon  { font-weight: 700; }

.hint { color: var(--ink-muted); font-size: 13px; line-height: 1.7; padding: 16px; background: #FBF7EE; border-radius: 12px; border: 1px dashed var(--cream-border); }

.admin-preview-wrap { display: flex; flex-direction: column; gap: 16px; }
.admin-preview-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.admin-preview-lang {
  font-size: 11px; letter-spacing: 0.16em; color: var(--ink-muted);
  text-transform: uppercase; margin-bottom: 6px; font-weight: 600;
}
.preview-card {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cream-border);
  background: var(--cream-warm);
  box-shadow: var(--shadow-1);
}
.preview-card img { width: 100%; height: 100%; object-fit: cover; }
.admin-preview-meta {
  background: #FCF8EF;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 1.7;
}
.admin-preview-meta strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.publish-bar {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(180deg, #FAF5EB 0%, #F2E9D3 100%);
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  padding: 18px 22px;
}

/* GitHub connection panel */
.gh-panel {
  margin-top: 28px;
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  background: #FCF8EF;
  overflow: hidden;
}
.gh-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 18px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
}
.gh-toggle:hover { background: var(--cream-warm); }
.gh-toggle > svg:first-of-type { color: var(--gold); }
.gh-status {
  flex: 1;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.gh-status .gh-ok {
  color: #4A6A3C;
  background: rgba(107, 142, 90, 0.10);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-sans-en);
  font-size: 11.5px;
}
.gh-status .gh-warn {
  color: #8B6320;
  background: rgba(212, 169, 78, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
}
.gh-form {
  border-top: 1px solid var(--cream-border);
  padding: 18px 18px 20px;
  display: grid; gap: 12px;
}
.gh-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 12px;
  align-items: center;
}
.gh-row label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.gh-row input {
  background: #FBF7EE;
  border: 1px solid var(--cream-border);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-family: var(--font-sans-en);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gh-row input:focus {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.gh-hint {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.7;
  padding: 10px 14px;
  background: rgba(212, 169, 78, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--gold-light);
}
@media (max-width: 600px) {
  .gh-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Publish log */
.publish-log {
  margin-top: 18px;
  background: #2C2416;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans-en);
  font-size: 12.5px;
  line-height: 1.7;
  color: #F0E6D0;
  max-height: 280px;
  overflow-y: auto;
}
.log-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
}
.log-row + .log-row { margin-top: 2px; }
.log-mark { font-weight: 700; opacity: 0.9; }
.log-ok   .log-mark { color: #9BC080; }
.log-fail .log-mark { color: #E67D86; }
.log-info .log-mark { color: var(--gold-light); }
.log-done .log-mark { color: var(--gold-light); }
.log-done {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 169, 78, 0.25);
  color: var(--gold-light);
  font-weight: 500;
}
.log-fail { color: #FFC7CB; }
.publish-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink);
}
.publish-status .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-muted);
}
.publish-status .dot.ok {
  background: #6A8E5A;
  box-shadow: 0 0 0 4px rgba(106, 142, 90, 0.2);
}
.publish-status .dot.wait { background: var(--gold); }
.admin-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ─────────────── Bottom Bridge & Build footer ─────────────── */
/* Tri-lingual: hover the © All rights reserved line → click to cycle EN → 繁 → 简 */

.bb-font-cht { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.bb-font-chs { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.bb-font-eng { font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; }

.bb-footer-wrapper {
  width: 100%;
  background: transparent;
}
.bb-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.5rem 1.25rem;
}
.bb-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.bb-logo-link {
  display: inline-block;
  position: relative;
}
.bb-logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.bb-logo-link:hover .bb-logo-img { opacity: 0.75; }
.bb-slogan {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.03em;
  line-height: 1.8;
  margin: 0;
}
.bb-copy {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
}
.bb-brand {
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}
.bb-brand:hover { color: #222; text-decoration: underline; text-underline-offset: 2px; }
.bb-rights {
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}
.bb-rights:hover { color: #222; }
.bb-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 22, 22, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bb-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(22, 22, 22, 0.9);
}
.bb-logo-link:hover .bb-tip,
.bb-brand:hover .bb-tip,
.bb-rights:hover .bb-tip { opacity: 1; }
@media (max-width: 480px) {
  .bb-footer { padding: 1.25rem 1rem; }
  .bb-slogan { font-size: 10px; }
}

/* ─────────────── Responsive collapse ─────────────── */
@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: 1fr; gap: 10px; }
  .topbar-right { justify-content: center; }
  .featured { grid-template-columns: 1fr; }
  .featured-image { max-width: 320px; margin: 0 auto; width: 100%; }
  .archive-hero h1 { font-size: 40px; }
  .entry-image-col { position: static; }
}

/* ─────────────── Scroll lock smoothing ─────────────── */
html { scroll-behavior: smooth; }
