/* Forum governance: compact "who decides what" block in the site's premium language —
   deep purple fact cards with a gold rule and a watermark sign, a white ledger table with hairlines,
   one sources disclosure. Matte surfaces, one soft shadow per card, native disclosures.
   Markup is generated by scripts/build-forum-governance.py — edit the generator, not the pages. */
.forum-governance { --fg-max:1280px; --fg-gutter:32px; --fg-h2:32px; --fg-h2-track:-.025em; --fg-ease:cubic-bezier(.2,.7,.2,1); background:#ebebeb; color:#505050; padding:72px 0; font-family:'Inter',Arial,sans-serif; text-align:left; scroll-margin-top:150px; position:relative; }
/* Each page keeps its own column: the block starts exactly under the neighbouring section headings. */
#hierarchy.forum-governance { --fg-max:1248px; --fg-gutter:24px; --fg-h2-track:0em; background:#ebebeb; color:#505050; padding:72px 0; }
#hierarchy.forum-governance::before { display:none; }
.forum-governance.fg-white { --fg-gutter:40px; --fg-h2:clamp(28px,3vw,38px); --fg-h2-track:-.035em; background:#fff; }
.forum-governance .fg-container { box-sizing:border-box; max-width:var(--fg-max); margin:0 auto; padding-inline:var(--fg-gutter); }
.forum-governance .fg-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Heading */
.forum-governance .fg-heading { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:8px 32px; margin:0 0 28px; }
.fg-heading-text { min-width:0; flex:1 1 560px; }
.forum-governance .fg-eyebrow { display:flex; align-items:center; gap:12px; color:#361163; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; line-height:1.4; margin:0 0 14px; }
.forum-governance .fg-eyebrow::before { content:''; flex:none; width:28px; height:2px; background:#C0A582; }
.forum-governance h2 { color:#361163; font-size:var(--fg-h2); line-height:1.2; margin:0 0 12px; font-weight:700; text-transform:none; letter-spacing:var(--fg-h2-track); }
.forum-governance h3 { color:#361163; font-size:20px; line-height:1.3; margin:0 0 6px; font-weight:700; text-transform:none; letter-spacing:-.01em; }
.forum-governance p { font-size:15px; line-height:1.45; margin:0 0 12px; color:#505050; }
.forum-governance .fg-lead { max-width:900px; font-size:18px; line-height:1.4; margin:0; }
.forum-governance .fg-navigation { flex:none; display:inline-flex; align-items:center; gap:10px; min-height:44px; margin-bottom:-10px; color:#361163; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; }
.forum-governance .fg-navigation > span { display:grid; place-items:center; width:30px; height:30px; border:1px solid #361163; border-radius:50%; font-size:15px; letter-spacing:0; line-height:1; transition:background-color .25s ease,color .25s ease,translate .25s var(--fg-ease); }
.forum-governance .fg-navigation:hover > span { background:#361163; color:#fff; translate:4px 0; }

/* Three facts */
.fg-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto auto 1fr; gap:0 20px; }
.fg-fact { position:relative; overflow:hidden; display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; padding:22px 26px 22px; background:#361163; border-top:3px solid #C0A582; border-radius:10px; box-shadow:0 10px 28px rgba(54,17,99,.14); transition:transform .3s var(--fg-ease); }
.fg-fact:hover { transform:translateY(-4px); }
.fg-fact-icon { position:absolute; top:18px; right:18px; width:44px; height:44px; color:#C0A582; opacity:.24; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; transition:opacity .3s ease,transform .3s var(--fg-ease); }
.fg-fact:hover .fg-fact-icon { opacity:.42; transform:scale(1.06) rotate(-4deg); }
.forum-governance .fg-fact-label { padding-right:56px; color:#C0A582; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.4; margin:0 0 12px; }
.forum-governance .fg-fact-value { color:#fff; font-size:22px; font-weight:700; line-height:1.25; letter-spacing:-.015em; margin:0 0 8px; }
.forum-governance .fg-fact-value::before { content:''; display:block; width:32px; height:2px; margin-bottom:12px; background:#C0A582; }
.forum-governance .fg-fact-note { margin:0; color:#ebebeb; }

/* Who decides what: a ledger. Open on desktop (the summary is hidden there); a phone folds it by script. */
.fg-decisions { margin:24px 0 0; }
.fg-decisions > summary { display:none; }
.fg-matrix { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; margin:0; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 10px 28px rgba(54,17,99,.08); font-size:15px; line-height:1.45; }
.fg-matrix th,.fg-matrix td { padding:14px 20px; text-align:left; vertical-align:top; font-family:inherit; }
.fg-matrix thead th { padding-block:16px 14px; background:#fff; color:#361163; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.4; border:0; border-bottom:2px solid #361163; }
.fg-matrix thead th:first-child { width:20%; padding-left:24px; color:#505050; }
.fg-matrix thead th:nth-child(n+2)::before,.fg-side::before { content:''; display:inline-block; width:8px; height:8px; margin-right:10px; background:#C0A582; }
.fg-matrix thead th:nth-child(3)::before { background:#361163; }
.fg-matrix tbody th { position:relative; padding-left:24px; padding-right:4px; color:#361163; font-size:15px; font-weight:700; letter-spacing:-.005em; border-top:1px solid #ebebeb; background:#fff; }
.fg-matrix tbody th::before { content:''; position:absolute; left:0; top:16px; width:3px; height:18px; background:#C0A582; transition:top .3s var(--fg-ease),height .3s var(--fg-ease); }
.fg-matrix tbody tr:hover th::before { top:0; height:100%; }
.fg-matrix tbody td { color:#505050; border-top:1px solid #ebebeb; border-left:1px solid #ebebeb; background:#fff; }
.fg-matrix tbody tr:first-child th,.fg-matrix tbody tr:first-child td { border-top:0; }
.fg-side { display:none; }
.fg-dash { color:#505050; }

/* Disclosures */
.fg-sources { margin:20px 0 0; background:#fff; border-radius:10px; box-shadow:0 10px 28px rgba(54,17,99,.08); }
.fg-sources > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:56px; padding:12px 22px 12px 26px; cursor:pointer; list-style:none; color:#361163; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; line-height:1.4; scroll-margin-top:150px; }
.forum-governance summary::-webkit-details-marker { display:none; }
.forum-governance summary::after { content:'+'; flex:none; display:grid; place-items:center; width:30px; height:30px; border:1px solid #361163; border-radius:50%; font-size:18px; font-weight:400; letter-spacing:0; line-height:1; transition:background-color .25s ease,color .25s ease; }
.forum-governance summary:hover::after { background:#361163; color:#fff; }
.forum-governance details[open] > summary::after { content:'\2212'; }
.forum-governance details[open] > summary { border-bottom:1px solid #ebebeb; }
.fg-sources-body { padding:10px 26px 22px; }
.fg-reflist { list-style:none; margin:0; padding:0; }
.fg-reflist li { display:grid; grid-template-columns:300px minmax(0,1fr); gap:0 24px; align-items:baseline; padding:6px 0; border-top:1px solid #ebebeb; }
.fg-reflist li:first-child { border-top:0; }
.fg-ref-topic { color:#361163; font-size:15px; font-weight:700; line-height:1.45; }
.fg-ref-links { display:flex; flex-wrap:wrap; gap:0 24px; }
.forum-governance .fg-source { display:inline-flex; align-items:center; min-height:32px; font-size:13px; font-weight:700; line-height:1.4; color:#361163; text-decoration:underline; text-decoration-color:#C0A582; text-underline-offset:4px; overflow-wrap:anywhere; }
.forum-governance .fg-source:hover { text-decoration-color:#361163; }
.fg-notes { margin-top:16px; max-width:960px; }
.forum-governance .fg-notes p { margin:0 0 8px; }
.forum-governance .fg-notes p:last-child { margin-bottom:0; }
.forum-governance .fg-notes .fg-reviewed { margin-top:12px; font-size:13px; line-height:1.4; }
.forum-governance a:focus-visible,.forum-governance summary:focus-visible { outline:3px solid #361163; outline-offset:4px; border-radius:3px; }

/* about.html: structure diagram and links to the forum pages */
.fg-structure { display:grid; gap:16px; }
.fg-institute,.fg-chapter { padding:20px 26px; background:#361163; border-radius:10px; box-shadow:0 10px 28px rgba(54,17,99,.14); }
.fg-institute { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 24px; align-items:center; border-top:3px solid #C0A582; }
.fg-institute > h3,.fg-institute > p { grid-column:1; }
.fg-institute > .fg-source { grid-column:2; grid-row:1 / span 2; }
.forum-governance .fg-institute h3,.forum-governance .fg-chapter h3 { color:#fff; }
.forum-governance .fg-institute p,.forum-governance .fg-chapter p { color:#ebebeb; }
.forum-governance .fg-structure p { margin:0; }
.fg-lanes { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fg-lanes > article { position:relative; padding:20px 26px; background:#fff; border:1px solid #C0A582; border-radius:10px; }
.fg-lanes > article::before,.fg-lanes > article::after { content:''; position:absolute; left:26px; width:2px; height:16px; background:#C0A582; }
.fg-lanes > article::before { top:-17px; }
.fg-lanes > article::after { bottom:-17px; }
.forum-governance .fg-institute .fg-source { color:#fff; }
.fg-institute a:focus-visible { outline-color:#fff; }
.forum-governance .fg-context { margin:22px 0 18px; max-width:960px; }
.fg-forumlinks { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.forum-governance .fg-forumlink { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 20px; align-items:center; padding:20px 26px 22px; background:#fff; border-top:3px solid #C0A582; border-radius:10px; box-shadow:0 10px 28px rgba(54,17,99,.08); color:#505050; text-decoration:none; transition:transform .3s var(--fg-ease); }
.fg-forumlink-title { grid-column:1; color:#361163; font-size:20px; font-weight:700; line-height:1.3; letter-spacing:-.01em; }
.fg-forumlink-text { grid-column:1; font-size:15px; line-height:1.45; }
.fg-forumlink-arrow { grid-column:2; grid-row:1 / span 2; display:grid; place-items:center; width:40px; height:40px; border:1px solid #361163; border-radius:50%; color:#361163; font-size:18px; line-height:1; transition:background-color .25s ease,color .25s ease,translate .25s var(--fg-ease); }
.forum-governance .fg-forumlink:hover { transform:translateY(-4px); }
.forum-governance .fg-forumlink:hover .fg-forumlink-arrow { background:#361163; color:#fff; translate:4px 0; }

/* Entrance: the script adds .fg-anim, then .is-in once the block is on screen. Without JS nothing is hidden. */
.fg-anim .fg-fact,.fg-anim .fg-decisions,.fg-anim .fg-sources,.fg-anim .fg-structure > *,.fg-anim .fg-forumlink,.fg-anim .fg-context { opacity:0; translate:0 18px; transition:opacity .6s ease var(--fg-delay,0s),translate .6s var(--fg-ease) var(--fg-delay,0s),transform .3s var(--fg-ease); }
.fg-anim.is-in .fg-fact,.fg-anim.is-in .fg-decisions,.fg-anim.is-in .fg-sources,.fg-anim.is-in .fg-structure > *,.fg-anim.is-in .fg-forumlink,.fg-anim.is-in .fg-context { opacity:1; translate:0 0; }
.fg-anim .fg-fact:nth-child(2),.fg-anim .fg-lanes,.fg-anim .fg-forumlink:nth-child(2) { --fg-delay:.08s; }
.fg-anim .fg-fact:nth-child(3),.fg-anim .fg-chapter { --fg-delay:.16s; }
.fg-anim .fg-decisions,.fg-anim .fg-context { --fg-delay:.22s; }
.fg-anim .fg-sources { --fg-delay:.3s; }
@media (prefers-reduced-motion:reduce) {
  .forum-governance *,.forum-governance *::before,.forum-governance *::after { transition:none !important; }
  .fg-fact:hover,.forum-governance .fg-forumlink:hover { transform:none; }
}
@media print {
  .fg-anim .fg-fact,.fg-anim .fg-decisions,.fg-anim .fg-sources,.fg-anim .fg-structure > *,.fg-anim .fg-forumlink,.fg-anim .fg-context { opacity:1; translate:0 0; }
}

@media (max-width:1050px) {
  .forum-governance.fg-white { --fg-gutter:32px; }
  .fg-reflist li { grid-template-columns:1fr; }
  .forum-governance .fg-fact-value { font-size:20px; }
}
@media (max-width:760px) {
  .forum-governance,#hierarchy.forum-governance { padding:48px 0; --fg-h2:28px; }
  .forum-governance.fg-white { --fg-gutter:24px; }
  .forum-governance .fg-heading { margin-bottom:22px; }
  .forum-governance .fg-lead { font-size:16px; }
  .forum-governance:not(#hierarchy) .fg-lead { display:none; }
  .forum-governance:not(#hierarchy) h2 { margin-bottom:0; }
  .forum-governance .fg-navigation { margin-bottom:0; }
  .fg-facts { grid-template-columns:1fr; grid-template-rows:none; gap:10px; }
  .fg-fact { display:block; padding:18px 20px 20px; }
  .fg-fact-icon { top:14px; right:14px; width:36px; height:36px; }
  .forum-governance .fg-fact-label { margin-bottom:10px; padding-right:44px; }
  .forum-governance .fg-fact-value { font-size:20px; margin-bottom:6px; }
  .forum-governance .fg-fact-value::before { margin-bottom:10px; }
  /* The table becomes one card per decision; each cell carries its side label. */
  .fg-decisions { margin-top:12px; background:#fff; border-radius:10px; box-shadow:0 10px 28px rgba(54,17,99,.08); }
  .fg-decisions > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:56px; padding:12px 16px 12px 20px; cursor:pointer; list-style:none; color:#361163; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; line-height:1.4; }
  .fg-matrix { display:block; background:transparent; border-radius:0; overflow:visible; box-shadow:none; }
  .fg-matrix thead { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); }
  .fg-matrix tbody,.fg-matrix tr,.fg-matrix tbody th,.fg-matrix tbody td { display:block; }
  .fg-matrix tbody tr { position:relative; padding:16px 20px 18px; border-top:1px solid #ebebeb; }
  .fg-matrix tbody tr:first-child { border-top:0; }
  .fg-matrix tbody th,.fg-matrix tbody td { padding:0; border:0; background:transparent; }
  .fg-matrix tbody th { position:static; font-size:16px; line-height:1.3; }
  .fg-matrix tbody th::before { top:16px; height:21px; }
  .fg-matrix tbody tr:hover th::before { top:16px; height:21px; }
  .fg-matrix tbody td { margin-top:10px; }
  .fg-matrix tbody td.fg-none { display:none; }
  .fg-side { display:block; margin-bottom:2px; color:#361163; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; line-height:1.4; }
  .fg-matrix td:nth-child(3) .fg-side::before { background:#361163; }
  .fg-sources { margin-top:12px; }
  .fg-sources > summary { padding:12px 16px 12px 20px; }
  .fg-sources-body { padding:8px 20px 20px; }
  .forum-governance .fg-source { min-height:44px; }
  .fg-lanes,.fg-forumlinks { grid-template-columns:1fr; gap:12px; }
  .fg-structure { gap:12px; }
  .fg-lanes > article::before,.fg-lanes > article::after { display:none; }
  .fg-institute,.fg-chapter,.fg-lanes > article { padding:18px 20px; }
  .fg-institute { display:block; }
  .forum-governance .fg-forumlink { padding:18px 20px 20px; }
}
@media (max-width:639px) {
  #hierarchy.forum-governance { --fg-gutter:16px; --fg-h2:26px; }
}
@media (max-width:600px) {
  .forum-governance { --fg-gutter:20px; }
}
@media (max-width:380px) {
  .forum-governance.fg-white { --fg-gutter:20px; }
}
