/* Casinocals theme: Slate Pro (graphite + lime) */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
	--bg: #0e1014;
	--bg-2: #12151b;
	--surface: #161a21;
	--surface-2: #1c212a;
	--line: #262c37;
	--text: #e7eaf0;
	--muted: #8b93a3;
	--accent: #a3e635;
	--accent-ink: #0d1404;
	--accent-2: #60a5fa;
	--danger: #f87171;
	--radius: 10px;
	--radius-lg: 14px;
	--wrap: 1240px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.icon { display: block; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 27, .88); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 36px; min-height: 68px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-text span { color: var(--accent); }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; }
.custom-logo { display: block; max-height: 40px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--text); text-decoration: none; }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 220px; flex-direction: column; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { display: block; padding: 8px 10px; border-radius: 6px; }
.main-nav .sub-menu a:hover { background: var(--surface-2); }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.age-badge { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--danger); color: var(--danger); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.nav-toggle { display: none; }

/* Hero + search */
.hero { padding: 64px 0 40px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); border: 1px solid var(--line); background: var(--surface); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.kicker:hover { text-decoration: none; }
.hero__title { max-width: 820px; margin-bottom: 12px; }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 28px; }

.cc-search { position: relative; max-width: 760px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: border-color .15s; }
.cc-search:focus-within { border-color: var(--accent); }
.cc-search__icon { padding-left: 18px; color: var(--muted); }
.cc-search__input { flex: 1; min-width: 0; height: 60px; padding: 0 14px; background: transparent; border: 0; color: var(--text); font: 500 17px var(--font); outline: none; }
.cc-search__input::placeholder { color: #6b7385; }
.cc-search__input::-webkit-search-cancel-button { filter: invert(.6); }
.cc-search__kbd { margin-right: 14px; font: 600 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; }
.cc-search--page { margin-top: 18px; }
.cc-search--page .cc-search__input { height: 52px; font-size: 16px; }
.cc-search__list { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: min(440px, 60vh); overflow: auto; }
.cc-search__list li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--text); }
.cc-search__list li a:hover, .cc-search__list li[aria-selected="true"] a { background: var(--surface-2); text-decoration: none; }
.cc-search__list .r-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(163, 230, 53, .09); color: var(--accent); flex: none; }
.cc-search__list .r-text { flex: 1; min-width: 0; }
.cc-search__list .r-text b { display: block; font-weight: 600; font-size: 15px; }
.cc-search__list .r-text span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-search__list mark { background: none; color: var(--accent); }
.cc-search__list .r-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cc-search__list .r-all a { color: var(--muted); font-size: 14px; }
.cc-search__list .r-empty { padding: 12px; color: var(--muted); font-size: 14px; }

.search-modal { position: fixed; inset: 0; z-index: 100; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 9, .72); backdrop-filter: blur(4px); }
.search-modal__box { position: relative; width: min(680px, 100% - 32px); margin: 12vh auto 0; }
.search-modal .cc-search { max-width: none; }
.search-modal .cc-search__kbd { display: none; }

/* Sections */
.section { padding: 24px 0 56px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__head p { color: var(--muted); margin: 6px 0 0; }
.section__link { font-weight: 600; white-space: nowrap; }
.featured-calc { padding-bottom: 32px; }

/* Calculator list */
.calc-list, .result-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-list { grid-template-columns: 1fr; }
.calc-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .15s, background .15s; height: 100%; }
.calc-row:hover { text-decoration: none; border-color: #3a4352; background: var(--surface-2); }
.calc-row__icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: rgba(163, 230, 53, .08); flex: none; }
.calc-row__text { flex: 1; min-width: 0; }
.calc-row__text strong { display: block; font-size: 15.5px; font-weight: 600; }
.calc-row__text span { display: block; color: var(--muted); font-size: 13.5px; }
.calc-row__arrow { color: var(--muted); transition: transform .15s, color .15s; }
.calc-row:hover .calc-row__arrow { color: var(--accent); transform: translateX(3px); }
.badge { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--accent-2); color: #08111f; white-space: nowrap; }
.cc-empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.guide-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(163, 230, 53, .22), rgba(96, 165, 250, .18)), var(--surface-2); }
.guide-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); }
.guide-card .tag { position: absolute; left: 14px; bottom: 14px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; }
.guide-card__body { padding: 16px 18px 20px; }
.guide-card h3 { font-size: 17.5px; line-height: 1.35; margin-bottom: 8px; }
.guide-card h3 a { color: var(--text); }
.meta { color: var(--muted); font-size: 13.5px; margin: 0; }

/* Pages & articles */
.site-main { min-height: 60vh; }
.page-head { padding: 52px 0 24px; max-width: 820px; }
.page-head__desc { color: var(--muted); }
.entry { max-width: 760px; padding-bottom: 64px; }
.entry-hero { margin: 0 0 28px; }
.entry-hero img { border-radius: var(--radius-lg); display: block; }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content--wide { padding-bottom: 32px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content code { font-family: var(--mono); font-size: .9em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.calc-page__head { padding: 48px 0 8px; }
.nav-links { display: flex; gap: 8px; margin: 32px 0 64px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.nav-links .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Buttons (also for plugin calculators) */
.cc-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 1.5px solid transparent; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--font); cursor: pointer; text-decoration: none; }
.cc-btn:hover, .wp-block-button__link:hover { filter: brightness(1.08); text-decoration: none; }
.cc-btn--ghost { background: transparent; color: var(--accent-2); border-color: var(--accent-2); }

/* Calculator UI kit: shared look for every calculator in the plugin */
.cc-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 24px; font-size: 15px; line-height: 1.5; }
.cc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.cc-panel__title { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.cc-field { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.cc-field__body { flex: 1; min-width: 0; }
.cc-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.cc-field input[type="number"], .cc-field input[type="text"], .cc-field select { width: 92px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 700 14px var(--mono); text-align: center; padding: 7px 8px; border-radius: 6px; }
.cc-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.cc-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cc-stat b { font: 700 24px var(--mono); letter-spacing: -.02em; }
.cc-stat--hl { border-color: var(--accent); background: rgba(163, 230, 53, .07); }
.cc-stat--hl b { color: var(--accent); }
.cc-stat--neg { border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .07); }
.cc-stat--neg b { color: var(--danger); }
.cc-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 48px 0 36px; }
.footer-col p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 360px; }
.footer-col h4 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col li a { color: var(--text); font-size: 14px; }
.rg-bar { border-top: 1px solid var(--line); }
.rg-bar__inner { display: flex; align-items: center; gap: 16px; padding: 20px 0; font-size: 13.5px; color: var(--muted); }
.rg-bar__inner p { margin: 0; flex: 1; }
.rg-bar__inner strong { color: var(--text); }
.rg-bar__copy { white-space: nowrap; }

/* Responsive */
@media (max-width: 960px) {
	.cc-calc { grid-template-columns: 1fr; }
	.guide-grid { grid-template-columns: 1fr 1fr; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.nav-toggle { display: grid; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
	.main-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.calc-list { grid-template-columns: 1fr; }
	.hero { padding: 40px 0 28px; }
	.hero__sub { font-size: 16px; }
	.cc-search__kbd { display: none; }
	.cc-search__input { height: 54px; font-size: 16px; }
}
@media (max-width: 600px) {
	.guide-grid, .footer-cols { grid-template-columns: 1fr; }
	.cc-stats { grid-template-columns: 1fr; }
	.rg-bar__inner { flex-wrap: wrap; }
	.section__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* v1.1: category hubs, breadcrumbs, chips, FAQ */
.breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #4b5363; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hub-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); transition: border-color .15s, transform .15s; }
.hub-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.hub-card__icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(163, 230, 53, .08); margin-bottom: 8px; }
.hub-card strong { font-size: 18px; }
.hub-card__desc { color: var(--muted); font-size: 14px; flex: 1; }
.hub-card__count { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 8px; }
.hub-intro p { margin: 0 0 .6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; background: var(--surface); }
.chip span { color: #6b7385; margin-left: 2px; }
.chip:hover { color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active span { color: var(--accent-ink); }
.entry-content--calc > :not(.ccc):not(.cc-calc) { max-width: 760px; }
.faq > * { max-width: 760px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.faq__item[open] { border-color: rgba(163, 230, 53, .45); }
.faq__item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 960px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hub-grid { grid-template-columns: 1fr; } }
.entry-content .cc-panel__title, .entry-content .ccc h2 { margin-top: 0; font-size: 17px; }
