/* ==========================================================================
   platform-theme.css — Institutional design layer v2.0
   International Discussion Initiative

   Loaded AFTER each page's own <style> block, so it restyles every page
   without touching any text, ids, forms, links or scripts.
   Direction: calm, diplomatic, document-first. Deep navy + restrained gold,
   serif headings and document text, generous whitespace, hairline rules.
   ========================================================================== */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-code: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --navy-950: #071a33;
  --navy-900: #0a2240;
  --navy-800: #11305a;
  --navy-100: #e6ecf5;
  --navy-50:  #f1f4f9;
  --gold:     #b8924a;
  --gold-soft:#e9dcc0;
  --gold-ink: #7a5c1e;

  --bg-page: #f4f5f7;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --text-main: #17202e;
  --text-muted: #566174;
  --text-light: #7b8596;
  --border-color: #dcdfe5;
  --accent: #14407a;
  --accent-hover: #0a2a56;
  --status-draft: #7a5c1e;
  --header-height: 76px;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(10, 34, 64, .05);
  --shadow-md: 0 6px 24px rgba(10, 34, 64, .07);
}

html { font-family: var(--font-sans); background: var(--bg-page); color: var(--text-main); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--bg-page); }
::selection { background: var(--gold-soft); color: var(--navy-950); }

h1, h2, h3,
.hero-headline-l1, .hero-headline-l2, .page-header-title, .section-title, .section-title-heading,
.section-heading, .main-title, .card-title, .block-title, .sidebar-title, .roadmap-main-title,
.map-main-title, .participant-title, .assoc-title, .modal-title, .option-title, .ahead-title {
  font-family: var(--font-serif);
  letter-spacing: -0.005em;
}

a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy-900);
  border-bottom: 0;
  box-shadow: 0 3px 0 var(--gold);
  padding: .65rem 0;
  min-height: var(--header-height);
}
.header-inner { max-width: 1480px; padding: 0 2rem; gap: 1rem 2rem; }
.brand-group { gap: .25rem; }
.brand-title {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-serif); font-size: .98rem; font-weight: 600;
  letter-spacing: .14em; color: #fff; text-transform: uppercase; line-height: 1.2;
}
.brand-title::before {
  content: ""; flex: 0 0 auto; width: 34px; height: 34px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9bd83' stroke-width='1.6'><circle cx='20' cy='20' r='17'/><ellipse cx='20' cy='20' rx='7.5' ry='17'/><path d='M3 20h34M5.5 11.5h29M5.5 28.5h29'/></svg>") center/contain no-repeat;
}
.brand-badge, .institutional-tag {
  font-family: var(--font-sans); letter-spacing: .02em; font-size: .68rem;
  color: var(--gold-soft); background: rgba(255,255,255,.08); border: 1px solid rgba(217,189,131,.4); border-radius: 2px; margin-left: calc(34px + .8rem);
}

.main-nav { gap: .15rem; align-items: center; }
.nav-card {
  background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 500; letter-spacing: .01em;
  padding: .55rem .85rem; min-height: 40px;
}
.nav-card:hover:not(.disabled) { background: rgba(255,255,255,.06); border-color: rgba(217,189,131,.5); color: #fff; }
.nav-card.active { background: transparent; color: #fff; border-color: var(--gold); box-shadow: none; font-weight: 600; }
.nav-card.disabled { background: transparent; color: rgba(255,255,255,.42); border-color: transparent; }
.btn-nav-join {
  background: transparent !important; color: var(--gold-soft) !important;
  border: 1px solid var(--gold) !important; border-radius: var(--radius); margin-left: .6rem;
  padding: .5rem 1rem !important; min-height: 38px; font-weight: 600; transition: background .15s, color .15s;
}
.btn-nav-join:hover { background: var(--gold) !important; color: var(--navy-950) !important; }
.participant-workspace-nav { margin-left: .5rem; }
.participant-workspace-nav .workspace-link { color: rgba(255,255,255,.7); font-size: .76rem; }
.participant-workspace-nav .workspace-link:hover { color: #fff; }
.participant-workspace-nav .workspace-primary { border: 1px solid var(--gold); color: var(--gold-soft); border-radius: var(--radius); }

/* Vertical side captions overlapped the page content — retired. */
.side-label-left, .side-label-right { display: none !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary, .btn-action, .btn-submit-inline, .btn-modal.primary, .btn-sidebar-primary,
.btn-open-draft, .btn-activate, .btn-collaborate.primary {
  background: var(--navy-900); color: #fff; border: 1px solid var(--navy-900); border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; box-shadow: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary:hover, .btn-action:hover, .btn-submit-inline:hover, .btn-modal.primary:hover,
.btn-sidebar-primary:hover, .btn-open-draft:hover, .btn-activate:hover, .btn-collaborate.primary:hover {
  background: var(--navy-800); border-color: var(--navy-800);
}
.btn-secondary, .btn-modal.secondary, .btn-sidebar-secondary, .btn-collaborate, .btn-support-inline {
  background: #fff; color: var(--navy-900); border: 1px solid #c5ccd8; border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 600; transition: background .15s, border-color .15s;
}
.btn-secondary:hover, .btn-sidebar-secondary:hover, .btn-collaborate:hover, .btn-support-inline:hover {
  background: var(--navy-50); border-color: var(--navy-800);
}
.btn-support-inline.supported, .btn-collaborate.supported { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn-collaborate.locked, .btn-submit-inline.locked, .btn-support-inline.locked { background: var(--bg-secondary); color: var(--text-light); border: 1px solid var(--border-color); }
.btn-open-draft { padding: .9rem 2.2rem; font-size: .95rem; }
.btn-action, .btn-secondary { padding: .65rem 1.1rem; }

/* --------------------------------------------------------------------------
   Cards — flat, hairline, no heavy colored bars
   -------------------------------------------------------------------------- */
.card-block, .info-card-block, .public-info-sidebar, .association-card, .participation-card, .naming-card,
.documents-card, .notifications-card, .activation-card, .roadmap-progress-section, .map-prototype-section,
.content-section, .institutional-header-card, .workspace-card, .assoc-card, .compact-card,
.doc-toc-sidebar, .right-discussion-sidebar {
  background: var(--bg-primary); border: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.public-info-sidebar { border-top: 3px solid var(--gold); padding: 1.75rem; }
.documents-card, .notifications-card, .activation-card, .institutional-header-card { border-top: 3px solid var(--navy-900); }

.block-title, .section-heading, .section-title, .map-header-row, .roadmap-header-row {
  border-bottom-color: var(--border-color);
}
.block-title { color: var(--navy-900); font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.block-text, .hero-paragraph, .sub-list, .intro-paragraph { color: #2b3547; }
.section-title-heading {
  font-size: 1.55rem; font-weight: 600; color: var(--navy-900); border-bottom: 0; padding-bottom: .75rem; position: relative; margin-bottom: 1.5rem;
}
.section-title-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--gold); }
.section-heading { font-size: 1.6rem; font-weight: 600; color: var(--navy-900); }
.sub-heading { font-family: var(--font-serif); color: var(--navy-900); }

/* Small uppercase labels (formerly monospace) */
.status-pill, .status-badge {
  font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  color: var(--gold-ink); background: transparent; border: 0; border-left: 3px solid var(--gold);
  padding: .15rem 0 .15rem .75rem; margin-bottom: 1.25rem; border-radius: 0;
}
.toc-title, .roadmap-main-subtitle, .map-main-subtitle, .stage-num-label, .stage-status-badge,
.status-tag-item, .doc-meta, .participant-meta, .assoc-label, .journey-box, .clause-indicators,
.legend-item, .map-legend, .info-box-title, .proposal-header, .current-clause-context strong {
  font-family: var(--font-sans); font-variant-numeric: tabular-nums;
}
.form-group label { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em; color: var(--text-muted); }
.form-input, textarea.form-input, .form-group input, .form-group textarea, .side-form-section textarea {
  border: 1px solid #c5ccd8; border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; font-family: var(--font-sans);
}
.form-input:focus, .form-group input:focus, .form-group textarea:focus, .side-form-section textarea:focus {
  outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(20, 64, 122, .14);
}
#inviteCodeInput, .form-group input[inputmode="numeric"], .package-code { font-family: var(--font-code); letter-spacing: .12em; }

/* --------------------------------------------------------------------------
   Home / Representation hero — deep navy "masthead"
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative; overflow: hidden; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 4.25rem 4rem 4rem; margin-bottom: 1.75rem; color: #fff;
  background:
    radial-gradient(1200px 420px at 100% 0%, rgba(184,146,74,.20), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
.hero-section::before {
  content: ""; position: absolute; right: -140px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'><circle cx='200' cy='200' r='190'/><circle cx='200' cy='200' r='140'/><ellipse cx='200' cy='200' rx='80' ry='190'/><ellipse cx='200' cy='200' rx='150' ry='190'/><path d='M10 200h380M30 120h340M30 280h340'/></svg>") center/contain no-repeat;
  pointer-events: none;
}
.hero-section::after { content: ""; position: absolute; left: 4rem; top: 0; width: 72px; height: 3px; background: var(--gold); }
.hero-content-inner { position: relative; max-width: 760px; margin: 0; z-index: 1; }
.hero-headline-l1 { font-size: 2.9rem; font-weight: 600; color: #fff; line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 1rem; }
.hero-headline-l2 { font-size: 1.35rem; font-weight: 400; color: var(--gold-soft); line-height: 1.4; margin-bottom: 2rem; font-style: italic; }
.hero-paragraph { color: #d3deee; font-size: 1.04rem; line-height: 1.8; }

.journey-box {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1rem 2rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.journey-step { color: var(--navy-900); font-weight: 700; }

.global-context-strip {
  background: transparent; border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  border-radius: 0; padding: 2rem 3rem; margin: 2.25rem 0; font-family: var(--font-serif);
  font-size: 1.28rem; line-height: 1.6; color: var(--navy-900); font-style: italic;
}

.status-panel {
  background: #fff; border: 1px solid var(--border-color); border-left: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.status-panel-title { color: var(--navy-900); letter-spacing: .1em; }
.status-tag-item { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 100px; color: var(--navy-900); padding: .3rem .85rem; font-weight: 600; font-size: .72rem; }

/* Roadmap */
.roadmap-progress-section { padding: 2.25rem 2rem 2rem; }
.roadmap-main-title { font-family: var(--font-serif); text-transform: none; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.005em; color: var(--navy-900); }
.roadmap-main-subtitle { color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }
.roadmap-grid-wrapper::before { top: 0; left: 0; right: 0; height: 1px; background: transparent; }
.roadmap-stage-card { background: #fff; border: 1px solid var(--border-color); border-top-width: 3px; border-radius: var(--radius); min-height: 232px; opacity: 1; }
.roadmap-stage-card.completed { border-top-color: #2f6f55; background: #fff; }
.roadmap-stage-card.current { border-top-color: var(--gold); background: linear-gradient(180deg, #fbf7ee, #fff 60%); box-shadow: 0 8px 22px rgba(184,146,74,.18); transform: translateY(-4px); }
.roadmap-stage-card.developing { border-top-color: var(--navy-800); }
.roadmap-stage-card.future { border-top-color: #c9cfda; background: var(--bg-secondary); }
.stage-num-label { color: var(--gold-ink); font-size: .68rem; letter-spacing: .1em; }
.stage-title-text { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--navy-900); }
.stage-desc-text { color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.stage-status-badge { border-radius: 3px; padding: 3px 8px; font-weight: 700; font-size: .64rem; letter-spacing: .06em; }
.stage-status-badge.completed { background: #e8f3ee; color: #245843; border-color: #bfdccf; }
.stage-status-badge.current { background: var(--gold); color: #fff; border-color: var(--gold); }
.stage-status-badge.developing { background: var(--navy-100); color: var(--navy-800); border-color: #c8d5e8; }
.stage-status-badge.future { background: #eceef2; color: #5b6577; border-color: #d6dae2; }

.two-col-grid { gap: 1.5rem; }
.info-card-block { padding: 2rem 2.25rem; border-top: 3px solid var(--navy-900); }

.principles-grid { gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.principle-card { height: auto; min-height: 150px; border: 0; border-radius: 0; padding: 1.75rem 1rem; transition: background .2s; }
.principle-card:hover { background: var(--navy-50); }
.principle-icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-50); color: var(--navy-900); margin-bottom: 1rem; border: 1px solid var(--navy-100); }
.principle-icon-wrap svg { width: 24px; height: 24px; stroke-width: 1.6; }
.principle-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--navy-900); }
.principle-desc { color: var(--text-muted); }

.looking-ahead-block { border-left: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem 2.25rem; }
.ahead-title { font-size: 1.3rem; font-weight: 600; color: var(--navy-900); }
.ahead-list { list-style: none; padding-left: 0; font-size: .95rem; }
.ahead-list li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.ahead-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

.invitation-callout {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 3rem 2.5rem; position: relative; overflow: hidden;
}
.invitation-callout::before { content: ""; position: absolute; left: 50%; top: 0; width: 72px; height: 3px; background: var(--gold); transform: translateX(-50%); }
.invitation-text { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; line-height: 1.5; color: #fff; }
.invitation-subtext { color: #bccbe0; font-size: .92rem; }
.invitation-callout .btn-open-draft { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.invitation-callout .btn-open-draft:hover { background: #cba75f; border-color: #cba75f; }

/* Sidebar */
.sidebar-title { color: var(--navy-900); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.sidebar-list li::before { content: ""; width: 5px; height: 5px; background: var(--gold); top: .6em; border-radius: 50%; }
.sidebar-list li { padding-left: 1.1rem; }
.eligibility-note { background: var(--navy-50); border-left: 3px solid var(--gold); font-style: normal; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Discussion workspace — document first
   -------------------------------------------------------------------------- */
.workspace-page-wrapper {
  max-width: 1600px; padding: 0 1.75rem; margin: 2rem auto;
  grid-template-columns: 230px minmax(0, 1fr) 400px; gap: 1.5rem;
}
.doc-toc-sidebar { padding: 1.5rem 1.15rem; border-top: 3px solid var(--navy-900); }
.toc-title { color: var(--gold-ink); letter-spacing: .14em; font-weight: 700; }
.toc-list a { border-radius: 0; border-left: 2px solid transparent; font-size: .82rem; padding: .45rem .75rem; }
.toc-list a:hover, .toc-list a.active { background: var(--navy-50); color: var(--navy-900); border-left-color: var(--gold); font-weight: 600; }

.a4-document-sheet {
  padding: 3.5rem 4rem; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
  font-family: var(--font-serif);
}
.page-header-block { border-bottom: 1px solid var(--navy-900); padding-bottom: 1.25rem; }
.page-header-title { line-height: 1.2; font-size: 2.4rem; font-weight: 600; letter-spacing: .04em; color: var(--navy-900); }
.page-header-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--text-muted); }
.discussion-download-link {
  border-radius: var(--radius) !important; border: 1px solid var(--navy-900) !important; color: var(--navy-900) !important;
  font-family: var(--font-sans) !important; font-size: .76rem !important; letter-spacing: .04em; transition: background .15s, color .15s;
}
.discussion-download-link:hover { background: var(--navy-900) !important; color: #fff !important; }
.doc-meta-table { font-family: var(--font-sans); border: 1px solid var(--border-color); }
.doc-meta-table td { border-color: var(--border-color); padding: .65rem 1rem; }
.doc-meta-table td.label { background: var(--navy-50); color: var(--navy-900); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.consultation-notice-panel { font-family: var(--font-sans); background: #fbf8f1; border: 1px solid var(--gold-soft); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.section-title { font-size: 1.45rem; font-weight: 600; color: var(--navy-900); margin-top: 3rem; border-bottom: 1px solid var(--border-color); }
.clause-wrapper { padding: .9rem 1.1rem; margin-bottom: .35rem; border: 0; border-left: 3px solid transparent; border-radius: 0; background: transparent; }
.clause-wrapper:hover { background: var(--bg-secondary); }
.clause-wrapper.active { background: #f6f8fc; border-left-color: var(--gold); }
.clause-text { font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.8; color: #1f2937; }
.clause-text strong { color: var(--navy-900); font-weight: 700; margin-right: .15rem; }
.sub-list { font-family: var(--font-serif); font-size: 1rem; color: #1f2937; }
.clause-indicators { font-size: .7rem; gap: 1.1rem; color: var(--text-light); letter-spacing: .02em; }
.indicator-item:hover { color: var(--navy-900); }

.right-discussion-sidebar { padding: 1.5rem; border-top: 3px solid var(--gold); max-height: calc(100vh - var(--header-height) - 3rem); }
.current-clause-context { background: var(--navy-50); border: 0; border-left: 3px solid var(--gold); border-radius: 0; }
.current-clause-context strong { color: var(--gold-ink); letter-spacing: .1em; }
.current-clause-context p { font-family: var(--font-serif); }
.workspace-tabs { border-bottom: 1px solid var(--border-color); gap: .25rem; }
.tab-btn { font-family: var(--font-sans); font-size: .82rem; padding: .6rem .85rem; margin-bottom: -1px; }
.tab-btn.active { color: var(--navy-900); border-bottom: 2px solid var(--gold); }
.proposal-card { background: var(--navy-50); border: 1px solid var(--navy-100); border-left: 3px solid var(--navy-800); border-radius: var(--radius); }
.proposal-header { color: var(--navy-800); letter-spacing: .08em; }
.proposal-diff { border-color: #c8d5e8; color: var(--navy-950); border-radius: 2px; }

.supporter-modal-overlay, .modal-overlay { background: rgba(7, 26, 51, .62); backdrop-filter: blur(2px); }
.supporter-modal-box, .modal-box { border: 0; border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(7,26,51,.35); }
.modal-title, .supporter-modal-title { font-family: var(--font-serif); color: var(--navy-900); }
.modal-welcome-line { background: #fbf8f1; border: 1px solid var(--gold-soft); color: var(--gold-ink); border-radius: 2px; }

/* --------------------------------------------------------------------------
   Other pages
   -------------------------------------------------------------------------- */
.page-container { margin-top: 3rem; }
.doc-item, .notification-item { background: #fff; border: 1px solid var(--border-color); border-left: 3px solid var(--navy-900); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.doc-item:hover, .notification-item:hover { box-shadow: var(--shadow-md); }
.doc-title, .notification-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; color: var(--navy-900); }
.option-box { background: #fff; border: 1px solid var(--border-color); border-top: 3px solid var(--navy-900); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.option-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.option-title { font-size: 1.5rem; font-weight: 700; color: var(--navy-900); letter-spacing: .02em; }
.option-fullname { font-family: var(--font-serif); }
.support-status-bar { background: #fbf8f1; border: 1px solid var(--gold-soft); border-radius: var(--radius); }
.proposal-form-box, .philosophy-banner, .activation-note { background: var(--navy-50); border-radius: var(--radius); }
.philosophy-banner { border-left: 3px solid var(--gold); }
.card-title, .main-title { font-weight: 600; color: var(--navy-900); }
.main-subtitle { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--text-muted); }
.content-section.light-flow { background: #fbf8f1; border-left: 3px solid var(--gold); }
.highlight-statement-box { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; font-style: italic; background: var(--navy-50); border: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-radius: 0; color: var(--navy-900); }
.info-box { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius); }
.info-box-title { color: var(--navy-900); letter-spacing: .06em; }
.participant-head, .assoc-head { border-left: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.workspace-title, .assoc-title2, .compact-card h3 { font-family: var(--font-serif); color: var(--navy-900); }
.active-tag { background: #e8f3ee; border-color: #bfdccf; color: #245843; border-radius: 100px; font-family: var(--font-sans); }
.package { background: var(--navy-50); border-left-color: var(--gold); }

/* Map */
.map-container { background: var(--navy-50); border-radius: var(--radius); }
.world-map-svg-wrap { border-radius: var(--radius); border-color: var(--navy-100); }
.legend-dot.represented { background: var(--navy-900); }
.map-note, .map-action-statement { font-family: var(--font-serif); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); border-top: 3px solid var(--gold); color: #a9b8cf; padding: 2.25rem 0; font-size: .85rem; }
.footer-inner { max-width: 1480px; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); color: #fff; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.footer-links { gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: #a9b8cf; }
.footer-links a:hover { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .workspace-page-wrapper { grid-template-columns: 230px minmax(0, 1fr); }
  .right-discussion-sidebar { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 1100px) {
  .hero-headline-l1 { font-size: 2.4rem; }
  .hero-section { padding: 3rem 2.25rem; }
  .hero-section::after { left: 2.25rem; }
}
@media (max-width: 1024px) {
  .workspace-page-wrapper { grid-template-columns: 1fr; }
  .a4-document-sheet { padding: 2rem 1.5rem; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 0 1rem; gap: .5rem; }
  .brand-group { width: 100%; min-width: 0; }
  .brand-title { font-size: .8rem; letter-spacing: .08em; white-space: normal; max-width: 100%; }
  .brand-title::before { width: 28px; height: 28px; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-card { flex: 0 0 auto; }
  .brand-badge, .institutional-tag { margin-left: 0; }
  .page-container, .participant-page, .assoc-page { padding: 0 1rem; }
  .footer-inner { padding: 0 1rem; }
}
@media (max-width: 768px) {
  .hero-section { padding: 2.5rem 1.5rem; }
  .hero-section::after { left: 1.5rem; }
  .hero-section::before { right: -220px; opacity: .6; }
  .hero-headline-l1 { font-size: 2rem; }
  .hero-headline-l2 { font-size: 1.1rem; }
  .global-context-strip { padding: 1.5rem 0; font-size: 1.1rem; }
  .journey-box { flex-wrap: wrap; gap: .5rem .75rem; padding: 1rem; }
  .roadmap-stage-card.current { transform: none; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .page-header-title { font-size: 1.8rem; }
  .invitation-text { font-size: 1.2rem; }
  .documents-card, .notifications-card, .activation-card, .info-card-block { padding: 1.5rem; }
  .doc-item, .notification-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .options-grid, .grid-4-cols { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Print — documents print cleanly
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .doc-toc-sidebar, .right-discussion-sidebar, .discussion-download-link,
  .public-info-sidebar, .modal-overlay, .supporter-modal-overlay, .clause-indicators { display: none !important; }
  html, body { background: #fff; }
  .workspace-page-wrapper, .page-container { display: block; margin: 0; padding: 0; max-width: none; }
  .a4-document-sheet, .hero-section { box-shadow: none; border: 0; padding: 0; }
  .hero-section { background: none; color: #000; }
  .hero-headline-l1, .hero-headline-l2, .hero-paragraph { color: #000; }
  .clause-wrapper { break-inside: avoid; }
}

/* Fix: remove unwanted rectangular hero decoration */
.hero-section::before { display: none !important; }
