/* Palette from Kronowave Authority Overlay's published catalog stylesheet. */
:root {
  --bg: #080e11;
  --surface: #0e181c;
  --raised: #122024;
  --line: #26383e;
  --text: #f2f6f5;
  --body: #d0ddde;
  --muted: #a3b7ba;
  --accent: #69e1d2;
  --accent-soft: #122c2a;
  --accent-dark: #092520;
  --wire: #82aaa9;
}
.catalog-hero,.commerce-home {
  background: radial-gradient(ellipse at 86% 3%,#123333,transparent 54%),linear-gradient(150deg,#0b1519,#080e11);
}
.featured-workflow,.home-example,.workflow-diagram {
  background: #0c1c1d;
  border-color: #3d615e;
}
.featured-bottom a,.featured-top,.graphic-context strong,.scope-switch button.active span,
.workflow-info small span,.graphic-context:before {color:var(--accent)}
.featured-controls button:hover,.workflow-row:hover,.workflow-row:focus-visible {border-color:var(--accent)}
.workflow-row:hover,.workflow-row:focus-visible {background:var(--raised)}
.workflow-row,.workflow-row:last-child {min-height:84px;align-content:center}
.scope-switch button.active,.option-choices button[aria-pressed="true"],.authority-condition {
  color:var(--accent);background:var(--accent-soft);border-color:#497b75;
}
.operation-graphic,.diagram-wrap {background:var(--surface)}
.workflow-diagram {background:var(--surface)}
.authority-unit .workflow-icon,.authority-grant .workflow-icon,.graphic-verify .workflow-icon {filter:none;border-color:#64948e}
.authority-connector {background:var(--wire)}
.authority-connector:after {border-color:var(--wire)}
.graphic-context,.is-adapted .graphic-context {border:1px solid transparent;padding:7px 13px}
.graphic-context:before {background:var(--accent);box-shadow:none}
.is-adapted .graphic-context {background:var(--accent-soft);border-color:#3d615e}
.graphic-verify,.featured-bottom {border-color:#31504f}
.authority-panel {background:#0c1c1d;border-color:#3d615e}
.control-list .control-chips a {background:#132226;border-color:#365055;color:#c9e4e2}
.financial-path {width:100%;min-width:0;--travel-duration:5.4s;--iterations:1}
.financial-path.looping {--iterations:infinite;--travel-duration:7.6s}
.financial-path > svg {display:block;width:100%;height:auto;overflow:visible}
.wave-labels {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;text-align:center}
.wave-labels strong {padding:0 4px;color:var(--text);font:600 clamp(16px,1.65vw,23px)/1.22 KWHBody,sans-serif}
.featured-workflow .financial-path {margin:16px 0 19px}
.home-example .financial-path {margin:16px 0 0}
.featured-workflow .wave-labels strong,.home-example .wave-labels strong {font-size:clamp(15px,1.25vw,18px)}
.wire,.arrow-tip,.travel {fill:none;stroke:var(--wire);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.node-frame {fill:var(--surface);stroke:var(--wire);stroke-width:2}
.travel {stroke:var(--accent);stroke-width:4;stroke-dasharray:24 110;stroke-dashoffset:25;opacity:0}
.in-view .travel,.in-view .node-frame {animation-duration:var(--travel-duration);animation-iteration-count:var(--iterations);animation-timing-function:linear;animation-fill-mode:both}
.in-view .edge-0 .travel {animation-name:first-transfer}
.in-view .edge-1 .travel {animation-name:second-transfer}
.in-view .step-0 .node-frame {animation-name:origin}
.in-view .step-1 .node-frame {animation-name:operation}
.in-view .step-2 .node-frame {animation-name:outcome}
@keyframes first-transfer {0%,10%{opacity:0;stroke-dashoffset:25}12%{opacity:1}36%{opacity:1;stroke-dashoffset:-100}37%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes second-transfer {0%,42%{opacity:0;stroke-dashoffset:25}44%{opacity:1}68%{opacity:1;stroke-dashoffset:-100}69%,100%{opacity:0;stroke-dashoffset:-100}}
/* The same resting and active colors apply at each point along the path. */
.financial-path {
  --node-active-fill: #214843;
}
@keyframes origin {
  0%, 18%, 100% { fill: var(--surface); stroke: var(--wire); }
  4%, 12% { fill: var(--node-active-fill); stroke: var(--accent); }
}
@keyframes operation {
  0%, 29%, 51%, 100% { fill: var(--surface); stroke: var(--wire); }
  36%, 44% { fill: var(--node-active-fill); stroke: var(--accent); }
}
@keyframes outcome {
  0%, 62%, 94%, 100% { fill: var(--surface); stroke: var(--wire); }
  69%, 85% { fill: var(--node-active-fill); stroke: var(--accent); }
}
#kw-home-final .commerce-home {box-sizing:border-box;width:min(1220px,calc(100% - 36px));margin:clamp(2.25rem,4vw,3.5rem) auto 0;padding:clamp(22px,3.3vw,42px);border:1px solid #3d615e;border-radius:12px;display:grid;grid-template-columns:minmax(0,1.10fr) minmax(0,1fr);align-items:center;gap:clamp(28px,3.5vw,48px);scroll-margin-top:85px;--kh-button:var(--accent)}
#kw-home-final .commerce-intro {min-width:0}
#kw-home-final #commerce-title {text-align:left;margin:0;font:750 clamp(1.8rem,3.35vw,3rem)/1.1 KWThemeOxanium,KWHHeading,sans-serif;letter-spacing:-.035em;color:#e2cdbd;text-wrap:balance}
#kw-home-final #commerce-title > span {color:var(--accent)}
.commerce-brands {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:clamp(8px,1.4vw,20px);align-items:center;margin:26px 0 20px}
.commerce-brands span {display:inline-flex;align-items:center;gap:6px;color:#fff;font:700 22px KWHBody,sans-serif}
.commerce-brands img {width:27px;height:27px;object-fit:contain}
#kw-home-final .commerce-example-column p {color:var(--body);font:400 18px/1.45 KWHBody,sans-serif;margin:0 0 24px;text-align:left}
#kw-home-final .commerce-home .kh-explore {width:fit-content;max-width:100%;justify-self:start;padding-inline:clamp(20px,2vw,30px);color:#000}
#kw-home-final .commerce-example-column {width:100%;max-width:520px;min-width:0;align-self:center;justify-self:end}
#kw-home-final .commerce-home .home-example {box-sizing:border-box;width:100%;margin:0;padding:clamp(12px,1.1vw,16px)}

@media (min-width:801px) {
  #kw-home-final .commerce-intro {
    align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;
    justify-content:space-between;gap:22px;
  }
  #kw-home-final .commerce-intro .commerce-brands {margin:0}
  #kw-home-final .commerce-example-column {align-self:end}
}

@media (min-width:651px) and (max-width:850px) {
  #kw-home-final .commerce-home {width:calc(100% - 28px)}
}
@media (max-width:410px) {
  .commerce-brands {gap:clamp(12px,4vw,17px)}
  .commerce-brands span {flex-direction:column;gap:2px;line-height:1.2}
}
@media (max-width:650px) {
  #kw-home-final .commerce-home {width:min(430px,calc(100% - 36px));padding-inline:1.25rem}
  #kw-home-final .commerce-home .kh-explore {width:fit-content}
}
.home-example {margin:0;border:1px solid #3d615e;border-radius:10px;padding:22px;min-width:0}
.home-workflow-meta {display:block;color:var(--accent);font:600 14px/1.35 KWHBody,sans-serif}
.home-example figcaption strong {display:block;margin-top:6px;color:var(--text);font:700 clamp(20px,1.6vw,22px)/1.15 KWThemeOxanium,KWHHeading,sans-serif}
@media(max-width:800px){#kw-home-final .commerce-home{grid-template-columns:minmax(0,1fr)}#kw-home-final .commerce-example-column{justify-self:start;max-width: min(100%, 520px)}.home-example{padding:18px}.detail-shell .financial-path{margin:24px 0}.operation-graphic{gap:12px}}
@media(max-width:580px){.diagram-wrap{padding:6px}.operation-graphic{padding:15px 9px}.financial-path .wave-labels strong{font-size:15px}.featured-workflow{min-height:270px}}
@media(prefers-reduced-motion:reduce){.financial-path.in-view *{animation:none}}

/* ACS surfaces use charcoal and copper. The embedded authority catalog owns its teal. */
.acs, .commerce-home {
  --bg: #151311;
  --surface: #211d1a;
  --raised: #302822;
  --line: #4d4239;
  --text: #f6f0e9;
  --body: #dbd1c6;
  --muted: #bcaea2;
  --accent: #f0ae79;
  --accent-soft: #3a2a20;
  --wire: #afa192;
  --rim: #715440;
}
.acs .authority-panel {
  --text: #f2f6f5;
  --body: #d0ddde;
  --muted: #a3b7ba;
  --accent: #69e1d2;
  color: var(--body);
}
.acs .catalog-hero, #kw-home-final .commerce-home {
  border-color: var(--rim);
  background: radial-gradient(ellipse at 84% 8%, #3d2c21, transparent 59%), linear-gradient(145deg, #1d1916, var(--bg));
}
.acs .site-header, .acs .site-footer {background:#100f0e;border-color:var(--line)}
.acs .workflow-list {background:transparent}
.acs .workflow-row, .acs .workflow-row:last-child {
  grid-template-columns:max-content minmax(0,1fr);
  column-gap:16px;
  border-color:var(--line);
  background:var(--surface);
}
.acs .workflow-row:is(:hover,:focus-visible) {background:var(--raised);border-color:var(--rim)}
.acs .featured-workflow, .commerce-home .home-example, .acs .workflow-diagram {
  background:var(--surface); border-color:var(--rim);
}
.acs .featured-title h2, .acs .operation-graphic, .acs .graphic-verify strong {color:var(--text)}
.acs .featured-index, .acs .featured-title>span, .acs .graphic-verify {color:var(--muted)}
.acs .featured-bottom, .acs .graphic-verify,
.acs .option-group, .acs .stage-heading, .acs .coverage>div, .acs .pagination a,
.acs .platform+.platform {border-color:var(--line)}
.acs .operation-stage, .acs .platform-panel, .acs .filters,
.acs .search input, .acs .adapter {background:var(--surface);border-color:var(--line)}
.acs .diagram-wrap {background:var(--bg)}
.acs .operation-graphic {background:var(--surface)}
.acs .search input::placeholder, .acs .search kbd {color:var(--muted)}
.acs .search svg {stroke:var(--muted)}
.acs .search kbd, .acs .filters nav a {border-color:var(--line)}
.acs .option-group legend {color:var(--body)}
.acs .scope-switch button, .acs .featured-controls button, .acs .option-choices button {
  background:var(--bg); border-color:var(--line); color:var(--body);
}
.acs .scope-switch button.active, .acs .option-choices button[aria-pressed=true], .acs .authority-condition {
  background:var(--accent-soft); border-color:var(--rim); color:var(--accent);
}
.acs .filters nav a:is(:hover,:focus-visible) {background:var(--raised);color:var(--accent)}
.acs .search input:focus, .acs .option-choices button:hover, .acs .featured-controls button:hover,
.acs .pagination a:hover {border-color:var(--accent)}
.acs .financial-path, .commerce-home .financial-path {--node-active-fill:#533823}
.workflow-icon {fill:#c9bfb3;stroke:none;display:block}
.acs .authority-unit .workflow-icon {border-color:var(--wire)}
.authority-condition {display:inline-flex;align-items:center;gap:6px}
.authority-condition .workflow-icon {width:17px;height:17px}
.approval-gate circle {stroke:var(--wire);fill:var(--surface);stroke-width:2}
@media (prefers-reduced-motion:no-preference) {
  .in-view .approval-gate circle {
    animation:approval-check var(--travel-duration) linear both var(--iterations);
  }
}
@keyframes approval-check {
  0%,17%,32%,100% {fill:var(--surface);stroke:var(--wire)}
  21%,26% {fill:var(--node-active-fill);stroke:var(--accent)}
}
.featured-controls button {display:grid;place-items:center;padding:0}
.featured-controls svg {display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.featured-title > span {font-size:0.9rem}
.workflow-info strong {font-size:1.125rem}
.workflow-info small {font-size:.90625rem}
@media (max-width:580px) {
  .workflow-info strong {font-size:1rem}
  .workflow-info small {font-size:.8125rem}
}
@media(max-width:700px){
  .acs .workflow-row, .acs .workflow-row:last-child {grid-template-columns:1fr;gap:6px}
}

/* Every slide contributes to the same rows, including while its content is hidden. */
.featured-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-content: space-between;
}
.featured-top {grid-area: 1 / 1}
.featured-slide {display: contents}
.featured-slide > .featured-title {grid-area: 2 / 1}
.featured-slide > .financial-path {grid-area: 3 / 1}
.featured-bottom {grid-area: 4 / 1}
.featured-slide > * {transition: opacity 160ms ease}
.featured-slide[inert] > * {visibility: hidden; opacity: 0; pointer-events: none}
@media (prefers-reduced-motion: reduce) {
  .featured-slide > * {transition: none}
}

.home-example {container-type:inline-size}
.home-example .graphic-authority {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;
  margin-top:13px;padding-top:11px;border-top:1px solid var(--line);
  color:var(--body);font:600 14px/1.3 KWHBody,sans-serif;
}
.home-example .authority-unit,.home-example .authority-condition {
  display:inline-flex;align-items:center;gap:5px;white-space:nowrap
}
.home-example .authority-unit svg {width:20px;height:20px;flex:none}
.home-example .authority-connector {width:18px;height:1px;background:var(--wire);position:relative}
.home-example .authority-connector::after {
  content:"";position:absolute;right:0;top:-2px;width:5px;height:5px;
  border-right:1px solid var(--wire);border-top:1px solid var(--wire);transform:rotate(45deg)
}
.home-example .authority-condition {
  margin-left:auto;padding:3px 7px;border:1px solid var(--rim);border-radius:4px;
  background:var(--accent-soft);color:var(--accent)
}
.home-example .authority-condition svg {width:14px;height:14px}
.home-example .graphic-verify {
  display:flex;align-items:center;gap:6px;margin-top:14px;padding-top:10px;
  border-top:1px solid var(--line);color:var(--muted);font:600 14px/1.3 KWHBody,sans-serif
}
.home-example .graphic-verify svg {width:18px;height:18px;flex:none}
.home-example .graphic-verify strong {margin-left:auto;text-align:right;color:var(--text);font-weight:600}
@container (max-width:390px) {
  .home-example .authority-condition {margin-left:0}
  .home-example .graphic-verify {display:grid;grid-template-columns:18px 1fr}
  .home-example .graphic-verify strong {grid-column:2;margin:0;text-align:left}
}

.workflow-products {
  margin-top: 17px;
  scroll-margin-top: 96px;
  background: var(--surface);
  border-color: var(--line);
}
.workflow-products h2 { margin-bottom: 18px; }
.workflow-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.workflow-product-grid > div { padding-inline: clamp(16px, 2vw, 28px); }
.workflow-product-grid > div + div { border-inline-start: 1px solid var(--line); }
.workflow-product-grid > div:first-child { padding-inline-start: 0; }
.workflow-product-grid > div:last-child { padding-inline-end: 0; }
.workflow-product-grid h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font: 700 1.25rem/1.2 KWThemeOxanium, KWHHeading, sans-serif;
}
.workflow-product-grid h3 a:hover, .workflow-product-grid h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.workflow-product-grid p {
  margin: 0;
  color: var(--body);
  font: 400 1rem/1.48 KWHBody, sans-serif;
}
@media (max-width: 760px) {
  .workflow-product-grid { grid-template-columns: 1fr; padding-top: 0; }
  .workflow-product-grid > div { padding: 14px 0; }
  .workflow-product-grid > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .workflow-product-grid > div:last-child { padding-bottom: 0; }
}
