/*
Theme Name: Rīgas 92. vidusskola
Theme URI: https://www.r92vsk.lv/
Author: Rīgas 92. vidusskola
Description: Rīgas 92. vidusskolas pieejama, saturam un fotogrāfijām veidota bloku tēma.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: r92vsk
*/

@font-face {
	font-family: "IBM Plex Sans Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-condensed-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-condensed-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans Condensed";
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-condensed-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans Condensed";
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-condensed-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--r92-navy: #102a43;
	--r92-blue: #1677b8;
	--r92-red: #c53d4a;
	--r92-yellow: #f2c94c;
	--r92-paper: #f7f8f5;
	--r92-ink: #17212b;
	--r92-white: #fff;
	--r92-muted: #52616f;
	--r92-line: #d7dee4;
	--r92-display: "IBM Plex Sans Condensed", "Arial Narrow", "Aptos Narrow", sans-serif;
	--r92-body: "Source Sans 3", Aptos, "Segoe UI", sans-serif;
	--r92-data: "IBM Plex Mono", "Cascadia Mono", monospace;
	--r92-edge: clamp(1rem, 3vw, 2rem);
	--r92-section: clamp(4rem, 3.15rem + 4.2vw, 7rem);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 8rem;
}

body {
	margin: 0;
	overflow-x: hidden;
	overflow-x: clip;
	background: var(--r92-paper);
	color: var(--r92-ink);
	font-family: var(--r92-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a,
button,
input,
textarea,
select {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--r92-yellow);
	outline-offset: 4px;
	box-shadow: 0 0 0 2px var(--r92-navy);
}

::selection {
	background: var(--r92-yellow);
	color: var(--r92-navy);
}

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

.skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	display: block;
	padding: 0.85rem 1rem;
	background: var(--r92-yellow);
	color: var(--r92-navy);
	font-weight: 800;
	text-decoration: none;
}

.wp-site-blocks {
	min-height: 100vh;
}

.site-main {
	min-height: 50vh;
}

.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: 2px solid var(--r92-navy);
	gap: 0.55rem;
	line-height: 1.15;
	text-decoration: none;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	border-color: var(--r92-blue);
	background: var(--r92-blue);
	color: var(--r92-white);
	transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--r92-navy);
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--r92-navy);
	color: var(--r92-white);
}

/* Galvene */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--r92-paper);
	background: color-mix(in srgb, var(--r92-paper) 96%, transparent);
	box-shadow: 0 1px 0 var(--r92-line);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.admin-bar .site-header {
	top: 32px;
}

.school-utility {
	min-height: 2.25rem;
	background: var(--r92-navy);
	color: var(--r92-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.school-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 2.25rem;
	gap: 1rem;
}

.school-utility p {
	margin: 0;
}

.school-utility a {
	color: var(--r92-white);
	text-decoration: none;
}

.school-utility a:hover {
	color: var(--r92-yellow);
	text-decoration: underline;
}

.school-utility__links {
	display: flex;
	align-items: center;
	gap: 1.15rem;
}

.school-brand-row {
	display: grid;
	grid-template-columns: minmax(15rem, 0.8fr) minmax(20rem, 1.4fr) auto;
	align-items: center;
	min-height: 5.15rem;
	gap: clamp(1rem, 2.5vw, 2.5rem);
}

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

.school-brand .custom-logo-link {
	display: flex;
	flex: 0 0 auto;
}

.school-brand .custom-logo {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
}

.school-brand .wp-block-site-title {
	margin: 0;
	font-family: var(--r92-display);
	font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
	font-stretch: condensed;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 0.95;
	text-transform: uppercase;
}

.school-brand .wp-block-site-title a {
	color: var(--r92-navy);
	text-decoration: none;
}

.site-navigation {
	justify-self: stretch;
}

.site-navigation .wp-block-navigation__container {
	justify-content: center;
	gap: clamp(0.85rem, 1.4vw, 1.6rem);
}

.site-navigation .wp-block-navigation-item__content {
	position: relative;
	padding: 0.55rem 0;
	color: var(--r92-ink);
	font-size: 0.84rem;
	font-weight: 750;
	text-decoration: none;
}

.site-navigation .wp-block-navigation-item__content::after {
	position: absolute;
	right: 0;
	bottom: 0.25rem;
	left: 0;
	height: 2px;
	background: var(--r92-red);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.site-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.site-navigation .current-menu-ancestor > .wp-block-navigation-item__content::after,
.site-navigation .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header-search {
	justify-self: end;
}

.header-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
}

.header-search .wp-block-search__button {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 2px solid var(--r92-navy);
	background: transparent;
	color: var(--r92-navy);
}

.header-search .wp-block-search__button:hover {
	background: var(--r92-navy);
	color: var(--r92-white);
}

.site-header.is-scrolled .school-utility {
	display: none;
}

.site-header.is-scrolled .school-brand-row {
	min-height: 4.35rem;
}

/* Paziņojums */
.urgent-wrap {
	position: relative;
	z-index: 2;
	background: var(--r92-yellow);
}

.urgent-notice {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: 4.6rem;
	gap: clamp(1rem, 2.6vw, 2.5rem);
	padding: 0.85rem 0;
	color: var(--r92-navy);
}

.urgent-notice__label {
	padding: 0.4rem 0.55rem;
	background: var(--r92-navy);
	color: var(--r92-white);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.urgent-notice__body {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	min-width: 0;
}

.urgent-notice__title {
	margin: 0;
	color: var(--r92-navy);
	font-family: var(--r92-body);
	font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.125rem);
	font-weight: 850;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.urgent-notice__title a {
	color: inherit;
	text-decoration: none;
}

.urgent-notice__title a:hover {
	text-decoration: underline;
}

.urgent-notice__body > p {
	margin: 0;
	color: #30485e;
	font-size: 0.85rem;
}

.urgent-notice__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--r92-navy);
	font-size: 0.78rem;
	font-weight: 850;
	white-space: nowrap;
	text-decoration: none;
}

.urgent-notice__link:hover {
	text-decoration: underline;
}

.urgent-notice__link span {
	font-size: 1.2rem;
}

/* Sākumlapas paraksta elements */
.today-hero {
	position: relative;
	background: var(--r92-navy);
	color: var(--r92-white);
}

.today-hero::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 4.5rem 4.5rem;
	content: "";
	pointer-events: none;
}

.today-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.58fr) minmax(18rem, 0.62fr);
	min-height: min(760px, calc(100vh - 7.5rem));
}

.today-hero__visual {
	position: relative;
	min-height: 39rem;
	overflow: hidden;
}

.today-hero__visual.wp-block-cover {
	align-items: flex-end;
	padding: clamp(1.5rem, 4vw, 4rem);
}

.today-hero__visual .wp-block-cover__image-background {
	filter: saturate(0.9) contrast(1.04);
	transition: transform 9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.today-hero__visual:hover .wp-block-cover__image-background {
	transform: scale(1.035);
}

.today-hero__visual .wp-block-cover__background {
	background: linear-gradient(12deg, rgba(16, 42, 67, 0.96) 0%, rgba(16, 42, 67, 0.24) 67%, rgba(16, 42, 67, 0.08) 100%) !important;
	opacity: 1 !important;
}

.today-hero__copy {
	max-width: 52rem;
	margin: 0 !important;
}

.today-hero__eyebrow,
.section-kicker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.today-hero__eyebrow::before,
.section-kicker::before {
	width: 2rem;
	height: 3px;
	background: var(--r92-yellow);
	content: "";
}

.today-hero__title {
	max-width: 11ch;
	margin: 0;
	color: var(--r92-white);
	font-family: var(--r92-display);
	font-size: clamp(3.4rem, 2.1rem + 6.5vw, 8.5rem);
	font-stretch: condensed;
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.82;
	text-wrap: balance;
}

.today-hero__intro {
	max-width: 42rem;
	margin: 1.5rem 0 0;
	font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3rem);
	line-height: 1.5;
}

.today-hero__actions {
	margin-top: 1.75rem;
}

.today-hero__actions .wp-block-button__link {
	border-color: var(--r92-yellow);
	background: var(--r92-yellow);
	color: var(--r92-navy);
}

.today-hero__actions .wp-block-button__link:hover {
	border-color: var(--r92-white);
	background: var(--r92-white);
}

.today-hero__rail {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.25rem, 3vw, 2.75rem);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(16, 42, 67, 0.9);
}

.today-hero__date {
	margin: 0;
	color: #c7d8e7;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.today-hero__clock {
	margin: 0.55rem 0 0;
	color: var(--r92-white);
	font-family: var(--r92-data);
	font-size: clamp(4rem, 3rem + 3vw, 6.6rem);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}

.today-hero__day {
	margin: 0.6rem 0 0;
	color: var(--r92-yellow);
	font-weight: 750;
}

.today-hero__line {
	width: 100%;
	height: 1px;
	margin: clamp(2rem, 8vh, 6rem) 0 1.5rem;
	border: 0;
	background: rgba(255, 255, 255, 0.22);
}

.r92-live-fallback {
	padding: 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.065);
}

.r92-live-fallback p {
	margin: 0 0 0.75rem;
	color: #dce8f1;
	font-size: 0.9rem;
	line-height: 1.5;
}

.r92-live-fallback .r92-live-fallback__status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
	color: var(--r92-white);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.r92-live-fallback__dot {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--r92-red);
	box-shadow: 0 0 0 0 rgba(197, 61, 74, 0.5);
	animation: r92-pulse 2.4s ease-out infinite;
}

.r92-live-fallback a {
	color: var(--r92-yellow);
	font-size: 0.8rem;
	font-weight: 800;
	text-decoration: none;
}

.r92-live-fallback a:hover {
	color: var(--r92-white);
	text-decoration: underline;
}

@keyframes r92-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(197, 61, 74, 0.55);
	}
	70% {
		box-shadow: 0 0 0 0.65rem rgba(197, 61, 74, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(197, 61, 74, 0);
	}
}

/* Sadaļu ritms */
.r92-section {
	padding-top: var(--r92-section);
	padding-bottom: var(--r92-section);
}

.r92-section--tight {
	padding-top: clamp(2.75rem, 2.25rem + 2.4vw, 4.5rem);
	padding-bottom: clamp(2.75rem, 2.25rem + 2.4vw, 4.5rem);
}

.section-heading-row {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 0.35fr);
	align-items: end;
	gap: 2rem;
	margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.section-kicker {
	color: var(--r92-blue);
}

.section-kicker::before {
	background: currentColor;
}

.section-title {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.65rem, 1.85rem + 3.6vw, 6rem);
	font-stretch: condensed;
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 0.9;
	text-wrap: balance;
}

.section-lead {
	margin: 0 0 0.25rem;
	color: var(--r92-muted);
	font-size: 1rem;
	line-height: 1.6;
}

/* Ātrās saites */
.quick-links-section {
	border-bottom: 1px solid var(--r92-line);
	background: var(--r92-white);
}

.quick-links-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px !important;
	border: 1px solid var(--r92-line);
	background: var(--r92-line);
}

.quick-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 12rem;
	margin: 0 !important;
	padding: clamp(1.25rem, 2.4vw, 2rem);
	overflow: hidden;
	background: var(--r92-white);
	text-decoration: none;
}

.quick-link::before {
	position: absolute;
	inset: auto 0 0;
	height: 0.35rem;
	background: var(--r92-blue);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms ease;
}

.quick-link:nth-child(2)::before {
	background: var(--r92-red);
}

.quick-link:nth-child(3)::before {
	background: var(--r92-yellow);
}

.quick-link:nth-child(4)::before {
	background: var(--r92-navy);
}

.quick-link:hover {
	background: #f0f4f6;
	transform: translateY(-0.2rem);
}

.quick-link:hover::before {
	transform: scaleX(1);
}

.quick-link__icon {
	display: grid;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: auto;
	border: 1px solid var(--r92-line);
	color: var(--r92-blue);
	font-size: 1.2rem;
	font-weight: 900;
	place-items: center;
}

.quick-link__title {
	margin: 1.35rem 0 0.25rem;
	color: var(--r92-navy);
	font-family: var(--r92-display);
	font-size: clamp(1.4rem, 1.25rem + 0.7vw, 1.9rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1;
}

.quick-link__title a {
	color: inherit;
	text-decoration: none;
}

.quick-link__title a:hover {
	color: var(--r92-blue);
	text-decoration: underline;
}

.quick-link__text {
	margin: 0;
	color: var(--r92-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

/* Jaunumi */
.news-section {
	background: var(--r92-paper);
}

.news-grid {
	display: grid !important;
	grid-template-columns: 1.18fr 0.91fr 0.91fr;
	gap: clamp(1.25rem, 2.5vw, 2.5rem) !important;
	margin: 0;
	padding: 0;
}

.news-grid > li {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.news-card__image {
	margin: 0 0 1.25rem;
	overflow: hidden;
	background: #e4eaed;
	aspect-ratio: 3 / 2;
}

.news-card__image a,
.news-card__image img {
	display: block;
	width: 100%;
	height: 100%;
}

.news-card__image img {
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-grid > li:hover .news-card__image img {
	transform: scale(1.035);
}

.news-grid > li:first-child .news-card__image {
	aspect-ratio: 4 / 3;
}

.news-card__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: var(--r92-blue);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news-card__meta .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.news-card__meta .wp-block-post-terms a:hover {
	text-decoration: underline;
}

.news-card__title {
	margin: 0;
	font-size: clamp(1.55rem, 1.35rem + 0.8vw, 2.25rem);
	line-height: 1.02;
}

.news-grid > li:first-child .news-card__title {
	font-size: clamp(2rem, 1.65rem + 1.4vw, 3.25rem);
}

.news-card__title a {
	color: var(--r92-navy);
	text-decoration: none;
}

.news-card__title a:hover {
	color: var(--r92-blue);
	text-decoration: underline;
	text-decoration-thickness: 0.07em;
}

.news-card__excerpt {
	margin-top: 0.85rem;
	color: var(--r92-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.news-card__excerpt p {
	margin: 0;
}

.news-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 2.5rem;
}

.query-empty {
	padding: 2rem;
	border: 1px solid var(--r92-line);
	background: var(--r92-white);
}

/* Skolas būtība */
.identity-section {
	position: relative;
	overflow: hidden;
	background: var(--r92-navy);
	color: var(--r92-white);
}

.identity-section::after {
	position: absolute;
	right: -11rem;
	bottom: -12rem;
	width: 28rem;
	height: 28rem;
	border: 5rem solid rgba(242, 201, 76, 0.08);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.identity-section .section-kicker {
	color: var(--r92-yellow);
}

.identity-section .section-title {
	color: var(--r92-white);
}

.identity-grid {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
	gap: clamp(2.5rem, 6vw, 7rem) !important;
}

.identity-statement {
	max-width: 18ch;
	margin: 0;
	color: var(--r92-white);
	font-family: var(--r92-display);
	font-size: clamp(2.3rem, 1.7rem + 2.6vw, 4.65rem);
	font-weight: 850;
	letter-spacing: -0.035em;
	line-height: 0.98;
	text-wrap: balance;
}

.identity-statement strong {
	color: var(--r92-yellow);
	font-weight: inherit;
}

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

.identity-value {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 1rem;
	padding: 1.35rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.identity-value:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.identity-value__mark {
	color: var(--r92-yellow);
	font-family: var(--r92-display);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1;
}

.identity-value h3 {
	margin: 0 0 0.35rem;
	color: var(--r92-white);
	font-size: 1.35rem;
	line-height: 1;
}

.identity-value p {
	margin: 0;
	color: #c7d8e7;
	font-size: 0.88rem;
	line-height: 1.55;
}

/* Programmas */
.programs-section {
	background: var(--r92-white);
}

.programs-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 !important;
	border-top: 1px solid var(--r92-line);
	border-left: 1px solid var(--r92-line);
}

.program-card {
	position: relative;
	min-height: 24rem;
	margin: 0 !important;
	padding: clamp(1.5rem, 3vw, 2.75rem);
	border-right: 1px solid var(--r92-line);
	border-bottom: 1px solid var(--r92-line);
	background: var(--r92-white);
}

.program-card::before {
	display: block;
	width: 3.5rem;
	height: 0.35rem;
	margin-bottom: 4rem;
	background: var(--r92-blue);
	content: "";
}

.program-card:nth-child(2)::before {
	background: var(--r92-red);
}

.program-card:nth-child(3)::before {
	background: var(--r92-yellow);
}

.program-card__range {
	margin: 0 0 0.8rem;
	color: var(--r92-blue);
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.program-card h3 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.65rem + 1.3vw, 3rem);
	line-height: 0.95;
}

.program-card p {
	margin: 0;
	color: var(--r92-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.program-card .wp-block-button {
	position: absolute;
	right: 2rem;
	bottom: 2rem;
	left: 2rem;
}

.program-card .wp-block-button__link {
	width: 100%;
}

/* Sasniegumi un vēsture */
.history-section {
	background: #eaf0f3;
}

.history-grid {
	display: grid !important;
	grid-template-columns: minmax(17rem, 0.66fr) minmax(0, 1.34fr);
	align-items: stretch !important;
	gap: clamp(2rem, 5vw, 6rem) !important;
}

.history-year {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 28rem;
	padding: clamp(1.5rem, 3vw, 2.75rem);
	background: var(--r92-red);
	color: var(--r92-white);
}

.history-year__label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.history-year__number {
	margin: 0;
	color: var(--r92-white);
	font-family: var(--r92-display);
	font-size: clamp(5.5rem, 4rem + 6vw, 10rem);
	font-weight: 900;
	letter-spacing: -0.07em;
	line-height: 0.75;
}

.history-year__text {
	max-width: 24rem;
	margin: 1.5rem 0 0;
	line-height: 1.55;
}

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

.history-item {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-top: 1px solid #bac8d1;
}

.history-item:last-child {
	border-bottom: 1px solid #bac8d1;
}

.history-item__year {
	color: var(--r92-blue);
	font-family: var(--r92-display);
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1;
}

.history-item h3 {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	line-height: 1.05;
}

.history-item p {
	margin: 0;
	color: var(--r92-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Attēlu josla */
.gallery-section {
	overflow: hidden;
	background: var(--r92-ink);
	color: var(--r92-white);
}

.gallery-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.gallery-heading .section-title {
	color: var(--r92-white);
}

.gallery-heading a {
	color: var(--r92-yellow);
	font-weight: 800;
}

.gallery-strip {
	display: grid !important;
	grid-template-columns: 1.25fr 0.8fr 1fr;
	align-items: stretch !important;
	gap: 0.75rem !important;
}

.gallery-strip .wp-block-image {
	height: clamp(16rem, 28vw, 30rem);
	margin: 0;
	overflow: hidden;
}

.gallery-strip .wp-block-image:nth-child(2) {
	margin-top: 3.5rem;
}

.gallery-strip .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85);
	transition:
		transform 500ms ease,
		filter 300ms ease;
}

.gallery-strip .wp-block-image:hover img {
	filter: saturate(1);
	transform: scale(1.025);
}

/* Kontakti */
.contact-section {
	background: var(--r92-yellow);
	color: var(--r92-navy);
}

.contact-section .section-kicker {
	color: var(--r92-navy);
}

.contact-section .section-title {
	color: var(--r92-navy);
}

.contact-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(13rem, 0.45fr));
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.contact-intro {
	max-width: 38rem;
	margin: 0;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
	line-height: 1.5;
}

.contact-block {
	padding-top: 1rem;
	border-top: 2px solid var(--r92-navy);
}

.contact-block h3 {
	margin: 0 0 0.85rem;
	color: var(--r92-navy);
	font-family: var(--r92-body);
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.contact-block p {
	margin: 0;
	line-height: 1.65;
}

.contact-block a {
	color: var(--r92-navy);
	font-weight: 750;
}

/* Iekšlapas un arhīvi */
.page-hero,
.archive-hero {
	position: relative;
	padding-top: clamp(4rem, 3rem + 5vw, 8rem);
	padding-bottom: clamp(3rem, 2.5rem + 2vw, 5rem);
	border-bottom: 1px solid var(--r92-line);
	background: var(--r92-white);
}

.page-hero::before,
.archive-hero::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: clamp(0.4rem, 1vw, 0.8rem);
	background: var(--r92-blue);
	content: "";
}

.page-hero .wp-block-post-title,
.archive-hero .wp-block-query-title,
.search-title {
	max-width: 16ch;
	margin: 0;
	font-size: clamp(3rem, 2rem + 5vw, 7rem);
	letter-spacing: -0.05em;
	line-height: 0.86;
	text-wrap: balance;
}

.archive-description {
	max-width: 42rem;
	margin: 1.5rem 0 0;
	color: var(--r92-muted);
}

.content-shell {
	padding-top: clamp(3rem, 2rem + 4vw, 6rem);
	padding-bottom: var(--r92-section);
}

.entry-content {
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.75;
}

.entry-content > :where(h2, h3, h4) {
	margin-top: 2.25em;
}

.entry-content h2 {
	font-size: clamp(2rem, 1.65rem + 1.4vw, 3rem);
}

.entry-content h3 {
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.entry-content blockquote {
	margin: 2.5rem 0;
	padding: 0.75rem 0 0.75rem clamp(1.25rem, 3vw, 2rem);
	border-left: 0.45rem solid var(--r92-yellow);
	color: var(--r92-navy);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
	font-weight: 650;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.8rem;
	border: 1px solid var(--r92-line);
	text-align: left;
}

.entry-content th {
	background: var(--r92-navy);
	color: var(--r92-white);
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 1.5rem;
	color: var(--r92-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.single-meta a {
	color: var(--r92-blue);
}

.single-featured {
	margin-top: -1.5rem;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.single-featured img {
	width: 100%;
	max-height: 46rem;
	object-fit: cover;
}

.post-navigation {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px !important;
	margin-top: 4rem;
	border: 1px solid var(--r92-line);
	background: var(--r92-line);
}

.post-navigation > * {
	margin: 0 !important;
	padding: 1.25rem;
	background: var(--r92-white);
}

.post-navigation a {
	font-weight: 800;
	text-decoration: none;
}

.post-navigation a:hover {
	text-decoration: underline;
}

.archive-list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 3rem) !important;
	margin: 0;
	padding: 0;
}

.archive-list > li {
	margin: 0 0 1.5rem;
}

.pagination {
	margin-top: 3rem;
}

.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--r92-line);
	background: var(--r92-white);
	color: var(--r92-navy);
	font-weight: 800;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--r92-navy);
	background: var(--r92-navy);
	color: var(--r92-white);
}

.search-panel {
	max-width: 52rem;
	margin-top: 2rem;
}

.search-panel .wp-block-search__inside-wrapper {
	padding: 0.35rem;
	border: 2px solid var(--r92-navy);
	background: var(--r92-white);
}

.search-panel .wp-block-search__input {
	min-height: 3rem;
	border: 0;
	font: inherit;
}

.search-panel .wp-block-search__button {
	border-color: var(--r92-navy);
}

.not-found {
	display: grid;
	min-height: 70vh;
	place-items: center;
	background:
		linear-gradient(rgba(16, 42, 67, 0.94), rgba(16, 42, 67, 0.94)),
		radial-gradient(circle at 80% 20%, var(--r92-blue), transparent 45%);
	color: var(--r92-white);
	text-align: center;
}

.not-found__code {
	margin: 0;
	color: var(--r92-yellow);
	font-family: var(--r92-display);
	font-size: clamp(7rem, 4rem + 15vw, 18rem);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.62;
}

.not-found h1 {
	margin: 2rem 0 1rem;
	color: var(--r92-white);
	font-size: clamp(2.5rem, 1.8rem + 3vw, 5rem);
}

.not-found p {
	max-width: 34rem;
	margin: 0 auto 1.75rem;
	color: #c7d8e7;
}

.comments-area {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--r92-line);
}

/* Kājene */
.site-footer {
	background: var(--r92-navy);
	color: var(--r92-white);
}

.footer-main {
	display: grid !important;
	grid-template-columns: minmax(18rem, 1.2fr) repeat(2, minmax(12rem, 0.5fr));
	gap: clamp(2.5rem, 6vw, 7rem) !important;
	padding-top: clamp(3.5rem, 3rem + 3vw, 6rem);
	padding-bottom: clamp(3rem, 2.5rem + 2vw, 4.5rem);
}

.footer-brand .wp-block-site-title {
	margin: 0 0 1rem;
	color: var(--r92-white);
	font-family: var(--r92-display);
	font-size: clamp(2rem, 1.6rem + 1.5vw, 3.2rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 0.9;
	text-transform: uppercase;
}

.footer-brand .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.footer-brand p {
	max-width: 30rem;
	color: #c7d8e7;
	font-size: 0.9rem;
}

.footer-column h2 {
	margin: 0 0 1rem;
	color: var(--r92-yellow);
	font-family: var(--r92-body);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.footer-column p {
	margin: 0;
	color: #dce8f1;
	font-size: 0.9rem;
	line-height: 1.75;
}

.footer-column a {
	color: var(--r92-white);
}

.footer-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start !important;
	gap: 0.55rem !important;
}

.footer-nav .wp-block-navigation-item__content {
	color: var(--r92-white);
	font-size: 0.9rem;
	text-decoration: none;
}

.footer-nav .wp-block-navigation-item__content:hover {
	color: var(--r92-yellow);
	text-decoration: underline;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 1.15rem;
	padding-bottom: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	color: #b9cad7;
	font-size: 0.75rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: var(--r92-white);
}

.footer-credit {
	padding-bottom: 1rem;
	color: #9fb4c4;
	font-size: 0.6875rem;
}

.footer-credit p {
	margin: 0;
}

.footer-credit a {
	color: #dce8f1;
}

/* Satura sadaļas vienmēr ir redzamas; kustība paliek tikai hero fotogrāfijai. */
.has-js .r92-reveal {
	opacity: 1;
	transform: none;
}

.has-js .r92-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Planšetes */
@media (max-width: 1100px) {
	.school-brand-row {
		grid-template-columns: minmax(15rem, 1fr) auto auto;
	}

	.site-navigation {
		justify-self: end;
	}

	.site-navigation .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.site-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open {
		padding: var(--r92-edge);
		background: var(--r92-navy);
		color: var(--r92-white);
	}

	.site-navigation .is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		padding-top: 4rem;
	}

	.site-navigation .is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		gap: 0;
	}

	.site-navigation .is-menu-open .wp-block-navigation-item__content {
		width: 100%;
		padding: 1rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
		color: var(--r92-white);
		font-family: var(--r92-display);
		font-size: clamp(1.7rem, 5vw, 2.8rem);
		font-weight: 850;
		line-height: 1;
	}

	.site-navigation .wp-block-navigation__responsive-container-close {
		color: var(--r92-white);
	}

	.today-hero__grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
	}

	.quick-links-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.news-grid,
	.archive-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.news-grid > li:first-child {
		grid-row: span 2;
	}

	.contact-grid {
		grid-template-columns: 1fr 1fr;
	}

	.contact-grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.section-heading-row,
	.identity-grid,
	.history-grid {
		grid-template-columns: 1fr;
	}

	.section-lead {
		max-width: 38rem;
	}

	.today-hero__grid {
		grid-template-columns: 1fr;
	}

	.today-hero__visual {
		min-height: min(42rem, 78vh);
	}

	.today-hero__rail {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		border-left: 0;
	}

	.today-hero__line {
		margin-top: 2.5rem;
	}

	.programs-grid {
		grid-template-columns: 1fr;
	}

	.program-card {
		min-height: 21rem;
	}

	.program-card::before {
		margin-bottom: 2.5rem;
	}

	.history-year {
		min-height: 22rem;
	}

	.gallery-strip {
		grid-template-columns: 1fr 1fr;
	}

	.gallery-strip .wp-block-image:first-child {
		grid-column: 1 / -1;
	}

	.gallery-strip .wp-block-image:nth-child(2) {
		margin-top: 0;
	}

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

	.footer-brand {
		grid-column: 1 / -1;
	}
}

/* Tālruņi */
@media (max-width: 600px) {
	html {
		scroll-padding-top: 5rem;
	}

	.school-utility__inner {
		justify-content: flex-end;
	}

	.school-utility__name {
		display: none;
	}

	.school-brand-row {
		grid-template-columns: 1fr auto;
		min-height: 4.5rem;
	}

	.school-brand .custom-logo {
		width: 2.5rem;
		height: 2.5rem;
	}

	.header-search {
		display: none;
	}

	.site-header.is-scrolled .school-brand-row {
		min-height: 4.1rem;
	}

	.urgent-notice {
		grid-template-columns: auto 1fr;
		gap: 0.75rem 1rem;
		padding: 0.9rem 0;
	}

	.urgent-notice__body {
		display: block;
	}

	.urgent-notice__body > p {
		display: none;
	}

	.urgent-notice__link {
		grid-column: 2;
		justify-self: start;
	}

	.today-hero__visual.wp-block-cover {
		padding: 1.25rem;
	}

	.today-hero__title {
		font-size: clamp(3.4rem, 18vw, 5.5rem);
	}

	.today-hero__intro {
		font-size: 1rem;
	}

	.section-heading-row {
		margin-bottom: 2rem;
	}

	.quick-links-grid,
	.news-grid,
	.archive-list,
	.gallery-strip,
	.contact-grid,
	.footer-main,
	.post-navigation {
		grid-template-columns: 1fr;
	}

	.quick-link {
		min-height: 10rem;
	}

	.news-grid > li:first-child {
		grid-row: auto;
	}

	.news-grid > li:first-child .news-card__image,
	.news-card__image {
		aspect-ratio: 16 / 10;
	}

	.news-grid > li:first-child .news-card__title {
		font-size: clamp(1.75rem, 8vw, 2.5rem);
	}

	.history-item {
		grid-template-columns: 4.5rem 1fr;
		gap: 1rem;
	}

	.gallery-heading {
		display: block;
	}

	.gallery-heading a {
		display: inline-block;
		margin-top: 1rem;
	}

	.gallery-strip .wp-block-image:first-child {
		grid-column: auto;
	}

	.gallery-strip .wp-block-image {
		height: 18rem;
	}

	.contact-grid > :first-child,
	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		display: block;
	}

	.footer-bottom p + p {
		margin-top: 0.5rem;
	}

	.page-hero .wp-block-post-title,
	.archive-hero .wp-block-query-title,
	.search-title {
		font-size: clamp(2.8rem, 14vw, 4.5rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.has-js .r92-reveal {
		opacity: 1;
		transform: none;
	}
}

@media (forced-colors: active) {
	.quick-link,
	.program-card,
	.r92-live-fallback {
		border: 1px solid CanvasText;
	}

	.r92-live-fallback__dot {
		border: 2px solid CanvasText;
	}
}

@media print {
	.site-header,
	.site-footer,
	.urgent-wrap,
	.today-hero__rail,
	.wp-block-button,
	.post-navigation {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.page-hero,
	.archive-hero,
	.content-shell {
		padding: 1rem 0;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}
