/* ============================================================
   v12.17 — Systems identity marks + quick finder
   Claude/Content, 3.9.2026, at Daniel's explicit request.
   Marks A ("The Governed Signal", DllS · SYSTEMS master) and
   B ("The Living Docket", LexOS product) are promoted verbatim
   from deployments/local-v12.9-tech-identity-concepts/ — the
   geometry, palette and 1.26s settle timing that Alicia PASSed
   on 13.8.2026 (reports/art-v12.9-tech-identity-concepts.md).
   Motion contract: transform/opacity + one-shot stroke draw only,
   driven by the site's existing [data-motion-scope] observer;
   reduced-motion = fully settled static mark; forced-colors =
   CanvasText geometry. No JS, no network, no raster.
   ============================================================ */

.systems-threshold,
.product-threshold{
  position:relative;
  isolation:isolate;
  --tm-ink:#FFF3D7;
  --tm-gold:#E2C47D;
  --tm-silver:#C4D6E3;
  --tm-sage:#92AFB1;
  --tm-ease:cubic-bezier(.2,.72,.2,1);
}
html[data-theme="light"] .systems-threshold,
html[data-theme="light"] .product-threshold{
  --tm-ink:#20303B;
  --tm-gold:#8A6828;
  --tm-silver:#718493;
  --tm-sage:#647E81;
}

/* A — master mark, centred threshold (mirrors .law-threshold rhythm) */
.systems-threshold{
  display:grid;
  place-items:center;
  width:min(100%,960px);
  min-height:200px;
  margin:14px auto 26px;
}
.systems-threshold::before{
  content:'';
  position:absolute;
  z-index:0;
  width:260px;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(226,196,125,.10),rgba(226,196,125,.03) 48%,transparent 72%);
  pointer-events:none;
}
html[data-theme="light"] .systems-threshold::before{
  background:radial-gradient(circle,rgba(138,104,40,.09),rgba(138,104,40,.025) 48%,transparent 72%);
}
.systems-threshold svg{
  position:relative;
  z-index:1;
  display:block;
  width:min(400px,78vw);
  height:auto;
  overflow:visible;
  color:var(--tm-ink);
}

/* B — product mark, start-aligned compact badge */
.product-threshold{
  display:block;
  width:min(272px,66vw);
  margin:6px 0 20px;
}
.product-threshold svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
  color:var(--tm-ink);
}

/* shared SVG system (from the v12.9 concept board) */
.tm-outline,.tm-flow,.tm-detail,.tm-accent{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tm-outline{stroke:var(--tm-ink);stroke-width:1.35;opacity:.82}
.tm-flow{stroke:var(--tm-gold);stroke-width:1.7}
.tm-detail{stroke:var(--tm-silver);stroke-width:1;opacity:.68}
.tm-accent{stroke:var(--tm-sage);stroke-width:1;opacity:.72}
.tm-node-gold{fill:var(--tm-gold)}
.tm-node-silver{fill:var(--tm-silver)}
.tm-soft{fill:var(--tm-gold);opacity:.055}
.tm-draw{stroke-dasharray:1;stroke-dashoffset:0}

/* A: Governed Signal — input draw → split → human gate → decision → output */
.mark-a .a-frame{opacity:.48}
.mark-a .a-gate{stroke-width:2}
.mark-a .a-decision{transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 8px rgba(226,196,125,.55))}
html[data-theme="light"] .mark-a .a-decision{filter:drop-shadow(0 0 6px rgba(138,104,40,.45))}
.systems-threshold.is-motion-visible .a-in{animation:v1217Draw .38s var(--tm-ease) both}
.systems-threshold.is-motion-visible .a-branch{animation:v1217Draw .62s var(--tm-ease) .22s both}
.systems-threshold.is-motion-visible .a-gate{animation:v1217Gate .34s ease .70s both}
.systems-threshold.is-motion-visible .a-out{animation:v1217Draw .38s var(--tm-ease) .88s both}
.systems-threshold.is-motion-visible .a-decision{animation:v1217Decision .46s var(--tm-ease) .72s both}

/* B: Living Docket — signal in → middle node → records written → signal out */
.mark-b .b-fold{fill:var(--tm-gold);opacity:.08}
.mark-b .b-active{transform-box:fill-box;transform-origin:center}
.product-threshold.is-motion-visible .b-in{animation:v1217Draw .52s var(--tm-ease) both}
.product-threshold.is-motion-visible .b-active{animation:v1217Node .44s var(--tm-ease) .42s both}
.product-threshold.is-motion-visible .b-record{animation:v1217Record .58s var(--tm-ease) .58s both}
.product-threshold.is-motion-visible .b-out{animation:v1217Draw .42s var(--tm-ease) .84s both}

@keyframes v1217Draw{from{stroke-dashoffset:1;opacity:.18}to{stroke-dashoffset:0;opacity:1}}
@keyframes v1217Gate{0%{opacity:.30}45%{opacity:1}100%{opacity:1}}
@keyframes v1217Decision{0%{opacity:0;transform:scale(.5)}55%{opacity:1;transform:scale(1.35)}100%{opacity:1;transform:scale(1)}}
@keyframes v1217Node{0%{opacity:.3;transform:scale(.7)}55%{opacity:1;transform:scale(1.32)}100%{opacity:1;transform:scale(1)}}
@keyframes v1217Record{from{stroke-dashoffset:1;opacity:.16}to{stroke-dashoffset:0;opacity:.82}}

/* ------------------------------------------------------------
   Quick finder — practice areas / articles, filtered in place
   ------------------------------------------------------------ */
.finder{
  display:flex;
  align-items:center;
  gap:12px 16px;
  flex-wrap:wrap;
  margin:22px 0 30px;
}
.finder-label{
  font-family:var(--sans);
  font-weight:500;
  font-size:11.5px;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold);
  white-space:nowrap;
}
.finder-input{
  flex:1 1 260px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--gold-border,rgba(201,169,110,.32));
  border-radius:8px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:15px;
  transition:border-color .25s ease;
}
.finder-input:hover{border-color:rgba(201,169,110,.55)}
.finder-input:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-color:var(--gold)}
.finder-input::placeholder{color:var(--text-low,#8b8576);opacity:1}
.finder-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.finder-count{font-size:13px;color:var(--text-mid,#cfc8b8);min-width:7ch;white-space:nowrap}
.finder-empty{display:none;flex-basis:100%;margin:0;font-size:14px;line-height:1.6;color:var(--text-mid,#cfc8b8)}
.finder-empty a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
.finder.is-empty .finder-empty{display:block}
/* author display rules on cards beat the UA [hidden] rule — pin it */
.pr-card[hidden],.art-row[hidden],.fam[hidden]{display:none !important}

@media(max-width:720px){
  .systems-threshold{min-height:150px;margin:8px auto 18px}
  .systems-threshold::before{width:180px}
  .finder{margin:16px 0 22px}
}

@media(prefers-reduced-motion:reduce){
  .systems-threshold *,.product-threshold *{animation:none !important;transform:none !important}
  .tm-draw{stroke-dashoffset:0}
  .finder-input{transition:none}
}

@media(forced-colors:active){
  .tm-outline,.tm-flow,.tm-detail,.tm-accent{stroke:CanvasText !important}
  .tm-node-gold,.tm-node-silver{fill:CanvasText !important}
  .tm-soft,.mark-b .b-fold,.systems-threshold::before{display:none}
  .mark-a .a-decision{filter:none}
  .finder-input{border-color:CanvasText}
}

/* 14.9.2026 -- Daniel: pre-publish "coming soon" flag for pages/sections not yet live. */
.soon-badge{
  display:inline-flex;
  align-items:center;
  margin-inline-start:10px;
  padding:3px 10px;
  border:1px solid var(--gold-border,rgba(201,169,110,.4));
  border-radius:999px;
  font-family:var(--sans);
  font-weight:500;
  font-size:10.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
  background:rgba(201,169,110,.08);
  white-space:nowrap;
  vertical-align:middle;
}
.art-medium{position:relative}
.art-medium .soon-badge{position:absolute;top:16px;inset-inline-end:16px;margin:0;z-index:1}
@media(forced-colors:active){.soon-badge{border-color:CanvasText;color:CanvasText;background:Canvas}}

/* 15.9.2026 -- case-selection statement on /law/ (Alicia PASS 15.9). */
.law-select{max-width:760px;margin:18px 0 0;font-size:15px;line-height:1.85;color:var(--text-mid,#cfc8b8)}
.law-select a{color:var(--gold);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.cform-note--select{margin-top:6px}
