/* Reader preference, consistent article metadata & native discussion. */
:root{--ib-background:#fff;--ib-surface:#fff;--ib-panel:#eef3ff;--ib-button-ink:#fff;--barrai-forest:#132019;--barrai-green:#397553;--barrai-lime:#cefa80;color-scheme:light}
html[data-theme=dark]{--ib-background:#0f1927;--ib-surface:#162537;--ib-ink:#edf2f8;--ib-muted:#b1bdcc;--ib-blue:#9ab3ff;--ib-blue-dark:#b9caff;--ib-paper:#19293c;--ib-line:#3b4d63;--ib-white:#162537;--ib-panel:#1d304a;--ib-button-ink:#102034;color-scheme:dark}
body{background:var(--ib-background)}
.ib-single-header__meta{align-items:center;gap:12px 22px}
.ib-single-header__meta>span{display:inline-flex;align-items:center;gap:4px;min-height:32px;max-width:100%;flex-wrap:wrap}
.ib-single-header__meta .ib-byline>a{display:inline-flex;align-items:center;gap:9px;line-height:1.35;text-decoration:none}
.ib-single-header__meta .ib-byline>a:hover span{text-decoration:underline;text-underline-offset:3px}
.ib-single-header__meta .ibma-recorded-views{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums;flex-wrap:nowrap}
.ibma-recorded-views svg{width:17px;height:17px;flex:none}
.ib-appearance{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 24px;font-size:13px}
/* PadBets creative gets a deliberate centred composition on large displays. */
@media(min-width:900px){
 .infobets-media .ibma-ad.ibma-ad--padbets .ibma-ad__label{text-align:center}
 .infobets-media .ibma-ad.ibma-ad--padbets .ibma-ad__link{justify-content:center;align-items:center;text-align:center}
 .infobets-media .ibma-ad.ibma-ad--padbets .ibma-ad__copy{align-items:center;text-align:center;max-width:780px;margin-inline:auto;padding:0!important}
 .infobets-media .ibma-ad.ibma-ad--padbets .ibma-ad__logo{object-position:center;margin-inline:auto}
 .infobets-media .ibma-ad.ibma-ad--padbets .ibma-ad__body{max-width:590px}
}
.ib-comments{width:min(calc(100% - 72px),var(--ib-reading));margin:40px auto 48px;border-top:1px solid var(--ib-line);padding-top:32px;scroll-margin-top:150px}
.ib-comments__heading h2{font-size:29px;margin-bottom:14px}.ib-comments__heading p{font-size:15px;color:var(--ib-muted);line-height:1.7;margin-bottom:24px}
.ib-comments .comment-list,.ib-comments .children{list-style:none;padding:0;margin:0}.ib-comments .children{padding-left:24px;border-left:2px solid var(--ib-line)}
.ib-comments .comment-body{padding:22px 0;border-bottom:1px solid var(--ib-line);font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.ib-comments .comment-meta{display:flex;gap:6px 18px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px;font-size:12px;color:var(--ib-muted)}
.ib-comments .comment-author{font-size:14px;color:var(--ib-ink)}.ib-comments .comment-author .fn{font-style:normal;font-weight:700}.ib-comments .says{display:none}
.ib-comments a{color:var(--ib-blue-dark);text-decoration:underline;text-underline-offset:3px}.ib-comments .reply{margin-top:12px;font-size:13px}
.ib-comments .comment-awaiting-moderation{display:block;margin-top:10px;font-size:13px;color:var(--ib-muted)}
.ib-comments .comment-respond{margin-top:30px}.ib-comments .comment-reply-title{font-size:24px;margin-bottom:15px}.ib-comments #cancel-comment-reply-link{margin-left:12px;font-size:13px;font-weight:500;letter-spacing:0}
.ib-comments .comment-notes,.ib-comments .logged-in-as,.ib-comments .must-log-in{font-size:13px;color:var(--ib-muted);line-height:1.7;margin-bottom:22px}
.ib-comments .comment-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.ib-comments .comment-form>p{margin:0;min-width:0}.ib-comments .comment-form>p:not(.comment-form-author):not(.comment-form-email){grid-column:1/-1}
.ib-comments label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.ib-comments input:not([type=checkbox]):not([type=submit]):not([type=hidden]),.ib-comments textarea{display:block;width:100%;min-height:46px;padding:11px 12px;border:1px solid var(--ib-line);border-radius:4px;background:var(--ib-surface);color:var(--ib-ink);font-size:16px;line-height:1.5}.ib-comments textarea{resize:vertical;min-height:150px}
.ib-comments .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:10px}.ib-comments .comment-form-cookies-consent input{width:18px;height:18px;flex:none;margin:3px 0 0;accent-color:var(--ib-blue)}.ib-comments .comment-form-cookies-consent label{font-weight:400;line-height:1.6;margin:0}.ib-comments .form-submit{padding-top:5px}
.ib-comments .navigation{margin-block:16px}.ib-comments .nav-links{justify-content:space-between;gap:18px;font-size:13px}
.ib-barrai-hero{color:#fff}.ib-barrai-hero .ib-barrai-start{font-size:15px;line-height:1.7;color:#d4e0d8;margin:18px 0 24px;max-width:700px}.ib-barrai-hero .ib-barrai-cta{background:var(--barrai-lime);border-color:var(--barrai-lime);color:var(--barrai-forest)!important}.ib-barrai-hero .ib-barrai-cta:hover{background:#dffcaa;border-color:#dffcaa}
/* Dark surfaces stay opaque; photographs, logos & ad creatives are never inverted. */
html[data-theme=dark] .ib-header,html[data-theme=dark] .ib-search-dialog,html[data-theme=dark] .ib-menu__panel{background:var(--ib-surface);border-color:var(--ib-line)}
html[data-theme=dark] .ib-icon-button,html[data-theme=dark] input:not([type=checkbox]):not([type=submit]),html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] .ib-search-dialog .ib-search-form input{background:var(--ib-surface);color:var(--ib-ink);border-color:var(--ib-line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9daec2;opacity:1}
html[data-theme=dark] .ib-nav-rule,html[data-theme=dark] .ib-menu__panel a{border-color:var(--ib-line)}
html[data-theme=dark] .ib-brand__name>span{color:#6485ff}
html[data-theme=dark] .ib-topline,html[data-theme=dark] .ib-brief-panel{background:#14263d;color:#fff}
html[data-theme=dark] .ib-footer{background:#132131}
html[data-theme=dark] .ib-button,html[data-theme=dark] .ib-search-form button,html[data-theme=dark] .ib-brief-panel button[type=submit]{background:#6485ff;border-color:#6485ff;color:#102034!important}
html[data-theme=dark] .ib-button:hover,html[data-theme=dark] .ib-brief-panel button[type=submit]:hover{background:#93abff;border-color:#93abff}
html[data-theme=dark] .ib-button--outline{background:transparent;color:var(--ib-blue)!important}
html[data-theme=dark] .ib-button--outline:hover{background:#203754}
html[data-theme=dark] .ib-topic-links a[aria-current=page],html[data-theme=dark] .page-numbers.current,html[data-theme=dark] .ib-content-pages .current,html[data-theme=dark] .ib-segmented button[aria-pressed=true]{background:#9ab3ff;border-color:#9ab3ff;color:#102034}
html[data-theme=dark] .ib-segmented button{background:var(--ib-surface);color:var(--ib-ink)}
html[data-theme=dark] .ib-start-tool,html[data-theme=dark] .ib-calculator,html[data-theme=dark] .ib-takeaways,html[data-theme=dark] .ib-single-content .ib-worked-example{background:var(--ib-panel);color:var(--ib-ink);border-color:var(--ib-line)}
html[data-theme=dark] .ib-calculator p,html[data-theme=dark] .ib-calc-results span,html[data-theme=dark] .ib-single-content .ib-deck,html[data-theme=dark] .ib-single-content .ib-padel-deck{color:#c6d2e1}
html[data-theme=dark] .ib-calc-results,html[data-theme=dark] .ib-calc-results>div,html[data-theme=dark] .ib-investigation-feature>a{border-color:var(--ib-line)}
html[data-theme=dark] .ib-investigation-feature{background:#1b293a;color:var(--ib-ink)}
html[data-theme=dark] .ib-investigation-feature p{color:var(--ib-muted)}
html[data-theme=dark] .ib-padel-section{background:#142537}
html[data-theme=dark] .ib-form-error{color:#ffb1bd!important}
html[data-theme=dark] .ibma-widget{background:var(--ib-surface);border-color:var(--ib-line);color:var(--ib-ink)}
html[data-theme=dark] .ibma-widget__notice,html[data-theme=dark] .ibma-widget p{color:var(--ib-muted)}
html[data-theme=dark] .ibma-widget__frame{background:var(--ib-panel)}
html[data-theme=dark] .ibma-widget__load{background:#223b5c;color:#eef4ff;border-color:#637fa4}
html[data-theme=dark] .ibma-consent{background:var(--ib-surface);color:var(--ib-ink);border-color:var(--ib-line)}
html[data-theme=dark] .ibma-consent a{color:var(--ib-blue)}
html[data-theme=dark] .ibma-consent button{background:#223b5c;color:#eef4ff;border-color:#637fa4}
html[data-theme=dark] .ib-single-header__meta .ib-byline>a{color:var(--ib-ink)}
html[data-theme=dark] .ib-search-dialog input[type=search]:focus-visible{outline-color:#9ab3ff}
html[data-theme=dark] .ib-barrai-hero{background-color:#101d19}
html[data-theme=dark] .ib-barrai-hero .ib-barrai-cta{background:var(--barrai-lime);border-color:var(--barrai-lime);color:var(--barrai-forest)!important}
html[data-theme=dark] ::selection{background:#365a9b;color:#fff}
@media(max-width:760px){.ib-single-header__meta{gap:9px 16px}.ib-comments{width:calc(100% - 36px);scroll-margin-top:100px;margin-top:30px}.ib-comments__heading h2{font-size:26px}.ib-comments .children{padding-left:16px}.ib-comments .comment-form{grid-template-columns:1fr}.ib-comments .comment-form>p{grid-column:1/-1}}
@media print{html[data-theme=dark]{--ib-ink:#142131;--ib-muted:#5e6876;--ib-blue:#2456ea;--ib-blue-dark:#1943ba;--ib-paper:#f5f4f0;--ib-line:#d8dce1}body{background:#fff!important;color:#142131!important}.ib-appearance,.ib-comments{display:none!important}}

/* BarrAI uses its complete outlined wordmark, independent of the InfoBets icon. */
.ib-barrai .ib-barrai-lockup,.ib-barrai-lockup{display:inline-block;width:120px;max-width:100%;font-size:0;line-height:0;letter-spacing:0;flex:none;vertical-align:middle}
.ib-barrai-lockup>img{display:block;width:100%;height:auto;max-width:100%;margin:0;filter:none}
.ib-barrai-lockup>.ib-barrai-logo--dark{display:none}
.ib-barrai-signature .ib-barrai-lockup{width:clamp(210px,32vw,360px);font-size:0}
.ib-barrai-signature .ib-barrai-lockup>.ib-barrai-logo--light,html[data-theme=dark] .ib-barrai-lockup>.ib-barrai-logo--light{display:none}
.ib-barrai-signature .ib-barrai-lockup>.ib-barrai-logo--dark,html[data-theme=dark] .ib-barrai-lockup>.ib-barrai-logo--dark{display:block}
/* Field outlines stay identifiable against both surfaces. */
.ib-comments input:not([type=checkbox]):not([type=submit]):not([type=hidden]),.ib-comments textarea{border-color:#7a889b}
html[data-theme=dark] input:not([type=checkbox]):not([type=submit]):not([type=hidden]),html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] .ib-search-dialog .ib-search-form input{border-color:#738caa}

/* Header access, full cover framing & consistent BarrAI signature — 2.2.2. */
.ib-header__actions{gap:18px}
.ib-header__utilities{display:flex;align-items:center;gap:20px;flex:none}
.ib-appearance--header{position:relative;flex:none;padding:0;gap:0;flex-wrap:nowrap}
.ib-telegram-link{display:inline-flex;align-items:center;gap:9px;color:var(--ib-blue-dark);text-decoration:none;min-height:44px}
.ib-telegram-link>svg{display:block;width:19px;height:19px;flex:none}
.ib-telegram-link>span{display:flex;flex-direction:column;gap:3px;line-height:1.25}
.ib-telegram-link strong{font-size:12px;font-weight:700;letter-spacing:0}
.ib-telegram-link>span>span{font-size:11px;font-weight:500}
.ib-telegram-link:hover strong{text-decoration:underline;text-underline-offset:3px}
.ib-telegram-link:focus-visible{outline:3px solid var(--ib-blue);outline-offset:4px;border-radius:3px}
.ib-home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 25px;margin:4px 0 25px}
.ib-home-lead .ib-home-actions>.ib-button{margin:0}
.ib-home-actions .ib-telegram-link strong{font-size:13px}
.ib-footer__top nav>a.ib-telegram-link--footer{display:flex;padding:11px 13px;margin-bottom:15px;border:1px solid var(--ib-line);border-radius:5px;background:var(--ib-panel);color:var(--ib-blue-dark);width:max-content;max-width:100%}
.ib-footer .ib-barrai{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:18px;padding:13px 16px;margin-left:auto;border:0;border-radius:5px;background:var(--barrai-forest);color:#f7f8f2;text-decoration:none;width:max-content;max-width:100%}
.ib-footer .ib-barrai:hover{background:#1c3227}
.ib-footer .ib-barrai:focus-visible{outline:3px solid var(--ib-blue);outline-offset:4px}
.ib-barrai__credit{display:flex;flex-direction:column;gap:5px;font-size:10px;line-height:1.3;flex:none}
.ib-barrai__credit>span{display:inline-flex;align-items:center;gap:6px;color:#d4e0d8;font-size:10px}
.ib-footer .ib-barrai>.ib-barrai-lockup{width:118px;margin:0}
.ib-footer .ib-barrai .ib-barrai-logo--light{display:none}
.ib-footer .ib-barrai .ib-barrai-logo--dark{display:block}
@media(max-width:1050px){.ib-header .ib-brief-link{display:none}.ib-header__utilities{gap:16px}.ib-footer .ib-barrai{margin-left:0}}
@media(max-width:760px){
 .ib-topline{display:none}
 .ib-header__inner{display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;gap:8px 9px;padding-block:12px}
 .ib-header__inner>.ib-brand{grid-column:1;grid-row:1;justify-self:start;min-width:0}
 .ib-header__actions{display:contents}
 .ib-header__actions>[data-open-search]{grid-column:2;grid-row:1}
 .ib-header__actions>.ib-menu{grid-column:3;grid-row:1}
 .ib-header__utilities{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:16px;border-top:1px solid var(--ib-line);padding-top:8px}
 .ib-header .ib-telegram-link{min-height:44px}
 .ib-home-actions{gap:12px 20px}
 .ib-footer .ib-barrai{width:100%;margin-top:5px;padding:14px 16px}
 .ib-footer .ib-barrai>.ib-barrai-lockup{width:118px}
}
@media(max-width:380px){.ib-header__inner{column-gap:7px}.ib-header .ib-telegram-link strong{font-size:11px}.ib-header .ib-telegram-link>span>span{font-size:10px}.ib-home-actions>.ib-button{width:100%;justify-content:center}}

/* 2.3.0: native appearance text has its own space; the icon never overlays it. */
.ib-appearance--header{gap:8px}
.ib-header .ib-telegram-link{gap:8px}
.ib-header .ib-telegram-link strong{font-size:12px;white-space:nowrap}
.ib-header .ib-telegram-link>span>span{font-size:10px;white-space:nowrap}
.ib-header .ib-telegram-link>svg{width:18px;height:18px}
.ib-lesson-path{list-style:none;counter-reset:none;display:grid;grid-template-columns:1fr;gap:0;padding:0;margin:28px 0 0;border-top:1px solid var(--ib-line)}
.ib-lesson-path>li{margin:0;padding:0;border-bottom:1px solid var(--ib-line)}
.ib-lesson-path a{display:grid;grid-template-columns:58px minmax(0,1fr) 22px;align-items:center;gap:22px;padding:25px 0;text-decoration:none}
.ib-lesson-path a:hover h3{color:var(--ib-blue)}
.ib-lesson-path__number{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ib-panel);color:var(--ib-blue-dark);font-size:20px;font-weight:750;font-variant-numeric:tabular-nums}
.ib-lesson-path__copy{display:block;min-width:0}
.ib-lesson-path .ib-kicker{display:block;margin-bottom:7px}
.ib-lesson-path h3{font-size:clamp(20px,2.4vw,27px);line-height:1.2;margin:0 0 7px}
.ib-lesson-path__copy>span:last-child{font-size:15px;line-height:1.55;color:var(--ib-muted)}
.ib-next-lesson{margin-top:35px;padding:24px;background:var(--ib-panel);border:1px solid var(--ib-line);border-radius:6px}
.ib-next-lesson>.ib-kicker{display:block;margin-bottom:16px}
.ib-next-lesson>a{display:flex;align-items:center;justify-content:space-between;gap:18px;text-decoration:none;color:var(--ib-ink)}
.ib-next-lesson__label{display:block;font-size:12px;font-weight:650;color:var(--ib-blue-dark);margin-bottom:6px}
.ib-next-lesson strong{font-size:22px;line-height:1.25;display:block}
.ib-next-lesson a:hover strong{color:var(--ib-blue)}
.ib-next-lesson p{font-size:14px;line-height:1.65;color:var(--ib-muted);margin:12px 0 0}
.ib-topic-spotlight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.ib-topic-spotlight>a{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;gap:15px;align-items:center;border:1px solid var(--ib-line);background:var(--ib-panel);border-radius:6px;padding:24px;min-width:0}
.ib-topic-spotlight__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--ib-surface);color:var(--ib-blue-dark)}
.ib-topic-spotlight strong{display:block;font-size:23px;line-height:1.2;letter-spacing:-.03em;color:var(--ib-ink);margin-bottom:8px}
.ib-topic-spotlight a>span>span{display:block;color:var(--ib-muted);font-size:14px;line-height:1.5}
.ib-topic-spotlight a:hover strong{color:var(--ib-blue)}
@media(max-width:760px){
 .ib-header__utilities{gap:12px}
 .ib-appearance--header{gap:6px}
 .ib-lesson-path a{grid-template-columns:38px minmax(0,1fr) 18px;gap:13px;padding:22px 0}
 .ib-lesson-path__number{width:38px;height:38px;font-size:16px}
 .ib-lesson-path h3{font-size:20px}
 .ib-lesson-path__copy>span:last-child{font-size:14px}
 .ib-lesson-path .ib-kicker{font-size:10px;letter-spacing:.06em}
 .ib-topic-spotlight{grid-template-columns:1fr;gap:14px}
 .ib-topic-spotlight>a{padding:20px;gap:12px;grid-template-columns:36px minmax(0,1fr) 18px}
 .ib-topic-spotlight__icon{width:36px;height:36px}
 .ib-topic-spotlight strong{font-size:22px}
 .ib-next-lesson{padding:19px}
 .ib-next-lesson strong{font-size:21px}
}

/* Sun/moon control: exact PadBets geometry & icon paths, with InfoBets colours. */
.ib-appearance[hidden]{display:none!important}
.ib-appearance--header{gap:0;position:static}
.ib-theme-toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;flex:none;padding:0;border:1px solid #d7def5;border-radius:10px;background:#eef2fb;color:#3456d8;cursor:pointer;transition:background .15s,color .15s}
.ib-theme-toggle:hover{background:#e0e7fa;color:#2444bd}
.ib-theme-toggle svg{width:18px;height:18px;pointer-events:none}
.ib-theme-toggle .ib-theme-sun{display:none}
html[data-theme=dark] .ib-theme-toggle{background:#1c2b3f;border-color:#3b4d63;color:#b1bdcc}
html[data-theme=dark] .ib-theme-toggle:hover{background:#293e58;color:#edf2f8}
html[data-theme=dark] .ib-theme-toggle .ib-theme-moon{display:none}
html[data-theme=dark] .ib-theme-toggle .ib-theme-sun{display:block}
.ib-theme-toggle:focus-visible{outline:3px solid var(--ib-blue);outline-offset:3px}
.ib-header .ib-telegram-link>span>span{font-weight:700;font-size:11px}
.ib-header__utilities{gap:18px}
@media(max-width:760px){.ib-header__utilities{gap:12px}.ib-theme-toggle{width:38px;height:38px}.ib-header .ib-telegram-link strong{font-size:12px}.ib-header .ib-telegram-link>span>span{font-size:11px}}
