/* Avante Developers. Skin follows www.avantefin.com (navy, blue/cyan, Space Grotesk);
   body text is Inter on a light page for long reading. Dark mode follows the system setting. */
:root {
  --bg: #f0f4f8; --surface: #ffffff; --ink: #0a1628; --muted: #4a5b70; --line: rgba(10, 22, 40, .11);
  --hero: #040b15; --hero-2: #0a1323; --hero-ink: #ffffff; --hero-muted: rgba(255, 255, 255, .7);
  --accent: #2e63e8; --accent-bright: #48cae4; --accent-ink: #ffffff; --accent-soft: #e8effd; --gold: #b45309;
  --grad: linear-gradient(180deg, #06b6d4 0%, #2563eb 100%);
  --grad-text: linear-gradient(90deg, #48cae4 0%, #6fa6ff 55%, #3979f8 100%);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 16px;
  --shadow: 0 18px 40px -26px rgba(4, 11, 21, .55);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #040b15; --surface: #0a1323; --ink: #e6edf5; --muted: #9aabc0; --line: rgba(255, 255, 255, .09);
    --hero: #020710; --hero-2: #0a1323;
    --accent: #6fa6ff; --accent-ink: #040b15; --accent-soft: rgba(57, 121, 248, .16); --gold: #f0b45a;
    --shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; font-family: var(--display); font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inner { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, 4vw); }
kbd { font: 0.7rem var(--mono); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; opacity: .7; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 22, 40, .94); color: var(--hero-ink);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 80px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; display: block; }
.logo-tag { font: 500 0.95rem var(--display); color: var(--hero-muted); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.top-nav { display: flex; gap: 1.1rem; font-size: 0.9375rem; font-weight: 500; margin-left: auto; margin-right: 1.1rem; } /* sizes and gaps as the website navbar */
@media (min-width: 640px) { .top-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .top-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .top-nav { gap: clamp(0.8rem, calc(0.8rem + (100vw - 1024px) * .121), 2.75rem); font-size: 0.875rem; } } /* same spacing and text steps as the website menu: 14 / 15 / 16px */
@media (min-width: 1100px) { .top-nav { font-size: 0.9375rem; } }
@media (min-width: 1280px) { .top-nav { font-size: 1rem; margin-right: 2rem; } }
.top-nav a { position: relative; padding: 8px 0; line-height: 1.5rem; color: var(--hero-muted); text-decoration: none; transition: all .3s ease; }
.top-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); border-radius: 2px; transition: width .3s ease; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--hero-ink); }
.top-nav a:hover::after, .top-nav a[aria-current]::after { width: 100%; } /* the blue line under the item, as on the website */
/* the line follows the pointer: while another item is hovered, the current one gives up its line */
.top-nav:has(a:not([aria-current]):hover) a[aria-current]:not(:hover) { color: var(--hero-muted); }
.top-nav:has(a:not([aria-current]):hover) a[aria-current]:not(:hover)::after { width: 0; }
.search-trigger { margin-left: 0; display: flex; align-items: center; gap: 8px; font: 500 0.88rem var(--sans); color: var(--hero-muted);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.search-trigger:hover { color: var(--hero-ink); border-color: rgba(255, 255, 255, .28); }

/* Login: opens the Avante sign-in page */
.login-btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 8px; background: linear-gradient(180deg, #06b6d4, #2563eb); color: #fff; font: 600 0.92rem var(--sans); text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(6, 182, 212, .5); transition: transform .25s; }
.login-btn:hover { transform: scale(1.05); }

/* hero: the site's deep navy with a soft blue glow */
.hero { background: radial-gradient(900px 420px at 85% -10%, rgba(46, 91, 255, .32), transparent 65%), var(--hero);
  color: var(--hero-ink); padding-block: 72px 48px; }
.hero .inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; max-width: 18ch; line-height: 1.08; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--hero-muted); font-size: 1.1rem; max-width: 58ch; }
.search { width: min(640px, 100%); display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 5px 10px 5px 18px; margin-top: 8px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1rem var(--sans); color: var(--ink); padding: 11px 0; }
.search input::placeholder { color: var(--muted); }
.search kbd { color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--hero-muted); }
.quick a { font-weight: 500; text-decoration: none; color: var(--hero-ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 12px; }
.quick a:hover { border-color: rgba(72, 202, 228, .6); }

/* home body */
.home { padding-block: 44px 72px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .7); }

/* product showcase: dark glass tiles that continue the hero, like the cards on avantefin.com */
.showcase { background: radial-gradient(800px 420px at 8% 100%, rgba(6, 182, 212, .14), transparent 70%), var(--hero); color: #fff; padding-block: 8px 64px; }
.showcase .inner { display: flex; flex-direction: column; gap: 20px; }
.showcase .section-head h2 { font-size: 1.6rem; }
.showcase .section-head span { color: rgba(255, 255, 255, .6); font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; min-height: 250px; display: flex; flex-direction: column; gap: 14px;
  background: rgba(10, 22, 40, .75); border: 1px solid rgba(255, 255, 255, .08); transition: all .4s cubic-bezier(.4, 0, .2, 1); }
.tile.wide { grid-column: span 2; }
.tile::before { content: ""; position: absolute; top: -40%; right: -40%; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(72, 202, 228, .22), transparent 70%); opacity: .55; transition: opacity .4s; }
.tile:hover { border-color: rgba(72, 202, 228, .45); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile-head { display: flex; gap: 14px; align-items: center; }
.tile-head h3 { font-size: 1.4rem; }
.tile-link { text-decoration: none; color: #fff; }
.tile-link::after { content: ""; position: absolute; inset: 0; } /* the whole tile opens the family */
.tile > p { color: rgba(255, 255, 255, .68); font-size: .95rem; max-width: 46ch; }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.chips a { display: inline-block; font-size: .82rem; text-decoration: none; color: #fff; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s; }
.chips a:hover { border-color: rgba(72, 202, 228, .7); }
.chips mark { background: transparent; color: var(--accent-bright); }
.tile-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.tile-foot b { color: #fff; font: 600 1.1rem var(--display); }
.tile-foot .go { color: var(--accent-bright); font-weight: 600; white-space: nowrap; }
.showcase .empty { color: rgba(255, 255, 255, .7); }
.empty { color: var(--muted); padding: 24px 0; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } .tile { min-height: 0; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.steps div:last-child { border-right: 0; }
.steps div { padding: 22px 24px; }
.steps .n { font: 600 0.72rem var(--mono); color: var(--accent); letter-spacing: .06em; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.92rem; color: var(--muted); }

/* family and product pages */
.page { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; width: 100%; min-height: 70vh; }
.side { border-right: 1px solid var(--line); padding: 26px 12px 40px max(16px, 2vw); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; }
.side .back { font-size: 0.82rem; color: var(--muted); text-decoration: none; padding: 4px 10px 10px; }
.side .back:hover { color: var(--accent); }
.side .fam-name { font: 600 1.05rem var(--display); padding: 4px 10px 8px; display: block; text-decoration: none; }
.side a.item { display: block; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: 0.92rem; }
.side a.item:hover { background: var(--surface); }
.side a.item[aria-current="page"] { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.content { padding: 30px max(16px, 3vw) 72px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.crumb { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.title { display: flex; align-items: center; gap: 14px; }
.title h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: var(--surface); }
/* family page: every product as a small card with its one-line summary */
.fam-stats { font-size: .9rem; color: var(--muted); margin-top: -10px; }
.fam-stats b { color: var(--ink); font: 600 1rem var(--display); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pcard:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard h3 { font: 600 1.02rem var(--sans); letter-spacing: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pcard:hover h3 span:first-child { color: var(--accent); }
.pcard p { font-size: .88rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel > header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel > header h2 { font-size: 1.05rem; }
.pending { padding: 26px 18px; display: flex; gap: 14px; align-items: flex-start; }
.pending .ic { background: var(--bg); color: var(--muted); }
.pending p { max-width: 60ch; color: var(--muted); font-size: 0.92rem; }
.pending b { color: var(--ink); }
.pill { font: 700 0.68rem var(--mono); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.next { display: flex; gap: 12px; flex-wrap: wrap; }
.next a { flex: 1; min-width: 200px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.next a:hover { border-color: var(--accent); }
.next small { font-size: 0.75rem; color: var(--muted); }
.next b { font-weight: 700; }
.next a.fwd { text-align: right; }

/* API reference */
.side a.item { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cnt { font: 0.7rem var(--mono); color: var(--muted); }
.ref { display: flex; flex-direction: column; gap: 22px; }
.ref-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.ref-head h2 { font-size: 1.5rem; }
.ref-head .muted { font-size: 0.8rem; }
.ref-head code { font-family: var(--mono); font-size: 0.78rem; }
.ep-group { display: flex; flex-direction: column; gap: 10px; }
.ep-group-head h3 { font-size: 1.15rem; }
.ep-group-head p { font-size: 0.92rem; max-width: 70ch; }
.ep-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ep { border-bottom: 1px solid var(--line); }
.ep:last-child { border-bottom: 0; }
.ep > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 68px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 13px 18px; }
.ep > summary::-webkit-details-marker { display: none; }
.ep > summary:hover { background: var(--bg); }
.ep[open] > summary { background: var(--accent-soft); }
.ep .chev { color: var(--muted); transition: transform .15s; }
.ep[open] .chev { transform: rotate(90deg); }
.m { font: 700 0.66rem var(--mono); text-align: center; padding: 3px 6px; border-radius: 5px; color: #fff; display: inline-block; min-width: 52px; }
.m-get { background: #2563eb; } .m-post { background: #0e9f6e; } .m-put, .m-patch { background: #c2700c; } .m-delete { background: #d03b3b; }
.ep-main { display: flex; flex-direction: column; min-width: 0; }
.ep-sum { font-weight: 600; font-size: 0.97rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ep-path { font: 0.8rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.pv { color: var(--accent); }
.ep-body { padding: 4px 16px 18px 98px; display: flex; flex-direction: column; gap: 10px; }
.ep-body h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.ct { font: 600 0.7rem var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
.ep-desc { font-size: 0.95rem; max-width: 75ch; }
.small { font-size: 0.88rem; }
.free { font-style: italic; }
.schema-name { font-weight: 700; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 0.66rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--bg); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-family: var(--mono); font-size: 0.8rem; }
.req { font: 600 0.66rem var(--mono); color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.opt { font: 0.66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nest { margin-top: 6px; }
.nest > summary { cursor: pointer; font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.nest > .tbl, .nest > p { margin-top: 6px; }
.results .r-head { font: 600 0.66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 4px; }
.results .r-label { display: flex; gap: 8px; align-items: center; min-width: 0; }
.results small code { font-family: var(--mono); }
.results a { align-items: center; }
.results small { overflow: hidden; text-overflow: ellipsis; max-width: 55%; }

/* search dialog */
.dialog { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, #000 45%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.dialog[hidden] { display: none; }
.dialog-box { width: min(620px, 100%); background: var(--surface); border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.dialog-box .search { box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; width: 100%; }
.results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.results a[aria-selected="true"], .results a:hover { background: var(--accent-soft); }
.results small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.results .none { padding: 14px 12px; color: var(--muted); }

/* sign-in (built site) */
.account { display: flex; align-items: center; gap: 10px; flex: none; }
.signin-btn { font: 500 0.92rem var(--sans); color: #fff; background: var(--grad); border: 0; border-radius: 10px; padding: 8px 18px; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(6, 182, 212, .5); transition: transform .2s; }
.signin-btn:hover { transform: scale(1.04); }
.who { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--hero-ink); min-width: 0; }
.who-id { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; background: var(--grad); color: #fff; flex: none; }
.signout { font: 500 0.82rem var(--sans); color: var(--hero-muted); background: none; border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.signout:hover { color: var(--hero-ink); }
.btn { font: 600 0.9rem var(--sans); color: #fff; background: var(--grad); border: 0; border-radius: 10px; padding: 9px 18px; cursor: pointer; flex: none; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); filter: none; }
.link { font: inherit; color: var(--accent); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.locked-note { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.locked-note p { flex: 1; font-size: 0.9rem; color: var(--muted); }
.locked-note b { color: var(--ink); }
.ep-locked { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); padding: 4px 0; }
.ep-locked svg { flex: none; }
.dialog-box.signin { width: min(420px, 100%); padding: 22px; gap: 14px; max-height: none; overflow: visible; }
.si-head { display: flex; gap: 14px; align-items: center; }
.si-head h2 { font-size: 1.35rem; }
.si-head p { font-size: 0.88rem; }
.signin label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 700; }
.signin input { font: 500 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: 0; }
.signin input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.si-err { font-size: 0.86rem; color: #b8382f; background: color-mix(in srgb, #b8382f 10%, transparent); border-radius: 8px; padding: 8px 12px; }
.si-err[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .si-err { color: #f08a80; } }
.si-actions { display: flex; justify-content: flex-end; gap: 10px; }
.si-foot { font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 12px; }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* footer */
.foot { background: var(--hero-2); color: var(--hero-muted); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 0.86rem; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 28px max(16px, 4vw); display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot-inner img { height: 20px; width: auto; opacity: .9; }
.foot-note { margin-left: auto; }

@media (max-width: 780px) {
  .page { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; padding: 14px 16px; }
  .side .back, .side .fam-name { width: 100%; }
  .steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-trigger span, .logo-tag { display: none; }
  .top-nav { gap: 16px; font-size: 0.9rem; margin-right: 0; }
  .logo img { height: 32px; }
  .top-inner { height: 64px; }
  .side { top: 64px; }
  .foot-note { margin-left: 0; }
  .top-inner { gap: 12px; }
  .search-trigger kbd, .who-id { display: none; }
  .ep-body { padding-left: 16px; }
  .locked-note { flex-wrap: wrap; }
}
@media (max-width: 480px) { .top-nav { gap: 12px; font-size: 0.82rem; } .top-inner { padding-inline: 12px; } .search-trigger { padding: 7px 9px; } .login-btn { padding: 7px 11px; font-size: 0.8rem; } }
@media (max-width: 420px) { .top-nav a[href="#/"] { display: none; } }
@media (max-width: 430px) { .logo img { height: 23px; } .top-inner { gap: 6px !important; padding-inline: 10px; } .top-nav { gap: 10px; font-size: 0.78rem; } .search-trigger { padding: 7px 5px; } .login-btn { padding: 6px 7px; font-size: 0.7rem; } .top-nav { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* footer: same as the other Avante pages */
.sfoot { background: #0a1323; border-top: 1px solid rgba(255, 255, 255, .08); padding: 40px 0; color: #9ca3af; font-size: .875rem; }
.sfoot-wrap { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.sfoot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.sfoot-about { text-align: center; }
.sfoot-logo { display: inline-block; }
.sfoot-logo img { width: 13rem; max-width: 100%; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.sfoot-built { margin: 8px 0 12px; letter-spacing: .025em; color: #9ca3af; }
.sfoot-sthira { display: inline-block; margin-bottom: 20px; }
.sfoot-sthira img { width: 8rem; height: auto; display: block; margin: 0 auto; transition: transform .3s; }
.sfoot-sthira:hover img { transform: scale(1.05); }
.sfoot-text { max-width: 28rem; margin: 0 auto; line-height: 1.625; color: #9ca3af; }
.sfoot h4 { margin: 0 0 20px; font: 700 1.125rem/1.55 var(--display); letter-spacing: 0; color: #fff; }
.sfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sfoot li a { color: #9ca3af; text-decoration: none; transition: color .2s; }
.sfoot li a:hover { color: #fff; }
.sfoot-bar { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 24px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; }
.sfoot-copy { color: #6b7280; text-align: center; }
.sfoot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.sfoot-legal a { color: #6b7280; text-decoration: none; transition: color .2s; }
.sfoot-legal a:hover { color: #fff; }
@media (min-width: 768px) { .sfoot-grid { grid-template-columns: repeat(2, 1fr); } .sfoot-bar { flex-direction: row; } .sfoot-copy { text-align: left; } }
@media (min-width: 1024px) { .sfoot-grid { grid-template-columns: repeat(5, 1fr); } .sfoot-about { grid-column: span 2; text-align: left; } .sfoot-logo img, .sfoot-sthira img { margin-left: 0; margin-right: 0; } .sfoot-text { margin-left: 0; } }
