/* Pages carried over from the previous site: their markup, restyled in the v3 look. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main > .wrap:first-child { padding-top: 110px; }

/* page header */
.phead { padding: 150px 0 56px; border-bottom: 1px solid var(--line); }
.phead::after { content: ""; position: absolute; inset: 0; background: url(/brand/hero2.webp?v=1) center 30% / cover; opacity: .12; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.phead p { color: var(--muted); max-width: 660px; margin: 0; line-height: 1.75; font-size: 16px; }
.phead h1 { background: linear-gradient(180deg, #ebeff3 0%, var(--gold) 55%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2.t { font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 14px; line-height: 1.12;
  background: linear-gradient(180deg, #ebeff3 0%, var(--gold) 60%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
section.s { padding: 80px 0 0; }

/* cards, grids */
main .card { padding: 26px; }
.card.hover { cursor: pointer; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.grid > *, .two > *, .news > *, .prof > *, .panel > *, .sup > *, .big > *, .doc > *, .auth > * { min-width: 0; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--gold-line); background: rgba(163, 175, 191, .06); margin-bottom: 18px; }
.ic svg { width: 21px; height: 21px; stroke: var(--gold-hi); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.stats > div { padding: 22px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .k { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.stats .v { font-size: 28px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* tabs without the sliding pill */
.tabs:not(:has(.ind)) .tab.on { background: linear-gradient(180deg, #d4dae3, #a5b1c0 50%, #738092); color: #0c1014; border-radius: 10px; }
.btn.primary { color: #0c1014; border: 0; background: linear-gradient(180deg, #d4dae3 0%, #a5b1c0 48%, #6c798b 100%); box-shadow: 0 0 0 1px rgba(212, 218, 227, .55) inset, 0 10px 40px rgba(163, 175, 191, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #e4e8ed 0%, #afbac9 48%, #778496 100%); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.badge.ai { color: #9fb3ff; border-color: rgba(159, 179, 255, .3); }
.badge.soon { color: var(--gold-hi); border-color: var(--gold-line); }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.status-pill { display: none; }

/* forms */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
input, select, textarea { width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); font: 15px var(--body); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-line); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 4px rgba(163, 175, 191, .08); }
.search input { padding: 0; border: 0; background: none; box-shadow: none; }
textarea { min-height: 150px; resize: vertical; }
select option { background: #111318; }
.msg { padding: 13px 15px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.err { display: block; background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .3); color: #ffb0a6; }
.msg.ok { display: block; background: rgba(94, 224, 138, .08); border: 1px solid rgba(94, 224, 138, .3); color: #a6e3b0; }
.hp { position: absolute; left: -9999px; }

/* long text */
.prose { max-width: 820px; color: #cdc8bc; font-size: 15.5px; line-height: 1.85; }
.prose h2 { font-family: var(--display); font-size: 28px; color: var(--gold-hi); margin: 50px 0 12px; }
.prose h3 { color: var(--text); font-size: 18px; margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; } .prose li { margin: 5px 0; } .prose li::marker { color: var(--gold); }
.prose table { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose a { color: var(--gold); }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent; transition: all .2s; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.toc a.on { color: var(--gold-hi); border-left-color: var(--gold); background: rgba(163, 175, 191, .05); }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 54px; padding-top: 44px; align-items: start; }
.toc { align-content: start; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 10px; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; } }

/* faq */
details.q { border-bottom: 1px solid var(--line); }
details.q summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color .2s; }
details.q summary:hover { color: var(--gold-hi); }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* variables the old pages' own styles use */
:root { --fg: var(--text); --card: rgba(255, 255, 255, .028); --card2: rgba(255, 255, 255, .045); --accent: var(--gold); --radius: var(--r);
  --plat: linear-gradient(180deg, #d4dae3 0%, #a5b1c0 48%, #6c798b 100%); --exc: #6fd36f; --anc: #3fb4ff; --warn: #98a6b8; --off: #ff6b6b; }
/* QA 2026-10-06: the header art must not catch clicks meant for the buttons under it */
.phead::after { pointer-events: none; }
