/*
 * tool-betting-calculator.php (enqueued for that template only). Ported from the template's inline <style> (A-60):
 * theme font tokens, no uppercase labels, the retired magenta accent swapped for teal, and the
 * same content column as the header/footer.
 */

/* The betting-calculator plugin's stylesheet sets `body { font-family: "Poppins"…; line-height: 1.4;
   color: #333 }` on any page that renders its shortcode. Poppins is never loaded, so the header,
   prose and footer fell back to system fonts. `html body` outranks the plugin's bare `body` and puts
   base.css's body type back (same fix as components/calculator.css for the ba/calculator block).
   The plugin's rewritten stylesheet (6 Oct 2026) no longer styles <body>; this stays as a guard in case
   an older copy of the plugin is ever restored. */
html body{font-family:var(--ba-font-body);line-height:1.5;color:var(--ba-ink);}

.calc-tool{
	--orange:#F87830;--amber:#F8A018;--pink:#E85090;
	--teal:#0F7C85;--teal-text:#0B6A72;--charcoal:#202020;--cloud:#F8F8F8;
	--border:#E9E9E9;--radius:18px;--radius-sm:14px;--radius-pill:999px;
	--shadow:0 8px 24px rgba(32,32,32,0.08);
	
	color:var(--charcoal);line-height:1.5;
}
.calc-tool *{box-sizing:border-box;}
.calc-wrap{max-width:calc(var(--ba-max) + 2 * var(--ba-gutter));margin:0 auto;padding:0 var(--ba-gutter);}
.calc-tool h1,.calc-tool h2,.calc-tool h3{
	font-family:var(--ba-font-head);line-height:1.15;margin:0 0 12px;
}
.calc-tool h2{font-size:32px;font-weight:700;letter-spacing:-0.02em;margin-top:0;}
.calc-tool h3{font-size:22px;font-weight:700;}
.calc-tool p{font-size:18px;line-height:1.7;margin:0 0 18px;}

.calc-kicker{
	display:inline-block;font-size:12px;font-weight:700;letter-spacing:0.05em;
	color:var(--teal-text);background:#e8f6f7;
	border:1px solid #cfeaec;border-radius:var(--radius-pill);
	padding:6px 14px;margin-bottom:14px;
}

/* Section rhythm. */
.calc-section{padding:36px 0;}
.calc-section--band{background:var(--cloud);}
.calc-prose{max-width:760px;margin:0 auto;}
.calc-prose h2{margin:36px 0 14px;}
.calc-prose h2:first-child{margin-top:0;}
.calc-prose h3{font-size:20px;margin:26px 0 10px;}
.calc-prose p{font-size:18px;line-height:1.7;margin:0 0 18px;}
.calc-prose a{color:var(--teal-text);font-weight:600;}
.calc-prose ol,.calc-prose ul{font-size:18px;line-height:1.7;padding-left:20px;margin:0 0 18px;}
.calc-prose li{margin-bottom:8px;}
.calc-prose strong{font-weight:700;color:var(--charcoal);}
.calc-prose img{max-width:100%;height:auto;border-radius:var(--radius-sm);border:1px solid var(--border);margin:8px 0 18px;}

/* Hero — same system as the homepage / app-listing / acca tool. */
.calc-hero{
	position:relative;overflow:hidden;text-align:center;color:#fff;
	background:linear-gradient(135deg,#F87830 0%,#F8A018 50%,#E85090 100%);
	padding:56px 24px 60px;
}
.calc-hero__blob{position:absolute;border-radius:50%;pointer-events:none;
	background:radial-gradient(circle,rgba(255,255,255,0.18),transparent 70%);}
.calc-hero__blob--a{width:460px;height:460px;top:-180px;right:-120px;}
.calc-hero__blob--b{width:320px;height:320px;bottom:-160px;left:-90px;
	background:radial-gradient(circle,rgba(255,255,255,0.12),transparent 70%);}
.calc-hero__inner{position:relative;z-index:1;max-width:820px;margin:0 auto;}
.calc-hero .calc-kicker{color:#fff;background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.35);}
.calc-hero__title{font-size:clamp(36px,5vw,52px);font-weight:800;line-height:1.05;
	letter-spacing:-0.02em;color:#fff;margin:0;font-family:var(--ba-font-head);}
.calc-hero .calc-hero__lead{font-size:19px;line-height:1.6;margin:16px auto 0;max-width:660px;text-align:center;
	color:rgba(255,255,255,0.92);}
.calc-hero__meta{display:flex;justify-content:center;align-items:center;gap:14px;
	margin-top:22px;flex-wrap:wrap;}
.calc-hero__author{display:flex;align-items:center;gap:10px;}
.calc-hero__avatar{width:38px;height:38px;border-radius:999px;overflow:hidden;flex:none;
	background:rgba(255,255,255,0.2);border:1px solid rgba(255,255,255,0.4);
	display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#fff;}
.calc-hero__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.calc-hero__author-text{display:flex;flex-direction:column;text-align:left;line-height:1.25;font-size:13px;}
.calc-hero__author-text strong{font-weight:700;}
.calc-hero__author-text span{opacity:0.82;font-size:12px;}
.calc-hero__divider{width:1px;height:26px;background:rgba(255,255,255,0.3);}
.calc-hero__updated{font-size:13px;opacity:0.9;}
.calc-hero__updated strong{font-weight:700;}
.calc-hero__ctas{display:flex;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap;}

/* Primary CTA — matches the site primary button (ba-btn ba-btn--primary --lg). */
.calc-cta{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	height:52px;padding:0 26px;border:1px solid transparent;border-radius:var(--radius-pill);
	background:linear-gradient(135deg,#F87830,#E85090);color:#fff;
	font:700 15px/1 var(--ba-font-body);text-decoration:none;white-space:nowrap;
	box-shadow:0 12px 30px rgba(232,80,144,0.36);
	transition:transform .18s cubic-bezier(0.22,0.61,0.36,1);
}
.calc-cta:hover{transform:translateY(-2px);color:#fff;}
.calc-cta:focus-visible{outline:3px solid var(--teal);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.calc-cta{transition:none;}.calc-cta:hover{transform:none;}}
.calc-btn-ghost{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	height:52px;padding:0 24px;border-radius:var(--radius-pill);
	font:700 15px/1 var(--ba-font-body);text-decoration:none;
	background:rgba(255,255,255,0.16);border:1px solid rgba(255,255,255,0.32);color:#fff;
	transition:background .18s ease;
}
.calc-btn-ghost:hover{background:rgba(255,255,255,0.26);color:#fff;}
.calc-btn-ghost:focus-visible{outline:3px solid #fff;outline-offset:3px;}

/* Affiliate disclosure (shared partial) rendered under the hero — compact band. */
.calc-tool .trust-affiliate-disclosure{background:var(--cloud);border-bottom:1px solid var(--border);}
.calc-tool .trust-affiliate-disclosure .container{max-width:1120px;margin:0 auto;padding:12px 24px;}
.calc-tool .trust-affiliate-disclosure p,
.calc-tool .trust-affiliate-disclosure summary{font-size:13px;color:#666;margin:0;line-height:1.5;}
.calc-tool .trust-affiliate-disclosure summary{cursor:pointer;font-weight:600;}

/* Calculator: the plugin prints the card itself (design "A · Gradient frame", 6 Oct 2026; styles in
   plugins/betting-calculator/css/betting-calculator.css, loaded in <head> by inc/assets.php). */
.calc-embed{max-width:860px;margin:0 auto;}

/* Tools cross-reference callout. */
.calc-xref{
	display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;
	background:#fff;border:1px solid var(--border);border-radius:var(--radius);
	box-shadow:var(--shadow);padding:20px 24px;max-width:860px;margin:0 auto;
}
.calc-xref__text{font-size:16px;line-height:1.55;margin:0;max-width:620px;color:#333;}
.calc-xref__text strong{font-weight:700;color:var(--charcoal);}
.calc-xref-link{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;
	height:48px;padding:0 22px;border-radius:var(--radius-pill);
	background:#fff;border:2px solid var(--teal);color:var(--teal-text);
	font:700 15px/1 var(--ba-font-body);text-decoration:none;white-space:nowrap;
	transition:background .18s ease;
}
.calc-xref-link:hover{background:#e8f6f7;color:var(--teal-text);}
.calc-xref-link:focus-visible{outline:3px solid var(--teal);outline-offset:2px;}


@media(max-width:520px){
	.calc-tool h2{font-size:26px;}
}

/* Phones: the byline stacks (no orphaned divider). The wrap already supplies the gutter. */
@media(max-width:520px){.calc-hero__divider{display:none;}.calc-hero__meta{flex-direction:column;gap:8px;}}

/* The page ends on a full-bleed band: no white strip above the footer. */
.ba-footer{margin-top:0;}
