/*
Theme Name: Casino Affiliate
Theme URI: https://casinos.ing/
Description: Fast, accessible comparison/affiliate theme for the .ing casino fleet. 20 colour schemes, commercial-hub front page, toplist slot, styled content components (tables, photos, notes, pros/cons, steps, FAQ with FAQPage JSON-LD, responsible-gambling box) and a built-in UI string table for en, da, sv, fi, nb and de.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Author: Casino Affiliate
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-affiliate
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* Scheme variables (--bg, --surface, ...) are printed inline from inc/schemes.php.
   These defaults = "Midnight Gold" so the sheet is usable on its own. */
:root{
  --bg:#12151f;--surface:#1a1f2e;--surface2:#232838;--border:#2a3044;--text:#eef0f5;--muted:#9aa0b0;
  --accent:#f0c040;--cta:#3fc46e;--ctaText:#0b1a10;--header:#161a26;--topbar:#0c0e15;--topbarText:#9aa0b0;
  --ok:#3fc46e;--bad:#ff5a64;--warn:#f5a524;
  --wrap:1240px;--read:820px;--wide:1000px;--gutter:24px;--radius:14px;
  --font:Archivo,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:96px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,svg,video{max-width:100%;height:auto}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--text)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
h1,h2,h3,h4{color:var(--text);letter-spacing:-.02em;line-height:1.2;font-weight:800;text-wrap:balance}
button{font:inherit}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--surface);clip:auto!important;clip-path:none;color:var(--text);display:block;height:auto;left:8px;top:8px;padding:12px 16px;width:auto;z-index:100000;border-radius:8px}
.cx-wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.cx-site{min-height:100vh;display:flex;flex-direction:column}
.cx-main{flex:1}

/* ---------- topbar ---------- */
.cx-topbar{background:var(--topbar);color:var(--topbarText);font-size:12px;line-height:1.5}
.cx-topbar__in{display:flex;gap:6px 16px;justify-content:space-between;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.cx-topbar a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cx-topbar a:hover{color:#fff}
.cx-topbar__notice{width:100%;color:inherit}

/* ---------- header ---------- */
.cx-header{background:var(--header);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.admin-bar .cx-header{top:32px}
@media (max-width:782px){.admin-bar .cx-header{top:46px}}
@media (max-width:600px){.admin-bar .cx-header{top:0}}
.cx-header__in{display:flex;align-items:center;gap:32px;min-height:68px;padding-top:12px;padding-bottom:12px}
.cx-brand{display:flex;align-items:center;gap:10px;color:var(--text);flex:none;min-width:0}
.cx-brand:hover{color:var(--text)}
.cx-brand svg,.cx-brand img{display:block;height:40px;width:auto;max-width:min(340px,62vw)}
.cx-brand__mark{width:30px;height:30px;border-radius:8px;background:var(--accent);display:grid;place-items:center;color:var(--bg);font-weight:800;font-size:16px;flex:none}
.cx-brand__text{font-weight:800;font-size:19px;letter-spacing:-.02em;white-space:nowrap}
.cx-nav{flex:1;min-width:0}
.cx-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:8px 24px;flex-wrap:wrap}
.cx-nav li{position:relative}
.cx-nav a{display:block;color:var(--muted);font-size:14px;font-weight:600;padding:6px 0}
.cx-nav a:hover,.cx-nav .current-menu-item>a,.cx-nav .current_page_item>a,.cx-nav .current-menu-ancestor>a{color:var(--text)}
.cx-nav .sub-menu,.cx-nav .children{display:none}
.cx-nav-toggle{display:none;margin-left:auto;background:transparent;border:1px solid var(--border);color:var(--text);border-radius:10px;width:44px;height:44px;cursor:pointer;place-items:center}
.cx-nav-toggle svg{width:22px;height:22px}
.cx-nav-toggle .cx-i-close{display:none}
.cx-nav-toggle[aria-expanded="true"] .cx-i-open{display:none}
.cx-nav-toggle[aria-expanded="true"] .cx-i-close{display:block}
@media (min-width:961px){
  .cx-nav li:hover>.sub-menu,.cx-nav li:focus-within>.sub-menu{display:block;position:absolute;top:100%;left:-14px;min-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px 14px;z-index:60}
  .cx-nav .sub-menu li{display:block}
}
@media (max-width:960px){
  .cx-header__in{gap:16px;min-height:60px}
  .cx-brand svg,.cx-brand img{height:34px}
  .cx-nav-toggle{display:grid}
  .cx-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--header);border-bottom:1px solid var(--border);max-height:calc(100vh - 60px);overflow:auto}
  .cx-nav.is-open{display:block}
  .cx-nav ul{flex-direction:column;gap:0;padding:8px var(--gutter) 16px}
  .cx-nav li{border-top:1px solid var(--border)}
  .cx-nav li:first-child{border-top:0}
  .cx-nav a{font-size:16px;padding:13px 0}
  .cx-nav .sub-menu,.cx-nav .children{display:block;padding:0 0 6px 14px}
  .cx-nav .sub-menu li{border-top:0}
  .cx-nav .sub-menu a{padding:8px 0;font-size:15px}
}

/* ---------- hero ---------- */
.cx-hero{background:linear-gradient(180deg,var(--surface),var(--bg));border-bottom:1px solid var(--border)}
.cx-hero__in{padding-top:44px;padding-bottom:36px;display:flex;flex-direction:column;gap:16px;max-width:calc(var(--read) + 2 * var(--gutter));margin-left:0}
.cx-hero--center .cx-hero__in{margin-left:auto;margin-right:auto}
.cx-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.cx-hero h1,.cx-h1{margin:0;font-size:clamp(32px,5.2vw,46px);line-height:1.05;letter-spacing:-.03em;font-weight:800}
.cx-hero__sub{margin:0;font-size:17px;line-height:1.6;color:var(--muted);max-width:600px;text-wrap:pretty}
.cx-byline{display:flex;gap:10px 20px;align-items:center;font-size:13px;color:var(--muted);flex-wrap:wrap}
.cx-byline__who{display:flex;gap:10px;align-items:center}
.cx-byline__avatar{width:32px;height:32px;border-radius:50%;background:var(--surface2);border:1px solid var(--border);display:grid;place-items:center;color:var(--accent);flex:none}
.cx-byline__avatar svg{width:16px;height:16px}
.cx-byline strong{color:var(--text);font-weight:600}
.cx-toc{display:flex;gap:8px;flex-wrap:wrap;padding-top:6px;margin:0;list-style:none;padding-left:0}
.cx-toc a{display:block;padding:7px 12px;border-radius:999px;border:1px solid var(--border);font-size:13px;font-weight:600;color:var(--muted);line-height:1.3}
.cx-toc a:hover{color:var(--text);border-color:var(--accent)}
.cx-crumbs{font-size:13px;color:var(--muted)}
.cx-crumbs a{color:var(--muted)}
.cx-crumbs a:hover{color:var(--text)}

/* ---------- sections / cards ---------- */
.cx-section{padding-top:48px}
.cx-section:last-child{padding-bottom:64px}
.cx-section__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.cx-section__head h2{margin:0;font-size:28px}
.cx-more{font-size:14px;font-weight:600;color:var(--accent);white-space:nowrap}
.cx-ph{background:repeating-linear-gradient(135deg,var(--surface2) 0 8px,var(--surface) 8px 16px)}
.cx-grid-guides{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:24px}
.cx-guide{display:flex;flex-direction:column;gap:10px;color:var(--text)}
.cx-guide:hover{color:var(--text)}
.cx-guide:hover h3{color:var(--accent)}
.cx-guide__img{aspect-ratio:3/2;border-radius:10px;overflow:hidden;border:1px solid var(--border)}
.cx-guide__img img{width:100%;height:100%;object-fit:cover;display:block}
.cx-guide h3{margin:0;font-size:17px;line-height:1.3;font-weight:700;transition:color .15s}
.cx-guide__meta{font-size:13px;color:var(--muted)}
.cx-guide__ex{font-size:14px;line-height:1.5;color:var(--muted);margin:0}

.cx-news{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:32px}
.cx-news__lead{display:flex;flex-direction:column;gap:14px;color:var(--text)}
.cx-news__lead:hover{color:var(--text)}
.cx-news__lead:hover h3{color:var(--accent)}
.cx-news__img{aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:1px solid var(--border)}
.cx-news__img img{width:100%;height:100%;object-fit:cover;display:block}
.cx-news__lead h3{margin:0;font-size:26px;line-height:1.15}
.cx-news__lead p{margin:0;color:var(--muted);line-height:1.55;font-size:15px}
.cx-meta{display:flex;gap:8px;font-size:12px;font-weight:600;color:var(--muted);flex-wrap:wrap}
.cx-meta__cat{color:var(--accent);text-transform:uppercase;letter-spacing:.08em}
.cx-news__list{display:flex;flex-direction:column}
.cx-news__item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--border);align-items:center;color:var(--text)}
.cx-news__item:first-child{padding-top:0}
.cx-news__item:hover{color:var(--accent)}
.cx-news__thumb{aspect-ratio:4/3;border-radius:8px;overflow:hidden}
.cx-news__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cx-news__item h4{margin:6px 0 0;font-size:16px;line-height:1.3;font-weight:700;color:inherit}

.cx-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:24px}
.cx-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;color:var(--text)}
.cx-card:hover{border-color:var(--accent);color:var(--text)}
.cx-card__img{aspect-ratio:16/9;overflow:hidden}
.cx-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.cx-card__body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.cx-card h2,.cx-card h3{margin:0;font-size:19px;line-height:1.25}
.cx-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.cx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;border-radius:10px;background:var(--cta);color:var(--ctaText);font-weight:800;border:0;cursor:pointer;line-height:1.2;text-align:center}
.cx-btn:hover{color:var(--ctaText);filter:brightness(1.07)}
.cx-btn--ghost{background:transparent;color:var(--text);border:1px solid var(--border);font-weight:600}
.cx-btn--ghost:hover{color:var(--text);border-color:var(--accent);filter:none}
.cx-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:40px 0 0}
.cx-pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border-radius:10px;border:1px solid var(--border);color:var(--text);font-weight:600}
.cx-pagination .page-numbers.current{background:var(--text);color:var(--bg);border-color:var(--text)}

/* ---------- article body ---------- */
.cx-article{padding-top:36px;padding-bottom:64px}
.cx-entry{max-width:var(--read);margin:0 auto;color:var(--muted);font-size:16px;line-height:1.7}
.cx-entry>*:first-child{margin-top:0}
.cx-entry p{margin:0 0 1.15em;text-wrap:pretty}
.cx-entry>p:first-child{font-size:17px;color:var(--text)}
.cx-entry strong,.cx-entry b{color:var(--text);font-weight:700}
.cx-entry a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.cx-entry a:hover{color:var(--text)}
.cx-entry h2{font-size:clamp(23px,3vw,28px);margin:2.1em 0 .6em}
.cx-entry h3{font-size:20px;margin:1.7em 0 .5em}
.cx-entry h4{font-size:17px;margin:1.4em 0 .4em}
.cx-entry ul,.cx-entry ol{margin:0 0 1.3em;padding-left:1.3em}
.cx-entry li{margin:.35em 0}
.cx-entry li::marker{color:var(--accent)}
.cx-entry blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--accent);color:var(--text);font-size:18px}
.cx-entry hr{border:0;border-top:1px solid var(--border);margin:2.5em 0}
.cx-entry img{border-radius:12px}
.cx-entry .wp-block-image,.cx-entry figure{margin:2em 0}
.cx-entry figcaption{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.5}
.cx-entry iframe{max-width:100%}
.cx-entry .alignwide,.cx-entry .alignfull{max-width:none}
.cx-entry h2[id],.cx-entry h3[id]{scroll-margin-top:96px}
.cx-article--home{padding-bottom:0}
.cx-entry--after{margin-top:48px}
.cx-article__img{margin:0 auto 32px;max-width:var(--read)}
.cx-article__img img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--border);display:block}

/* photo figures from the content generator (img may be added later by the deploy step) */
.cx-photo{margin:2em 0;max-width:100%}
.cx-photo img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--border);background:var(--surface2)}
.cx-photo figcaption{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.5}
.cx-photo:not(:has(img))::before{content:"";display:block;aspect-ratio:16/9;border-radius:14px;border:1px solid var(--border);background:repeating-linear-gradient(135deg,var(--surface2) 0 10px,var(--surface) 10px 20px)}

/* tables */
.cx-table-wrap{margin:2em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.cx-table,.cx-entry table{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;line-height:1.45;color:var(--text)}
.cx-entry table:not(.cx-table){margin:2em 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;display:block;overflow-x:auto}
.cx-table th,.cx-table td,.cx-entry table th,.cx-entry table td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}
.cx-table thead th,.cx-entry table thead th{position:sticky;top:0;background:var(--surface2);color:var(--text);font-size:13px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.cx-table tbody tr:nth-child(odd) td,.cx-table tbody tr:nth-child(odd) th{background:var(--surface)}
.cx-table tbody tr:nth-child(even) td,.cx-table tbody tr:nth-child(even) th{background:var(--bg)}
.cx-table tbody th{font-weight:700}
.cx-table tbody td{color:var(--muted)}
.cx-table tbody td:first-child{color:var(--text);font-weight:600}
.cx-table tbody tr:last-child td,.cx-table tbody tr:last-child th{border-bottom:0}
.cx-table tbody tr:hover td{background:var(--surface2)}
@media (max-width:700px){
  .cx-table{min-width:560px;font-size:14px}
  .cx-table th,.cx-table td{padding:10px 12px}
}

/* notes */
.cx-note{position:relative;margin:1.8em 0;padding:16px 20px 16px 54px;border-radius:12px;background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:15px;line-height:1.6}
.cx-note::before{position:absolute;left:16px;top:16px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;line-height:1}
.cx-note--tip{border-left:4px solid var(--accent)}
.cx-note--tip::before{content:"i";background:var(--accent);color:var(--bg);font-family:Georgia,serif;font-style:italic}
.cx-note--care{border-left:4px solid var(--warn)}
.cx-note--care::before{content:"!";background:var(--warn);color:#1a1205}
.cx-note p{margin:0 0 .6em}
.cx-note>*:last-child{margin-bottom:0}
.cx-note strong{color:var(--text)}

/* pros / cons */
.cx-procon{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin:2em 0}
.cx-pro,.cx-con{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px 22px}
.cx-pro{border-top:3px solid var(--ok)}
.cx-con{border-top:3px solid var(--bad)}
.cx-pro h4,.cx-con h4{margin:0 0 12px;font-size:16px;display:flex;align-items:center;gap:8px}
.cx-pro h4::before,.cx-con h4::before{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}
.cx-pro h4::before{content:"\2713";background:var(--ok);color:var(--surface)}
.cx-con h4::before{content:"\2715";background:var(--bad);color:var(--surface)}
.cx-pro ul,.cx-con ul{list-style:none;margin:0;padding:0}
.cx-pro li,.cx-con li{position:relative;padding-left:24px;margin:.5em 0;font-size:15px;line-height:1.5}
.cx-pro li::before,.cx-con li::before{position:absolute;left:0;top:0;font-weight:800}
.cx-pro li::before{content:"\2713";color:var(--ok)}
.cx-con li::before{content:"\2715";color:var(--bad)}

/* steps */
.cx-steps{list-style:none;counter-reset:cxstep;margin:2em 0;padding:0!important;display:flex;flex-direction:column;gap:12px}
.cx-steps>li{counter-increment:cxstep;position:relative;margin:0;padding:16px 20px 16px 64px;background:var(--surface);border:1px solid var(--border);border-radius:12px;line-height:1.55}
.cx-steps>li::before{content:counter(cxstep);position:absolute;left:18px;top:14px;width:30px;height:30px;border-radius:8px;background:var(--surface2);color:var(--accent);display:grid;place-items:center;font-weight:800;font-size:15px}
.cx-steps>li::marker{content:none}

/* FAQ */
.cx-faq{margin:2.5em 0}
.cx-faq h2{margin-bottom:.7em}
.cx-faq details{border-bottom:1px solid var(--border)}
.cx-faq details:first-of-type{border-top:1px solid var(--border)}
.cx-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;padding:18px 0;font-weight:700;font-size:16px;line-height:1.4;color:var(--text)}
.cx-faq summary::-webkit-details-marker{display:none}
.cx-faq summary::after{content:"+";color:var(--accent);font-size:22px;line-height:1;font-weight:600;flex:none;transition:transform .15s}
.cx-faq details[open] summary::after{content:"\2212"}
.cx-faq summary:hover{color:var(--accent)}
.cx-faq details>*:not(summary){margin:0 0 18px;font-size:15px;line-height:1.65;color:var(--muted)}

/* responsible gambling box */
.cx-rg{position:relative;margin:2.5em 0;padding:22px 24px 22px 88px;border-radius:14px;background:var(--surface2);border:1px solid var(--border);color:var(--text);font-size:15px;line-height:1.6}
.cx-rg::before{content:"18+";position:absolute;left:22px;top:22px;width:46px;height:46px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);display:grid;place-items:center;font-weight:800;font-size:14px;letter-spacing:-.02em}
.cx-rg h2,.cx-rg h3,.cx-rg h4{margin:0 0 .4em;font-size:18px}
.cx-rg p{margin:0 0 .6em;color:var(--muted)}
.cx-rg>*:last-child{margin-bottom:0}
.cx-rg a{color:var(--accent)}
@media (max-width:560px){.cx-rg{padding:78px 20px 20px}.cx-rg::before{left:20px;top:20px}}

/* ---------- toplist slot (styled for a brand toplist plugin; see README for the class contract) ---------- */
.cx-toplist-slot{margin:2em 0 2.5em}
.cx-toplist-slot:empty{display:none;margin:0}
@media (min-width:1000px){
  .cx-entry .cx-toplist-slot{width:min(var(--wide),calc(100vw - 2 * var(--gutter)));margin-left:calc((var(--read) - min(var(--wide),calc(100vw - 2 * var(--gutter)))) / 2)}
}
.cx-toplist-note{margin:0 0 12px!important;font-size:12px!important;color:var(--muted)!important;line-height:1.5}
.cx-toplist-slot>ol,.cx-toplist-slot>ul,.cx-tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.cx-tl__row{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin:0}
.cx-tl__main{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:20px;align-items:center;padding:20px 22px}
.cx-tl__id{display:flex;gap:14px;align-items:center}
.cx-tl__rank{width:30px;height:30px;border-radius:8px;background:var(--surface2);display:grid;place-items:center;font-weight:800;color:var(--accent);flex:none}
.cx-tl__logo{width:96px;height:64px;border-radius:10px;background:var(--bg);display:grid;place-items:center;overflow:hidden;flex:none}
.cx-tl__logo img{max-width:88%;max-height:80%;object-fit:contain;border-radius:0}
.cx-tl__name{display:flex;flex-direction:column;gap:6px}
.cx-tl__name strong,.cx-tl__title{font-weight:800;font-size:18px;color:var(--text)}
.cx-tl__rating{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.cx-tl__stars{color:var(--accent);letter-spacing:1px}
.cx-tl__rating b{color:var(--text)}
.cx-tl__offer{display:flex;flex-direction:column;gap:4px}
.cx-tl__label{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cx-tl__bonus{font-weight:700;font-size:16px;line-height:1.3;color:var(--text)}
.cx-tl__actions{display:flex;flex-direction:column;gap:8px}
.cx-tl__cta,.cx-toplist-slot a.cx-tl__cta{display:block;padding:13px 18px;border-radius:10px;background:var(--cta);color:var(--ctaText)!important;font-weight:800;text-align:center;text-decoration:none!important}
.cx-tl__cta:hover{filter:brightness(1.07)}
.cx-tl__review,.cx-toplist-slot .cx-tl__review{font-size:13px;text-align:center;color:var(--muted)!important;text-decoration:underline}
.cx-tl__foot{display:flex;gap:6px 18px;flex-wrap:wrap;padding:12px 22px;background:var(--bg);border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.cx-tl__pros{display:flex;gap:6px 18px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.cx-tl__pros li{margin:0}
.cx-tl__pros li::before{content:"\2713\00a0";color:var(--ok)}
.cx-tl__terms{margin-left:auto;font-size:11px}
/* neutralise .cx-entry typography inside the slot */
.cx-toplist-slot ul,.cx-toplist-slot ol{margin:0;padding:0}
.cx-toplist-slot li{margin:0}
.cx-toplist-slot a{text-decoration:none}
/* generic fallbacks for unknown plugin markup */
.cx-toplist-slot table{width:100%}
.cx-toplist-slot img{border-radius:8px}

/* ---------- forms / search ---------- */
.cx-search{display:flex;gap:8px;max-width:520px}
.cx-search input[type=search]{flex:1;min-width:0;padding:12px 14px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit}
.cx-search input[type=search]::placeholder{color:var(--muted)}
.cx-search button{padding:12px 18px;border-radius:10px;border:0;background:var(--cta);color:var(--ctaText);font-weight:800;cursor:pointer}

/* ---------- footer ---------- */
.cx-footer{background:var(--topbar);color:var(--topbarText);font-size:13px;line-height:1.6;margin-top:auto}
.cx-footer a{color:inherit}
.cx-footer a:hover{color:#fff}
.cx-footer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:28px;padding-top:44px;padding-bottom:36px}
.cx-footer__col{display:flex;flex-direction:column;gap:8px}
.cx-footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cx-footer__title{font-weight:700;color:#fff;opacity:.92;font-size:13px;margin:0 0 2px}
.cx-footer__brand{font-weight:800;font-size:17px;color:#fff;opacity:.95;letter-spacing:-.02em}
.cx-footer__help strong{color:#fff;opacity:.92;font-weight:600}
.cx-footer__notice{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;padding-bottom:18px}
.cx-footer__notice p{margin:0}
.cx-footer__bottom{border-top:1px solid rgba(255,255,255,.1);display:flex;gap:8px 24px;justify-content:space-between;flex-wrap:wrap;padding-top:18px;padding-bottom:22px;font-size:12px}

/* ---------- misc ---------- */
.cx-empty{padding:64px 0;text-align:left}
.cx-empty h1{margin:0 0 12px}
.cx-empty p{color:var(--muted);margin:0 0 24px}
.cx-archive-desc{color:var(--muted);max-width:640px;margin:0}
.wp-caption{max-width:100%}
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.sticky,.bypostauthor,.gallery-caption,.wp-caption-text{font-size:inherit}
@media (max-width:600px){
  :root{--gutter:16px}
  .cx-hero__in{padding-top:32px;padding-bottom:28px}
  .cx-section{padding-top:40px}
  .cx-section__head h2{font-size:24px}
  .cx-news__item{grid-template-columns:88px minmax(0,1fr);gap:12px}
  .cx-note{padding-left:48px}
  .cx-note::before{left:14px}
  .cx-steps>li{padding-left:58px}
  .cx-toc{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:calc(-1 * var(--gutter));padding-right:var(--gutter)}
  .cx-toc::-webkit-scrollbar{display:none}
  .cx-toc li{flex:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.cx-topbar,.cx-header,.cx-footer,.cx-toplist-slot{display:none}body{background:#fff;color:#000}}
