/* TraceRecord icon system — presentation layer.
   Icons draw their primary line from currentColor; category accents come
   from the hooks below, which map onto the existing brand palette. */
:root{
  --tri-a1:#3c6081;   /* teal-steel · capture, methods, evidence */
  --tri-a2:#b7791f;   /* amber · judgement prompts, needs attention */
  --tri-a3:#944238;   /* rust · limitations, blocked */
  --tri-a4:#2f6a4f;   /* sage-green · approved, complete, ready */
  --tri-surface:#f6f3ea;
}

/* Base sizes */
.tr-icon{width:24px;height:24px;flex:none;color:inherit}
.tr-icon--sm{width:18px;height:18px}
.tr-icon--md{width:32px;height:32px}
.tr-icon--lg{width:44px;height:44px}
.tr-icon--hero{width:64px;height:64px}
.tr-icon--muted{opacity:.6}
.tr-icon--on-dark{color:#f6f3ea;--tri-surface:#182c46;--tri-a1:#8fb0c9;--tri-a2:#e0a43a;--tri-a3:#d38b80;--tri-a4:#9cc7ae}

/* Bracket tile — the logo's open-bracket silhouette as a container */
.tr-tile{position:relative;display:grid;place-items:center;width:72px;height:72px;background:var(--paper-2,#fbf8f1);flex:none}
.tr-tile::before,.tr-tile::after{content:"";position:absolute;width:16px;height:16px;border:0 solid rgba(23,36,44,.45)}
.tr-tile::before{top:0;left:0;border-top-width:2px;border-left-width:2px}
.tr-tile::after{bottom:0;right:0;border-bottom-width:2px;border-right-width:2px}
.tr-tile--sm{width:52px;height:52px}
.tr-tile--sm::before,.tr-tile--sm::after{width:12px;height:12px}
.tr-tile--dark{background:var(--navy-deep,#0f1b2d)}
.tr-tile--dark::before,.tr-tile--dark::after{border-color:rgba(246,243,234,.5)}

/* Product badge — [emblem] Trace & Access Record */
.tr-product-badge{display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 9px;border:1px solid var(--line,#dad3c6);border-radius:12px;background:var(--paper-2,#fbf8f1);color:var(--ink,#17242c);font-weight:800;font-size:.92rem;letter-spacing:.01em}
.tr-product-badge .tr-icon{width:26px;height:26px}
.tr-product-badge small{display:block;font-weight:650;font-size:.72rem;color:var(--muted,#586570);letter-spacing:.04em;text-transform:uppercase}
.tr-product-badge--dark{background:rgba(246,243,234,.08);border-color:rgba(246,243,234,.25);color:#f6f3ea}

/* Tools index cards */
.tool-index-feature .tr-tile{margin-bottom:14px}
.tool-card .tr-icon--lg{display:block;margin-bottom:12px;color:var(--pine,#17242c)}

/* Individual tool-page hero */
.tool-hero .tr-tile{margin-bottom:16px}
.tool-stickynav .tr-icon{width:20px;height:20px;vertical-align:-4px;margin-right:6px}

/* Workspace chapter navigation */
.ws-chapter-nav button .chapter-nav-ico{position:absolute;top:10px;right:10px;width:21px;height:21px;color:var(--teal,#3c6081);opacity:.85;transition:opacity .2s ease}
.ws-chapter-nav button.is-active .chapter-nav-ico,
.ws-chapter-nav button:hover .chapter-nav-ico{opacity:1;color:var(--pine,#17242c)}
.mobile-case-tabs button svg{width:15px;height:15px;margin-right:5px;vertical-align:-2.5px}

/* Chapter heading icons inside panels */
.ws-chapter .chapter-head-ico{width:26px;height:26px;vertical-align:-6px;margin-right:8px;color:var(--teal,#3c6081)}

/* Landing: field-tool preview links */
.tools-home-previews .tr-icon{width:30px;height:30px;flex:none;color:var(--pine,#17242c)}
.tools-home-previews a > .tools-home-ico{display:grid;place-items:center}

/* Icon interaction — instrument response: lift, brighten, accent tick */
.tr-icon{transition:transform .22s cubic-bezier(.2,.8,.2,1),color .22s ease}
a:hover .tr-icon,button:hover .tr-icon,a:focus-visible .tr-icon,button:focus-visible .tr-icon{transform:translateY(-2px) scale(1.12);color:var(--amber,#b7791f)}
.tr-banner a:hover .tr-icon,.tr-banner a:focus-visible .tr-icon,.lp-footer a:hover .tr-icon{color:#f6f3ea}
.lp-footer-col a:hover .lp-footer-link-icon,.lp-footer-cta:hover svg:first-child{transform:translateY(-2px) scale(1.12)}
.lp-footer-link-icon,.lp-footer-cta svg{transition:transform .22s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){
  .tr-icon,.lp-footer-link-icon,.lp-footer-cta svg,.ws-chapter-nav button .chapter-nav-ico{transition:none}
  a:hover .tr-icon,button:hover .tr-icon,.lp-footer-col a:hover .lp-footer-link-icon,.lp-footer-cta:hover svg:first-child{transform:none}
}
