/* Plamigo look, laid over the base style.css (served as /brand.css when BRAND=plamigo).
   VOICE   friendly fintech: warm sand background, white panels, one orange gradient (#F7771C → #FF5841) as in plamigo.mx
   TYPE    Exo 2 for headings, Open Sans for text (both from plamigo.mx, Google Fonts)
   LAYOUT  the same as HayCredito; the sidebar is white in the light theme and warm graphite in the dark one */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap");

:root{
--bg:#f5f0eb;--surface:#fff;--soft:#fbf7f3;--ink:#202020;--ink2:#3b3532;--muted:#6b5f58;--faint:#7d716a;--line:#efe6de;--line2:#e3d6cb;
--dark:#202020;--dark2:#2e2926;--dark3:#433b37;--side:#fff;
--lime:#ff5841;--lime2:#f04a33;--lime-d:#f7771c;--lime-soft:#ffe7d6;--lime-ink:#b5341f;--lime-rgb:255,88,65;
--grad:linear-gradient(89.46deg,#f7771c -9.6%,#ff5841 101.64%);--grad-h:linear-gradient(89.46deg,#ec6a10 -9.6%,#f2452d 101.64%);
--info-bg:#f1f0fb;--info-ink:#3e3a78;--good:#2e7d32;
--fh:"Exo 2","Open Sans",Arial,sans-serif;--fb:"Open Sans",Arial,sans-serif;
--shadow:0 1px 2px rgba(80,40,20,.04),0 8px 24px rgba(80,40,20,.05)}
.ph h1,.card h2{letter-spacing:-.01em}
.v,.stat .v{font-family:var(--fh)}

/* buttons, selected states: orange gradient with white text, as on plamigo.mx */
.btn{background:var(--grad);color:#fff;border:0;box-shadow:0 6px 16px rgba(255,88,65,.22)}
.btn:hover{background:var(--grad-h)}
.btn.s{background:var(--surface);color:var(--ink);border:1.5px solid var(--line2);box-shadow:none}
.btn.s:hover{background:var(--soft);border-color:var(--lime)}
.btn.dkb{background:var(--dark);color:#fff;box-shadow:none}
.seg button[aria-pressed=true],.tabs button[aria-selected=true],.lang button[aria-pressed=true],.scale button[aria-pressed=true]{background:var(--grad);color:#fff;border-color:transparent}
.nav .cnt,.tb-av .av{background:var(--grad);color:#fff}
.av,.pn{background:var(--lime-soft);color:var(--lime-ink)}
mark{background:#ffd9c2;color:var(--ink)}
#toast{background:var(--dark);color:#fff}
.tbl.sched th.td{background:var(--grad)}
.tbl.sched th.td span,.tbl.sched th.td small{color:#fff}
.bar>i{background:var(--dark)}
.bar.good>i{background:var(--grad)}
.bar.lg>i::after{background:#fff;border:4px solid var(--lime);box-shadow:0 0 0 4px rgba(var(--lime-rgb),.18)}
.chip.ok{background:var(--lime-soft);color:var(--lime-ink)}
a{color:#c9431f}

/* "done" states: soft green instead of HayCredito lime */
.mt.ok{background:#f1f8ee;border-color:#d6ebcc}
.task.done{background:#f1f8ee}
.tk.ok input:not([type=checkbox]),.wrow.ok input:not([type=checkbox]),.tk.ok textarea.tin,.wrow.ok textarea.tin{background:#f1f8ee;border-color:#d6ebcc}

/* hero panels: the orange loan-calculator card of plamigo.mx */
.card.dk{color:#fff;background:radial-gradient(70% 90% at 100% 0%,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 60%),var(--grad);box-shadow:0 12px 30px rgba(255,88,65,.25)}
.card.dk::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='200' fill='none'%3E%3Ccircle cx='280' cy='170' r='120' stroke='%23fff' stroke-opacity='.22' stroke-width='2'/%3E%3Ccircle cx='300' cy='190' r='80' stroke='%23fff' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E") no-repeat}
.dk .hint,.dk .muted,.dk .stat .lab,.dk .stat .sub,.dk .stat .v small{color:rgba(255,255,255,.82)}
.dk .v,.dk .lime,.dk .good{color:#fff}
.dk .bar{background:rgba(255,255,255,.3)}
.dk .bar>i,.dk .bar.good>i{background:#fff}
.dk .bar .mk{background:rgba(255,255,255,.6)}
.dk .chip{background:rgba(255,255,255,.2);color:#fff}
.dk .chip.ok{background:#fff;color:var(--lime-ink)}
.dk .chip.info{background:rgba(255,255,255,.2);color:#fff}
.dk .seg{background:rgba(255,255,255,.18);box-shadow:none}
.dk .seg button{color:rgba(255,255,255,.85)}
.dk .seg button[aria-pressed=true]{background:#fff;color:var(--lime-ink)}
.dk .btn{background:#fff;color:var(--lime-ink);box-shadow:none}
.dk .btn.s{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.dk :focus-visible{outline-color:#fff}
.card.lm{background:linear-gradient(160deg,#fff4ec,#ffe2cf)}
.lm .hint,.lm .muted,.lm .stat .sub{color:#8a5a45}

/* light theme: white sidebar and top bar, sand login */
:root:not([data-theme=dark]) .app{background:linear-gradient(90deg,#fff 264px,transparent 264px)}
:root:not([data-theme=dark]) .side{color:var(--ink);border-right:1px solid var(--line);
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='264' height='420' fill='none'%3E%3Ccircle cx='250' cy='400' r='170' stroke='%23ff5841' stroke-opacity='.10' stroke-width='2'/%3E%3Ccircle cx='270' cy='430' r='120' stroke='%23f7771c' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E") left bottom/264px auto no-repeat,#fff}
:root:not([data-theme=dark]) .brand small{color:var(--muted)}
:root:not([data-theme=dark]) .nav button{color:var(--ink2)}
:root:not([data-theme=dark]) .nav button:hover{background:#fff3ea;color:var(--ink)}
:root:not([data-theme=dark]) .nav button[aria-current=page]{background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(255,88,65,.25)}
:root:not([data-theme=dark]) .nav button[aria-current=page] .cnt{background:#fff;color:var(--lime-ink)}
:root:not([data-theme=dark]) .side .who{background:var(--soft);border:1px solid var(--line)}
:root:not([data-theme=dark]) .side .who small{color:var(--muted)}
:root:not([data-theme=dark]) .side button.who:hover,:root:not([data-theme=dark]) .side button.who[aria-current=page]{background:#fff3ea;border-color:var(--lime)}
:root:not([data-theme=dark]) .side .btn.s{background:transparent;color:var(--lime-ink);border-color:var(--lime)}
:root:not([data-theme=dark]) .side .btn.s:hover{background:#fff3ea}
:root:not([data-theme=dark]) .side .lang,:root:not([data-theme=dark]) .login .lang{background:var(--soft)}
:root:not([data-theme=dark]) .side .lang button,:root:not([data-theme=dark]) .login .lang button{color:var(--muted)}
:root:not([data-theme=dark]) .side .lang button[aria-pressed=true],:root:not([data-theme=dark]) .login .lang button[aria-pressed=true]{background:var(--grad);color:#fff}
:root:not([data-theme=dark]) .side :focus-visible,:root:not([data-theme=dark]) .login :focus-visible{outline-color:var(--lime)}
@media(max-width:900px){
 :root:not([data-theme=dark]) .app{background:none}
 :root:not([data-theme=dark]) .topbar{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
 :root:not([data-theme=dark]) .topbar .iconbtn{border-color:var(--line2);color:var(--ink)}
}
:root:not([data-theme=dark]) .login{color:var(--ink);
 background:radial-gradient(45% 55% at 0% 0%,rgba(255,88,65,.22) 0%,rgba(255,88,65,0) 70%),radial-gradient(40% 50% at 100% 100%,rgba(247,119,28,.18) 0%,rgba(247,119,28,0) 70%),#f5f0eb}
:root:not([data-theme=dark]) .lbox .card{background:#fff;border:0;color:var(--ink);box-shadow:0 20px 60px rgba(80,40,20,.12)}
:root:not([data-theme=dark]) .lbox .hint{color:var(--muted)}
:root:not([data-theme=dark]) .lbox .brand small{color:var(--muted)}
:root:not([data-theme=dark]) .lbox label.f{color:var(--ink2)}
:root:not([data-theme=dark]) .lbox input{background:var(--soft);color:var(--ink)}
:root:not([data-theme=dark]) .lbox input:hover{border-color:var(--line2)}
:root:not([data-theme=dark]) .lbox input:focus{background:#fff;border-color:var(--lime);box-shadow:0 0 0 4px rgba(var(--lime-rgb),.15)}
:root:not([data-theme=dark]) .lbox .btn.s{background:transparent;color:var(--lime-ink);border-color:var(--lime)}
:root:not([data-theme=dark]) .or{color:var(--faint)}
:root:not([data-theme=dark]) .or::before,:root:not([data-theme=dark]) .or::after{background:var(--line2)}

/* dark theme: warm graphite with the same orange */
:root[data-theme=dark]{
--bg:#141210;--surface:#1d1a18;--soft:#262220;--ink:#f3eeea;--ink2:#d6cec8;--muted:#a89c93;--faint:#968a82;--line:#2c2724;--line2:#3a3430;
--lime:#ff6a4d;--lime2:#ff7d63;--lime-d:#f7771c;--lime-rgb:255,106,77;
--dark:#2e2926;--dark2:#3a3430;--dark3:#4a423d;--side:#110f0e;--lime-soft:#3a2119;--lime-ink:#ffb39e;
--info-bg:#22213a;--info-ink:#b9b5f0;--good:#7cc97f;
--shadow:0 0 0 1px #2a2522}
:where(:root[data-theme=dark]) .side{border-right:1px solid #221e1c;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='264' height='420' fill='none'%3E%3Ccircle cx='250' cy='400' r='170' stroke='%23ff6a4d' stroke-opacity='.14' stroke-width='2'/%3E%3Ccircle cx='270' cy='430' r='120' stroke='%23f7771c' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E") left bottom/264px auto no-repeat,var(--side)}
:where(:root[data-theme=dark]) .card.dk{box-shadow:none}
:where(:root[data-theme=dark]) .card.dk::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='200' fill='none'%3E%3Ccircle cx='280' cy='170' r='120' stroke='%23fff' stroke-opacity='.22' stroke-width='2'/%3E%3Ccircle cx='300' cy='190' r='80' stroke='%23fff' stroke-opacity='.14' stroke-width='2'/%3E%3C/svg%3E") no-repeat}
:where(:root[data-theme=dark]) .card.lm{background:linear-gradient(160deg,#33211a,#24170f);box-shadow:0 0 0 1px #45291e}
:where(:root[data-theme=dark]) .lm .hint,:where(:root[data-theme=dark]) .lm .muted,:where(:root[data-theme=dark]) .lm .stat .sub{color:#d9a58e}
:where(:root[data-theme=dark]) .ladder div{color:#ffb39e}
:where(:root[data-theme=dark]) .bar.good>i{background:var(--grad)}
:where(:root[data-theme=dark]) .mt.ok,:where(:root[data-theme=dark]) .tk.ok input:not([type=checkbox]),:where(:root[data-theme=dark]) .wrow.ok input:not([type=checkbox]),:where(:root[data-theme=dark]) .tk.ok textarea.tin,:where(:root[data-theme=dark]) .wrow.ok textarea.tin{background:#18241a;border-color:#2b4130}
:where(:root[data-theme=dark]) .task.done{background:#18241a}
:where(:root[data-theme=dark]) .kinote.t-ok,:where(:root[data-theme=dark]) .kif.t-ok{border-color:#2b4130}
:where(:root[data-theme=dark]) input:focus,:where(:root[data-theme=dark]) select:focus,:where(:root[data-theme=dark]) textarea:focus{box-shadow:0 0 0 4px rgba(255,106,77,.18)}
:where(:root[data-theme=dark]) .login{background:radial-gradient(45% 55% at 0% 0%,rgba(255,88,65,.25) 0%,rgba(255,88,65,0) 70%),radial-gradient(40% 50% at 100% 100%,rgba(247,119,28,.16) 0%,rgba(247,119,28,0) 70%),#141210}
:where(:root[data-theme=dark]) .lbox input:focus{border-color:var(--lime);box-shadow:0 0 0 4px rgba(var(--lime-rgb),.2)}
:where(:root[data-theme=dark]) mark{background:#5a2e1f;color:#fff}
/* text on orange: white (HayCredito puts dark ink on lime) */
:root[data-theme=dark] .nav button[aria-current=page],:root[data-theme=dark] .nav .cnt,:root[data-theme=dark] .btn:not(.s),:root[data-theme=dark] .seg button[aria-pressed=true],:root[data-theme=dark] .tabs button[aria-selected=true],:root[data-theme=dark] .scale button[aria-pressed=true],:root[data-theme=dark] .lang button[aria-pressed=true],:root[data-theme=dark] .tb-av .av,:root[data-theme=dark] .bnav button[aria-current=page]{background:var(--grad);color:#fff}
:root[data-theme=dark] .btn.s{color:var(--ink)}
:root[data-theme=dark] .dk .btn:not(.s),:root[data-theme=dark] .dk .seg button[aria-pressed=true],:root[data-theme=dark] .dk .chip.ok{background:#fff;color:#b5341f}
:root[data-theme=dark] .av,:root[data-theme=dark] .pn{background:var(--lime-soft);color:var(--lime-ink)}

/* rating podium and lists sit on the orange panel */
.pd .av,.rl .av{background:#fff;color:var(--lime-ink)}
.pd.p1 .av{color:var(--lime-ink)}
.pd .vl,.rl>b,.pd.me .nm::after{color:#fff}
.rl{border-top-color:rgba(255,255,255,.22)}
.rl .pos{color:rgba(255,255,255,.8)}
.rl.me{background:rgba(255,255,255,.2)}

/* infographic and contest heroes: orange instead of graphite */
.kihero{background:radial-gradient(circle at 88% 12%,rgba(255,255,255,.22),transparent 42%),var(--grad);box-shadow:0 12px 30px rgba(255,88,65,.22)}
.kihero::after{border-color:rgba(255,255,255,.35)}
.kik{background:#fff;color:var(--lime-ink)}
.kilead{color:rgba(255,255,255,.9)}
.kilead b,.kistat b{color:#fff}
.kistat span{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.16);color:rgba(255,255,255,.9)}
.kin{background:var(--grad);color:#fff}
.gmplace{background:#fff;color:var(--lime-ink);box-shadow:0 8px 20px rgba(120,40,10,.18)}
.gmn{background:var(--lime-soft);color:var(--lime-ink)}
.gmpc{background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.22),transparent 58%),linear-gradient(160deg,#ff8a3d 0%,#ff5841 100%)}
.gmpc.first{background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.3),transparent 60%),linear-gradient(160deg,#f7771c 0%,#e8402a 100%)}
.gmpimg{background:rgba(255,255,255,.16)}
.gmpimg .gmpi{background:#fff;color:var(--lime-ink)}
.gmpc .gmpt{color:rgba(255,255,255,.92)}
.gmpc .gmpt .chip{background:#fff;color:var(--lime-ink)}
.gmpn{color:var(--ink)}
.gmpc.first .gmpn{background:#fff;color:var(--lime-ink)}
.gmpc small{color:rgba(255,255,255,.88)}
.gmpc.me{box-shadow:inset 0 0 0 2px #fff}
.gmpn,.gmpc.first .gmpn{color:#202020}
.gmpc.first .gmpn{color:#b5341f}
@media(max-width:900px){.topbar .logo{height:24px}}
.gmpimg .gmpi{color:#e8402a}

/* «База знаний» (kbz.css loads later, so these selectors are a step stronger) */
html:root .kbz{--font:"Open Sans",Arial,sans-serif}
html:root .kbz h1,html:root .kbz h3{font-family:var(--fh)}
html:root:not([data-theme=dark]) .kbz{--bg:#f5f0eb;--sf:#fff;--fg:#202020;--mu:#7a6e66;--ln:#efe6de;--ac:#ff5841;--acs:#ffe7d6;--ico:#b5341f;--hd:#ff5841;--hdfg:#fff;--hdmu:#ffe2d6;--hdin:#fff;
 --sh:0 1px 2px rgba(80,40,20,.04),0 8px 24px rgba(80,40,20,.05)}
html:root:not([data-theme=dark]) .kbz input[type=radio],html:root:not([data-theme=dark]) .kbz input[type=checkbox]{accent-color:#ff5841}
html:root[data-theme=dark] .kbz{--bg:#141210;--sf:#1d1a18;--fg:#f3eeea;--mu:#a89c93;--ln:#2c2724;--ac:#ff6a4d;--acs:#3a2119;--ico:#ffb39e;--hd:#110f0e;--hdmu:#a89c93;--hdin:#1d1a18}
html:root[data-theme=dark] .kbz input[type=radio],html:root[data-theme=dark] .kbz input[type=checkbox]{accent-color:#ff6a4d}
html:root[data-theme=dark] .kbz .k-card:hover,html:root[data-theme=dark] .kbz .k-resume{box-shadow:0 0 0 2px #ff6a4d}
html:root[data-theme=dark] .kbz .seg button[aria-pressed="true"]{background:var(--grad);color:#fff}
html:root[data-theme=dark] .kbz .k-card .k-f span.k-st.k-ok,html:root[data-theme=dark] .kbz .k-steps>li::before,html:root[data-theme=dark] .kbz .k-compare b i,html:root[data-theme=dark] .kbz .k-bn,html:root[data-theme=dark] .kbz .k-qn,html:root[data-theme=dark] .kbz .k-opt:has(input:checked) .k-l,html:root[data-theme=dark] .kbz .k-btn,html:root[data-theme=dark] .kbz .k-route li::before,html:root[data-theme=dark] .kbz .k-side a.k-sq .k-nm{color:#fff}
html:root[data-theme=dark] .kbz .k-cta{color:#fff!important}
html:root[data-theme=dark] .kbz .k-cta-tx b{color:#fff}
html:root[data-theme=dark] .kbz .k-cta-tx small{color:rgba(255,255,255,.85)}
html:root[data-theme=dark] .kbz .k-cta-ico{background:rgba(255,255,255,.15)}
html:root[data-theme=dark] .kbz .k-cta-go{background:#fff;color:#b5341f}
html:root[data-theme=dark] .kbz .k-btn.k-sec2{color:var(--fg)}
html:root[data-theme=dark] .kbz .k-is-done-page .k-mark .k-btn{color:var(--ok-fg)}

/* usability update (audit 30.11): the hint on the toast button and the unsaved-changes bar in Plamigo colours */
#toast .tact{background:var(--grad);color:#fff}
#toast.err .tact{background:#fff;color:#202020}
.skip{background:var(--grad);color:#fff}
