/* SIMUL 스킨 — 포털(field-skin.css)의 뼈대를 그대로 쓰고 색 계열만 바꾼다 (2026-10-25, 대표님: "컬러 계열만 변경").
   성격: 등불 아래 기록. 밝은 판은 옅은 양피지 위에 짙은 황금, 어두운 판은 따뜻한 먹색 위에 금빛(대표님 10-25 "녹색 계열 말고 황금색 계열로").
   가독성 가이드라인 최소선(대비 AA, 12px 바닥, 본문 16px·행간 1.5)은 field-skin.css 그대로 따른다. 색만 바꾸며 대비는 측정해 README에 적는다. */
:root {
  --fx-ground: #efe9dc;
  --fx-ink: #1c1608;
  --fx-ink-2: #3d3420;
  --fx-mute: #5f5434;
  --fx-line: rgba(28, 22, 8, .12);
  --fx-line-2: rgba(28, 22, 8, .24);
  --fx-dot: #1c1608;
  --fx-accent: #835e0e;
  --fx-accent-ink: #6b4d08;
  --fx-accent-soft: rgba(131, 94, 14, .14);
  --fx-on-accent: #ffffff;
  --fx-glass: rgba(56, 44, 18, .74);
  --fx-panel: rgba(251, 248, 240, .66);
  --fx-panel-line: rgba(28, 22, 8, .08);
  --fx-card-ink: #241c0b;
  --fx-card-ink-fg: #f6f0e2;
  --fx-card-paper: #faf6ec;
  --fx-card-paper-fg: #1c1608;
  --fx-veil: rgba(239, 233, 220, .55);
}
:root[data-theme="dark"] {
  --fx-ground: #14110a;
  --fx-ink: #f0e9d8;
  --fx-ink-2: #c9bd9f;
  --fx-mute: #9d906f;
  --fx-line: rgba(240, 233, 216, .12);
  --fx-line-2: rgba(240, 233, 216, .24);
  --fx-dot: #ece0c0;
  --fx-accent: #e3b44f;
  --fx-accent-ink: #f2d38c;
  --fx-accent-soft: rgba(227, 180, 79, .15);
  --fx-on-accent: #14110a;
  --fx-glass: rgba(40, 33, 18, .68);
  --fx-panel: rgba(28, 23, 13, .66);
  --fx-panel-line: rgba(240, 233, 216, .08);
  --fx-card-ink: #211b0f;
  --fx-card-ink-fg: #f6f0e2;
  --fx-card-paper: #ece4d0;
  --fx-card-paper-fg: #14110a;
  --fx-veil: rgba(20, 17, 10, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fx-ground: #14110a; --fx-ink: #f0e9d8; --fx-ink-2: #c9bd9f; --fx-mute: #9d906f; --fx-line: rgba(240, 233, 216, .12); --fx-line-2: rgba(240, 233, 216, .24); --fx-dot: #ece0c0; --fx-accent: #e3b44f; --fx-accent-ink: #f2d38c; --fx-accent-soft: rgba(227, 180, 79, .15); --fx-on-accent: #14110a; --fx-glass: rgba(40, 33, 18, .68); --fx-panel: rgba(28, 23, 13, .66); --fx-panel-line: rgba(240, 233, 216, .08); --fx-card-ink: #211b0f; --fx-card-ink-fg: #f6f0e2; --fx-card-paper: #ece4d0; --fx-card-paper-fg: #14110a; --fx-veil: rgba(20, 17, 10, .55);
  }
}
/* 서장의 다섯 단계, 규모 다섯 가지 */
.sm-pipeline, .sm-sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; }
.fx-pillar .fx-pillar-state { margin: 0; font-family: var(--fx-mono); font-size: 13px; color: var(--fx-accent-ink); }
.fx-pillar.is-live { border-color: var(--fx-accent); }
/* Running companies: a ledger of rows, not cards. The whole row links to that company's product site. */
.sm-running { list-style: none; margin: 26px 0 0; padding: 0 14px; border-radius: 14px; background: var(--fx-panel); border: 1px solid var(--fx-panel-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } /* one panel under the whole ledger so the field's points never cross the text */
.sm-running > li + li { border-top: 1px solid var(--fx-line); }
.sm-run-row { display: grid; grid-template-columns: 2.6em minmax(0, 14em) minmax(0, 1fr) auto; grid-template-areas: "no name line go" "no dom line go"; gap: 2px 20px; align-items: baseline;
  padding: 18px 8px; color: var(--fx-ink); text-decoration: none; transition: background-color .2s var(--fx-ease); }
a.sm-run-row:hover, a.sm-run-row:focus-visible { background: var(--fx-accent-soft); }
.sm-run-no { grid-area: no; font-family: var(--fx-mono); font-size: 14px; color: var(--fx-accent-ink); }
.sm-run-name { grid-area: name; font-size: 20px; font-weight: 560; line-height: 1.3; }
.sm-run-dom { grid-area: dom; font-size: 14px; color: var(--fx-ink-2); }
.sm-run-line { grid-area: line; align-self: center; font-size: 16px; line-height: 1.55; color: var(--fx-ink-2); }
.sm-run-go { grid-area: go; align-self: center; display: inline-flex; align-items: center; gap: 8px; font-family: var(--fx-mono); font-size: 14px; color: var(--fx-accent-ink); white-space: nowrap; }
.sm-run-go svg { width: 16px; height: 16px; flex: none; }
a.sm-run-row:hover .sm-run-go, a.sm-run-row:focus-visible .sm-run-go { text-decoration: underline; text-underline-offset: 4px; }
.sm-run-row.is-private .sm-run-no, .sm-run-row.is-private .sm-run-go { color: var(--fx-mute); }
@media (max-width: 960px) {
  .sm-run-row { grid-template-columns: 2.6em minmax(0, 1fr); grid-template-areas: "no name" "no dom" "no line" "no go"; gap: 4px 12px; padding: 16px 4px; }
  .sm-run-line, .sm-run-go { align-self: start; }
  .sm-run-go { justify-self: start; margin-top: 6px; white-space: normal; }
}
/* Mark running companies in the hero chips and the episode list */
.fx-chip.is-running::before { content: ""; display: inline-block; box-sizing: border-box; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--fx-accent); border: 1px solid var(--fx-accent); vertical-align: middle; }
.fx-chip.is-running.is-private::before { background: transparent; } /* running but not open to visitors: hollow ring */
.fx-chip.is-running[aria-pressed="true"]::before { background: var(--fx-on-accent); border-color: var(--fx-on-accent); }
.fx-chip.is-running.is-private[aria-pressed="true"]::before { background: transparent; }
.sm-ep.is-running .sm-ep-state, .sm-ep.is-running .sm-ep-no { color: var(--fx-accent-ink); }
.sm-ep.is-running.is-private .sm-ep-state, .sm-ep.is-running.is-private .sm-ep-no { color: var(--fx-mute); }
/* 에피소드 목록 — 장(章)처럼 한 줄씩 */
.sm-episodes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.sm-ep a, .sm-ep-row { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; grid-template-areas: "no name size" "no dom state"; gap: 2px 12px; align-items: baseline;
  padding: 12px 14px; border-radius: 14px; background: var(--fx-panel); border: 1px solid var(--fx-panel-line); color: var(--fx-ink); text-decoration: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .2s var(--fx-ease), transform .2s var(--fx-ease); }
.sm-ep a:hover, .sm-ep a:focus-visible { border-color: var(--fx-accent); transform: translateY(-1px); }
.sm-ep-no { grid-area: no; font-family: var(--fx-mono); font-size: 14px; color: var(--fx-mute); }
.sm-ep-name { grid-area: name; font-size: 17px; font-weight: 560; }
.sm-ep-dom { grid-area: dom; font-size: 14px; color: var(--fx-ink-2); }
.sm-ep-size { grid-area: size; font-family: var(--fx-mono); font-size: 13px; color: var(--fx-mute); text-align: right; }
.sm-ep-state { grid-area: state; font-size: 13px; color: var(--fx-mute); text-align: right; }
.sm-ep.is-live .sm-ep-state, .sm-ep.is-live .sm-ep-no { color: var(--fx-accent-ink); }
.sm-ep.is-live a { border-color: var(--fx-accent-soft); }
/* 심사자를 위해 */
.sm-doors .fx-door { min-height: 0; cursor: default; }
.sm-doors .fx-door h3 { margin: 0 0 8px; }
.sm-list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; }
.sm-list a { color: inherit; }
.sm-principles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 16px; line-height: 1.6; color: var(--fx-ink-2); }
.sm-principles strong { color: var(--fx-ink); }
@media (max-width: 960px) { .sm-pipeline, .sm-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .sm-pipeline, .sm-sizes, .sm-episodes, .sm-principles { grid-template-columns: minmax(0, 1fr); } }
/* 심사자를 위해: 4단 대신 2×2, 내용은 위에서부터(대표님 10-25 "이건 너무 긴데") */
.sm-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-doors .fx-door { min-height: 0; justify-content: flex-start; gap: 14px; padding: 22px 24px; }
.sm-doors .fx-door > div { margin: 0; }
.sm-doors .fx-door h3 { font-size: 22px; line-height: 1.25; }
.sm-doors .sm-list { font-size: 15px; gap: 4px; }
@media (max-width: 680px) { .sm-doors { grid-template-columns: minmax(0, 1fr); } }
/* 머리띠 라이트·다크 스위치(대표님 10-25 "껐다켜는 버튼 형태로"). 누르면 메뉴 안 테마 단추를 눌러 저장까지 같은 길로 간다. 시스템 따르기는 메뉴 안에. */
.sm-switch { appearance: none; border: 0; background: none; padding: 6px; cursor: pointer; border-radius: 999px; }
.sm-switch-track { position: relative; display: block; width: 52px; height: 28px; border-radius: 999px; background: var(--fx-panel); border: 1px solid var(--fx-line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .25s var(--fx-ease), border-color .25s var(--fx-ease); }
.sm-switch-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--fx-card-paper); color: var(--fx-accent-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); transition: transform .3s var(--fx-ease), background .25s var(--fx-ease); }
.sm-switch-knob svg { width: 14px; height: 14px; grid-area: 1 / 1; transition: opacity .2s var(--fx-ease), transform .3s var(--fx-ease); }
.sm-switch-knob svg:last-child { opacity: 0; transform: rotate(-40deg); }
.sm-switch[aria-checked="true"] .sm-switch-track { background: var(--fx-accent-soft); border-color: var(--fx-accent); }
.sm-switch[aria-checked="true"] .sm-switch-knob { transform: translateX(24px); background: var(--fx-card-ink); }
.sm-switch[aria-checked="true"] .sm-switch-knob svg:first-child { opacity: 0; transform: rotate(40deg); }
.sm-switch[aria-checked="true"] .sm-switch-knob svg:last-child { opacity: 1; transform: none; }
.sm-switch:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sm-switch-knob, .sm-switch-knob svg { transition: none; } }
/* Language buttons (EN / KR) beside the theme switch (2026-11-14). The chosen language is underlined as well as darker,
   so the state does not rest on colour alone; the buttons are large enough to tap. */
.sm-top-actions { display: flex; align-items: center; gap: 2px; }
.sm-top-actions .fx-lang button { min-width: 36px; min-height: 40px; padding: 10px 8px; border-radius: 8px; }
.sm-top-actions .fx-lang button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.fx-lang button:focus-visible, .fx-seg button:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }

/* 포털에서 넘어온 파란 빛무리·창 불빛·칩 색을 SIMUL 황금 계열로 (대표님 10-25 "컬러 조합이 어색함", "황금색 계열로") */
.fx-rim { --rim-hot: 60, 42, 6; --rim-cool: 160, 116, 22; }
:root[data-theme="dark"] .fx-rim { --rim-hot: 46, 32, 6; --rim-cool: 196, 146, 48; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .fx-rim { --rim-hot: 46, 32, 6; --rim-cool: 196, 146, 48; } }
.fx-windows { --win-off: rgba(28, 22, 8, .045); --win-off-line: rgba(28, 22, 8, .09); --win-off-ink: rgba(28, 22, 8, .3); --win-on: linear-gradient(180deg, #b38726, var(--fx-accent)); --win-on-ink: #fff; --win-glow: rgba(131, 94, 14, .32); }
:root[data-theme="dark"] .fx-windows { --win-off: rgba(240, 233, 216, .03); --win-off-line: rgba(240, 233, 216, .07); --win-off-ink: rgba(240, 233, 216, .22); --win-on: linear-gradient(180deg, #fff0c8 0%, #ecc46a 100%); --win-on-ink: #3b2a0c; --win-glow: rgba(227, 180, 79, .36); }
.fx-chip:hover { background: var(--fx-accent-soft); }

/* 2026-11-20 (Astra audit). Planned episodes without a destination are plain rows, not links; each row is #ep-NN. */
.sm-ep-row { cursor: default; }
.sm-ep:target > a, .sm-ep:target > .sm-ep-row { border-color: var(--fx-accent); }
.sm-ep:focus { outline: none; }
.sm-ep:focus-visible > a, .sm-ep:focus-visible > .sm-ep-row { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
/* Hero: new topic and card text enter together with their link; the motion is presentation only. */
@keyframes sm-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fx-topic.is-entering > span:not(.fx-sr) { animation: sm-enter .22s var(--fx-ease); }
.fx-card.is-entering .fx-card-body { animation: sm-enter .2s var(--fx-ease); }
.fx-topic > .fx-sr { border: 0; }
/* Pause control for the rotating topic. aria-pressed="true" means paused, and the icon turns to play. */
.sm-rotate { appearance: none; margin-left: auto; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--fx-glass-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--fx-ease); }
.sm-rotate:hover { background: var(--fx-glass-hi); }
.sm-rotate:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
.sm-rotate svg { width: 14px; height: 14px; grid-area: 1 / 1; }
.sm-rotate .sm-rotate-play, .sm-rotate[aria-pressed="true"] .sm-rotate-pause { display: none; }
.sm-rotate[aria-pressed="true"] .sm-rotate-play { display: block; }
.sm-rotate:not([hidden]) + .fx-more { margin-left: 2px; }
@media (prefers-reduced-motion: reduce) { .fx-topic.is-entering > span, .fx-card.is-entering .fx-card-body { animation: none; } }
/* Astra r2 1st-turn NEW-3: the author display rule above must not override [hidden]; the script reveals the button after binding it. */
.sm-rotate[hidden] { display: none; }
/* Astra r2 1st-turn NEW-5: episode rows are fragment targets (#ep-NN); keep them clear of the fixed navigation, as .fx-section is. */
.sm-ep[id] { scroll-margin-top: 80px; }
/* Astra r2 1st-turn finding 9: while the Index is open the consent notice is inert (riscon-field.js modalGuard) and is not drawn over it. */
html.fx-modal-open [data-riscon-consent-ui][data-fx-held] { visibility: hidden; }
