/*
Theme Name: SSC Result Editorial 2026
Theme URI: https://10thresult2026.in
Author: SSC Result Official
Author URI: https://10thresult2026.in
Description: A document-editorial theme for the Maharashtra SSC result portal. The design follows the printed statement of marks: ruled ledger tables, board-ink typography in Libre Franklin and Source Serif 4, and a single memorable element — the result-status seal stamped on the homepage. All sections are fed by the site's own posts, updates, official links, statistics and FAQs.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssc-result-editorial
*/

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
	--paper: #ffffff;
	--board: #1e3a5f;        /* Board Ink — primary */
	--board-deep: #152c49;   /* Board Ink, pressed */
	--ink: #17233b;          /* Deep Ink — body text */
	--ink-soft: #46536a;     /* secondary text */
	--stamp: #a62b25;        /* Stamp Red — the seal only */
	--pass: #1e7a46;         /* Pass Green — declared state only */
	--ledger: #d9e0ec;       /* Ledger — printed table rules */
	--ledger-soft: #e8edf5;
	--focus: #b7791f;
	--font-display: "Libre Franklin", "Franklin Gothic Medium", sans-serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--measure: 46rem;
	--wide: 64rem;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--board-deep);
	line-height: 1.15;
	margin: 0 0 0.5em;
}

h1 { font-size: 2.35rem; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
	color: var(--board);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover { color: var(--board-deep); }

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

img {
	max-width: 100%;
	height: auto;
}

.sre-wrap {
	width: min(var(--wide), 100% - 2.5rem);
	margin-inline: auto;
}

.sre-prose {
	max-width: var(--measure);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: static;
	width: auto; height: auto;
	clip: auto;
	display: inline-block;
	padding: 0.5rem 1rem;
	font-family: var(--font-display);
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Masthead — a letterhead, not an app bar                             */
/* ------------------------------------------------------------------ */

.sre-masthead {
	border-bottom: 4px double var(--board);
	padding-top: 1.1rem;
}

.sre-masthead-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.sre-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
}

.sre-brand img {
	width: 52px;
	height: 52px;
}

.sre-brand-name {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	color: var(--board-deep);
	line-height: 1.1;
}

.sre-brand-line {
	display: block;
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ink-soft);
	margin-top: 0.15rem;
}

.sre-nav-toggle {
	margin-left: auto;
	display: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--board-deep);
	background: var(--paper);
	border: 1.5px solid var(--board);
	border-radius: 2px;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
}

.sre-nav {
	border-top: 1px solid var(--ledger);
	margin-top: 1rem;
}

.sre-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0.55rem 0 0.7rem;
}

.sre-nav-list a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--board-deep);
	text-decoration: none;
	padding: 0.2rem 0;
}

.sre-nav-list a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.sre-nav-list .current-menu-item > a,
.sre-nav-list .current_page_item > a {
	box-shadow: inset 0 -3px 0 var(--stamp);
}

/* ------------------------------------------------------------------ */
/* Homepage status sheet + the seal                                    */
/* ------------------------------------------------------------------ */

.sre-notice {
	border: 1.5px solid var(--stamp);
	border-radius: 2px;
	padding: 0.7rem 1rem;
	margin-top: 1.4rem;
	font-family: var(--font-display);
	font-size: 0.98rem;
}

.sre-notice strong { color: var(--stamp); }

.sre-sheet {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem 2.5rem;
	align-items: start;
	padding: 2.4rem 0 2rem;
}

.sre-sheet-board {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ink-soft);
	margin-bottom: 0.6rem;
}

.sre-sheet h1 { margin-bottom: 0.7rem; }

.sre-sheet-note {
	max-width: 34rem;
	font-size: 1.08rem;
}

.sre-facts {
	border-collapse: collapse;
	width: 100%;
	max-width: 34rem;
	margin: 1.2rem 0 1.4rem;
	font-size: 1rem;
}

.sre-facts th,
.sre-facts td {
	text-align: left;
	padding: 0.45rem 0.8rem 0.45rem 0;
	border-bottom: 1px solid var(--ledger);
	vertical-align: top;
}

.sre-facts th {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink-soft);
	width: 9.5rem;
}

.sre-facts td {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.sre-btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--paper);
	background: var(--board);
	border: 1.5px solid var(--board);
	border-radius: 2px;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	cursor: pointer;
}

.sre-btn:hover {
	background: var(--board-deep);
	color: var(--paper);
}

.sre-btn-quiet {
	background: var(--paper);
	color: var(--board-deep);
}

.sre-btn-quiet:hover {
	background: var(--ledger-soft);
	color: var(--board-deep);
}

/* The seal — the one memorable element. */
.sre-seal {
	width: 168px;
	height: 168px;
	transform: rotate(-8deg);
	animation: sre-press 0.45s ease-out 0.25s both;
}

.sre-seal svg {
	display: block;
	width: 100%;
	height: 100%;
}

.sre-seal-ring {
	fill: none;
	stroke: var(--stamp);
	stroke-width: 3;
}

.sre-seal-ring-inner {
	fill: none;
	stroke: var(--stamp);
	stroke-width: 1.4;
}

.sre-seal-text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 2.6px;
	fill: var(--stamp);
}

.sre-seal-word {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 21px;
	letter-spacing: 0.4px;
	fill: var(--stamp);
	text-anchor: middle;
}

.sre-seal-year {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 3px;
	fill: var(--stamp);
	text-anchor: middle;
}

.sre-seal--declared .sre-seal-ring,
.sre-seal--declared .sre-seal-ring-inner { stroke: var(--pass); }
.sre-seal--declared .sre-seal-text,
.sre-seal--declared .sre-seal-word,
.sre-seal--declared .sre-seal-year { fill: var(--pass); }

@keyframes sre-press {
	from {
		transform: rotate(-16deg) scale(1.35);
		opacity: 0;
	}
	to {
		transform: rotate(-8deg) scale(1);
		opacity: 1;
	}
}

/* ------------------------------------------------------------------ */
/* Sections — ruled like the marksheet, never boxed like an app        */
/* ------------------------------------------------------------------ */

.sre-section {
	border-top: 4px double var(--board);
	padding: 1.8rem 0 2.1rem;
}

.sre-section-title {
	margin-bottom: 0.35rem;
}

.sre-section-intro {
	color: var(--ink-soft);
	max-width: var(--measure);
	margin-bottom: 1.2rem;
}

.sre-more {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.98rem;
	margin-top: 1rem;
}

/* Date-ruled lists (updates, articles, toppers, notifications) */
.sre-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sre-list li {
	border-bottom: 1px solid var(--ledger);
	padding: 0.75rem 0;
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 0.4rem 1.2rem;
	align-items: baseline;
}

.sre-list time {
	font-family: var(--font-display);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}

.sre-list a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--board-deep);
	text-decoration: none;
}

.sre-list a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

.sre-list .sre-list-note {
	grid-column: 2;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

/* Ledger tables (official sites, statistics) */
.sre-table {
	border-collapse: collapse;
	width: 100%;
	font-size: 1rem;
}

.sre-table caption {
	text-align: left;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink-soft);
	padding-bottom: 0.5rem;
}

.sre-table th,
.sre-table td {
	text-align: left;
	padding: 0.6rem 0.9rem 0.6rem 0;
	border-bottom: 1px solid var(--ledger);
	vertical-align: top;
}

.sre-table thead th {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--board-deep);
	border-bottom: 2px solid var(--board);
}

.sre-table .sre-num {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.sre-table a { font-weight: 600; }

/* Steps — numbered only because the content really is a sequence */
.sre-steps {
	list-style: none;
	counter-reset: sre-step;
	margin: 0;
	padding: 0;
	max-width: var(--measure);
}

.sre-steps li {
	counter-increment: sre-step;
	border-bottom: 1px solid var(--ledger);
	padding: 0.8rem 0 0.8rem 3.2rem;
	position: relative;
}

.sre-steps li::before {
	content: counter(sre-step);
	position: absolute;
	left: 0;
	top: 0.75rem;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.35rem;
	color: var(--board);
	font-variant-numeric: tabular-nums;
}

.sre-steps strong {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--board-deep);
	display: block;
}

/* FAQ accordion — native details, no script needed */
.sre-faq {
	border-bottom: 1px solid var(--ledger);
	max-width: var(--measure);
}

.sre-faq details {
	border-top: 1px solid var(--ledger);
}

.sre-faq summary {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--board-deep);
	padding: 0.85rem 2rem 0.85rem 0;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.sre-faq summary::-webkit-details-marker { display: none; }

.sre-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.2rem;
	top: 0.7rem;
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--board);
}

.sre-faq details[open ] summary::after { content: "–"; }

.sre-faq .sre-faq-body {
	padding: 0 0 1rem;
	max-width: 42rem;
}

/* ------------------------------------------------------------------ */
/* Articles, pages, archives                                           */
/* ------------------------------------------------------------------ */

.sre-main { padding: 2rem 0 2.5rem; }

.sre-article-head { max-width: var(--measure); }

.sre-date-line {
	font-family: var(--font-display);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.sre-content { max-width: var(--measure); }

.sre-content h2 { margin-top: 1.8em; }
.sre-content h3 { margin-top: 1.5em; }

.sre-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.2rem 0;
	font-size: 0.98rem;
}

.sre-content th,
.sre-content td {
	border-bottom: 1px solid var(--ledger);
	padding: 0.5rem 0.8rem 0.5rem 0;
	text-align: left;
	vertical-align: top;
}

.sre-content thead th {
	font-family: var(--font-display);
	border-bottom: 2px solid var(--board);
	color: var(--board-deep);
}

.sre-content blockquote {
	margin: 1.2rem 0;
	padding: 0.2rem 0 0.2rem 1.1rem;
	border-left: 3px solid var(--board);
	font-style: italic;
}

.sre-content ul,
.sre-content ol { padding-left: 1.4rem; }

.sre-content li { margin-bottom: 0.35em; }

.sre-thumb {
	margin: 0 0 1.4rem;
}

.sre-thumb img {
	border: 1px solid var(--ledger);
	border-radius: 2px;
}

.sre-pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--ledger);
	margin-top: 2.2rem;
	padding-top: 1rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.98rem;
	max-width: var(--measure);
}

.sre-pager a { text-decoration: none; }
.sre-pager a:hover { text-decoration: underline; }

.sre-related {
	border-top: 4px double var(--board);
	margin-top: 2.4rem;
	padding-top: 1.4rem;
}

.sre-archive-head { max-width: var(--measure); margin-bottom: 0.5rem; }

.sre-pagination {
	font-family: var(--font-display);
	font-weight: 600;
	margin-top: 1.6rem;
}

.sre-pagination .page-numbers {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--ledger);
	border-radius: 2px;
	text-decoration: none;
	margin-right: 0.3rem;
}

.sre-pagination .page-numbers.current {
	background: var(--board);
	color: var(--paper);
	border-color: var(--board);
}

/* Search */
.sre-search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 34rem;
	margin: 1rem 0 1.6rem;
}

.sre-search-form input[type="search"] {
	flex: 1;
	font-family: var(--font-body);
	font-size: 1.05rem;
	padding: 0.65rem 0.8rem;
	border: 1.5px solid var(--board);
	border-radius: 2px;
	color: var(--ink);
	background: var(--paper);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.sre-footer {
	border-top: 4px double var(--board);
	margin-top: 1rem;
	padding: 1.8rem 0 2.2rem;
	font-size: 0.98rem;
}

.sre-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 1.5rem 2.5rem;
}

.sre-footer h3 {
	font-size: 1.02rem;
	margin-bottom: 0.6rem;
}

.sre-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sre-footer li { margin-bottom: 0.4rem; }

.sre-footer a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--board-deep);
	text-decoration: none;
}

.sre-footer a:hover { text-decoration: underline; }

.sre-footer-note {
	color: var(--ink-soft);
	max-width: 26rem;
}

.sre-footer-base {
	border-top: 1px solid var(--ledger);
	margin-top: 1.6rem;
	padding-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	font-family: var(--font-display);
	font-size: 0.9rem;
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 760px) {
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.35rem; }

	.sre-nav-toggle { display: inline-block; }

	.sre-nav { display: none; }
	.sre-nav.is-open { display: block; }

	.sre-nav-list {
		flex-direction: column;
		gap: 0.1rem;
		padding-bottom: 1rem;
	}

	.sre-nav-list a {
		display: block;
		padding: 0.45rem 0;
		border-bottom: 1px solid var(--ledger-soft);
	}

	.sre-sheet {
		grid-template-columns: 1fr;
		padding-top: 1.8rem;
	}

	.sre-seal {
		width: 132px;
		height: 132px;
		order: -1;
	}

	.sre-list li { grid-template-columns: 1fr; gap: 0.1rem; }
	.sre-list .sre-list-note { grid-column: 1; }

	.sre-footer-grid { grid-template-columns: 1fr; }

	.sre-table th,
	.sre-table td { padding-right: 0.5rem; }

	.sre-facts th { width: 7.5rem; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion & print                                              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.sre-seal { animation: none; }
	* { scroll-behavior: auto; }
}

@media print {
	.sre-nav,
	.sre-nav-toggle,
	.sre-btn,
	.sre-footer { display: none; }
	body { font-size: 11pt; }
	.sre-seal { animation: none; }
}
