:root {
  --green: #559b3c;
  --green-dark: #582913;
  --sun: #ea7d19;
  --coral: #ca2222;
  --sky: #0193de;
  --ink: #582913;
  --muted: #8c633d;
  --bg: #fbf6e3;
  --card: #fbf6e3;
  --radius: 0px;
  --rule: #582913;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  background-image: radial-gradient(circle at 10% 0%, #fff1c9 0, transparent 40%), radial-gradient(circle at 95% 10%, #d7f5e3 0, transparent 38%);
  background-repeat: no-repeat;
}

/* Hero */
header {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 1.2rem 1rem 2.6rem;
  background: linear-gradient(135deg, #1fa15a 0%, #2bb673 45%, #ffb703 130%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 30px #2f9e5b40;
}
header::before, header::after {
  content: ""; position: absolute; border-radius: 50%; background: #ffffff22; pointer-events: none;
}
header::before { width: 260px; height: 260px; left: -70px; top: -90px; }
header::after { width: 200px; height: 200px; right: -40px; bottom: -80px; }
header > * { position: relative; z-index: 1; }
header h1 { margin: .8rem 0 .2rem; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; text-shadow: 0 2px 10px #0003; }
header h1 .sprout { display: inline-block; animation: sway 3.5s ease-in-out infinite; transform-origin: bottom center; }
header > p { margin: 0 auto; max-width: 620px; font-size: 1.1rem; opacity: .95; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

nav { display: inline-flex; gap: .3rem; padding: .3rem; background: #ffffff2e; border-radius: 999px; backdrop-filter: blur(6px); }
nav a { color: #fff; text-decoration: none; font-weight: 700; padding: .4rem 1rem; border-radius: 999px; transition: background .2s; }
nav a:hover { background: #ffffff33; }
nav a.current { background: #fff; color: var(--green-dark); }

/* Controls */
.chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.chip {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .45rem 1rem; border-radius: 999px;
  background: #ffffff2e; color: #fff; transition: transform .15s, background .15s;
}
.chip:hover { transform: translateY(-2px); background: #ffffff55; }
.chip.active { background: #fff; color: var(--green-dark); box-shadow: 0 4px 12px #0002; }
.controls { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
input, select, button { font: inherit; }
.controls input, .controls select {
  padding: .65rem 1rem; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 0 4px 14px #0002; min-width: 200px;
}
.controls input:focus, .controls select:focus { outline: 3px solid var(--sun); }
#refresh {
  padding: .65rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800;
  background: var(--sun); color: #4a3200; box-shadow: 0 4px 14px #0003; transition: transform .15s;
}
#refresh:hover { transform: translateY(-2px) rotate(-1deg); }

/* Layout */
main { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1rem 1rem; }
#msg { text-align: center; color: var(--muted); font-weight: 600; }
.section-title { margin: 2rem 0 1rem; font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; }
.section-title::after { content: ""; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sun), transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }

/* Cards */
.card {
  --accent: var(--green); --accent2: #7ddba3;
  background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px #1f2a3714, 0 8px 24px #1f2a3710;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: pop .45s ease both;
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 14px 34px #1f2a3730; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.theme-animals { --accent: #ff8a3d; --accent2: #ffd08a; }
.theme-environment { --accent: #2f9e5b; --accent2: #a6e8bf; }
.theme-health { --accent: #e8517a; --accent2: #ffb3c8; }
.theme-science { --accent: #3a7bff; --accent2: #a9c8ff; }
.theme-community { --accent: #9b5de5; --accent2: #d8b8ff; }
.theme-more { --accent: #f4a300; --accent2: #ffe08a; }

.media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .4s ease; }
.media img.fg { object-fit: contain; }
.media img.bg { object-fit: cover; filter: blur(18px) saturate(1.2); transform: scale(1.25); opacity: .9; }
.card:hover .media img.fg { transform: scale(1.04); }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; opacity: .85; filter: drop-shadow(0 4px 6px #0003); }
.badge, .star {
  position: absolute; z-index: 2; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px;
  box-shadow: 0 2px 8px #0003;
}
.badge { left: .7rem; bottom: .7rem; background: #fff; color: var(--accent); }
.star { right: .7rem; top: .7rem; background: var(--sun); color: #4a3200; }

.card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card h2 { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.card .body a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.card .body a:hover { background-size: 100% 3px; }
.summary { margin: 0; font-size: .92rem; color: var(--muted); }
.note { margin: 0; padding: .6rem .8rem; border-radius: 12px; font-size: .9rem; background: #fff4cc; border-left: 5px solid var(--sun); }
.card.has-note { box-shadow: 0 0 0 3px var(--sun), 0 10px 28px #ffb70355; }
.meta { margin-top: auto; padding-top: .6rem; border-top: 1px dashed #e4e9ee; display: flex; gap: .6rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.meta { align-items: center; }
.meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta > span, .meta .share-btn { white-space: nowrap; flex-shrink: 0; }
.meta > span:first-child { flex-shrink: 1; }
.meta .share-btn { margin-left: auto; }
.meta .read {  color: var(--accent); font-weight: 800; }

/* Text pages */
.intro { max-width: 720px; margin: 0 auto 1rem; font-size: 1.15rem; text-align: center; padding: 1rem 1.4rem; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 16px #1f2a3710; }
.prose { max-width: 740px; font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; color: var(--green-dark); }
.prose h2::before { content: "🌱 "; }

footer { text-align: center; padding: 2rem 1rem 2.5rem; font-size: .85rem; color: var(--muted); max-width: 760px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
  header { border-radius: 0 0 28px 28px; }
  .controls input, .controls select { min-width: 100%; }
}

/* Forms & admin */
.form { display: grid; gap: 1rem; background: #fff; padding: 1.4rem; border-radius: var(--radius); box-shadow: 0 6px 24px #1f2a3712; }
.form label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select, .admin-card input, .admin-card select {
  font: inherit; padding: .65rem .9rem; border: 2px solid #e4e9ee; border-radius: 12px; background: #fffdf8; width: 100%;
}
.form input:focus, .form textarea:focus, .admin-card input:focus, .admin-card select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #2f9e5b33; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form .choice { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.form .choice legend { font-weight: 800; margin-bottom: .4rem; }
.form .choice label { display: flex; gap: .6rem; align-items: center; padding: .7rem 1rem; border: 2px solid #e4e9ee; border-radius: 12px; cursor: pointer; }
.form .choice label:has(input:checked) { border-color: var(--green); background: #effaf3; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .88rem; }
.form button[type=submit] { padding: .8rem 1.4rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px #2f9e5b55; }
.form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#status.ok { color: var(--green-dark); font-weight: 700; }
#status.err, .err { color: #c0392b; font-weight: 700; }
.fine { color: var(--muted); font-size: .85rem; }
.login { max-width: 420px; margin: 1rem auto; }
.admin-card { margin-bottom: 1rem; animation: none; }
.admin-card .body { gap: .7rem; }
.admin-card label { display: grid; gap: .25rem; font-weight: 700; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions button { font: inherit; font-weight: 700; padding: .5rem 1rem; border: 2px solid #e4e9ee; border-radius: 999px; background: #fff; cursor: pointer; }
.actions button.ok { background: var(--green); border-color: var(--green); color: #fff; }
.actions button.danger { color: #c0392b; }
.note[hidden], [hidden] { display: none !important; }
header .chip { font: inherit; }

/* Share */
.share-btn { font: inherit; font-size: .78rem; font-weight: 800; border: 2px solid #e4e9ee; background: #fff; color: var(--muted); border-radius: 999px; padding: .15rem .7rem; cursor: pointer; transition: all .15s; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--accent, var(--green)); color: var(--accent, var(--green)); transform: translateY(-1px); }
.share-dialog { border: 0; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; width: min(440px, 92vw); box-shadow: 0 24px 60px #0005; color: var(--ink); font-family: inherit; }
.share-dialog::backdrop { background: #10241866; backdrop-filter: blur(3px); }
.share-dialog h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.share-dialog .close { position: absolute; top: .7rem; right: .8rem; border: 0; background: #f1f4f2; border-radius: 50%; width: 2rem; height: 2rem; cursor: pointer; font-size: 1rem; }
.share-title { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.share-grid a { display: grid; justify-items: center; gap: .2rem; padding: .7rem .3rem; border-radius: 14px; background: #f6faf7; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; transition: transform .15s, background .15s; }
.share-grid a span { font-size: 1.5rem; }
.share-grid a:hover { background: #e3f6ea; transform: translateY(-2px); }
.share-dialog .copy { width: 100%; font: inherit; font-weight: 800; padding: .7rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; cursor: pointer; }
.copy-msg { text-align: center; color: var(--green-dark); font-weight: 700; min-height: 1.3em; margin: .5rem 0 0; }
.story-share { margin: 1rem 0; }
.story-share .share-btn { font-size: 1rem; padding: .5rem 1.2rem; background: var(--green); color: #fff; border-color: var(--green); }

/* Reader */
body.reader { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.reader-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff; flex-wrap: wrap; box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 5; }
.reader-bar a, .reader-bar button { font: inherit; }
.rb-back { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.rb-title { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rb-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-title small { opacity: .85; }
.rb-stars { display: flex; }
.rb-stars button { background: none; border: 0; color: var(--sun); font-size: 1.35rem; cursor: pointer; padding: 0 .05rem; line-height: 1; }
.rb-stars button.mine { text-shadow: 0 0 6px rgba(255,183,3,.9); }
.rb-avg { font-size: .85rem; opacity: .95; white-space: nowrap; }
.rb-btn { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 600; }
.rb-btn:hover { background: rgba(255,255,255,.3); }
.rb-btn.primary { background: var(--sun); color: #3a2a00; border-color: var(--sun); }
.rb-btn.big { display: inline-block; padding: .8rem 1.4rem; font-size: 1.05rem; }
.reader-main { flex: 1; position: relative; min-height: 0; background: #fff; }
.reader-main iframe { width: 100%; height: 100%; border: 0; display: block; }
.reader-fallback { max-width: 640px; margin: 3rem auto; padding: 0 1.2rem; text-align: center; }
.reader-fallback .hint, .form .hint { color: var(--muted); font-size: .9rem; }
.reader-msg { text-align: center; margin-top: 2rem; }
.comments-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; box-shadow: -6px 0 24px rgba(0,0,0,.2); padding: 1rem; overflow-y: auto; z-index: 4; }
.comments-panel .close { position: absolute; top: .6rem; right: .6rem; border: 0; background: #eef; border-radius: 50%; width: 2rem; height: 2rem; cursor: pointer; }
.comments-panel .comment { border-bottom: 1px solid #eee; padding: .5rem 0; }
.comments-panel .comment p { margin: .2rem 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 820px) { .rb-back span, #share span { display: none; } .rb-title { flex-basis: 100%; order: 5; } .rb-btn { padding: .35rem .7rem; } }
.reader-main { max-width: none; margin: 0; padding: 0; width: 100%; overflow: auto; }
.reader-main iframe { position: absolute; inset: 0; }

/* Cookie banner */
#cookie-banner { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(720px, calc(100% - 1.5rem)); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.25); padding: 1rem 1.2rem; z-index: 50; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; border: 2px solid var(--green); }
#cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .92rem; }
#cookie-banner .cb-actions { display: flex; gap: .5rem; }
#cookie-banner button { border: 0; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 700; cursor: pointer; background: var(--green); color: #fff; }
#cookie-banner button.secondary { background: #eef2f0; color: var(--ink); }
.legal-links a { color: inherit; }

/* Editorial theme */
body { background-image: none; font-family: "Helvetica Neue", Arial, system-ui, sans-serif; }
h1, h2, h3, .card h2, .prose h2, .section-title { font-family: Georgia, "Times New Roman", Times, serif; }
header { background: none; color: var(--ink); box-shadow: none; border-radius: 0; overflow: visible; text-align: center; padding: .6rem 1rem 0; border-bottom: 1px solid var(--rule); max-width: 1240px; margin: 0 auto; }
header::before, header::after { display: none; }
.dateline { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.masthead { font-family: Georgia, "Times New Roman", Times, serif; font-weight: 700; letter-spacing: -.02em; color: #ca2222; text-decoration: none; display: block; margin: .5rem 0; font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1.05; text-shadow: none; }
header h1:not(.masthead) { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .8rem 0 .2rem; text-shadow: none; letter-spacing: -.01em; }
header > p { color: var(--muted); font-size: 1rem; margin: 0 auto .8rem; }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.4rem; padding: .5rem 0; background: none; border-top: 1px solid var(--rule); border-radius: 0; backdrop-filter: none; }
nav a { color: var(--ink); border-radius: 0; padding: .2rem 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid transparent; }
nav a:hover { background: none; border-bottom-color: #ca2222; }
nav a.current { background: none; color: #ca2222; border-bottom-color: #ca2222; }
.chips { margin: .3rem 0 .8rem; gap: .3rem 1rem; }
.chip { background: none; color: var(--ink); border-radius: 0; padding: .2rem 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid transparent; }
.chip:hover { background: none; transform: none; border-bottom-color: var(--muted); }
.chip.active { background: none; color: #ca2222; box-shadow: none; border-bottom-color: #ca2222; }
.controls { margin: 0 0 1rem; }
.controls input, .controls select { border: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.controls input:focus, .controls select:focus { outline: 2px solid #ca2222; }
#refresh { border-radius: 0; background: var(--ink); color: var(--bg); box-shadow: none; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
#refresh:hover { transform: none; background: #ca2222; }
.section-title { font-size: 1.5rem; margin: 2rem 0 1rem; padding-top: .6rem; border-top: 3px double var(--rule); }
.section-title::after { display: none; }
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.6rem; }
.card { background: none; box-shadow: none; border-radius: 0; animation: none; border-bottom: 1px dotted var(--rule); padding-bottom: 1rem; }
.card:hover { transform: none; box-shadow: none; }
.card .body { padding: .8rem 0 0; }
.card h2 { font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
.card .body a { background-image: none; }
.card .body a:hover { color: var(--accent); text-decoration: underline; }
.theme-animals { --accent: #ea7d19; }
.theme-environment { --accent: #559b3c; }
.theme-health { --accent: #fe7eac; }
.theme-science { --accent: #0c29c1; }
.theme-community { --accent: #298a97; }
.theme-more { --accent: #ca2222; }
.theme-health { --accent: #d6457f; }
.media { background: #e9dfc0; }
.media img.fg { filter: grayscale(.85) sepia(.15); transition: filter .3s, transform .4s; }
.media img.bg { filter: blur(18px) grayscale(.8); opacity: .6; }
.card:hover .media img.fg { filter: none; transform: none; }
.fallback { background: #e9dfc0; filter: grayscale(1); opacity: .6; }
.badge, .star { border-radius: 0; box-shadow: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .6rem; }
.badge { left: 0; bottom: 0; background: var(--bg); color: var(--accent); border-top: 3px solid var(--accent); }
.star { right: 0; top: 0; background: #ca2222; color: #fff; }
.summary { color: var(--muted); font-family: Georgia, serif; }
.note { border-radius: 0; background: #f3e8c2; border-left: 3px solid #ca2222; font-family: Georgia, serif; font-style: italic; }
.card.has-note { box-shadow: none; }
.meta { border-top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.meta .read { color: var(--accent); }
.share-btn { border-radius: 0; border: 1px solid var(--rule); background: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.intro { background: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: Georgia, serif; font-style: italic; }
.prose h2::before { content: ""; }
.prose { font-family: Georgia, serif; }
.form { background: #f3e8c2; border-radius: 0; box-shadow: none; border: 1px solid var(--rule); }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select, .admin-card input, .admin-card select { border: 1px solid var(--rule); border-radius: 0; background: var(--bg); color: var(--ink); }
.form input:focus, .form textarea:focus, .admin-card input:focus, .admin-card select:focus { border-color: #ca2222; box-shadow: none; }
.form .choice label { border: 1px solid var(--rule); border-radius: 0; }
.form .choice label:has(input:checked) { border-color: #ca2222; background: #f8e1d8; }
.form button[type=submit], .share-dialog .copy, #cookie-banner button, .story-share .share-btn { border-radius: 0; background: var(--ink); color: var(--bg); box-shadow: none; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; border-color: var(--ink); }
.form button[type=submit]:hover, .share-dialog .copy:hover, #cookie-banner button:hover { background: #ca2222; }
#cookie-banner { background: var(--bg); border: 1px solid var(--rule); border-radius: 0; }
#cookie-banner button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.actions button { border-radius: 0; border: 1px solid var(--rule); background: none; }
.actions button.ok { background: var(--ink); color: var(--bg); }
.share-dialog { border-radius: 0; background: var(--bg); border: 1px solid var(--rule); }
.share-dialog .close { background: none; border-radius: 0; }
.share-grid a { background: #f3e8c2; border-radius: 0; }
.share-grid a:hover { background: #ecdcac; transform: none; }
.reader-bar { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--rule); box-shadow: none; }
.rb-back { color: var(--ink); }
.rb-btn { background: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.rb-btn:hover { background: #f3e8c2; }
.rb-btn.primary { background: #ca2222; color: #fff; border-color: #ca2222; }
.rb-stars button { color: #ca2222; }
.comments-panel { background: var(--bg); }
footer { border-top: 1px solid var(--rule); margin-top: 2rem; }
@media (min-width: 900px) {
  #grid > .card:first-child, #pick-grid > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 1.6rem; align-items: start; }
  #grid > .card:first-child h2, #pick-grid > .card:first-child h2 { font-size: 2.4rem; }
  #grid > .card:first-child .body, #pick-grid > .card:first-child .body { padding-top: 0; }
}

/* Videos */
.video-thumb { border: 0; padding: 0; cursor: pointer; width: 100%; }
.video-thumb img { object-fit: cover !important; }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; background: #ca2222; color: #fff; font-size: 1.3rem; padding-left: .2rem; }
.video-thumb:hover .play, .video-thumb:focus-visible .play { background: var(--ink); }
.video-dialog { border: 1px solid var(--rule); background: var(--bg); color: var(--ink); width: min(960px, 96vw); padding: 1rem; }
.video-dialog::backdrop { background: #000a; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog .close { position: absolute; top: .3rem; right: .4rem; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.video-title { margin: .6rem 0 0; font-family: Georgia, serif; font-weight: 700; }

.story-image { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto 1rem; border: 1px solid var(--rule); }
.admin-preview { max-width: 100%; max-height: 260px; border: 1px solid var(--rule); }
