/* AMAADOR OPEX home r2 (20261119): intro, live search, browse cards, domains, how it works. Uses the home tokens. */
.gr.hx-eye{display:inline-flex;align-items:center;gap:8px;margin:22px 2px 8px;padding:6px 12px;border-radius:999px;border:1px solid var(--ln);background:var(--hi);color:var(--acT);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
html[dir=rtl] .gr.hx-eye{letter-spacing:0}
.gr.hx-eye::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ac2);box-shadow:0 0 0 4px rgba(255,106,0,.18)}
.mn>h1{font-size:clamp(32px,4.4vw,52px)!important;font-weight:700!important;letter-spacing:-.03em!important;line-height:1.05!important;margin:0 2px 12px!important;text-wrap:balance}
html[dir=rtl] .mn>h1{letter-spacing:0!important;line-height:1.3!important}
.hx-lead{max-width:68ch;margin:0 2px 18px;color:var(--mu);font-size:clamp(15.5px,1.25vw,18px);line-height:1.6;text-wrap:pretty}
.hx-search{position:relative;display:flex;align-items:center;gap:10px;max-width:760px;margin:0 0 12px;padding:8px 8px 8px 16px;border-radius:18px}
html[dir=rtl] .hx-search{padding:8px 16px 8px 8px}
.hx-search:focus-within{border-color:rgba(255,106,0,.55);box-shadow:0 0 0 4px rgba(255,106,0,.14),var(--sh)}
.hx-search>svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:var(--mu);stroke-width:2}
.hx-search input{flex:1;min-width:0;height:44px;border:0;outline:0;background:transparent;color:var(--tx);font:500 16px/1.2 inherit}
.hx-search input::placeholder{color:var(--mu);opacity:.85}
.hx-search input::-webkit-search-cancel-button{filter:invert(.6)}
.hx-search .btn{margin:0;flex:0 0 auto}
.hx-res{position:absolute;z-index:30;top:calc(100% + 8px);left:0;right:0;display:grid;gap:2px;padding:8px;border-radius:16px;background:var(--pn);border:1px solid var(--ln);box-shadow:var(--sh)}
.hx-res[hidden]{display:none}
.hx-res a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:11px;color:var(--tx);text-decoration:none}
.hx-res a:hover,.hx-res a.on{background:rgba(255,106,0,.14)}
.hx-res b{font-weight:600;font-size:14.5px}
.hx-res span{flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu)}
.hx-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 2px 22px;padding:0;list-style:none;font-size:13px;color:var(--mu)}
.hx-quick a{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--ln);background:var(--hi);color:var(--tx);text-decoration:none;font-weight:600}
.hx-quick a:hover{border-color:rgba(255,106,0,.5);color:var(--acT)}
.hx-types{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 22px}
.hx-type{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px;border-radius:20px;color:var(--tx);text-decoration:none;transition:transform .16s,border-color .16s}
.hx-type:hover{transform:translateY(-3px);border-color:rgba(255,106,0,.5)}
.hx-type .n{font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--acT)}
.hx-type b{font-size:16px;font-weight:700}
.hx-type span.d{color:var(--mu);font-size:13px;line-height:1.45}
.hx-type i{position:absolute;top:16px;inset-inline-end:16px;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#ff8a1f,#d94e00)}
.hx-type i svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hx-doms{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.hx-dom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:12px 16px;border-radius:16px;color:var(--tx);text-decoration:none;font-weight:650;font-size:14.5px;transition:border-color .16s,transform .16s}
.hx-dom:hover{border-color:rgba(255,106,0,.5);transform:translateY(-2px)}
.hx-dom::after{content:"→";color:var(--acT);font-weight:700}
html[dir=rtl] .hx-dom::after{content:"←"}
.hx-dom.r{background:linear-gradient(135deg,rgba(255,106,0,.18),rgba(255,106,0,.05));border-color:rgba(255,106,0,.35)}
.hx-dom small{display:block;margin-top:2px;color:var(--mu);font-weight:500;font-size:12px}
.hx-how{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0;padding:0;list-style:none;counter-reset:hx}
.hx-how li{counter-increment:hx;display:flex;flex-direction:column;gap:4px;padding:18px;border-radius:18px}
.hx-how li::before{content:counter(hx);width:32px;height:32px;margin-bottom:6px;border-radius:10px;display:grid;place-items:center;background:rgba(255,106,0,.16);color:var(--acT);font-weight:800}
.hx-how b{font-size:16px}
.hx-how span{color:var(--mu);font-size:13.5px;line-height:1.5}
@media (max-width:1100px){.hx-types{grid-template-columns:repeat(2,1fr)}.hx-doms{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){.hx-how{grid-template-columns:1fr}.hx-search .btn{padding:0 14px}.tabbar a,.tabbar button{min-width:0!important;flex:1 1 0}}
@media (max-width:480px){.hx-doms{grid-template-columns:1fr}.hx-type{padding:14px}.hx-type .n{font-size:24px}.hx-type i{display:none}}
@media (prefers-reduced-motion:reduce){.hx-type,.hx-dom{transition:none}.hx-type:hover,.hx-dom:hover{transform:none}}

/* ---------- r5: page order by what visitors look for ---------- */
.xc-home-most{--c1:#ff8a2a;margin-bottom:6px}
.xc-six{grid-template-columns:repeat(6,minmax(0,1fr))!important}
@media (max-width:1250px){.xc-six{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:560px){.xc-six{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.hx-guides{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:860px){.hx-guides{grid-template-columns:1fr}}
.hx-dom>span{display:block;min-width:0}
/* goals sit lower on the page now: show them as compact cards (title, chips, Start) */
.cards .ns-ol,.cards .ns-ul,.cards .ns-b,.cards .ns-s,.cards .ns-l,.cards .ns-d,.cards .ns-t{display:none!important}
#kits+.row{margin-bottom:14px}
@media (min-width:1180px){.xc-home-most{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
.xc-home-most .xc-tool span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:560px){.xc-home-most{grid-template-columns:1fr 1fr!important;gap:10px}.xc-home-most .xc-tool{padding:12px 12px 14px}.xc-home-most .xc-tool span{display:none}.xc-home-most .xc-tool b{font-size:14.5px}}

/* ---------- r6: light by default, pitch-black dark, simpler page ---------- */
html:not(.dark){--bg:#f5f5f7;--pn:#ffffff;--gl:rgba(255,255,255,.82);--ln:rgba(0,0,0,.10);--hi:rgba(255,255,255,.9);--tx:#1d1d1f;--mu:#6e6e73;--acT:#b45309;--sh:0 1px 2px rgba(0,0,0,.05),0 10px 30px rgba(0,0,0,.07);--grid:transparent;color-scheme:light}
html.dark{--bg:#000000;--pn:#0b0b0d;--gl:rgba(22,22,24,.74);--ln:rgba(255,255,255,.13);--hi:rgba(255,255,255,.07);--tx:#f5f5f7;--mu:#a1a1a6;--acT:#ff9a3d;--sh:0 1px 2px rgba(0,0,0,.6),0 14px 36px rgba(0,0,0,.7);--grid:transparent;color-scheme:dark}
html.dark body{background:#000!important}
html:not(.dark) body{background:#f5f5f7!important}
html:not(.dark) .xc-card,html:not(.dark) .xc-tool,html:not(.dark) .xs-foot,html:not(.dark) .kit.glass,html:not(.dark) .hx-search{background:#fff!important}
/* centred hero */
.mn>.gr.hx-eye{display:flex;width:fit-content;margin:34px auto 12px}
.mn>h1{text-align:center;margin:0 auto 14px!important;max-width:18ch;font-size:clamp(34px,5vw,60px)!important}
.mn>.hx-lead{text-align:center;margin:0 auto 22px;max-width:62ch}
.mn>.hx-search{margin:0 auto 12px;max-width:680px;padding:10px 10px 10px 18px;border-radius:20px}
.hx-trust{margin:0 auto 34px;text-align:center;color:var(--mu);font-size:13px;font-weight:600;letter-spacing:.01em;animation:xs-in 560ms var(--ease-out,ease) both;animation-delay:240ms}
@media (prefers-reduced-motion:reduce){.hx-trust{animation:none}}
.sec{margin-top:40px!important}
.sec h2{font-weight:700!important;letter-spacing:-.02em}
/* most used: compact cards, no description */
.xc-home-most .xc-tool span{display:none!important}
.xc-home-most .xc-tool{padding:14px 16px 16px}
/* routines: compact row cards (icon tile + title + count) */
.xc-rows{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.xc-rows .xc-card{flex-direction:row;align-items:center;border-radius:18px}
.xc-rows .xc-art{flex:0 0 64px;width:64px;aspect-ratio:1;margin:10px;margin-inline-end:2px;border-radius:14px;overflow:hidden}
.xc-rows .xc-t{padding:10px 12px;min-width:0}
.xc-rows .xc-t b{font-size:15px}
.xc-rows .xc-t em{display:none}
@media (max-width:1100px){.xc-rows{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:560px){.xc-rows{grid-template-columns:1fr!important}}
.kits{grid-template-columns:repeat(4,1fr)!important}
@media (max-width:1100px){.kits{grid-template-columns:repeat(2,1fr)!important}}
@media (max-width:560px){.kits{grid-template-columns:1fr!important}}
/* the home page has no data-theme attribute: hand the shell its tokens for both themes */
html:not(.dark):not([data-theme]),html.dark:not([data-theme]){--xs-bg:var(--bg);--xs-pn:var(--pn);--xs-gl:var(--gl);--xs-ln:var(--ln);--xs-hi:var(--hi);--xs-tx:var(--tx);--xs-mu:var(--mu);--xs-acT:var(--acT);--xs-sh:var(--sh)}
html.dark .sb.glass,html.dark .tb.glass{background:rgba(18,18,20,.8)}

/* ---------- r8: review fixes ---------- */
.hx-search input{font-family:inherit!important;font-size:16px!important;font-weight:500;line-height:1.2}
.tb .btn{white-space:nowrap}
.tb .se{font-family:inherit}
.sec .sa{display:inline-flex;align-items:center;min-height:44px;padding-inline:4px}
.tb .seg a{min-width:40px;min-height:40px;display:inline-grid;place-items:center}
.mn a:focus-visible,.mn button:focus-visible,.sb a:focus-visible,.sb button:focus-visible,.tabbar a:focus-visible{outline:2px solid var(--ac2,#ff6a00);outline-offset:2px;border-radius:10px}
.kit .btn,.tb .btn,.hx-search .btn,.nv{transition:transform 160ms var(--ease-out,cubic-bezier(.23,1,.32,1)),background-color 160ms ease}
.kit .btn:active,.tb .btn:active,.hx-search .btn:active,.nv:active{transform:scale(.97)}
@media (hover:none),(pointer:coarse){.kit:hover,.hx-type:hover{transform:none}}

/* ---------- no sidebar: one header like the rest of the site ---------- */
.app{display:block!important}
.mn{max-width:1280px;margin:0 auto!important;padding:14px 18px 0!important}
.tb{position:sticky;top:12px;z-index:60;display:flex;align-items:center;gap:8px;padding:10px 12px!important;border-radius:20px}
.tb .rt{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.tb .xs-nav a,.tb .xs-more summary{color:var(--mu)!important}
.tb .xs-nav a:hover,.tb .xs-more summary:hover{color:var(--tx)!important}
@media (max-width:1100px){.tb .btn.hide{display:none}}
@media (max-width:860px){.tb .xs-nav{display:none}}
@media (max-width:560px){.tb .xs-brand .xs-bt{display:none}.tb .xs-brand{padding:2px!important}.tb .seg a{min-width:34px;min-height:38px}.tb{gap:6px}}
@media (max-width:860px){.tabbar{overflow:hidden}.tabbar a,.tabbar button{min-width:0!important;flex:1 1 0;padding:0;font-size:10.5px}}

/* r9: only the space the dock or tab bar needs under the footer */
html.xs-home body{padding-bottom:0!important}
html.xs-home .app{padding-bottom:8px!important}
@media (max-width:860px){html.xs-home .app{padding-bottom:calc(var(--tbar,62px) + 30px)!important}}
