/* The Ideas board (ideas.html, js/ideas.js) */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/Baloo2.woff2') format('woff2'); }
:root { --bg: #F2FAF7; --card: #fff; --ink: #2E2A47; --muted: #6E6985; --line: #E6E0F2; --accent: #13A391; --accent-d: #0D7F71; --sun: #FFC93C; --grape: #7F44C8; --danger: #C23A54; --radius: 18px;
  --shadow: 0 8px 24px rgba(46, 42, 71, 0.08); color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #17151F; --card: #23202E; --ink: #F1EEF8; --muted: #B3AEC4; --line: #38334A; --accent: #2FC3AE; --accent-d: #1F9482; --grape: #B794F0; --danger: #F07890; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 'Baloo 2', 'Nunito', system-ui, sans-serif; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 2; }
.top h1 { flex: 1; margin: 0; font-size: 22px; line-height: 1.1; text-align: center; }
.back { color: var(--accent-d); font-weight: 800; text-decoration: none; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.lead { margin: 0 0 16px; }
h2 { margin: 0 0 8px; font-size: 21px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
label { display: block; margin: 10px 0 4px; font-weight: 700; font-size: 15px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.btn { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 17px/1 'Baloo 2', system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 0 var(--accent-d); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--accent-d); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ok { background: #3FB549; box-shadow: 0 4px 0 #2F8F37; }
.btn.danger { color: var(--danger); }
.link { border: 0; background: none; padding: 4px; color: var(--accent-d); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hint { color: var(--muted); }
.err { color: var(--danger); font-weight: 700; }
.thanks { font-weight: 800; color: var(--accent-d); }
.tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.tab { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: var(--card); color: var(--muted); font: 800 16px/1 'Baloo 2', system-ui, sans-serif; cursor: pointer; box-shadow: var(--shadow); }
.tab.on { background: var(--grape); color: #fff; }
.list { display: grid; gap: 12px; }
.idea { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.idea .body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.idea h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.idea p { margin: 4px 0 0; }
.idea .meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--bg); font-weight: 800; }
.reply { padding: 8px 12px; border-radius: 12px; background: var(--bg); border-left: 4px solid var(--sun); }
.vote, .votes { flex: none; display: grid; place-items: center; width: 58px; min-height: 58px; padding: 4px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: 400 20px/1.1 'Baloo 2', system-ui, sans-serif; }
.vote { cursor: pointer; }
.vote b { font-size: 17px; }
.vote.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.votes { opacity: 0.75; }
.admin { margin-bottom: 18px; padding: 14px; border-radius: var(--radius); border: 2px dashed var(--sun); }
.admin .count { color: var(--muted); font-size: 16px; }
.tools { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tools .row { margin-top: 4px; }
.foot { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 420px) { .top h1 { font-size: 19px; } .back { font-size: 15px; } }

/* The parent community: where to follow along, and reactions under each idea (signed-in grown-ups tap one). */
.follow { margin-bottom: 16px; }
.follow h2 { margin: 0 0 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.social { flex: 1 1 150px; display: flex; flex-direction: column; padding: 10px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); text-decoration: none; }
.social b { font-size: 17px; color: var(--accent); }
.social span { font-size: 14px; color: var(--muted); }
.social:hover, .social:focus-visible { border-color: var(--accent); }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.react { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 40px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 400 18px/1 'Baloo 2', system-ui, sans-serif; cursor: pointer; }
.react b { font-size: 15px; }
.react.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }

/* "You asked, we built it": the built ideas, proudest thing on the page. The question of the month. Kid's ideas. */
.ask { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--sun) 28%, var(--card)); border: 2px solid var(--sun); font-size: 19px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.ask b { display: block; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.built { border: 2px solid var(--accent); }
.built h2 { margin: 0 0 2px; }
.made-list { display: grid; gap: 10px; margin-top: 10px; }
.made { padding: 12px 14px; border-radius: 16px; background: var(--bg); border-left: 5px solid var(--accent); }
.made .body { min-width: 0; overflow-wrap: anywhere; }
.made h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.made p { margin: 4px 0 0; }
.made .meta { color: var(--muted); font-size: 14px; }
.made .badge { background: var(--card); }
.made .reply { background: var(--card); }
.made .react { background: var(--card); }
.built > .link { margin-top: 8px; }
.badge.kid { color: var(--grape); }
.badge.you { color: var(--accent-d); }
.see { display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; }
.see:hover, .see:focus-visible { background: var(--accent-d); }
.tick { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 32px; cursor: pointer; }
.tick input { flex: none; width: 22px; height: 22px; padding: 0; accent-color: var(--accent); }
.hint.small { margin: 2px 0 0; font-size: 14px; }
.ask-admin { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ask-admin label { margin-top: 0; }
.ask-admin .row { margin-top: 4px; flex-wrap: nowrap; }
.ask-admin input { flex: 1; min-width: 0; }
.supporter-names { margin: 8px 0 0; line-height: 1.7; }
