/*
  Page-scoped styles for the "Governed operational record" sheet home
  Standalone static stylesheet (not part of the app.css pipeline) for the
  sheet public pages, so it stays scoped to this presentation and avoids
  Razor '@' escaping in an inline <style>. Semantic classes only. Theme
  keys off the site-wide `html.dark` class and the shared localStorage
  'moltaro-theme' key: system, light, or dark.
*/
:root {
  --field: #e6edf2; --paper: #f7fafc; --paper-2: #ffffff; --paper-3: #eef3f7;
  --ink: #17202d; --ink-2: #4c5c6c; --faint: #7a8a98;
  --line: #d3e0e8; --line-2: #b7cbd7; --frame: #7f95a4; --grid: rgba(31, 77, 110, .05);
  --accent: #3f718b; --accent-strong: #245873; --accent-soft: #dfeef4;
  --green: #4f8177; --danger: #a04c54; --logo: #1f5f91;
  --mono: "Cascadia Code", "IBM Plex Mono", "Segoe UI Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
html.dark {
  --field: #0b1218; --paper: #111a22; --paper-2: #17222b; --paper-3: #1d2b35;
  --ink: #e8f0f5; --ink-2: #aebdc8; --faint: #8799a6;
  --line: #2d4351; --line-2: #3d5868; --frame: #536f80; --grid: rgba(143, 193, 215, .05);
  --accent: #8fc1d7; --accent-strong: #bce0ef; --accent-soft: rgba(143, 193, 215, .15);
  --green: #9fd2c7; --danger: #dd9298; --logo: #74b2d8;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body.sheet-body {
  font-family: var(--mono); color: var(--ink); line-height: 1.5; background: var(--field);
  -webkit-font-smoothing: antialiased; padding: clamp(10px, 1.4vw, 18px);
  overflow-x: hidden;
}
.sheet-body .sans { font-family: var(--sans); }
/* Only unclassed links inherit color; classed links (buttons, cross-links, etc.)
   keep their own color so .btn-solid / .tb-register text isn't overridden to ink.
   :where() keeps this fallback at zero specificity. */
.sheet-body a { text-decoration: none; }
.sheet-body a:where(:not([class])) { color: inherit; }
.sheet-body .hidden { display: none !important; }
.anno { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.anno-ink { color: var(--ink-2); } .anno-accent { color: var(--accent); }

.sheet {
  position: relative; max-width: 1360px; margin: 0 auto; border: 1.5px solid var(--line-2);
  background: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), var(--paper);
  background-size: 26px 26px, 26px 26px, auto;
}
.crop { position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 3; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--accent); opacity: .55; }
.crop::before { width: 12px; height: 1.5px; } .crop::after { width: 1.5px; height: 12px; }
.crop.tl { top: 6px; left: 6px; } .crop.tr { top: 6px; right: 6px; } .crop.tr::after, .crop.tr::before { right: 0; }
.crop.bl { bottom: 6px; left: 6px; } .crop.bl::before, .crop.bl::after { bottom: 0; }
.crop.br { bottom: 6px; right: 6px; } .crop.br::before, .crop.br::after { bottom: 0; right: 0; }

.topband { display: flex; justify-content: space-between; padding: 5px clamp(20px,4vw,52px); border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.topband span { flex: 1; text-align: center; } .topband span:first-child { text-align: left; } .topband span:last-child { text-align: right; }

/* toolbar */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(20px,4vw,52px); background: var(--paper); border-bottom: 1px solid var(--line-2);
}
.brand-mark { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grid-logo { width: 42px; height: 27px; color: var(--logo); display: block; overflow: visible; }
.wordmark { display: inline-flex; flex-direction: column; gap: 3px; }
.wordmark b { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .16em; color: var(--ink); line-height: 1; }
.wordmark i { width: 30px; height: 2px; border-radius: 2px; background: var(--accent); }
.brand-mark .anno { margin-left: 4px; }
.tb-nav { display: flex; gap: 18px; }
.tb-nav a { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.tb-nav a:hover { color: var(--accent); }
.tb-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-auth { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lang, .theme-mode { font: inherit; font-size: 11px; letter-spacing: .08em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); padding: 6px 8px; cursor: pointer; }
.theme-mode { text-transform: uppercase; max-width: 88px; }
.icon-btn { font: inherit; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); padding: 7px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 13px; height: 13px; }
.tb-login { font-size: 12px; color: var(--ink-2); padding: 7px 6px; } .tb-login:hover { color: var(--accent); }
.tb-register { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); border: 1.5px solid var(--accent); padding: 8px 14px; }
html.dark .tb-register { color: var(--paper); }
.tb-register:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
@media (max-width: 1040px) { .tb-nav { display: none; } .topband { display: none; } }
@media (max-width: 640px) {
  body.sheet-body { padding: 0; }
  .sheet { border-left: 0; border-right: 0; }
  .toolbar { gap: 10px; padding: 9px 12px; }
  .tb-login, .wordmark i, .brand-mark .anno { display: none; }
  .tb-right, .tb-auth { gap: 7px; }
  .lang, .theme-mode { padding: 6px 7px; }
  .theme-mode { max-width: 82px; }
  .icon-btn { padding: 7px 9px; }
  .tb-register { padding: 8px 11px; }
}
@media (max-width: 430px) {
  .toolbar { gap: 8px; }
  .grid-logo { width: 36px; height: 24px; }
  .wordmark b { font-size: 13px; letter-spacing: .12em; }
  .tb-register { font-size: 10px; padding: 8px 9px; }
  .lang, .theme-mode { font-size: 10px; padding-inline: 6px; }
  .theme-mode { max-width: 74px; }
  .icon-btn { padding-inline: 8px; }
}
@media (max-width: 360px) { .wordmark { display: none; } }

.logo-shape { transform-origin: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.plus-sign { transform-origin: 82px 48px; }
@media (prefers-reduced-motion: no-preference) {
  .js .grid-logo { animation: logoPop .6s cubic-bezier(.34,1.56,.64,1) both; }
  .js .logo-shape { opacity: 0; animation: tileIn .5s ease forwards; }
  .js .sq-1 { animation-delay: .10s } .js .sq-2 { animation-delay: .16s } .js .sq-3 { animation-delay: .22s }
  .js .sq-4 { animation-delay: .16s } .js .sq-5 { animation-delay: .22s } .js .plus-sign { animation-delay: .34s }
}
@keyframes logoPop { 0% { transform: scale(.7); opacity: .2 } 100% { transform: none; opacity: 1 } }
@keyframes tileIn { to { opacity: 1 } }
.brand-mark:hover .sq-1 { transform: translateY(-2px); } .brand-mark:hover .sq-2 { transform: translateY(-2px); transition-delay: 50ms; }
.brand-mark:hover .sq-3 { transform: translateY(-2px); transition-delay: 100ms; } .brand-mark:hover .sq-4 { transform: translateY(2px); transition-delay: 50ms; }
.brand-mark:hover .sq-5 { transform: translateY(2px); transition-delay: 100ms; } .brand-mark:hover .plus-sign { transform: rotate(90deg) scale(1.1); transition-delay: 150ms; }

.wrap { padding: 0 clamp(20px, 4vw, 52px); }

/* first screen */
.hero-screen { position: relative; min-height: calc(100svh - 116px); display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2.4vh, 34px); padding: clamp(10px,1.6vh,22px) 0; }
/* faint ambient background motion — slow drifting wave-lines behind the content */
.hero-screen > * { position: relative; z-index: 1; }
.hero-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-waves { position: absolute; left: -10%; top: 6%; width: 120%; height: 88%; }
.hero-waves path { fill: none; stroke: var(--accent); stroke-width: 1.3; opacity: .11; stroke-linecap: round; stroke-dasharray: 5 11; }
/* stroke-dashoffset flow animates reliably on SVG paths in every browser;
   plus a gentle sway of the whole layer. Both subtle, motion-reduce aware. */
@media (prefers-reduced-motion: no-preference) {
  .hero-waves { animation: waveSway 24s ease-in-out infinite alternate; }
  .hero-waves .w1 { animation: waveFlow 4s linear infinite; }
  .hero-waves .w2 { animation: waveFlow 5.6s linear infinite reverse; }
  .hero-waves .w3 { animation: waveFlow 4.7s linear infinite; }
}
@keyframes waveFlow { to { stroke-dashoffset: -32; } }
@keyframes waveSway { from { transform: translateY(-6px); } to { transform: translateY(7px); } }
.intro { text-align: center; display: grid; justify-items: center; gap: 10px; }
.intro h1 { font-family: var(--sans); font-weight: 680; letter-spacing: -.015em; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.05; color: var(--ink); max-width: 18ch; }
.intro .sub { font-family: var(--sans); font-size: clamp(14px, 1.4vw, 17px); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }

.assembly { position: relative; display: grid; grid-template-columns: 1fr minmax(300px,1.02fr) 1fr; gap: clamp(14px,5vw,60px); align-items: center; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.leaders path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.leaders path.is-active { stroke: var(--accent); stroke-width: 1.4; }
.leaders circle { fill: var(--paper); stroke: var(--accent); stroke-width: 1.4; }
.col { display: grid; gap: clamp(9px, 2vh, 24px); position: relative; z-index: 2; align-content: center; }
.callout { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.col-l .callout { justify-content: flex-end; text-align: right; }
.col-r .callout .note { order: 2; } .col-r .callout .balloon { order: 1; } .col-l .callout .balloon { order: 2; }
.balloon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper); transition: border-color .15s, color .15s, background .15s; }
.callout .note b { font-family: var(--sans); font-weight: 620; font-size: 14px; color: var(--ink); display: block; }
.callout .note span { font-size: 11px; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.callout:hover .balloon { border-color: var(--accent); }
.callout.is-active .balloon { border-color: var(--accent); color: #fff; background: var(--accent); }
html.dark .callout.is-active .balloon { color: var(--paper); }
.callout.is-active .note b { color: var(--accent); }

.core { position: relative; z-index: 3; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1.5px solid var(--ink); background: var(--paper-2); box-shadow: 5px 5px 0 rgba(23,32,45,.06); cursor: pointer; }
html.dark .core { box-shadow: 5px 5px 0 rgba(0,0,0,.3); }
.core.is-active { box-shadow: 0 0 0 2px var(--accent-soft), 5px 5px 0 rgba(23,32,45,.06); border-color: var(--accent); }
.core-emblem { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1.4px solid var(--line-2); color: var(--accent); }
.core-emblem svg { width: 22px; height: 22px; }
.core-txt { display: grid; gap: 2px; }
.core-txt b { font-family: var(--sans); font-weight: 680; font-size: 20px; color: var(--ink); line-height: 1.1; }
.core .stamp { margin-left: auto; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1.4px solid var(--accent); padding: 2px 7px; }

.detail-card { width: min(100%, 660px); margin: 0 auto; border: 1.5px solid var(--line-2); background: var(--paper-2); padding: 15px 18px; text-align: left; }
.dc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dc-title { font-family: var(--sans); font-weight: 680; font-size: 20px; color: var(--ink); margin-top: 5px; }
.dc-desc { font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-top: 7px; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.dc-link { color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.dc-link:hover { color: var(--accent-strong); }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 18px; border: 1.5px solid var(--accent); cursor: pointer; }
.btn-solid { background: var(--accent); color: #fff; } html.dark .btn-solid { color: var(--paper); }
.btn-solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-line { background: transparent; color: var(--accent); } .btn-line:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hero-free { font-family: var(--sans); font-size: 12px; color: var(--faint); }

.schedule { display: none; }
.schedule .srow { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: center; cursor: pointer; }
.schedule .srow:first-child { border-top: 0; }
.schedule .srow b { font-family: var(--sans); font-weight: 640; font-size: 14px; color: var(--ink); display: block; }
.schedule .srow span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }

.divider { display: flex; align-items: center; gap: 16px; padding: clamp(34px,5vw,60px) 0 clamp(16px,2vw,22px); }
.divider .tick { width: 1px; height: 16px; background: var(--line-2); }
.divider .seg { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.divider .seg::before, .divider .seg::after { content: ""; position: absolute; top: -3px; border: 3.5px solid transparent; }
.divider .seg::before { left: 0; border-right-color: var(--line-2); } .divider .seg::after { right: 0; border-left-color: var(--line-2); }
.divider .lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.divider .lbl .n { color: var(--accent); margin-right: 10px; }
.sec-body { border: 1px solid var(--frame); background: var(--paper-2); padding: clamp(16px,2vw,22px); }
.sheet-stack { display: grid; gap: clamp(22px, 4vw, 38px); padding-block: clamp(30px, 5vw, 58px); }
.sheet-stack > * { min-width: 0; }
.sec-lead { font-family: var(--sans); font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.stub-note { display: inline-block; margin-top: 14px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border: 1px dashed var(--line-2); padding: 5px 9px; }
.sec-visual { margin-top: 16px; }

/* ported section content: heading + steps + cross-links + deep link */
.sec-head { font-family: var(--sans); font-weight: 680; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.14; color: var(--ink); letter-spacing: -.01em; }
.sec-body .sec-head + .sec-lead { margin-top: 12px; }
/* section intro: heading, then the lead beneath it — both across the full card width */
.sec-intro .sec-lead { margin-top: 14px; }
.sec-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.sec-steps article { border-top: 1px solid var(--line); padding-top: 12px; }
.sec-steps .k { font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.sec-steps .plan-price { display: block; font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); margin-top: 8px; overflow-wrap: anywhere; }
.sec-steps b { display: block; font-family: var(--sans); font-weight: 640; font-size: 15px; color: var(--ink); margin-top: 6px; }
.sec-steps p { font-family: var(--sans); font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.sheet-proof { display: grid; grid-template-columns: minmax(220px, .9fr) 44px minmax(0, 1.5fr); align-items: stretch; gap: 0; margin-top: 24px; border: 1px solid var(--line-2); background: var(--paper); }
.sheet-proof-record { display: grid; align-content: center; gap: 7px; min-height: 166px; padding: 18px; border-right: 1px solid var(--line); background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }
.sheet-proof-record strong { font-family: var(--sans); font-size: 22px; line-height: 1.12; color: var(--ink); }
.sheet-proof-record span:last-child { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.sheet-proof-rail { position: relative; border-right: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 11px, var(--line) 11px 12px); }
.sheet-proof-rail::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--accent); }
.sheet-proof-stack { display: grid; grid-template-columns: repeat(3, 1fr); }
.sheet-proof-stack article { display: grid; align-content: start; gap: 7px; padding: 18px; border-left: 1px solid var(--line); }
.sheet-proof-stack article:first-child { border-left: 0; }
.sheet-proof-stack span { font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.sheet-proof-stack b { font-family: var(--sans); font-size: 14px; line-height: 1.25; color: var(--ink); }
.sheet-proof-stack p { font-family: var(--sans); font-size: 12.5px; line-height: 1.48; color: var(--ink-2); }
.crosslinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.cl-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sheet-body .crosslinks a { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; }
.sheet-body .crosslinks a:hover { border-bottom-color: var(--accent); }
.sheet-body .sec-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; transition: gap .15s ease, color .15s ease; }
.sheet-body .sec-link:hover { color: var(--accent-strong); gap: 12px; }
@media (max-width: 820px) {
  .sheet-proof { grid-template-columns: 1fr; }
  .sheet-proof-record { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-proof-rail { display: none; }
  .sheet-proof-stack { grid-template-columns: 1fr; }
  .sheet-proof-stack article { border-left: 0; border-top: 1px solid var(--line); }
  .sheet-proof-stack article:first-child { border-top: 0; }
}
@media (max-width: 700px) { .sec-steps { grid-template-columns: 1fr; } }

/* top-level section header (major); the 9 capabilities are subsections under it */
.section-major { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: clamp(52px, 7vw, 92px) 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.section-major .mn { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.section-major h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.section-major .grow { flex: 1; }
.section-major .tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); overflow-wrap: anywhere; }
/* capability subsections sit slightly indented under the major header */
#your-app > section { padding-left: clamp(0px, 1.5vw, 22px); }

/* breadcrumb (sub-pages) */
.breadcrumb { display: flex; align-items: center; gap: 9px; padding: 12px clamp(20px,4vw,52px); border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sheet-body .breadcrumb a { color: var(--ink-2); }
.sheet-body .breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-2); }
.breadcrumb .cur { color: var(--ink); }

/* Entity record map: page-specific proof graphic for /entities */
.entities-system { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(18px, 3vw, 34px); align-items: center; margin-top: 28px; }
.entities-map { position: relative; min-height: 320px; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.entities-map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }
.entities-map-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(260px, 70%); transform: translate(-50%, -50%); display: grid; gap: 6px; padding: 18px; border: 1.5px solid var(--accent); background: var(--paper-2); box-shadow: 5px 5px 0 rgba(23,32,45,.06); text-align: center; }
.entities-map-core strong { font-family: var(--sans); font-size: 20px; line-height: 1.15; color: var(--ink); }
.entities-map-core span:last-child { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.entities-map-spokes span { position: absolute; z-index: 1; background: var(--line-2); }
.entities-map-spokes span:nth-child(1), .entities-map-spokes span:nth-child(2) { left: 18%; right: 18%; top: 50%; height: 1px; }
.entities-map-spokes span:nth-child(2) { transform: rotate(90deg); }
.entities-map-spokes span:nth-child(3), .entities-map-spokes span:nth-child(4) { left: 20%; right: 20%; top: 50%; height: 1px; transform: rotate(31deg); }
.entities-map-spokes span:nth-child(4) { transform: rotate(-31deg); }
.entities-map-nodes { position: absolute; inset: 22px; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; gap: 120px 28px; pointer-events: none; }
.entities-map-nodes span { display: inline-flex; justify-self: start; width: fit-content; max-width: 15ch; padding: 8px 10px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.entities-map-nodes span:nth-child(even) { justify-self: end; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .entities-map-core { animation: entityCoreFloat 6s ease-in-out infinite; }
  .entities-map-spokes span { animation: entitySpokePulse 4.8s ease-in-out infinite; }
  .entities-map-nodes span { animation: entityNodeFade 5.5s ease-in-out infinite; }
  .entities-map-nodes span:nth-child(2) { animation-delay: .4s; }
  .entities-map-nodes span:nth-child(3) { animation-delay: .8s; }
  .entities-map-nodes span:nth-child(4) { animation-delay: 1.2s; }
}
@keyframes entityCoreFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 5px)); }
}
@keyframes entitySpokePulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes entityNodeFade {
  0%, 100% { border-color: var(--line-2); color: var(--ink-2); }
  50% { border-color: var(--accent); color: var(--accent); }
}
@media (max-width: 900px) {
  .entities-system { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .entities-system { padding: 16px; }
  .entities-map { min-height: 360px; }
  .entities-map-core { width: calc(100% - 56px); }
  .entities-map-nodes { inset: 16px; gap: 170px 14px; }
  .entities-map-nodes span { max-width: 13ch; }
}

.mx { display: grid; grid-template-columns: minmax(104px, 1.3fr) repeat(4, minmax(82px, 1fr)); width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line-2); font-size: 12px; }
.mx > div { padding: 8px 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mx > div:nth-child(-n+5) { border-top: 0; background: var(--paper-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; color: var(--faint); }
.mx > div:nth-child(5n+1) { border-left: 0; }
.mx .y { color: var(--accent); font-weight: 600; } .mx .n { color: var(--faint); } .mx .cap { font-family: var(--sans); color: var(--ink); }
.cut { position: relative; overflow: hidden; border: 1px solid var(--line-2); max-width: 720px; }
.cut img { display: block; width: 100%; height: 260px; object-fit: cover; filter: saturate(.72) contrast(.96); }
html.dark .cut img { filter: saturate(.6) contrast(.9) invert(.9) hue-rotate(180deg); }
.cut.mono img { filter: grayscale(1) saturate(.08) contrast(1.04) opacity(.86); }
html.dark .cut.mono img { filter: grayscale(1) saturate(.08) contrast(.92) invert(.9) hue-rotate(180deg) opacity(.74); }
.cut .cutlabel { position: absolute; left: 10px; top: 10px; background: var(--paper); border: 1px solid var(--ink); padding: 3px 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.codeblk { background: var(--paper-3); border: 1px solid var(--line-2); padding: 12px 14px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); overflow-x: auto; max-width: 640px; white-space: pre; }
.codeblk k { color: var(--accent-strong); font-weight: 700; } .codeblk s { color: var(--ink); }
.ledger { display: grid; }
.ev { display: grid; grid-template-columns: 92px minmax(0, 1fr) 32px; gap: 18px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev time { font-size: 11px; color: var(--faint); }
.ev .what { display: grid; gap: 3px; min-width: 0; }
.ev .what b { font-family: var(--sans); font-weight: 620; font-size: 13px; color: var(--ink); }
.ev .what span { font-size: 11px; line-height: 1.5; color: var(--ink-2); }
.ev .hash { font-size: 10px; color: var(--faint); text-align: right; }

.sheet-footer { margin-top: clamp(44px,7vw,80px); border-top: 1.5px solid var(--ink); }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(20px,4vw,48px); padding: 24px 0 18px; }
.ft-brand { display: flex; align-items: center; gap: 11px; font-family: var(--sans); font-weight: 640; color: var(--ink); }
.ft-brand small { font-family: var(--mono); font-weight: 400; color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.ft-tagline { font-family: var(--sans); font-weight: 640; color: var(--ink); font-size: 15px; line-height: 1.3; margin-top: 12px; max-width: 26ch; }
.ft-copy { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; max-width: 36ch; }
.ft-col h3 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sheet-body .ft-col a { display: block; font-size: 12.5px; color: var(--ink-2); padding: 4px 0; }
.sheet-body .ft-col a:hover { color: var(--accent); }
.sheet-body .footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sheet-body .footer-link { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: none; border: 0; padding: 0; cursor: pointer; }
.sheet-body .footer-link:hover { color: var(--accent); }
.ft-notes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); }
.ft-notes span { padding: 11px 13px; border-right: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.ft-notes span:last-child { border-right: 0; }
.ft-notes b { color: var(--accent); display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.ft-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 0 20px; }
.ft-meta span { font-size: 10.5px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 80; display: none; padding-inline: clamp(10px, 2vw, 24px); }
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { width: min(100%, 1040px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border: 1.25px solid var(--ink-soft); background: var(--paper-2); box-shadow: 5px 5px 0 rgba(23,32,45,.07); padding: 16px 18px; }
.cookie-banner__content { flex: 1 1 320px; min-width: 0; }
.cookie-banner__title { font-family: var(--sans); font-size: 15px; line-height: 1.3; font-weight: 740; color: var(--ink); }
.cookie-banner__message { margin-top: 5px; font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.cookie-banner__link { color: var(--accent); font-weight: 680; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__button { white-space: nowrap; }
.sheet-body .btn-ghost { background: var(--paper); color: var(--accent); border-color: var(--line-2); box-shadow: none; }

/* Auth/legal pages reuse the sheet shell while keeping existing form behavior hooks. */
.sheet-body [x-cloak], .sheet-body .hidden { display: none !important; }
.bp-auth-main, .sheet-auth-main { padding-block: clamp(44px, 7vw, 86px); }
.bp-auth-wrap { width: min(100%, 560px); margin-inline: auto; }
.bp-auth-wrap--wide { width: min(100%, 680px); }
.bp-form-card, .auth-form-shell, .moltaro-auth-form-shell { width: 100%; }
.bp-form-card, .moltaro-auth-card, .legal-doc { border: 1.25px solid var(--ink-soft); background: var(--paper-2); }
.bp-form-card, .moltaro-auth-card { padding: clamp(22px, 4vw, 38px); }
.bp-eyebrow, .section-eyebrow { display: inline-flex; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bp-auth-title, .section-title { margin: 0; font-family: var(--sans); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; color: var(--ink); letter-spacing: 0; }
.bp-auth-subtitle, .section-subtitle { margin-top: 12px; max-width: 58ch; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.bp-auth-form, .contact-form, .auth-card-body { display: grid; gap: 16px; }
.bp-auth-form { margin-top: 24px; }
.form-field, .form-span { display: grid; gap: 7px; min-width: 0; }
.form-label, .form-label-row { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.form-input { width: 100%; min-height: 46px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); padding: 11px 12px; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.form-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 34%, transparent); outline-offset: 1px; border-color: var(--accent); }
.form-input.has-error { border-color: #9b2f38; }
.form-hint, .auth-meta-text, .form-error, .form-alert, .auth-confirm-status, .auth-confirm-detail, .auth-register-complete-detail { font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.form-link, .auth-meta-link { color: var(--accent); font-weight: 680; }
.form-link:hover, .auth-meta-link:hover { color: var(--ink); }
.form-error { display: flex; gap: 6px; align-items: center; color: #9b2f38; }
.form-error-icon, .form-alert-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid color-mix(in srgb, #9b2f38 38%, var(--line-2)); background: color-mix(in srgb, #9b2f38 7%, var(--paper)); padding: 12px; color: var(--ink); }
.form-alert.success { border-color: color-mix(in srgb, var(--accent) 38%, var(--line-2)); background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.panel-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 78%, var(--grid)); padding: 14px; }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line-2); background: var(--paper); color: var(--accent); }
.auth-confirm-message { margin-top: 3px; font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.auth-submit-row { margin-top: 4px; }
.sheet-body .btn-primary, .sheet-body .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--accent); padding: 11px 18px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sheet-body .btn-primary { background: var(--accent); color: #fff; }
.sheet-body .btn-secondary { background: var(--paper); color: var(--accent); }
.sheet-body .btn-primary:disabled, .sheet-body .btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.btn-spinner, .auth-captcha-spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 8px; animation: spin .8s linear infinite; }
.auth-card-foot { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.auth-language-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.auth-language-option { display: grid; gap: 2px; border: 1px solid var(--line-2); background: var(--paper); padding: 9px 8px; cursor: pointer; }
.auth-language-option.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.auth-language-input { position: absolute; opacity: 0; pointer-events: none; }
.auth-language-code { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.auth-language-name { font-family: var(--sans); font-size: 12px; color: var(--ink-2); }
.auth-captcha-panel, .auth-recovery, .auth-register-complete { display: grid; gap: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 78%, var(--grid)); padding: 14px; }
.auth-confirm-actions, .auth-register-complete-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auth-register-complete { text-align: center; }
.auth-register-complete-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-inline: auto; border: 1px solid var(--accent); color: var(--accent); background: var(--paper); }
.auth-register-complete-icon-svg { width: 22px; height: 22px; }
.auth-register-complete-title { font-family: var(--sans); font-weight: 780; font-size: 20px; color: var(--ink); }
.auth-register-complete-email { font-family: var(--mono); font-size: 12px; color: var(--accent); overflow-wrap: anywhere; }
.moltaro-auth-stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(22px, 4vw, 42px); align-items: start; }
.moltaro-auth-stage-copy { border: 1.25px solid var(--ink-soft); background: var(--paper-2); padding: clamp(22px, 4vw, 38px); }
.turnstile { min-width: 0; overflow: hidden; }
.legal-page { padding-block: clamp(34px, 6vw, 74px); }
.legal-hero { margin-bottom: clamp(22px, 4vw, 34px); }
.legal-doc { padding: clamp(22px, 4vw, 42px); }
.legal-notice, .legal-meta { margin-bottom: 18px; font-family: var(--mono); font-size: 11px; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.legal-content { display: grid; gap: 14px; }
.legal-heading { font-family: var(--sans); color: var(--ink); letter-spacing: 0; }
.legal-heading--h2 { margin-top: 18px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.16; font-weight: 740; }
.legal-heading--h3 { margin-top: 8px; font-size: 18px; line-height: 1.25; font-weight: 720; }
.legal-heading--h4 { margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 720; }
.legal-copy, .legal-list, .legal-table, .legal-content li { font-family: var(--sans); font-size: 14px; line-height: 1.68; color: var(--ink-2); }
.legal-copy a, .legal-list a { color: var(--accent); font-weight: 680; overflow-wrap: anywhere; }
.legal-list { display: grid; gap: 8px; padding-left: 18px; list-style: square; }
.legal-list-item { padding-left: 2px; }
.legal-strong { color: var(--ink); font-weight: 740; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--grid) 36%, var(--paper)); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-screen { min-height: 0; }
  .assembly { grid-template-columns: 1fr; }
  .leaders, .col { display: none; }
  .core { max-width: 480px; margin: 0 auto; }
  .schedule { display: block; margin-top: 22px; }
  .ft-notes { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ev { grid-template-columns: 64px 1fr; }
  .moltaro-auth-stage { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ft-notes { grid-template-columns: 1fr; }
  .ft-notes span { border-right: 0; border-bottom: 1px solid var(--line); }
  .ft-grid { grid-template-columns: 1fr; }
  .bp-form-card, .moltaro-auth-card, .moltaro-auth-stage-copy, .legal-doc { padding: 18px; }
  .auth-language-options { grid-template-columns: 1fr 1fr; }
  .auth-confirm-actions { align-items: stretch; }
  .auth-confirm-actions .btn { width: 100%; }
  .legal-page { padding-block: 24px; }
  .cookie-banner { bottom: 8px; padding-inline: 8px; }
  .cookie-banner__inner { align-items: stretch; padding: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__button { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
