/* Athar design system layer: tokens + calmer components. Loaded last. Content/RTL/behaviour untouched. */
:root{--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--r-sm:10px;--r-md:14px;--r-lg:18px;--fs-sm:14px;--fs-md:16px;--fs-lg:20px;--fs-xl:26px;--sh-1:0 1px 2px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.05)}
html body{background-image:none;font-size:var(--fs-md);line-height:1.8}
html body h1,html body h2,html body h3,html body h4{line-height:1.45;letter-spacing:0;text-shadow:none}
html body .hero h1{text-shadow:none}
/* buttons: one solid primary, one outline secondary, no glow */
html body .cta{background:var(--ac);color:var(--btnfg);box-shadow:none;border:1px solid transparent;border-radius:var(--r-md);font-weight:700;min-height:44px;font-size:15px;display:inline-flex;align-items:center;justify-content:center;padding:var(--sp-2) var(--sp-5);transition:background-color .15s,border-color .15s,transform .1s}
html body .cta.blk{display:flex;width:100%}
html body .cta:hover{background:color-mix(in srgb,var(--ac) 88%,#000)}
html body .cta:active{transform:translateY(1px)}
html body .cta.g{background:transparent;color:var(--ac);border:1.5px solid var(--ac)}
html body .cta.g:hover{background:color-mix(in srgb,var(--ac) 8%,transparent)}
html body .cta:focus-visible,html body a:focus-visible,html body button:focus-visible,html body input:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
html body .ftabs button.on{background:var(--ac);box-shadow:none}
html body .trb{background:var(--ac);box-shadow:var(--sh-1)}
/* cards: flat, hairline border, tiny shadow, no lift/glow */
html body .cc,html body .ccard,html body .tc,html body .sc,html body .st,html body .ls,html body .fq,html body .pay,html body .form,html body .fbody{box-shadow:var(--sh-1);border:1px solid var(--line);border-radius:var(--r-lg)}
html body .cc:hover,html body .ccard:hover{transform:none;box-shadow:var(--sh-1);border-color:var(--ac)}
html body .cc .ic{box-shadow:none;border-radius:var(--r-md)}
html body .ccard .th{background:color-mix(in srgb,var(--ac) 14%,var(--card));color:var(--ac)}
html body .vid .play{box-shadow:0 2px 10px rgba(0,0,0,.25)}
html body .marq{transform:none}
html body .opt{border-width:1.5px;border-radius:var(--r-md)}
html body input,html body select,html body textarea{border-radius:var(--r-sm)}
html body .sec h2{border-right-width:4px}
/* account button: icon-only, same size as theme switcher */
html body #hacb2,html body #hacb{width:36px;height:36px;min-height:0;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;line-height:1}
html body #hacb{background:var(--card);color:var(--ink);border:1px solid var(--line)}
@media(max-width:700px){
html body header.nav{gap:6px 8px!important}
html body header.nav #hmb{width:38px;height:38px;padding:0}
html body header.nav .lg svg{width:30px;height:30px}
html body header.nav .lg{gap:6px}
html body header.nav .lg em{font-size:12px;padding:1px 8px}
html body header.nav #hacc2{order:0}
html body #hacb2{width:32px;height:32px}
html body header.nav #hhome{min-height:0;padding:4px 12px;font-size:12px;border-radius:var(--r-sm)}
}
html body .xfoot{text-align:center;padding:var(--sp-5) 5% 90px;font-size:var(--fs-sm);color:var(--mut)}
html body .xdev{color:var(--ac);font-weight:800;font-size:15px;white-space:nowrap}
/* PREVIEW ONLY (design trial): soft page fade, button/card micro-motion, text wrapping, placeholder contrast */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s;animation-timing-function:ease-out}
html body h1,html body h2,html body h3{text-wrap:balance}
html body p,html body li,html body .sub{text-wrap:pretty}
html body input::placeholder,html body textarea::placeholder{color:#686868;opacity:1}
html body .cta{transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
html body .cta:hover{transform:translateY(-1px);box-shadow:0 6px 16px color-mix(in srgb,var(--ac) 26%,transparent)}
html body .cta:active{transform:translateY(1px) scale(.99);box-shadow:none}
html body .cc,html body .ccard,html body .tc,html body .sc,html body .st,html body .ls{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
html body .cc:hover,html body .ccard:hover,html body .tc:hover,html body .ls:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.10);border-color:var(--ac)}
@media(prefers-reduced-motion:reduce){
@view-transition{navigation:none}
html body .marq div,html body .mq2 .mt,html body .brandhero .hl{animation-play-state:paused}
html body .cta,html body .cc,html body .ccard,html body .tc,html body .ls{transition:none}
html body .cta:hover,html body .cc:hover,html body .ccard:hover,html body .tc:hover,html body .ls:hover{transform:none}
}
/* contrast: gold text on light themes (athar, sun) darkened to pass AA; decor/logo untouched */
html[data-theme=athar] .bd,
html[data-theme=athar] .grp,
html[data-theme=athar] .lk3u small,
html[data-theme=athar] .lkm,
html[data-theme=athar] .mwk .pr2 b,
html[data-theme=athar] .payrow b,
html[data-theme=athar] .si small,
html[data-theme=athar] .side .uh2,
html[data-theme=athar] .tc h4,
html[data-theme=athar] .xtop,
html[data-theme=athar] div.cl2 small,
html[data-theme=athar] [style^="color:var(--ac2)"],
html[data-theme=athar] [style*=";color:var(--ac2)"]{color:#7d5f0c}
html[data-theme=sun] .bd,
html[data-theme=sun] .grp,
html[data-theme=sun] .lk3u small,
html[data-theme=sun] .lkm,
html[data-theme=sun] .mwk .pr2 b,
html[data-theme=sun] .payrow b,
html[data-theme=sun] .si small,
html[data-theme=sun] .side .uh2,
html[data-theme=sun] .tc h4,
html[data-theme=sun] .xtop,
html[data-theme=sun] div.cl2 small,
html[data-theme=sun] [style^="color:var(--ac2)"],
html[data-theme=sun] [style*=";color:var(--ac2)"]{color:#8a5a00}
