/*
Theme Name: HSC Result Ledger
Theme URI: https://hscresult.in
Author: HSC Result
Description: A government-portal design for hscresult.in — Maharashtra HSC (Class 12) exam and result information in the visual world of the Board's official portal: teal portal header, notice-board panels, and the current result status carried in a red notice banner and stamped in the status ledger. Independent of MSBSHSE; no result form, no seat numbers, no date the Board has not announced.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: hsc-result-ledger
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Mukta:wght@400;500;600;700&display=swap");

/* ------------------------------------------------------------------
   Tokens — the Board-portal teal, in six colours.
   Portal Teal  #377783  the official portal's primary
   Teal Light   #51A8B1  the primary at 400
   Notice Red   #B91C1C  the urgent-notice red
   Deep Teal    #204347  masthead text, dark bands
   Footer Teal  #102223  the portal's darkest tone
   Paper        #FFFFFF  panel white
------------------------------------------------------------------ */
:root {
	--ink: #377783;
	--paper: #ffffff;
	--red: #b91c1c;
	--graphite: #263238;
	--muted: #57707a;
	--tint: #e9f2f2;
	--tint-row: #f2f7f7;
	--rule: #cfdbdc;
	--rule-ink: #aec6c8;
	--ink-soft: #c3dde0;
	--page-bg: #edf2f2;
	--teal-mid: #3f919b;
	--teal-light: #51a8b1;
	--teal-deep: #32616c;
	--teal-dark: #204347;
	--teal-darkest: #102223;
	--amber: #b45309;
	--serif: "Poppins", "Mukta", "Segoe UI", "Helvetica Neue", sans-serif;
	--sans: "Mukta", "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
	--shell: min(72rem, 100% - 2rem);
}

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

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

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--graphite);
	font-family: var(--sans);
	font-size: 1.06rem;
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: var(--serif);
}

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

a {
	color: var(--ink);
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

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

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -5rem;
	z-index: 100;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 600;
	padding: 0.6rem 1rem;
	border: 2px solid var(--ink);
}

.skip-link:focus {
	top: 1rem;
}

.site-main {
	width: var(--shell);
	margin-inline: auto;
}

/* ------------------------------------------------------------------
   Header — the portal masthead: a slim government strip, a white
   band with the seal mark and name, then the teal menu bar.
------------------------------------------------------------------ */
.gov-strip {
	background: var(--teal-dark);
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.84rem;
	line-height: 1.45;
}

.gov-strip-inner {
	width: var(--shell);
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.15rem 1.5rem;
	padding: 0.34rem 0;
}

.gov-strip-site {
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #fff;
}

.site-header {
	background: var(--paper);
	color: var(--graphite);
}

.site-footer :focus-visible {
	outline-color: #f2b8b0;
}

.site-header :focus-visible {
	outline-color: var(--red);
}

.header-inner {
	position: relative;
	width: var(--shell);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1.15rem 0 1.25rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

/* An original seal roundel — a double-ring circle with the site's own
   initials. Deliberately not the Board's emblem or any official seal. */
.brand-mark {
	flex-shrink: 0;
	width: 5.2rem;
	height: 5.2rem;
	display: grid;
	place-items: center;
	border: 3px double var(--ink);
	border-radius: 50%;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.brand-text {
	text-align: center;
	max-width: 42rem;
}

.brand-name {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1.08;
	color: var(--teal-dark);
	text-decoration: none;
	letter-spacing: 0.02em;
}

/* The Board's full name under the wordmark, in both of the Board's
   languages — the English name first (the site's default language),
   the Marathi name under it. The wording is the Board's official
   name itself, carried as a name line, not copied page content. */
.brand-line {
	margin: 0.35rem 0 0;
	font-family: var(--sans);
	font-size: 1.04rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--teal-deep);
}

.brand-line-mr {
	margin: 0.15rem 0 0;
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--muted);
}

.header-tools {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.tool-btn {
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--ink);
	border-radius: 2px;
	padding: 0.45rem 0.85rem;
	cursor: pointer;
}

.tool-btn:hover {
	background: var(--tint);
}

.tool-btn[aria-expanded="true"] {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

@media (max-width: 560px) {
	.header-inner {
		flex-direction: column;
		gap: 0.7rem;
	}

	.header-tools {
		position: static;
		transform: none;
	}

	.brand {
		flex-direction: column;
		gap: 0.6rem;
	}

	.brand-mark {
		width: 3.8rem;
		height: 3.8rem;
		font-size: 1.05rem;
	}

	.brand-name {
		font-size: 1.9rem;
	}

	.brand-line {
		font-size: 0.94rem;
	}

	.brand-line-mr {
		font-size: 0.96rem;
	}
}

@media (min-width: 861px) {
	.menu-toggle {
		display: none;
	}
}

/* Search — a modal, not a dropdown: the panel is a fixed overlay
   that blurs the page behind it, and the search box sits centred on
   screen. The toggle in main.js still works on the hidden attribute;
   the close button, Escape key and backdrop click live there too. */
.search-panel {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(16, 34, 35, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.search-panel[hidden] {
	display: none;
}

body.search-open {
	overflow: hidden;
}

.search-dialog {
	position: relative;
	width: min(36rem, 100%);
	background: var(--paper);
	border-top: 4px solid var(--ink);
	box-shadow: 0 24px 60px rgba(16, 34, 35, 0.4);
	padding: 1.6rem 1.6rem 1.35rem;
}

.search-dialog-title {
	margin: 0 2.2rem 0.85rem 0;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--teal-dark);
}

.search-close {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 2px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.search-close:hover {
	background: var(--tint);
	color: var(--teal-dark);
}

.search-dialog-hint {
	margin: 0.85rem 0 0;
	font-family: var(--sans);
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--muted);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	width: var(--shell);
	margin-inline: auto;
}

.search-dialog .search-form {
	width: 100%;
	margin: 0;
}

@media (max-width: 560px) {
	.search-dialog {
		padding: 1.25rem 1.1rem 1.15rem;
	}
}

.entry .search-form,
.error-404 .search-form {
	width: 100%;
	margin: 1rem 0;
}

.search-form label {
	flex: 1;
	display: flex;
}

.search-field {
	flex: 1;
	width: 100%;
	font-family: var(--sans);
	font-size: 1rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #aec6c8;
	border-radius: 2px;
	background: #fff;
	color: var(--graphite);
}

.search-submit {
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 2px;
	padding: 0.65rem 1.15rem;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--teal-deep);
}

/* ------------------------------------------------------------------
   Navigation — the portal menu bar: solid teal, white links,
   an amber rule along its foot.
------------------------------------------------------------------ */
.site-nav {
	background: var(--ink);
	border-bottom: 3px solid var(--amber);
}

.nav-list {
	width: var(--shell);
	margin: 0 auto;
	padding: 0.35rem 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.2rem 1.4rem;
}

.nav-list a {
	display: inline-block;
	padding: 0.3rem 0;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
}

.nav-list a:hover {
	color: #fff;
	box-shadow: inset 0 -2px 0 #fff;
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: #fff;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 #f6c453;
}

@media (max-width: 860px) {
	.nav-list {
		display: none;
		padding: 0.25rem 0 0.5rem;
	}

	.site-nav.is-open .nav-list {
		display: block;
	}

	.nav-list li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}

	.nav-list li:last-child {
		border-bottom: 0;
	}

	.nav-list a {
		display: block;
		padding: 0.55rem 0;
	}
}

/* ------------------------------------------------------------------
   Navigation dropdowns (2026-11-28 nav fix) — WordPress prints the
   full menu tree, parents and children together. Until now no rule
   hid the child lists, so every sub-menu rendered open in the bar.
   Child lists are now hidden by default at every width: on desktop
   they open as dropdown panels on hover or keyboard focus; on
   mobile they open on tap of the toggle button main.js adds.
------------------------------------------------------------------- */
.nav-list .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sub-menu-toggle {
	display: none;
}

@media (min-width: 861px) {
	.nav-list > li {
		position: relative;
	}

	.nav-list .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 14rem;
		padding: 0.4rem 0;
		background: var(--ink);
		box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
		z-index: 200;
		text-align: left;
	}

	.nav-list .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}

	.nav-list .sub-menu li {
		position: relative;
	}

	.nav-list li:hover > .sub-menu,
	.nav-list li:focus-within > .sub-menu {
		display: block;
	}

	.nav-list .sub-menu a {
		display: block;
		padding: 0.45rem 1rem;
		white-space: nowrap;
	}

	/* Keep the last dropdowns inside the viewport. */
	.nav-list > li:nth-last-child(-n+2) > .sub-menu {
		left: auto;
		right: 0;
	}
}

@media (max-width: 860px) {
	.nav-list .menu-item-has-children {
		position: relative;
	}

	.nav-list .menu-item-has-children > a {
		padding-right: 2.75rem;
	}

	.sub-menu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 2.75rem;
		height: 2.9rem;
		padding: 0;
		background: transparent;
		border: 0;
		color: #fff;
		font-family: var(--sans);
		font-size: 1rem;
		line-height: 1;
		cursor: pointer;
	}

	.nav-list .sub-menu {
		padding-left: 1.1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
	}

	.nav-list li.is-sub-open > .sub-menu {
		display: block;
	}
}

/* ------------------------------------------------------------------
   Notice banner — the Board portal's urgent-notice treatment:
   a red-to-amber gradient bar carrying the result status line.
   Homepage only (header.php); the text is the owner's Customizer
   status line, never a date this theme invents.
------------------------------------------------------------------ */
.notice-banner {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 30%, #b45309 65%, #92400e 100%);
	color: #fff;
}

.notice-banner-inner {
	width: var(--shell);
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 0;
}

.notice-tag {
	flex-shrink: 0;
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 2px;
	padding: 0.32rem 0.6rem;
}

.notice-text {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.45;
}

@media (max-width: 640px) {
	.notice-banner-inner {
		flex-wrap: wrap;
		gap: 0.45rem;
	}
}

/* ------------------------------------------------------------------
   Homepage hero and the status ledger.
------------------------------------------------------------------ */
.hero {
	padding-top: 2.4rem;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.05rem, 5.2vw + 0.8rem, 2.9rem);
	font-weight: 700;
	line-height: 1.12;
	color: var(--teal-dark);
	max-width: 16em;
}

.hero-lead {
	margin: 0.9rem 0 0;
	font-size: 1.22rem;
	line-height: 1.55;
	max-width: 37rem;
}

.status-ledger {
	position: relative;
	margin-top: 2.6rem;
	padding: 1.4rem 1.4rem 1.5rem;
	background: var(--paper);
	border: 4px double var(--ink);
}

/* The tear-off edge: punched holes along the foot of the document. */
.status-ledger::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: -10px;
	height: 20px;
	background-image: radial-gradient(circle at 10px 50%, var(--page-bg) 5px, transparent 6.5px);
	background-size: 26px 20px;
	background-repeat: repeat-x;
	pointer-events: none;
}

.ledger-rows {
	margin: 0;
}

.ledger-row {
	display: grid;
	grid-template-columns: 11.5rem 1fr;
	gap: 0.15rem 1.5rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--rule-ink);
}

.ledger-row:first-child {
	padding-top: 0;
}

.ledger-row dt {
	font-family: var(--sans);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
}

.ledger-row dd {
	margin: 0;
	font-size: 1.06rem;
	line-height: 1.5;
}

/* The one memorable element: the ink stamp. */
.stamp {
	position: absolute;
	top: -1.55rem;
	right: 0.9rem;
	width: 6.9rem;
	height: 6.9rem;
	margin: 0;
	display: grid;
	place-items: center;
	padding: 0.7rem;
	border: 3px double var(--red);
	border-radius: 50%;
	color: var(--red);
	font-family: var(--sans);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	transform: rotate(-8deg);
	animation: stamp-in 0.45s ease-out 0.3s both;
	pointer-events: none;
}

@keyframes stamp-in {
	from {
		opacity: 0;
		transform: rotate(-8deg) scale(1.7);
	}

	55% {
		opacity: 1;
	}

	to {
		opacity: 1;
		transform: rotate(-8deg) scale(1);
	}
}

.status-note {
	margin: 1rem 0 0;
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 40rem;
}

.status-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.6rem;
	margin: 0.9rem 0 0;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 600;
}

@media (min-width: 761px) {
	.status-ledger {
		padding: 1.6rem 1.8rem 1.7rem;
	}

	.stamp {
		top: 1.3rem;
		right: 1.5rem;
	}

	.ledger-rows,
	.status-note {
		margin-right: 8.2rem;
	}
}

@media (max-width: 560px) {
	.ledger-row {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------
   Homepage sections — notice-board panels: a white box with a solid
   teal heading bar, the way the portal's notice boxes are built.
------------------------------------------------------------------ */
.home-section {
	margin-top: 2.4rem;
	background: var(--paper);
	border: 1px solid var(--rule-ink);
	box-shadow: 0 1px 2px rgba(16, 34, 35, 0.07);
	padding: 0 1.25rem 1.25rem;
}

.home-section > h2 {
	margin: 0 -1.25rem 0.4rem;
	padding: 0.6rem 1.25rem;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--ink);
	border-bottom: 3px solid var(--amber);
}

.index-list,
.register-list,
.question-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.index-row {
	display: grid;
	grid-template-columns: 15rem 1fr;
	gap: 0.2rem 1.6rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
}

.index-title {
	font-size: 1.22rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.index-title:hover {
	text-decoration: underline;
}

.index-desc {
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--muted);
}

.register-row {
	display: grid;
	grid-template-columns: 7.6rem 1fr;
	gap: 0.2rem 1.3rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--rule);
}

.register-date {
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	padding-top: 0.35rem;
}

.register-title {
	font-size: 1.24rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}

.register-title:hover {
	text-decoration: underline;
}

.register-excerpt {
	margin: 0.3rem 0 0;
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 42rem;
}

.section-more {
	margin: 1rem 0 0;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 600;
}

.contents-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 1.25rem;
	margin-top: 0.6rem;
}

/* Each section group is a card that fills its grid row, so a short
   group beside a tall one reads as a finished box — never as a
   white hole in the middle of the panel. */
.contents-group {
	background: var(--tint-row);
	border: 1px solid var(--rule);
	padding: 0 1rem 0.85rem;
}

.contents-group h3 {
	margin: 0.85rem 0 0.3rem;
	padding-bottom: 0.35rem;
	font-size: 1.16rem;
	font-weight: 600;
	border-bottom: 1px solid var(--rule);
}

.contents-group h3 a {
	color: var(--ink);
	text-decoration: none;
}

.contents-group h3 a:hover {
	text-decoration: underline;
}

.contents-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contents-list li {
	padding: 0.28rem 0;
}

.contents-list a {
	font-size: 1.02rem;
	color: var(--graphite);
	text-decoration: none;
}

.contents-list a:hover {
	color: var(--ink);
	text-decoration: underline;
}

@media (min-width: 700px) {
	.contents-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 1fr;
	}
}

@media (min-width: 1080px) {
	.contents-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.question-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rule);
}

.question-list a {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--graphite);
	text-decoration: none;
}

.question-list a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.trust-note {
	background: #fdf6ec;
	border-left: 4px solid var(--amber);
	padding: 1.3rem 1.5rem 1.4rem;
}

.home-section.trust-note > h2 {
	margin: 0;
	padding: 0 0 0.2rem;
	background: transparent;
	color: var(--teal-dark);
	border-bottom: 0;
	font-size: 1.375rem;
}

.trust-note p {
	max-width: 44rem;
	margin: 0.6rem 0 0;
}

@media (max-width: 640px) {
	.index-row,
	.register-row {
		grid-template-columns: 1fr;
	}

	.register-date {
		padding-top: 0;
	}
}

/* ------------------------------------------------------------------
   Exam-facts band — the confirmed 2027 dates in a three-cell band
   under the status ledger, the way the portal leads with its key
   exam information. Dates are this site's own published facts.
------------------------------------------------------------------ */
.exam-strip {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--tint);
	border: 1px solid var(--rule-ink);
	border-top: 3px solid var(--amber);
}

.exam-strip li {
	padding: 0.8rem 1.1rem;
	text-align: center;
}

.exam-strip li + li {
	border-left: 1px solid var(--rule-ink);
}

.exam-fact-label {
	display: block;
	font-family: var(--sans);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.exam-fact-value {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--serif);
	font-size: 1.18rem;
	font-weight: 600;
	color: var(--teal-dark);
}

@media (max-width: 640px) {
	.exam-strip {
		grid-template-columns: 1fr;
	}

	.exam-strip li + li {
		border-left: 0;
		border-top: 1px solid var(--rule-ink);
	}
}

/* ------------------------------------------------------------------
   Notice marquee — the portal's scrolling notification strip: a
   teal band whose latest items run continuously. It carries this
   site's own recent posts, never the Board's notices.
------------------------------------------------------------------ */
.notice-marquee {
	margin-top: 2.4rem;
	display: flex;
	align-items: stretch;
	background: var(--teal-dark);
	color: #fff;
	overflow: hidden;
}

.marquee-tag {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0.55rem 0.9rem;
	background: var(--red);
	font-family: var(--sans);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.marquee-track {
	display: flex;
	overflow: hidden;
}

.marquee-run {
	display: flex;
	align-items: center;
	gap: 3rem;
	padding: 0.55rem 3rem 0.55rem 1.2rem;
	white-space: nowrap;
	animation: marquee-scroll 45s linear infinite;
}

.notice-marquee:hover .marquee-run {
	animation-play-state: paused;
}

.marquee-item {
	color: #fff;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 500;
	text-decoration: none;
}

.marquee-item::before {
	content: "»";
	margin-right: 0.55rem;
	color: var(--teal-light);
	font-weight: 700;
}

.marquee-item:hover {
	text-decoration: underline;
}

@keyframes marquee-scroll {
	to {
		transform: translateX(-100%);
	}
}

@media (max-width: 640px) {
	.notice-marquee {
		flex-direction: column;
	}

	.marquee-tag {
		justify-content: center;
	}
}

/* ------------------------------------------------------------------
   Divisional-board tiles — the portal homepage's first block: a
   grid of picture tiles with a name bar along the foot. Each tile
   carries this theme's own photograph of the division's best-known
   landscape (assets/img/divisions/); the closing tile keeps the
   red initial plate.
------------------------------------------------------------------ */
.division-grid {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 1fr;
	gap: 0.9rem;
}

@media (min-width: 700px) {
	.division-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1080px) {
	.division-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.division-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	border: 1px solid var(--rule-ink);
	background: var(--paper);
}

.division-plate {
	flex: 1;
	display: grid;
	place-items: center;
	min-height: 5.2rem;
	background: linear-gradient(150deg, var(--teal-light) 0%, var(--ink) 55%, var(--teal-deep) 100%);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--serif);
	font-size: 2.5rem;
	font-weight: 700;
}

/* The photograph fills the tile's picture area; flex-grow lets it
   absorb any extra row height so no white strip opens under it. */
.division-photo {
	flex: 1 0 auto;
	display: block;
	aspect-ratio: 16 / 9;
	min-height: 5.2rem;
	overflow: hidden;
}

.division-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.division-tile-main .division-plate {
	background: linear-gradient(150deg, #dc2626 0%, var(--red) 55%, #92400e 130%);
	font-size: 1.6rem;
	letter-spacing: 0.05em;
}

.division-name {
	display: block;
	padding: 0.5rem 0.6rem;
	background: var(--teal-dark);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.division-tile:hover .division-name,
.division-tile:focus-visible .division-name {
	background: var(--ink);
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   Start-here link boxes — the portal's link-box pattern: solid
   boxes with a title and one line, in a grid.
------------------------------------------------------------------ */
.quick-grid {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
}

@media (min-width: 700px) {
	.quick-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 1fr;
	}
}

@media (min-width: 1080px) {
	.quick-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.quick-box {
	display: block;
	height: 100%;
	padding: 1rem 1.1rem 1.05rem;
	background: var(--tint-row);
	border: 1px solid var(--rule-ink);
	border-top: 3px solid var(--ink);
	text-decoration: none;
}

.quick-box:hover {
	background: var(--tint);
	border-top-color: var(--amber);
}

.quick-title {
	display: block;
	font-family: var(--serif);
	font-size: 1.16rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.quick-box:hover .quick-title {
	text-decoration: underline;
}

.quick-desc {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--sans);
	font-size: 0.94rem;
	line-height: 1.5;
	color: var(--muted);
}

/* ------------------------------------------------------------------
   Helpline strip — the portal's counselling band: a label, the
   number in large type, one line of guidance.
------------------------------------------------------------------ */
.helpline-strip {
	margin-top: 2.4rem;
	padding: 1.3rem 1.25rem 1.4rem;
	background: var(--tint);
	border: 1px solid var(--rule-ink);
	border-top: 3px solid var(--amber);
	text-align: center;
}

.helpline-label {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--teal-dark);
}

.helpline-number {
	margin: 0.35rem 0 0;
	font-family: var(--serif);
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.15;
}

.helpline-number a {
	color: var(--red);
	text-decoration: none;
}

.helpline-number a:hover {
	text-decoration: underline;
}

.helpline-note {
	margin: 0.4rem auto 0;
	max-width: 34rem;
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--muted);
}

/* The fresh-item flag on the latest-updates register. */
.new-tag {
	display: inline-block;
	margin-left: 0.55rem;
	padding: 0.1rem 0.45rem;
	background: var(--red);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	vertical-align: 0.28em;
	border-radius: 2px;
}

/* ------------------------------------------------------------------
   Inner pages — the reading column.
------------------------------------------------------------------ */
.entry {
	max-width: 46rem;
	margin-top: 2.4rem;
	margin-inline: auto;
	padding: 2rem 1.6rem 2.2rem;
	background: var(--paper);
	border: 1px solid var(--rule-ink);
	box-shadow: 0 1px 2px rgba(16, 34, 35, 0.07);
}

.entry.listing {
	max-width: 52rem;
}

/* Search results use the desktop page properly: a wide column,
   centred like every other reading page, with one card per result. */
.entry.search-results {
	max-width: 68.75rem;
}

.search-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.search-card {
	background: var(--tint-row);
	border: 1px solid var(--rule-ink);
	border-left: 4px solid var(--ink);
	padding: 1.05rem 1.25rem 1.1rem;
}

.search-card-title {
	font-family: var(--serif);
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}

.search-card-title:hover {
	text-decoration: underline;
}

.search-card-meta {
	margin: 0.3rem 0 0;
	font-family: var(--sans);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.search-card-excerpt {
	margin: 0.45rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	max-width: 46rem;
}

@media (max-width: 640px) {
	.entry {
		padding: 1.4rem 1.05rem 1.6rem;
	}
}

.entry-header {
	margin-bottom: 1.4rem;
}

.entry-section {
	margin: 0 0 0.5rem;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 500;
}

.entry-title {
	margin: 0;
	font-size: clamp(1.85rem, 4.2vw + 0.6rem, 2.35rem);
	font-weight: 600;
	line-height: 1.15;
}

.entry-date {
	margin: 0.6rem 0 0;
	font-family: var(--sans);
	font-size: 0.95rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.archive-desc {
	margin-top: 0.7rem;
	max-width: 42rem;
}

.entry-image {
	margin: 0 0 1.6rem;
}

.entry-image img {
	border: 1px solid var(--rule);
}

.entry-content {
	font-size: 1.125rem;
	line-height: 1.68;
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin: 2.1em 0 0.55em;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
}

.entry-content h3 {
	margin: 1.7em 0 0.5em;
	font-size: 1.24rem;
	font-weight: 600;
	line-height: 1.3;
}

.entry-content h4 {
	margin: 1.5em 0 0.45em;
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.05em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

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

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 0.2em 0 0.2em 1.1em;
	border-left: 3px solid var(--ink);
	font-style: italic;
}

.entry-content figure {
	margin: 1.5em 0;
}

.entry-content figcaption {
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--muted);
	margin-top: 0.45rem;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.2em 0.8em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 0.8em 1.2em;
}

/* Content tables become ledgers. On narrow screens a wide table scrolls
   sideways inside the content column instead of stretching the page. */
.entry-content table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	font-family: var(--sans);
	font-size: 0.94rem;
	line-height: 1.5;
}

.entry-content caption {
	caption-side: top;
	text-align: left;
	padding: 0 0 0.55rem;
	font-family: var(--serif);
	font-size: 1.02rem;
	color: var(--muted);
}

.entry-content th {
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	text-align: left;
	padding: 0.6rem 0.75rem;
}

.entry-content td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.entry-content tbody tr:nth-child(even) td {
	background: var(--tint-row);
}

/* FAQ items in content: ruled register rows that open. */
.entry-content details {
	margin: 0.8em 0;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--ink);
	background: #fff;
}

.entry-content summary {
	font-weight: 600;
	font-size: 1.08rem;
	line-height: 1.4;
	color: var(--ink);
	cursor: pointer;
}

.entry-content details[open ] summary {
	margin-bottom: 0.5rem;
}

.entry-content details p:last-child {
	margin-bottom: 0.2em;
}

/* Forms inside content (the contact form shortcode, comment forms). */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content select,
.entry-content textarea {
	width: 100%;
	max-width: 32rem;
	font-family: var(--sans);
	font-size: 1rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #aec6c8;
	border-radius: 2px;
	background: #fff;
	color: var(--graphite);
}

.entry-content button,
.entry-content input[type="submit"],
.entry-content .wp-block-button__link {
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 2px;
	padding: 0.7rem 1.25rem;
	cursor: pointer;
	text-decoration: none;
}

.entry-content button:hover,
.entry-content input[type="submit"]:hover,
.entry-content .wp-block-button__link:hover {
	background: var(--teal-deep);
}

.entry-footer {
	margin-top: 2.6rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: 0.98rem;
}

.post-nav p {
	margin: 0.4rem 0;
}

.page-links {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-family: var(--sans);
}

/* Pagination */
.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.page-numbers {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
	font-weight: 600;
}

a.page-numbers:hover {
	border-color: var(--ink);
}

/* ------------------------------------------------------------------
   Footer — the back cover.
------------------------------------------------------------------ */
.site-footer {
	margin-top: 4.5rem;
	background: var(--teal-darkest);
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.6;
}

.footer-inner {
	width: var(--shell);
	margin-inline: auto;
	padding: 2.8rem 0 2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 900px) {
	.footer-inner {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}
}

.footer-brand {
	margin: 0 0 0.6rem;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--paper);
}

.footer-about p {
	margin: 0 0 0.8rem;
	max-width: 26rem;
}

.footer-heading {
	margin: 0 0 0.7rem;
	font-family: var(--serif);
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--paper);
}

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

.footer-list li {
	padding: 0.28rem 0;
}

.site-footer a {
	color: #e3e6f2;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-note {
	margin: 0.8rem 0 0;
	font-size: 0.88rem;
}

.footer-base {
	border-top: 1px solid rgba(252, 252, 250, 0.25);
}

.footer-base p {
	width: var(--shell);
	margin: 0 auto;
	padding: 1.05rem 0 1.3rem;
	font-size: 0.875rem;
}

/* ------------------------------------------------------------------
   Motion: one orchestrated moment (the stamp) and nothing else.
   Reduced motion removes even that.
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.stamp {
		animation: none;
	}

	.marquee-run {
		animation: none;
	}

	.marquee-track {
		overflow-x: auto;
	}

	a,
	.tool-btn,
	.search-submit {
		transition: none;
	}
}
