/* Satta Matka Pro public design system */
:root {
	--smp-brand: #8b1020;
	--smp-brand-dark: #620913;
	--smp-nav: #111d3f;
	--smp-nav-soft: #1d2e5b;
	--smp-accent: #f3b61f;
	--smp-accent-soft: #fff3c7;
	--smp-success: #16834a;
	--smp-danger: #b42318;
	--smp-ink: #1b2430;
	--smp-muted: #657080;
	--smp-line: #e2ded3;
	--smp-paper: #ffffff;
	--smp-canvas: #f6f3eb;
	--smp-warm: #fffaf0;
	--smp-shadow-sm: 0 1px 3px rgba(17, 29, 63, 0.08);
	--smp-shadow: 0 12px 36px rgba(17, 29, 63, 0.12);
	--smp-radius-sm: 6px;
	--smp-radius: 14px;
	--smp-radius-lg: 24px;
	--smp-container: 1180px;
	--smp-reading: 780px;
}

html {
	font-size: 16px;
	scroll-padding-top: 5rem;
}

body {
	background: var(--smp-canvas);
	color: var(--smp-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

button,
input,
select,
textarea { font: inherit; }

button,
input[type="submit"] { cursor: pointer; }

a {
	color: var(--smp-brand);
	text-underline-offset: 0.18em;
}

a:hover { color: var(--smp-brand-dark); }

img { display: block; }

figure { margin: 0; }

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--smp-nav);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.18;
	margin: 0 0 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.5em; }

::selection {
	background: var(--smp-accent);
	color: var(--smp-nav);
}

.container {
	margin-inline: auto;
	max-width: var(--smp-container);
	padding-inline: clamp(1rem, 3vw, 1.5rem);
	width: 100%;
}

.narrow-content {
	margin-inline: auto;
	max-width: var(--smp-reading);
}

.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,
.skip-link:focus {
	background: var(--smp-paper);
	box-shadow: var(--smp-shadow);
	clip: auto !important;
	clip-path: none;
	color: var(--smp-nav);
	display: block;
	font-weight: 800;
	height: auto;
	left: 0.75rem;
	padding: 0.75rem 1rem;
	top: 0.75rem;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 3px solid var(--smp-accent);
	outline-offset: 3px;
}

.top-notice {
	background: var(--smp-brand-dark);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.top-notice__inner {
	align-items: center;
	display: flex;
	gap: 0.55rem;
	justify-content: center;
	min-height: 2.25rem;
	padding-block: 0.4rem;
	text-align: center;
}

.top-notice__icon {
	align-items: center;
	background: var(--smp-accent);
	border-radius: 50%;
	color: var(--smp-nav);
	display: inline-flex;
	font-family: Georgia, serif;
	font-weight: 900;
	height: 1.15rem;
	justify-content: center;
	width: 1.15rem;
}

.site-header {
	background: var(--smp-paper);
	box-shadow: var(--smp-shadow-sm);
	position: relative;
	z-index: 50;
}

.masthead__inner {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	min-height: 6rem;
	padding-block: 0.85rem;
}

.site-branding {
	align-items: center;
	display: flex;
	gap: 0.9rem;
	min-width: 0;
}

.site-logo img {
	max-height: 64px;
	width: auto;
}

.site-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.45rem, 3vw, 2.25rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0;
	text-transform: uppercase;
}

.site-title a {
	color: var(--smp-brand);
	text-decoration: none;
}

.site-description {
	color: var(--smp-muted);
	font-size: 0.85rem;
	font-weight: 650;
	margin: 0.35rem 0 0;
}

.masthead__status {
	align-items: center;
	background: #eef9f2;
	border: 1px solid #bfe5ce;
	border-radius: 999px;
	color: #0c6034;
	display: flex;
	font-size: 0.8rem;
	gap: 0.6rem;
	line-height: 1.2;
	padding: 0.55rem 0.85rem;
	white-space: nowrap;
}

.masthead__status strong,
.masthead__status small { display: block; }
.masthead__status small { color: #46725a; margin-top: 0.15rem; }

.status-pulse {
	background: var(--smp-success);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(22, 131, 74, 0.45);
	height: 0.65rem;
	width: 0.65rem;
	animation: smp-pulse 2s infinite;
}

@keyframes smp-pulse {
	70% { box-shadow: 0 0 0 8px rgba(22, 131, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 131, 74, 0); }
}

.main-navigation {
	background: var(--smp-nav);
	border-bottom: 3px solid var(--smp-accent);
	color: #fff;
}

.navigation__inner { position: relative; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { align-items: stretch; display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.045em;
	min-height: 3.15rem;
	padding: 0.65rem 1rem;
	text-decoration: none;
	text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--smp-brand);
	color: #fff;
}

.main-navigation .sub-menu {
	background: var(--smp-nav);
	box-shadow: var(--smp-shadow);
	display: none;
	left: 0;
	min-width: 220px;
	position: absolute;
	top: 100%;
	z-index: 60;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .sub-menu a { border-top: 1px solid rgba(255,255,255,0.1); }

.menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #fff;
	display: none;
	font-weight: 800;
	gap: 0.7rem;
	min-height: 3rem;
	padding: 0.5rem 0;
}

.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars span { background: currentColor; display: block; height: 2px; transition: transform 0.2s ease; width: 22px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-6px) rotate(-45deg); }

.ad-slot {
	align-items: center;
	background: #ece9df;
	color: var(--smp-muted);
	display: flex;
	font-size: 0.72rem;
	justify-content: center;
	margin: 1rem auto;
	max-width: min(970px, calc(100% - 2rem));
	min-height: 90px;
	overflow: hidden;
	position: relative;
	text-align: center;
}

.ad-slot::before {
	content: "ADVERTISEMENT";
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	position: absolute;
	top: 0.2rem;
}

.ad-slot .widget { margin: 0; width: 100%; }
.ad-slot img,
.ad-slot iframe { margin: auto; max-width: 100%; }
.ad-slot--empty { border: 1px dashed #aaa59a; min-height: 70px; }

.breadcrumb-wrap { padding-top: 0.85rem; }
.breadcrumbs { color: var(--smp-muted); font-size: 0.8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { color: #a0a6af; content: "/"; margin-left: 0.45rem; }
.breadcrumbs a { color: var(--smp-muted); }

.site-content { min-height: 55vh; }
.site-main { padding-block: clamp(1.5rem, 4vw, 3.25rem); }
.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.8rem); margin-bottom: 0.4rem; }
.archive-description { color: var(--smp-muted); max-width: var(--smp-reading); }
.archive-description p:last-child { margin-bottom: 0; }

.content-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) 300px;
}

.no-sidebar .content-layout { grid-template-columns: minmax(0, 1fr); }
.content-area { min-width: 0; }
.widget-area { align-self: start; display: grid; gap: 1rem; position: sticky; top: 1rem; }
.widget {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius);
	box-shadow: var(--smp-shadow-sm);
	padding: 1.1rem;
}
.widget-title { font-family: inherit; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { border-top: 1px solid var(--smp-line); margin-top: 0.55rem; padding-top: 0.55rem; }

.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius);
	box-shadow: var(--smp-shadow-sm);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: var(--smp-shadow); transform: translateY(-3px); }
.post-card__image { aspect-ratio: 16 / 9; display: block; overflow: hidden; }
.post-card__image img { height: 100%; object-fit: cover; transition: transform 0.35s ease; width: 100%; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__body { padding: 1.25rem; }
.post-card__type { color: var(--smp-brand); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; margin-bottom: 0.45rem; text-transform: uppercase; }
.post-card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.post-card__title a { color: var(--smp-nav); text-decoration: none; }
.post-card__excerpt { color: var(--smp-muted); font-size: 0.92rem; }
.post-card__excerpt p { margin-bottom: 0.75rem; }
.text-link { font-size: 0.86rem; font-weight: 800; }

.entry-card {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius-lg);
	box-shadow: var(--smp-shadow-sm);
	padding: clamp(1.25rem, 4vw, 2.5rem);
}
.entry-header { border-bottom: 1px solid var(--smp-line); margin-bottom: 1.5rem; padding-bottom: 1rem; }
.entry-title { font-size: clamp(1.8rem, 4vw, 3rem); overflow-wrap: anywhere; }
.entry-meta { color: var(--smp-muted); display: flex; font-size: 0.82rem; gap: 1rem; }
.entry-featured { border-radius: var(--smp-radius); margin-bottom: 1.5rem; overflow: hidden; }
.entry-content { font-size: 1.02rem; }
.entry-content > * { max-width: var(--smp-reading); }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content h2,
.entry-content h3 { margin-top: 1.5em; }
.entry-content blockquote { background: var(--smp-warm); border-left: 4px solid var(--smp-accent); margin: 1.5rem 0; padding: 1rem 1.25rem; }
.entry-content table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.entry-content th,
.entry-content td { border: 1px solid var(--smp-line); padding: 0.65rem; }
.entry-content th { background: var(--smp-nav); color: #fff; text-align: left; }
.entry-footer { border-top: 1px solid var(--smp-line); margin-top: 1.5rem; padding-top: 1rem; }

.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
	align-items: center;
	background: var(--smp-brand);
	border: 2px solid var(--smp-brand);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 850;
	gap: 0.45rem;
	justify-content: center;
	letter-spacing: 0.025em;
	min-height: 2.8rem;
	padding: 0.6rem 1.15rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: var(--smp-brand-dark); border-color: var(--smp-brand-dark); color: #fff; transform: translateY(-1px); }
.button--navy { background: var(--smp-nav); border-color: var(--smp-nav); }
.button--navy:hover { background: var(--smp-nav-soft); border-color: var(--smp-nav-soft); }
.button--ghost { background: transparent; border-color: currentColor; color: var(--smp-nav); }
.button--small { font-size: 0.76rem; min-height: 2.35rem; padding: 0.4rem 0.85rem; }

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
	background: #fff;
	border: 1px solid #b9bec7;
	border-radius: var(--smp-radius-sm);
	color: var(--smp-ink);
	min-height: 2.8rem;
	padding: 0.65rem 0.8rem;
	width: 100%;
}
textarea { min-height: 8rem; }
.search-form { display: flex; gap: 0.5rem; max-width: 620px; }
.search-form label { flex: 1; }

.hero {
	background:
		radial-gradient(circle at 90% 10%, rgba(243,182,31,0.24), transparent 28%),
		linear-gradient(135deg, var(--smp-nav) 0%, #182b5a 58%, var(--smp-brand-dark) 100%);
	color: #fff;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3rem, 8vw, 6.5rem);
	position: relative;
}
.hero::after {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 50%;
	content: "";
	height: 360px;
	position: absolute;
	right: -110px;
	top: -160px;
	width: 360px;
	z-index: -1;
}
.hero__grid { align-items: center; display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); }
.hero__eyebrow { color: var(--smp-accent); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.13em; margin-bottom: 0.85rem; text-transform: uppercase; }
.hero h1 { color: #fff; margin-bottom: 0.35em; max-width: 760px; }
.hero__lead { color: #dbe3f3; font-size: clamp(1rem, 2vw, 1.18rem); max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.hero__actions .button:first-child { background: var(--smp-accent); border-color: var(--smp-accent); color: var(--smp-nav); }
.hero__actions .button:first-child:hover { background: #ffd25c; border-color: #ffd25c; }
.hero__actions .button--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }

.hero-panel {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: var(--smp-radius-lg);
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
	padding: 1.25rem;
}
.hero-panel__label { color: var(--smp-accent); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.1em; margin-bottom: 0.75rem; text-transform: uppercase; }
.hero-panel__result { background: #fff; border-radius: var(--smp-radius); color: var(--smp-nav); padding: 1rem; text-align: center; }
.hero-panel__market { font-size: 0.82rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-panel__number { color: var(--smp-brand); font-family: Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; letter-spacing: 0.06em; line-height: 1.2; margin-top: 0.3rem; }
.hero-panel__meta { color: #dbe3f3; display: flex; font-size: 0.76rem; justify-content: space-between; margin-top: 0.8rem; }

.notice-ticker { background: var(--smp-accent-soft); border-bottom: 1px solid #e6ca72; }
.notice-ticker__inner { align-items: center; display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 3.25rem; }
.notice-ticker__label { align-self: stretch; align-items: center; background: var(--smp-accent); color: var(--smp-nav); display: flex; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; padding-inline: 1rem; text-transform: uppercase; }
.notice-ticker__items { display: flex; gap: 2rem; list-style: none; margin: 0; overflow-x: auto; padding: 0.65rem 1rem; scrollbar-width: thin; }
.notice-ticker__items li { flex: 0 0 auto; font-size: 0.85rem; font-weight: 700; }
.notice-ticker__items a { color: var(--smp-nav); }

.home-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.home-section--paper { background: var(--smp-paper); }
.home-section--navy { background: var(--smp-nav); color: #dbe3f3; }
.home-section--navy h2,
.home-section--navy h3 { color: #fff; }
.section-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.35rem; }
.section-heading__eyebrow { color: var(--smp-brand); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; margin-bottom: 0.35rem; text-transform: uppercase; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--smp-muted); margin: 0.4rem 0 0; max-width: 680px; }
.section-heading__tools { align-items: center; display: flex; flex: 0 0 auto; gap: 0.6rem; }
.live-updated { color: var(--smp-muted); font-size: 0.76rem; }

.result-board {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius-lg);
	box-shadow: var(--smp-shadow);
	overflow: hidden;
}
.result-board__scroll { overflow-x: auto; }
.result-table { border-collapse: collapse; min-width: 700px; width: 100%; }
.result-table th { background: var(--smp-brand); color: #fff; font-size: 0.72rem; letter-spacing: 0.08em; padding: 0.85rem 1rem; text-align: center; text-transform: uppercase; }
.result-table th:first-child { text-align: left; }
.result-table td { border-bottom: 1px solid var(--smp-line); padding: 0.9rem 1rem; text-align: center; }
.result-table tbody tr:last-child td { border-bottom: 0; }
.result-table tbody tr:hover { background: var(--smp-warm); }
.result-table .market-cell { text-align: left; }
.market-cell a { color: var(--smp-nav); font-weight: 850; text-decoration: none; }
.market-cell small { color: var(--smp-muted); display: block; font-size: 0.7rem; margin-top: 0.1rem; }
.result-panel { color: var(--smp-nav); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 750; letter-spacing: 0.08em; }
.result-jodi { color: var(--smp-brand); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 900; }
.result-date { color: var(--smp-muted); font-size: 0.8rem; white-space: nowrap; }
.result-empty { color: var(--smp-muted); padding: 2rem !important; text-align: center !important; }
.refresh-status { min-height: 1.3em; }

.market-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-card {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius);
	box-shadow: var(--smp-shadow-sm);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.market-card__head { align-items: center; background: var(--smp-nav); color: #fff; display: flex; gap: 0.75rem; justify-content: space-between; padding: 0.8rem 1rem; }
.market-card__head h3 { color: #fff; font-family: inherit; font-size: 0.95rem; letter-spacing: 0.03em; margin: 0; text-transform: uppercase; }
.market-status { border-radius: 999px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em; padding: 0.25rem 0.5rem; text-transform: uppercase; }
.market-status--open { background: #dff7e8; color: #0b6436; }
.market-status--closed { background: #ffe4e1; color: #8c1f18; }
.market-card__body { display: grid; flex: 1; gap: 0.85rem; grid-template-columns: 1fr auto; padding: 1rem; }
.market-card__times { color: var(--smp-muted); font-size: 0.78rem; }
.market-card__times span { display: block; }
.market-card__latest { align-self: center; color: var(--smp-brand); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.04em; text-align: right; }
.market-card__foot { border-top: 1px solid var(--smp-line); display: flex; justify-content: space-between; padding: 0.65rem 1rem; }
.market-card__foot a { font-size: 0.75rem; font-weight: 800; }

.stats-strip { background: var(--smp-accent); color: var(--smp-nav); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.2rem; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(17,29,63,0.2); }
.stat strong { display: block; font-family: Georgia, serif; font-size: 1.5rem; }
.stat span { font-size: 0.72rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }

.chart-wrap { border: 1px solid var(--smp-line); border-radius: var(--smp-radius); overflow-x: auto; }
.chart-table { border-collapse: collapse; min-width: 720px; width: 100%; }
.chart-table th { background: var(--smp-nav); color: #fff; font-size: 0.75rem; padding: 0.75rem; }
.chart-table td { background: #fff; border: 1px solid var(--smp-line); padding: 0.65rem; text-align: center; }
.chart-table td:first-child { background: var(--smp-warm); font-weight: 800; }

.guide-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--smp-radius); padding: 1.35rem; }
.guide-card__number { color: var(--smp-accent); font-family: Georgia, serif; font-size: 2rem; font-weight: 900; }
.guide-card p { color: #bdc9df; font-size: 0.9rem; margin-bottom: 0; }

.home-editorial { background: var(--smp-paper); }
.home-editorial__inner { max-width: 900px; }
.home-editorial .entry-content { font-size: 1.04rem; }
.home-editorial .entry-content > * { max-width: 100%; }
.home-editorial .entry-content > h2 { border-left: 5px solid var(--smp-accent); padding-left: 0.8rem; }

.pagination,
.nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.page-numbers { align-items: center; background: #fff; border: 1px solid var(--smp-line); border-radius: var(--smp-radius-sm); color: var(--smp-nav); display: inline-flex; font-size: 0.85rem; font-weight: 750; justify-content: center; min-height: 2.5rem; min-width: 2.5rem; padding: 0.45rem 0.7rem; text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { background: var(--smp-brand); border-color: var(--smp-brand); color: #fff; }

.post-navigation { margin-top: 1.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.post-navigation a { background: #fff; border: 1px solid var(--smp-line); border-radius: var(--smp-radius); display: block; padding: 1rem; text-decoration: none; }
.nav-next { text-align: right; }
.nav-subtitle { color: var(--smp-muted); display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.nav-title { color: var(--smp-nav); font-family: Georgia, serif; font-weight: 800; }

.comments-area { background: #fff; border: 1px solid var(--smp-line); border-radius: var(--smp-radius); margin-top: 1.5rem; padding: 1.25rem; }
.comment-list { list-style: none; margin-left: 0; padding: 0; }
.comment-body { border-bottom: 1px solid var(--smp-line); padding-block: 1rem; }
.comment-meta { font-size: 0.8rem; }

.no-results,
.error-404 { background: #fff; border: 1px solid var(--smp-line); border-radius: var(--smp-radius-lg); padding: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.error-code { color: var(--smp-brand); font-family: Georgia, serif; font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; margin-bottom: 0.1em; }
.error-404 .search-form { margin: 1.5rem auto; }

.site-footer { background: #0b132b; color: #aebbd1; padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: #e4ebf7; }
.site-footer a:hover { color: var(--smp-accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.25fr repeat(3, 1fr); }
.footer-title { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.footer-title a { color: #fff; text-decoration: none; }
.site-footer .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.site-footer .widget-title { color: var(--smp-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.55rem; }
.footer-disclaimer { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--smp-radius); font-size: 0.78rem; margin-top: 2rem; padding: 0.9rem 1rem; }
.footer-disclaimer strong { color: #fff; }
.site-info { align-items: center; border-top: 1px solid rgba(255,255,255,0.1); display: flex; font-size: 0.75rem; justify-content: space-between; margin-top: 1.5rem; padding-block: 1.25rem; }
.site-info p { margin: 0; }
.site-info__credit { color: #7686a1; }

.back-to-top {
	background: var(--smp-brand);
	border: 0;
	border-radius: 50%;
	bottom: 1rem;
	box-shadow: var(--smp-shadow);
	color: #fff;
	font-size: 1.2rem;
	height: 2.8rem;
	position: fixed;
	right: 1rem;
	width: 2.8rem;
	z-index: 80;
}
.back-to-top[hidden] { display: none; }

@media (max-width: 980px) {
	.content-layout { grid-template-columns: minmax(0, 1fr); }
	.widget-area { grid-template-columns: repeat(2, minmax(0,1fr)); position: static; }
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero-panel { max-width: 520px; }
	.market-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
	html { scroll-padding-top: 1rem; }
	.masthead__inner { min-height: 4.8rem; }
	.site-description { display: none; }
	.masthead__status { padding: 0.45rem; }
	.masthead__status > span:last-child { display: none; }
	.menu-toggle { display: flex; }
	.main-navigation .menu { display: none; padding-bottom: 0.5rem; }
	.main-navigation.is-open .menu { display: block; }
	.main-navigation a { border-top: 1px solid rgba(255,255,255,0.1); min-height: 2.9rem; padding-inline: 0; }
	.main-navigation .sub-menu { background: rgba(255,255,255,0.05); box-shadow: none; display: block; padding-left: 1rem; position: static; }
	.main-navigation .sub-menu a { font-size: 0.75rem; }
	.post-grid,
	.market-grid,
	.guide-grid { grid-template-columns: minmax(0,1fr); }
	.stats-strip__grid { grid-template-columns: 1fr; }
	.stat + .stat { border-left: 0; border-top: 1px solid rgba(17,29,63,0.2); }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.section-heading__tools { justify-content: space-between; width: 100%; }
	.footer-grid { grid-template-columns: minmax(0,1fr); }
	.site-info { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.nav-next { text-align: left; }
}

@media (max-width: 520px) {
	.top-notice__inner { align-items: flex-start; text-align: left; }
	.top-notice__icon { flex: 0 0 auto; margin-top: 0.1rem; }
	.site-logo img { max-height: 46px; max-width: 110px; }
	.site-title { font-size: 1.2rem; }
	.hero__actions .button { width: 100%; }
	.notice-ticker__inner { grid-template-columns: 1fr; }
	.notice-ticker__label { justify-content: center; min-height: 2rem; }
	.widget-area { grid-template-columns: 1fr; }
	.search-form { align-items: stretch; flex-direction: column; }
	.entry-card { border-radius: var(--smp-radius); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
	.top-notice,
	.main-navigation,
	.ad-slot,
	.site-footer,
	.back-to-top,
	.hero__actions,
	.section-heading__tools,
	.widget-area { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.site-header { box-shadow: none; }
	.content-layout { display: block; }
	a { color: #000; text-decoration: underline; }
}

/* Dynamic market and result templates */
.site-main--home { padding-block: 0; }
.market-card__head a { color: #fff; text-decoration: none; }
.market-card__head a:hover { color: var(--smp-accent); }
.page-header--split {
	align-items: end;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}
.page-header--split > div { max-width: 720px; }
.result-filter {
	align-items: end;
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius);
	display: grid;
	flex: 0 0 330px;
	gap: 0.5rem;
	grid-template-columns: 1fr auto;
	padding: 0.9rem;
}
.result-filter label { color: var(--smp-muted); font-size: 0.72rem; font-weight: 850; grid-column: 1 / -1; letter-spacing: 0.06em; text-transform: uppercase; }
.result-filter select { min-width: 0; }
.result-jodi a { color: inherit; text-decoration: none; }

.result-detail {
	background: var(--smp-paper);
	border: 1px solid var(--smp-line);
	border-radius: var(--smp-radius-lg);
	box-shadow: var(--smp-shadow);
	overflow: hidden;
}
.result-detail__header { padding: clamp(1.25rem, 4vw, 2.2rem); text-align: center; }
.result-detail__header h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.result-detail__number {
	align-items: stretch;
	background: var(--smp-nav);
	display: grid;
	grid-template-columns: 1fr 0.8fr 1fr;
	padding: clamp(1rem, 4vw, 2rem);
}
.result-detail__number > span {
	align-items: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(1.6rem, 6vw, 3rem);
	font-weight: 850;
	justify-content: center;
	letter-spacing: 0.08em;
	padding: 0.75rem;
}
.result-detail__number > span + span { border-left: 1px solid rgba(255,255,255,0.18); }
.result-detail__number small { color: #aebbd1; font-family: inherit; font-size: 0.65rem; letter-spacing: 0.08em; margin-bottom: 0.3rem; text-transform: uppercase; }
.result-detail__number .result-detail__jodi { color: var(--smp-accent); font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.8rem); }
.result-detail__meta { color: var(--smp-muted); display: flex; font-size: 0.8rem; gap: 1rem; justify-content: space-between; padding: 1rem 1.25rem; }
.related-results { margin-top: 2.5rem; }

.market-hero {
	align-items: center;
	background: linear-gradient(135deg, var(--smp-nav), var(--smp-nav-soft));
	border-radius: var(--smp-radius-lg) var(--smp-radius-lg) 0 0;
	color: #dbe3f3;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	padding: clamp(1.5rem, 5vw, 3rem);
}
.market-hero h1 { color: #fff; margin-bottom: 0.25em; }
.market-hero p:last-child { margin-bottom: 0; max-width: 720px; }
.market-hero .market-status { flex: 0 0 auto; font-size: 0.72rem; padding: 0.5rem 0.75rem; }
.schedule-strip {
	background: var(--smp-accent);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.schedule-strip > div { padding: 1rem; text-align: center; }
.schedule-strip > div + div { border-left: 1px solid rgba(17,29,63,0.2); }
.schedule-strip small { display: block; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.schedule-strip strong { color: var(--smp-nav); display: block; font-family: Georgia, serif; font-size: 1.15rem; margin-top: 0.15rem; }
.market-history { margin-bottom: 2.5rem; }
.market-content { margin-top: 2.5rem; }

@media (max-width: 760px) {
	.page-header--split,
	.market-hero { align-items: flex-start; flex-direction: column; }
	.result-filter { flex-basis: auto; width: 100%; }
	.schedule-strip { grid-template-columns: repeat(2, 1fr); }
	.schedule-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(17,29,63,0.2); }
	.schedule-strip > div:nth-child(4) { border-top: 1px solid rgba(17,29,63,0.2); }
	.result-detail__meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
	.result-detail__number > span { font-size: 1.35rem; padding-inline: 0.35rem; }
	.result-detail__number .result-detail__jodi { font-size: 1.9rem; }
	.schedule-strip { grid-template-columns: 1fr; }
	.schedule-strip > div + div { border-left: 0; border-top: 1px solid rgba(17,29,63,0.2); }
}
