/* ============================================================
   The Poo Poo Club — Shared Stylesheet
   An esteemed society. A ridiculous subject. Treated with the
   utmost gravity.
   ============================================================ */

:root {
  --brown-900: #241611;
  --brown-800: #33221a;
  --brown-700: #4a3225;
  --brown-600: #6b4a34;
  --brown-500: #8a6244;
  --cream-50: #faf5ec;
  --cream-100: #f3e9d7;
  --cream-200: #e8d9be;
  --gold-500: #c8a04a;
  --gold-400: #d9b968;
  --gold-300: #e8d29a;
  --ink: #2a1c14;
  --muted: #7c6552;
  --paper: #fbf7ef;
  --shadow: 0 20px 60px -25px rgba(36, 22, 17, 0.55);
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--brown-900); }

a { color: var(--brown-700); }

img { max-width: 100%; display: block; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-500);
  margin: 0 0 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brown-900);
  box-shadow: 0 12px 30px -12px rgba(200, 160, 74, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(200, 160, 74, 0.95); }
.btn-ghost {
  background: transparent;
  color: var(--cream-50);
  border: 1px solid rgba(232, 210, 154, 0.5);
}
.btn-ghost:hover { background: rgba(232, 210, 154, 0.12); }
.btn-dark { background: var(--brown-800); color: var(--cream-50); }
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 22, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 160, 74, 0.25);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand .seal { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.brand-name { font-family: var(--serif); color: var(--cream-50); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-400); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--cream-100);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.2rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold-400);
  transition: width 0.2s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-300); }

.nav-toggle { display: none; background: none; border: none; color: var(--cream-50); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--cream-50);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(200,160,74,0.25), transparent 60%),
    linear-gradient(160deg, var(--brown-900), var(--brown-700) 60%, var(--brown-800));
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(232,210,154,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding: 3.2rem 0 5rem; text-align: center; }
.crest { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 1.4rem; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55)); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--cream-50); margin: 0 0 0.4rem; }
.hero .motto { font-family: var(--serif); font-style: italic; color: var(--gold-300); font-size: 1.2rem; margin-bottom: 1.4rem; }
.hero p.lead { max-width: 640px; margin: 0 auto 2.2rem; color: var(--cream-100); font-size: 1.1rem; }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.est-line { margin-top: 2.6rem; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(232,210,154,0.7); }

/* ---------- Wax seal (for light sections) ---------- */
.wax { width: 130px; height: auto; filter: drop-shadow(0 8px 16px rgba(60,10,10,0.28)); }
.wax-center { display: block; margin: 0 auto; }
.wax-sign { text-align: center; margin-top: 2.6rem; }
.wax-sign .wax { display: block; margin: 0 auto; transition: transform 0.4s ease; }
.wax-sign:hover .wax { transform: rotate(-5deg) scale(1.05); }
.wax-sign p { font-family: var(--serif); font-style: italic; color: var(--brown-500); margin: 0.6rem 0 0; font-size: 0.92rem; }
.wax-stamp {
  position: absolute; width: 118px; height: auto; top: -42px; right: -26px;
  transform: rotate(9deg); pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(60,10,10,0.35));
}
@media (max-width: 860px) {
  .wax-stamp { width: 84px; top: -30px; right: -6px; }
  .wax { width: 108px; }
}

/* ---------- Section basics ---------- */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.alt { background: linear-gradient(180deg, var(--cream-50), var(--cream-100)); }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 10px 30px -22px rgba(36,22,17,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brown-700), var(--brown-500));
  color: var(--gold-300); font-size: 1.6rem; margin-bottom: 1rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--brown-900); color: var(--cream-100); }
.manifesto .container { max-width: 780px; text-align: center; }
.manifesto h2 { color: var(--cream-50); }
.manifesto blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5; color: var(--gold-300);
  margin: 1.5rem 0; border: none;
}
.manifesto .sig { color: var(--cream-200); letter-spacing: 0.06em; }

/* ---------- Membership tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; align-items: stretch; }
.tier {
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
}
.tier.featured {
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow);
  position: relative;
}
.tier.featured::before {
  content: "Most Distinguished";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brown-900); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.tier .price { font-family: var(--serif); font-size: 2.2rem; color: var(--brown-800); margin: 0.4rem 0; }
.tier .price small { font-size: 0.9rem; color: var(--muted); font-family: var(--sans); }
.tier ul { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.tier li { padding: 0.5rem 0; border-bottom: 1px dashed var(--cream-200); color: var(--muted); font-size: 0.95rem; }
.tier li::before { content: "✦"; color: var(--gold-500); margin-right: 0.6rem; }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--paper); border-left: 4px solid var(--gold-500); border-radius: 10px; padding: 1.6rem; box-shadow: 0 10px 30px -24px rgba(0,0,0,0.5); }
.quote-card p { font-style: italic; color: var(--brown-800); margin: 0 0 1rem; }
.quote-card .who { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--brown-600),var(--brown-500)); color: var(--cream-50); display: grid; place-items: center; font-weight: 700; }
.who b { display: block; font-size: 0.95rem; color: var(--brown-900); }
.who span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-500); line-height: 1; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  color: var(--cream-50);
  background: linear-gradient(160deg, var(--brown-900), var(--brown-700));
  padding: 4rem 0 3.4rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(200,160,74,0.25);
}
.page-head h1 { color: var(--cream-50); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.4rem 0; }
.page-head p { color: var(--cream-100); max-width: 620px; margin: 0.6rem auto 0; }

/* ---------- Forms ---------- */
.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 10px 30px -24px rgba(36,22,17,0.5);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brown-700); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--cream-200); border-radius: 10px;
  font-family: var(--sans); font-size: 0.98rem; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-400); border-color: var(--gold-400); }
.field textarea { min-height: 110px; resize: vertical; }

/* Ensure native dropdown option lists are always solid and legible
   (some Chromium/Electron builds render option popups transparent). */
select { color: var(--ink); }
select option, select optgroup { background-color: var(--paper); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Star rating input */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 0.2rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.6rem; color: var(--cream-200); cursor: pointer; transition: color 0.15s; margin: 0; }
.rating-input input:checked ~ label,
.rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold-500); }

/* ---------- Log entries ---------- */
.log-toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.log-toolbar .filters { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.log-toolbar select { padding: 0.55rem 0.8rem; border-radius: 999px; border: 1px solid var(--cream-200); background: #fff; font-family: var(--sans); }

.entry {
  background: var(--paper); border: 1px solid var(--cream-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 10px 30px -24px rgba(36,22,17,0.5);
  display: flex; flex-direction: column;
}
.entry .thumb { height: 170px; background: linear-gradient(135deg,var(--brown-600),var(--brown-800)); display: grid; place-items: center; font-size: 3rem; }
.entry .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry .body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.entry .cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.entry h3 { margin: 0.3rem 0; font-size: 1.15rem; }
.entry .stars { color: var(--gold-500); letter-spacing: 0.1em; }
.entry .notes { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0; flex: 1; }
.entry .meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--cream-200); padding-top: 0.7rem; }
.entry .del { background: none; border: none; color: #a3543f; cursor: pointer; font-size: 0.8rem; }
.entry .del:hover { text-decoration: underline; }

/* ---------- Forum ---------- */
.thread {
  background: var(--paper); border: 1px solid var(--cream-200); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 1rem; box-shadow: 0 10px 30px -26px rgba(0,0,0,0.5);
}
.thread .thread-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.thread h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.thread .byline { font-size: 0.8rem; color: var(--muted); }
.thread .content { margin: 0.7rem 0; color: var(--brown-800); }
.thread .thread-actions { display: flex; gap: 1rem; align-items: center; font-size: 0.85rem; }
.thread .thread-actions button { background: none; border: none; cursor: pointer; color: var(--brown-700); font-weight: 600; font-size: 0.85rem; }
.thread .thread-actions button:hover { color: var(--gold-500); }
.replies { margin-top: 1rem; border-top: 1px dashed var(--cream-200); padding-top: 0.8rem; }
.reply { padding: 0.6rem 0; border-bottom: 1px dashed var(--cream-100); }
.reply:last-child { border-bottom: none; }
.reply .byline { font-size: 0.75rem; color: var(--muted); }
.reply p { margin: 0.2rem 0 0; font-size: 0.95rem; }
.reply-form { margin-top: 0.8rem; display: none; }
.reply-form.open { display: block; }
.reply-form textarea { min-height: 70px; }

/* ============================================================
   THE CHAMBER — lived-in forum
   ============================================================ */
.chamber-stats-section { padding: 2.4rem 0 0; }
.chamber-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: linear-gradient(150deg, var(--brown-900), var(--brown-700));
  border: 1px solid rgba(200,160,74,0.3); border-radius: var(--radius);
  padding: 1.4rem 1rem; box-shadow: var(--shadow);
}
.chamber-stats .cstat { text-align: center; }
.chamber-stats .cnum { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--gold-400); line-height: 1.1; }
.chamber-stats .clabel { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-200); margin-top: 0.3rem; }

.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.forum-main { min-width: 0; }

/* New-thread collapsible */
.new-thread { margin-bottom: 1.4rem; padding: 0; }
.new-thread > summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--brown-900);
  display: flex; align-items: center; gap: 0.6rem;
}
.new-thread > summary::-webkit-details-marker { display: none; }
.new-thread[open] > summary { border-bottom: 1px solid var(--cream-200); }
.new-thread .nt-plus { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-500); color: var(--brown-900); font-weight: 800; }
.new-thread form { padding: 0 1.4rem 1.4rem; }

/* Toolbar */
.forum-toolbar { display: flex; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.forum-search { flex: 1; min-width: 200px; padding: 0.7rem 1rem; border: 1px solid var(--cream-200); border-radius: 999px; font-family: var(--sans); font-size: 0.95rem; background: #fff; }
.forum-search:focus { outline: 2px solid var(--gold-400); border-color: var(--gold-400); }
.forum-filters { display: flex; gap: 0.6rem; }
.forum-filters select { padding: 0.6rem 0.9rem; border-radius: 999px; border: 1px solid var(--cream-200); background: #fff; font-family: var(--sans); font-size: 0.9rem; }
.forum-resultcount { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }

/* Thread cards */
.thread { padding: 1.4rem 1.6rem; }
.thread-top { display: flex; gap: 0.9rem; align-items: flex-start; }
.thread-headinfo { min-width: 0; flex: 1; }
.thread-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.badge { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.badge-cat { background: var(--cream-100); color: var(--brown-700); border: 1px solid var(--cream-200); }
.badge-pin { background: var(--gold-500); color: var(--brown-900); }
.badge-you { background: var(--brown-700); color: var(--cream-50); }
.thread h3 { margin: 0.1rem 0 0.2rem; font-size: 1.2rem; }
.thread .byline { font-size: 0.8rem; color: var(--muted); }
.thread .content { margin: 0.8rem 0; color: var(--brown-800); }

.thread-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--cream-200); border-bottom: 1px dashed var(--cream-200); padding: 0.6rem 0; margin-bottom: 0.4rem; flex-wrap: wrap; }
.thread-meta .grow { flex: 1; }

.replies { margin-top: 0.6rem; border: none; padding: 0; }
.reply { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--cream-100); align-items: flex-start; }
.reply:last-child { border-bottom: none; }
.reply-body { min-width: 0; flex: 1; }
.reply .byline { font-size: 0.76rem; color: var(--muted); }
.reply .byline strong { color: var(--brown-800); }
.reply p { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--brown-800); }
.reply-likes { color: #a3543f; }
.no-replies { color: var(--muted); font-style: italic; font-size: 0.9rem; margin: 0.4rem 0; }

.show-more { display: inline-block; background: none; border: none; color: var(--brown-700); font-weight: 600; font-size: 0.84rem; cursor: pointer; padding: 0.4rem 0; }
.show-more:hover { color: var(--gold-500); }

.thread-actions { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.ta-btn { background: var(--cream-100); border: 1px solid var(--cream-200); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.84rem; font-weight: 600; color: var(--brown-700); cursor: pointer; }
.ta-btn:hover { background: var(--cream-200); }
.ta-btn.danger { color: #a3543f; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.3rem; margin-top: 1.8rem; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; padding: 0 0.6rem; border: 1px solid var(--cream-200); background: #fff; border-radius: 10px; font-family: var(--sans); font-weight: 600; color: var(--brown-700); cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: var(--gold-400); }
.page-btn.active { background: var(--brown-800); color: var(--cream-50); border-color: var(--brown-800); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-gap { padding: 0 0.3rem; color: var(--muted); }

/* Sidebar widgets */
.forum-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.2rem; }
.widget { background: var(--paper); border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 10px 30px -26px rgba(0,0,0,0.5); }
.widget-title { margin: 0 0 0.9rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--gold-600, var(--gold-500)); border-bottom: 1px solid var(--cream-200); padding-bottom: 0.6rem; }
.fellow-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; }
.fellow-ava { position: relative; display: inline-block; }
.online-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #5aab5a; border: 2px solid var(--paper); }
.fellow-meta { display: flex; flex-direction: column; min-width: 0; }
.fellow-meta b { font-size: 0.86rem; color: var(--brown-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.fellow-meta span { font-size: 0.72rem; color: var(--muted); }
.disc-row { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--cream-100); text-decoration: none; }
.disc-row:last-child { border-bottom: none; }
.disc-title { color: var(--brown-800); font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.disc-row:hover .disc-title { color: var(--gold-500); }
.disc-count { font-size: 0.72rem; color: var(--muted); }
.cat-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.45rem 0; text-decoration: none; color: var(--brown-800); font-size: 0.86rem; border-bottom: 1px dashed var(--cream-100); }
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { color: var(--gold-500); }
.cat-count { background: var(--cream-100); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.72rem; font-weight: 700; color: var(--brown-600); }

@media (max-width: 960px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-side { position: static; flex-direction: column; }
}
@media (max-width: 620px) {
  .chamber-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem 0.4rem; }
  .chamber-stats .cnum { font-size: 1.35rem; }
}

/* ---------- Home: Live from The Chamber ---------- */
.home-chamber { background: linear-gradient(160deg, var(--brown-900), var(--brown-700)); color: var(--cream-100); position: relative; overflow: hidden; }
.home-chamber::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(232,210,154,0.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.home-chamber .container { position: relative; z-index: 2; }
.home-chamber-stats { display: flex; justify-content: center; gap: 2.6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.home-chamber-stats .hs { text-align: center; }
.home-chamber-stats .hn { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--gold-400); line-height: 1.1; }
.home-chamber-stats .hl { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-200); margin-top: 0.3rem; }
.home-feed { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.feed-row { display: flex; align-items: center; gap: 0.9rem; background: rgba(250,247,239,0.05); border: 1px solid rgba(200,160,74,0.25); border-radius: 12px; padding: 0.85rem 1.1rem; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease; }
.feed-row:hover { background: rgba(250,247,239,0.1); transform: translateX(3px); }
.feed-main { min-width: 0; flex: 1; }
.feed-title { color: var(--cream-50); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sub { font-size: 0.76rem; color: var(--cream-200); margin-top: 0.15rem; }
.feed-cat { color: var(--gold-300); }
.feed-count { text-align: center; color: var(--gold-400); font-weight: 700; white-space: nowrap; }
.feed-count small { display: block; font-size: 0.62rem; color: var(--cream-200); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 620px) { .home-chamber-stats { gap: 1.4rem; } .feed-title { white-space: normal; } }

/* ---------- Articles (learn) ---------- */
.article { background: var(--paper); border: 1px solid var(--cream-200); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -26px rgba(0,0,0,0.5); }
.article .art-top { padding: 1.6rem 1.6rem 0; }
.article .kicker { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.article h3 { margin: 0.4rem 0 0.6rem; font-size: 1.35rem; }
.article .art-body { padding: 0 1.6rem 1.6rem; color: var(--muted); }
.article .art-body p { margin: 0 0 0.8rem; }
.article .footnote { font-size: 0.78rem; font-style: italic; color: var(--brown-500); border-top: 1px dashed var(--cream-200); padding-top: 0.7rem; margin-top: 0.4rem; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 2px dashed var(--cream-200); border-radius: var(--radius); }
.empty .big { font-size: 3rem; margin-bottom: 0.6rem; }

/* ---------- Notice ---------- */
.notice { background: var(--cream-100); border: 1px solid var(--cream-200); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.85rem; color: var(--brown-700); margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--brown-900); color: var(--cream-200);
  padding: 3.4rem 0 1.6rem; margin-top: 2rem;
  border-top: 3px solid var(--gold-500);
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer.site .brand-name { color: var(--cream-50); }
footer.site h4 { color: var(--gold-300); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin: 0 0 0.8rem; }
footer.site a { color: var(--cream-200); text-decoration: none; display: block; padding: 0.25rem 0; font-size: 0.9rem; }
footer.site a:hover { color: var(--gold-300); }
footer.site .fine { text-align: center; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(232,210,154,0.15); font-size: 0.78rem; color: rgba(243,233,215,0.6); }
footer.site .motto-sm { font-family: var(--serif); font-style: italic; color: var(--gold-300); }

/* ---------- Specimen of the Month ---------- */
.sotm { background: var(--brown-900); color: var(--cream-100); position: relative; overflow: hidden; }
.sotm::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(232,210,154,0.07) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.sotm .container { position: relative; z-index: 2; }
.sotm-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: stretch;
  background: linear-gradient(150deg, var(--brown-800), var(--brown-700));
  border: 1px solid rgba(200,160,74,0.4);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.sotm-plate {
  background: linear-gradient(135deg, var(--brown-600), var(--brown-900));
  display: grid; place-items: center; font-size: 5rem; position: relative;
  border-right: 1px solid rgba(200,160,74,0.3);
}
.sotm-plate img { width: 100%; height: 100%; object-fit: cover; }
.sotm-ribbon {
  position: absolute; top: 14px; left: -34px; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brown-900); font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 3rem; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.sotm-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.sotm-body .when { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.sotm-body h3 { color: var(--cream-50); font-size: 1.9rem; margin: 0.4rem 0 0.2rem; }
.sotm-body .cat { color: var(--gold-300); font-size: 0.85rem; font-style: italic; margin-bottom: 0.6rem; }
.sotm-body .stars { color: var(--gold-500); font-size: 1.3rem; letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.sotm-body .notes { color: var(--cream-200); margin: 0 0 1rem; max-width: 60ch; }
.sotm-body .tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; background: rgba(232,210,154,0.14); color: var(--gold-300); border: 1px solid rgba(200,160,74,0.35); }
.sotm-note { text-align: center; color: rgba(243,233,215,0.6); font-size: 0.82rem; font-style: italic; margin-top: 1.4rem; }

/* ---------- Interactive Bristol Chart ---------- */
.bristol { background: var(--paper); border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 10px 30px -24px rgba(36,22,17,0.5); margin-bottom: 2.4rem; }
.bristol-head { text-align: center; margin-bottom: 1.4rem; }
.bristol-head h3 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.bristol-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.bristol-types { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem; }
.bristol-type {
  cursor: pointer; border: 1px solid var(--cream-200); background: var(--cream-50);
  border-radius: 12px; padding: 1rem 0.4rem; text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--sans);
}
.bristol-type:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bristol-type.active { border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 2px var(--gold-400) inset; }
.bristol-type .glyph { font-size: 1.8rem; line-height: 1; }
.bristol-type .tnum { display: block; font-family: var(--serif); font-weight: 700; color: var(--brown-800); margin-top: 0.4rem; font-size: 0.95rem; }
.bristol-type .tname { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.2; }
.bristol-detail {
  margin-top: 1.4rem; border-top: 1px dashed var(--cream-200); padding-top: 1.4rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center;
}
.bristol-detail .big-glyph {
  font-size: 3.4rem; width: 92px; height: 92px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brown-700), var(--brown-500));
  border-radius: 14px; color: var(--gold-300);
}
.bristol-detail h4 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.bristol-detail .verdict { display: inline-block; background: var(--cream-100); border: 1px solid var(--cream-200); color: var(--brown-700); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.5rem; }
.bristol-detail p { margin: 0.3rem 0; color: var(--muted); }
.bristol-detail .tone { font-style: italic; color: var(--brown-600); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; height: 100dvh; width: 74vw; max-width: 320px;
    z-index: 55; overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: var(--brown-900); padding: 5rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform 0.25s ease;
    box-shadow: -20px 0 60px -30px rgba(0,0,0,0.8);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 0.6rem 0; width: 100%; border-bottom: 1px solid rgba(232,210,154,0.12); }
  .nav-toggle { display: block; z-index: 60; }
  .grid-3, .grid-4, .tiers, .stats, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .field-row { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .sotm-card { grid-template-columns: 1fr; }
  .sotm-plate { min-height: 200px; }
  .bristol-types { grid-template-columns: repeat(4, 1fr); }
  .bristol-detail { grid-template-columns: 1fr; text-align: center; }
  .bristol-detail .big-glyph { margin: 0 auto; }
}

@media (max-width: 520px) {
  .bristol-types { grid-template-columns: repeat(2, 1fr); }
}
