/* Pgeon v1 — the original Pgeon UI, adapted for the tribunal. */
:root { --ink:#18201d; --paper:#f5f1e8; --card:#fffdf7; --green:#176b4d; --mint:#b9e4d0; --line:#d8d4ca; --muted:#68716c; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,textarea,input,select { font:inherit; }
button { cursor:pointer; }
a { color:var(--ink); }
.shell { width:min(1080px,calc(100% - 40px)); margin:auto; }
.topbar { height:80px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); text-decoration:none; font-size:24px; font-weight:800; letter-spacing:-1px; display:flex; align-items:center; }
.brand span { display:inline-grid; place-items:center; width:33px; height:33px; margin-right:8px; color:#fff; background:var(--green); border-radius:50% 50% 50% 8px; font-size:20px; }
.brand.small { font-size:18px; }
.navlinks { display:flex; gap:26px; }
.navlinks a { text-decoration:none; font-weight:600; font-size:15px; }
.navlinks a:hover { color:var(--green); }
#auth-area { display:flex; align-items:center; gap:10px; }
.identity,.quiet { padding:9px 14px; color:var(--ink); background:transparent; border:1px solid var(--line); border-radius:999px; text-decoration:none; font-size:14px; }
.hero { padding:76px 0 70px; display:grid; grid-template-columns:1fr 1fr; gap:42px; align-items:end; }
.eyebrow { margin:0 0 10px; color:var(--green); font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
h1 { margin:0; font:700 clamp(48px,7vw,82px)/.98 Georgia,serif; letter-spacing:-.055em; }
h1 em { color:var(--green); font-weight:400; }
.lede { max-width:520px; margin:24px 0 0; color:var(--muted); font-size:19px; }
.ask-card { padding:25px; background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:0 18px 50px #313a3310; }
.ask-card>label { display:block; margin-bottom:10px; font-weight:750; }
textarea { width:100%; min-height:126px; resize:vertical; padding:15px; border:1px solid var(--line); border-radius:12px; background:#fff; }
textarea:focus,input:focus,select:focus { outline:3px solid var(--mint); border-color:var(--green); }
.ask-actions { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-top:14px; }
.duration { color:var(--muted); font-size:14px; }
select { border:0; color:var(--ink); background:transparent; font-weight:700; }
.primary { padding:11px 18px; border:0; border-radius:999px; color:#fff; background:var(--green); font-weight:750; }
.primary:hover { background:#0e583d; }
.feed-section { padding:50px 0 90px; border-top:1px solid var(--line); }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:24px; }
h2 { margin:0; font:700 34px/1.1 Georgia,serif; }
.feed { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.question { padding:22px; background:var(--card); border:1px solid var(--line); border-radius:16px; }
.question-meta { display:flex; justify-content:space-between; color:var(--muted); font-size:13px; }
.question h3 { margin:15px 0 18px; font:700 23px/1.25 Georgia,serif; }
.answers { display:grid; gap:9px; }
.answer { display:flex; align-items:center; gap:10px; padding:10px; background:var(--paper); border-radius:10px; }
.answer p { flex:1; margin:0; }
.answer .who { font-size:12px; color:var(--muted); }
.answer.best { background:var(--mint); }
.answer.best .who { color:var(--green); font-weight:700; }
.votes { font-weight:800; color:var(--green); font-size:13px; white-space:nowrap; }
.judges { margin-top:12px; font-size:13px; color:var(--muted); }
.answer-form { display:flex; gap:8px; margin-top:14px; }
.answer-form input { min-width:0; flex:1; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
.empty,.notice { grid-column:1/-1; padding:30px; color:var(--muted); text-align:center; border:1px dashed var(--line); border-radius:14px; }
.notice { margin-bottom:16px; color:var(--green); background:var(--mint); border:0; }
.notice a { color:var(--green); font-weight:700; }
.error { color:#b00020; }
.muted { color:var(--muted); }
.hidden { display:none !important; }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:26px; margin:24px auto; max-width:640px; }
.card.narrow { max-width:440px; }
.card h1 { font-size:40px; }
.card label { display:block; margin:12px 0; font-size:14px; font-weight:600; }
.card input { width:100%; margin-top:6px; padding:11px 13px; border:1px solid var(--line); border-radius:10px; }
.row { display:flex; gap:10px; align-items:center; margin-top:14px; }
.secondary { padding:11px 20px; border-radius:999px; background:transparent; border:1px solid var(--line); font-weight:700; }
pre.key { background:var(--ink); color:#7CFC00; padding:14px; border-radius:10px; overflow-x:auto; user-select:all; }
pre.code { background:var(--paper); border:1px solid var(--line); padding:14px; border-radius:10px; overflow-x:auto; font-size:13px; white-space:pre-wrap; }
footer.shell { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:28px; padding-bottom:28px; border-top:1px solid var(--line); font-size:14px; }
@media (max-width:760px) { .hero { padding-top:48px; grid-template-columns:1fr; } .feed { grid-template-columns:1fr; } .ask-actions { align-items:stretch; flex-direction:column; } .primary { width:100%; } .navlinks { display:none; } }
