/* Scoped to Nossa Trajetória; colors are shared semantic section tokens. */
:root {
  --history-surface: oklch(.98 0 0);
  --history-surface-active: oklch(1 0 0);
  --history-foreground: oklch(.12 0 0);
  --history-muted: oklch(.36 0 0);
  --history-border: oklch(.74 0 0);
  --history-line: oklch(.72 0 0);
  --history-light: oklch(.82 0 0);
  --history-line-glow: 0 0 10px oklch(.72 0 0 / .5);
  --history-card-glow: 0 0 20px oklch(.72 0 0 / .16), 0 8px 24px oklch(0 0 0 / .2);
  --history-shadow: 0 16px 36px oklch(0 0 0 / .35), 0 0 30px oklch(.72 0 0 / .4);
  --history-glow: 0 0 0 5px oklch(.72 0 0 / .12), 0 0 20px oklch(.72 0 0 / .7);
}
.sb-history { position:relative; isolation:isolate; }
.sb-history .sb-label { letter-spacing:0; }
.sb-history .sb-head { margin-bottom:18px; }
.sb-history-track { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; position:relative; height:500px; }
.sb-history-track::before { content:""; position:absolute; top:50%; left:8%; right:8%; height:1px; background:var(--history-line); box-shadow:var(--history-line-glow); }
.sb-history-step { position:relative; min-width:0; }
.sb-history-point { position:absolute; width:12px; height:12px; border-radius:50%; top:calc(50% - 6px); left:calc(50% - 6px); background:var(--history-light); border:2px solid var(--history-line); box-shadow:var(--history-line-glow); transition:background .3s,box-shadow .3s,border-color .3s; }
.sb-history-step::before { content:""; position:absolute; left:calc(50% - .5px); top:calc(50% - 28px); height:28px; width:1px; background:var(--history-line); }
.sb-history-step:nth-child(even)::before { top:50%; }
.sb-history-card { position:absolute; bottom:calc(50% + 28px); left:50%; transform:translateX(-50%); width:100%; min-height:144px; padding:20px 12px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; border:1px solid var(--history-border); border-radius:8px; background:var(--history-surface); color:var(--history-foreground); font:inherit; text-align:center; cursor:pointer; transition:width .3s,background .3s,border-color .3s,box-shadow .3s; }
.sb-history-step:nth-child(even) .sb-history-card { top:calc(50% + 28px); bottom:auto; }
.sb-history-card { border-color:var(--history-light); box-shadow:var(--history-card-glow); }
.sb-history-card::before { content:""; position:absolute; left:22%; right:22%; top:-1px; height:1px; background:var(--history-line); box-shadow:var(--history-line-glow); opacity:.55; transition:opacity .3s,left .3s,right .3s; pointer-events:none; }
.sb-history-step.is-open .sb-history-card::before { left:12%; right:12%; opacity:1; }
.sb-history-step.is-open::before { background:var(--history-light); box-shadow:var(--history-line-glow); }
.sb-history-number { font-size:12px; font-weight:700; color:var(--history-muted); line-height:1; }
.sb-history-title { font-size:17px; font-weight:700; line-height:1.3; letter-spacing:0; max-width:100%; }
.sb-history-description { display:grid; grid-template-rows:0fr; opacity:0; visibility:hidden; width:100%; transition:grid-template-rows .3s,opacity .3s,visibility .3s; }
.sb-history-description > span { overflow:hidden; min-height:0; font-size:14px; line-height:1.55; color:var(--history-muted); }
.sb-history-card:not([aria-expanded="true"]) .sb-history-description { position:absolute; }
.sb-history-step.is-open { z-index:3; }
.sb-history-step.is-open .sb-history-card { width:310px; padding:20px; background:var(--history-surface-active); border-color:var(--history-line); box-shadow:var(--history-shadow); }
.sb-history-step:first-child.is-open .sb-history-card { left:0; transform:none; }
.sb-history-step:last-child.is-open .sb-history-card { left:auto; right:0; transform:none; }
.sb-history-card[aria-expanded="true"] .sb-history-description { grid-template-rows:1fr; opacity:1; visibility:visible; }
.sb-history-step.is-open .sb-history-point { background:var(--history-light); border-color:var(--history-light); box-shadow:var(--history-glow); }
.sb-history-card:focus-visible { outline:2px solid var(--history-light); outline-offset:5px; }
@media (max-width:1100px) {
  .sb-history .sb-head { margin-bottom:30px; }
  .sb-history-track { display:flex; flex-direction:column; gap:14px; height:auto; padding-left:32px; }
  .sb-history-track::before { top:0; bottom:0; left:6px; right:auto; height:auto; width:1px; }
  .sb-history-step::before,.sb-history-step:nth-child(even)::before { top:36px; left:-25px; width:25px; height:1px; }
  .sb-history-point { left:-31px; top:30px; }
  .sb-history-card,.sb-history-step:nth-child(even) .sb-history-card,.sb-history-step.is-open .sb-history-card,.sb-history-step:first-child.is-open .sb-history-card,.sb-history-step:last-child.is-open .sb-history-card { position:relative; inset:auto; transform:none; width:100%; min-height:88px; padding:20px; display:grid; grid-template-columns:24px minmax(0,1fr); gap:12px; text-align:left; }
  .sb-history-description { grid-column:2; }
  .sb-history-card:not([aria-expanded="true"]) .sb-history-description { display:none; }
  .sb-history-title { font-size:17px; }
}
@media (prefers-reduced-motion:reduce) { .sb-history * { transition:none!important; } }