/*
Theme Name:   Sviri
Theme URI:    https://sviri.ge/
Description:  სვირის ადმინისტრაციული ერთეულის საიტის თემა (Astra child).
Template:     astra
Version:      1.0.0
Text Domain:  sviri
*/

/* ---------- tokens ---------- */
:root {
	--sv-green: #1e4d2b;
	--sv-green-2: #2c6a3d;
	--sv-green-tint: #e8f0e9;
	--sv-gold: #b07a1f;
	--sv-bg: #f6f5f0;
	--sv-surface: #ffffff;
	--sv-text: #1d2420;
	--sv-muted: #59625c;
	--sv-border: #e2e0d6;
	--sv-radius: 14px;
	--sv-shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 6px 20px rgba(20, 40, 25, .06);
	--sv-font: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sv-wrap: 1200px;
}

/* ---------- base ---------- */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button,
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.site-title, .site-title a, .main-header-menu {
	font-family: var(--sv-font);
}
body {
	background: var(--sv-bg);
	color: var(--sv-text);
	font-size: 17px;
	line-height: 1.7;
}
h1, h2, h3, h4, .entry-content h2, .entry-content h3 {
	color: var(--sv-text);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}
a { color: var(--sv-green-2); }
a:hover, a:focus { color: var(--sv-green); }
:focus-visible { outline: 3px solid var(--sv-gold); outline-offset: 2px; }

.sv-wrap {
	max-width: var(--sv-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- header ---------- */
/* header: light green tint with a green contour line underneath */
.site-header .ast-primary-header-bar,
.ast-primary-header-bar {
	background: linear-gradient(180deg, #f9fcf8 0%, #e6f0e7 100%);
	border-bottom: 2px solid var(--sv-green-2);
	box-shadow: 0 2px 12px rgba(20, 40, 25, .10);
}
.site-header { position: relative; z-index: 5; }
.site-title { margin: 0; line-height: 1.1; }
.site-title a, .site-title a:hover {
	color: var(--sv-green);
	font-weight: 800;
	font-size: 26px;
}
.site-description {
	color: var(--sv-muted);
	font-size: 12.5px;
	margin: 2px 0 0;
}
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	color: var(--sv-text);
	font-weight: 600;
	font-size: 15px;
	padding-left: .62em;
	padding-right: .62em;
}
.ast-builder-menu-1 .main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .main-header-menu .current_page_item > .menu-link {
	color: var(--sv-green-2);
}
/* tagline is repeated in the hero; on desktop it only pushes the menu onto two rows */
.ast-desktop .site-description { display: none; }
.main-header-menu .sub-menu {
	border-top: 3px solid var(--sv-green-2);
	box-shadow: var(--sv-shadow);
}
.ast-header-break-point .main-header-menu { background: var(--sv-surface); }

/* ---------- buttons ---------- */
.sv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	line-height: 1.2;
	transition: background .15s, color .15s, border-color .15s;
}
.sv-btn--light { background: #fff; color: var(--sv-green); }
.sv-btn--light:hover { background: var(--sv-green-tint); color: var(--sv-green); }
.sv-btn--ghost { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.sv-btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.sv-btn--green { background: var(--sv-green-2); color: #fff; }
.sv-btn--green:hover { background: var(--sv-green); color: #fff; }
.sv-more {
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sv-more::after { content: " →"; }

/* ---------- home: page frame ---------- */
/* Astra wraps templates in a flex .ast-container; the front page must span the full width. */
.home #content > .ast-container,
.home .site-content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	display: block;
}
.sv-home { width: 100%; background: var(--sv-bg); }
.home .site-content,
.home #primary {
	background: var(--sv-bg);
	margin: 0;
	padding: 0;
}

/* ---------- home: hero ---------- */
.sv-hero {
	position: relative;
	min-height: min(72vh, 620px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
	background: var(--sv-green);
}
/* Slides wait off-screen on the right. The new photo slides in over the old one, which drifts
   a little to the left underneath (no gap between them). While in view a photo also zooms in
   slowly (class is-zoom restarts the zoom each time). */
.sv-hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.sv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 3;
	transform: translateX(100%);
	transition: transform .9s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}
.sv-hero__img.is-left { transform: translateX(-30%); z-index: 1; }
.sv-hero__img.is-active { transform: translateX(0); z-index: 2; }
.sv-hero__img.is-noanim { transition: none; }
.sv-hero__img.is-zoom { animation: sv-hero-zoom 7s ease-out forwards; }
@keyframes sv-hero-zoom {
	from { scale: 1; }
	to { scale: 1.08; }
}
.sv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* bottom and left shading keep the white text readable on bright photos (snow, sky) */
	background:
		linear-gradient(180deg, rgba(10, 25, 15, .05) 30%, rgba(10, 25, 15, .72) 100%),
		linear-gradient(90deg, rgba(10, 25, 15, .5) 0%, rgba(10, 25, 15, 0) 62%);
}
.sv-hero h1, .sv-hero__text, .sv-hero__kicker { text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.sv-hero .sv-hero__dots {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 44px;
	display: flex;
	justify-content: center;
	gap: 2px;
}
.sv-hero .sv-hero__dots button,
.sv-hero .sv-hero__dots button:hover,
.sv-hero .sv-hero__dots button:focus {
	width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.sv-hero .sv-hero__dots button::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	transition: width .25s, background .25s;
}
.sv-hero .sv-hero__dots button:hover::before { background: #fff; }
.sv-hero .sv-hero__dots button.is-active { width: 34px; }
.sv-hero .sv-hero__dots button.is-active::before { width: 24px; background: #fff; }
.sv-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 120px;
	padding-bottom: 72px;
}
.sv-hero__kicker {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	opacity: .92;
}
.sv-hero h1 {
	color: #fff;
	font-size: clamp(42px, 7vw, 76px);
	margin: 0 0 10px;
	line-height: 1.05;
}
.sv-hero__text {
	max-width: 640px;
	font-size: 19px;
	margin: 0 0 26px;
	opacity: .95;
}
.sv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- home: quick links ---------- */
.sv-quick {
	position: relative;
	z-index: 2;
	margin-top: -38px;
}
.sv-quick__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0 auto;
	list-style: none;
}
.sv-quick__item a {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 18px 20px;
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow);
	color: var(--sv-text);
	text-decoration: none;
	font-weight: 700;
	line-height: 1.3;
	transition: transform .15s, box-shadow .15s;
}
.sv-quick__item a:hover { transform: translateY(-2px); color: var(--sv-green); }
.sv-quick__item small {
	display: block;
	font-weight: 400;
	color: var(--sv-muted);
	font-size: 13.5px;
	margin-top: 2px;
}
.sv-icon {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--sv-green-tint);
	color: var(--sv-green-2);
}
.sv-icon svg { width: 24px; height: 24px; }

/* ---------- home: sections ---------- */
.sv-section { padding: 56px 0 8px; }
.sv-section:last-child { padding-bottom: 64px; }
.sv-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.sv-head h2 { font-size: 28px; margin: 0; }
.sv-feed__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	align-items: start;
}

/* announcements */
.sv-ann { margin: 0; padding: 0; list-style: none; }
.sv-ann li { border-bottom: 1px solid var(--sv-border); }
.sv-ann li:first-child { border-top: 1px solid var(--sv-border); }
.sv-ann a {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	color: var(--sv-text);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.4;
}
.sv-ann a:hover { color: var(--sv-green-2); }
.sv-date {
	flex: 0 0 56px;
	text-align: center;
	background: var(--sv-surface);
	border: 1px solid var(--sv-border);
	border-radius: 10px;
	padding: 6px 0 5px;
	line-height: 1.1;
}
.sv-date b { display: block; font-size: 21px; color: var(--sv-green); }
.sv-date span { font-size: 12px; color: var(--sv-muted); font-weight: 600; }

/* news cards */
.sv-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.sv-card {
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	overflow: hidden;
	box-shadow: var(--sv-shadow);
	display: flex;
	flex-direction: column;
}
.sv-card__img {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--sv-green-tint);
	overflow: hidden;
}
.sv-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-card__body { padding: 14px 16px 18px; }
.sv-card time { font-size: 13px; color: var(--sv-muted); font-weight: 600; }
.sv-card h3 { font-size: 17.5px; margin: 4px 0 6px; }
.sv-card h3 a { color: var(--sv-text); text-decoration: none; }
.sv-card h3 a:hover { color: var(--sv-green-2); }
.sv-card p { margin: 0; font-size: 15px; color: var(--sv-muted); line-height: 1.55; }
/* homepage news: one row that moves with arrows (and swipe); 4 / 3 / 2 / 1 cards visible by screen width */
.sv-carousel { position: relative; }
.sv-carousel__track {
	--sv-per: 4;
	--sv-gap: 20px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--sv-per) - 1) * var(--sv-gap)) / var(--sv-per));
	gap: var(--sv-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 1px 12px;   /* room for the card shadow and outline */
	scroll-padding: 0 1px;
}
.sv-carousel__track::-webkit-scrollbar { display: none; }
.sv-carousel__track > .sv-card { scroll-snap-align: start; }
.sv-carousel__btn {
	position: absolute;
	top: 38%;
	z-index: 2;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid #c3d6c6;
	background: #fff;
	color: var(--sv-green);
	box-shadow: 0 2px 10px rgba(20, 40, 25, .18);
	cursor: pointer;
	transition: background .15s, color .15s, opacity .15s, border-color .15s;
}
.sv-carousel__btn[hidden] { display: none; }
.sv-carousel__btn--prev { left: -18px; }
.sv-carousel__btn--next { right: -18px; }
.sv-carousel__btn:hover:not(:disabled) { background: var(--sv-green-2); border-color: var(--sv-green-2); color: #fff; }
.sv-carousel__btn:focus-visible { outline: 3px solid rgba(44, 106, 61, .45); outline-offset: 2px; }
.sv-carousel__btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.sv-empty {
	padding: 22px;
	border: 1px dashed var(--sv-border);
	border-radius: var(--sv-radius);
	color: var(--sv-muted);
	background: var(--sv-surface);
	margin: 0;
}

/* live: weather + camera */
.sv-live__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.sv-panel {
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow);
	padding: 22px 24px;
}
.sv-panel h2 { font-size: 22px; margin: 0 0 14px; }
.sv-cam-teaser {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #111 center / cover no-repeat;
	color: #fff;
	text-decoration: none;
}
.sv-cam-teaser span.sv-cam-teaser__title {
	position: absolute;
	left: 14px;
	bottom: 12px;
	font-weight: 700;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.sv-cam-teaser:hover { color: #fff; }
.sv-live-badge, .sv-live {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #c62828;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	padding: 3px 8px;
	border-radius: 6px;
}
.sv-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	display: grid;
	place-items: center;
	font-size: 26px;
}

/* weather now */
.sv-now__main { display: flex; align-items: center; gap: 16px; }
.sv-now__icon { font-size: 54px; line-height: 1; }
.sv-now__temp { font-size: 46px; font-weight: 800; line-height: 1; color: var(--sv-text); }
.sv-now__desc { font-weight: 600; }
.sv-now__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 14px 0 12px;
	color: var(--sv-muted);
	font-size: 14.5px;
}
.sv-mini {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}
.sv-mini div {
	background: var(--sv-bg);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 14px;
	text-align: center;
}
.sv-mini b { display: block; }
.sv-loading { color: var(--sv-muted); margin: 0; }

/* about */
.sv-about__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 40px;
	align-items: center;
}
.sv-about__img {
	border-radius: var(--sv-radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	max-height: 520px;
}
.sv-about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-about__text { font-size: 17.5px; }
.sv-about__text h2 { font-size: 30px; margin: 0 0 14px; }

/* gallery strip */
.sv-strip__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}
.sv-strip__grid a {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
}
.sv-strip__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s;
}
.sv-strip__grid a:hover img { transform: scale(1.05); }

/* ---------- page band (inner pages, posts, archives) ---------- */
.sv-band {
	position: relative;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: var(--sv-green);
	overflow: hidden;
}
.sv-band__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sv-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 38, 22, .88) 0%, rgba(14, 38, 22, .6) 45%, rgba(14, 38, 22, .25) 100%);
}
.sv-band__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 56px;
	padding-bottom: 38px;
}
.sv-band h1 {
	color: #fff;
	font-size: clamp(30px, 4.4vw, 46px);
	margin: 6px 0 6px;
	line-height: 1.15;
	max-width: 900px;
}
.sv-band__sub {
	margin: 0;
	max-width: 720px;
	font-size: 17px;
	opacity: .92;
}
.sv-crumbs {
	font-size: 14px;
	opacity: .9;
}
.sv-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.sv-crumbs a:hover { color: #fff; border-bottom-color: #fff; }
.sv-crumbs span[aria-hidden] { margin: 0 8px; opacity: .7; }

/* page body as a card on the beige background */
.sv-has-band .site-content,
.sv-has-band.ast-plain-container .site-content { background: var(--sv-bg); }
.sv-has-band .site-content > .ast-container { padding-top: 36px; padding-bottom: 56px; }
.sv-has-band .entry-header .entry-title,
.sv-has-band.single .entry-header .entry-meta,
.sv-has-band .ast-archive-description,
.sv-has-band .ast-single-post-featured-section { display: none; }
.sv-has-band.page .ast-article-single,
.sv-has-band.single .ast-article-single {
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	box-shadow: var(--sv-shadow);
	padding: 44px 52px 48px;
	max-width: 960px;
	margin: 0 auto;
}
.sv-has-band.page .ast-article-single .entry-header,
.sv-has-band.single .ast-article-single .entry-header { margin-bottom: 0; }

/* typography inside pages and posts */
.entry-content > h2,
.entry-content .sv-h2 {
	font-size: 26px;
	margin: 1.9em 0 .7em;
	padding-left: 14px;
	border-left: 4px solid var(--sv-green-2);
	line-height: 1.25;
}
.entry-content > h2:first-child { margin-top: 0; }
.entry-content > h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content ul:not([class]) { margin-left: 1.2em; }
.entry-content ul:not([class]) li::marker { color: var(--sv-green-2); }
.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--sv-border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 16px;
	margin: 8px 0 6px;
}
.entry-content th {
	background: var(--sv-green-tint);
	color: var(--sv-green);
	font-weight: 700;
	text-align: left;
}
.entry-content th, .entry-content td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--sv-border); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: #fbfaf6; }
.entry-content img { border-radius: 10px; }
.entry-content ul.sv-source {
	margin: 2.2em 0 0;
	padding: 16px 0 0 1.2em;
	border-top: 1px solid var(--sv-border);
}
.entry-content h3 + ul.sv-source { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content h3:has(+ ul.sv-source) {
	margin-top: 2.4em;
	padding-top: 18px;
	border-top: 1px solid var(--sv-border);
	font-size: 15px;
	color: var(--sv-muted);
	text-transform: none;
}

/* pages: their photo is used only by the optional band, never as a big image above the text */
.page .ast-single-post-featured-section { display: none; }

/* collapsible sources */
details.sv-sources {
	margin: 2.4em 0 0;
	border-top: 1px solid var(--sv-border);
	padding-top: 12px;
	font-size: 14px;
	color: var(--sv-muted);
}
details.sv-sources summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--sv-muted);
	list-style: none;
}
details.sv-sources summary::-webkit-details-marker { display: none; }
details.sv-sources summary::before { content: "▸ "; }
details.sv-sources[open] summary::before { content: "▾ "; }
details.sv-sources ul { margin: 10px 0 0 1.2em; }
details.sv-sources li { margin-bottom: 4px; }

/* stats */
.sv-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 6px 0 10px;
}
.sv-stats > div {
	background: var(--sv-green-tint);
	border-radius: 14px;
	padding: 18px 16px;
	text-align: center;
}
.sv-stats b { display: block; font-size: 30px; line-height: 1.1; color: var(--sv-green); font-weight: 800; }
.sv-stats span { display: block; font-size: 14px; color: var(--sv-muted); margin-top: 4px; }

/* two boxes side by side */
.sv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 14px; }
.sv-box {
	border: 1px solid var(--sv-border);
	border-radius: 14px;
	padding: 18px 20px;
	background: #fff;
}
.sv-box h3 { margin: 0 0 4px; font-size: 19px; }
.sv-box p { margin: 0; color: var(--sv-muted); font-size: 15.5px; }

/* image + text */
.sv-media { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: center; margin: 4px 0 10px; }
.sv-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.sv-media p { margin: 0; }

/* link cards with photo */
.sv-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 6px; }
.entry-content .sv-links a {
	display: block;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	color: #fff;
	text-decoration: none;
	background: var(--sv-green);
}
.sv-links img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .3s; }
.sv-links a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,25,15,.82) 100%); }
.sv-links a:hover img { transform: scale(1.05); }
.sv-links span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; line-height: 1.3; }
.sv-links b { display: block; font-size: 17px; }
.sv-links small { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }

/* timeline */
ol.sv-timeline { list-style: none; margin: 10px 0 10px; padding: 0; position: relative; }
ol.sv-timeline::before { content: ""; position: absolute; left: 63px; top: 6px; bottom: 6px; width: 2px; background: var(--sv-border); }
.sv-timeline li { display: grid; grid-template-columns: 128px 1fr; gap: 0; margin: 0 0 22px; position: relative; }
.sv-timeline li::before {
	content: "";
	position: absolute;
	left: 57px;
	top: 34px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--sv-green-2);
}
.sv-tl__year {
	align-self: start;
	justify-self: start;
	background: var(--sv-green-2);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	border-radius: 999px;
	padding: 4px 12px;
	white-space: nowrap;
	position: relative;
	z-index: 1;
}
.sv-timeline li > div {
	background: #fbfaf6;
	border: 1px solid var(--sv-border);
	border-radius: 12px;
	padding: 14px 18px;
}
.sv-timeline h3 { margin: 0 0 4px; font-size: 18px; }
.sv-timeline p { margin: 0; font-size: 16px; }
.sv-timeline p + p { margin-top: 8px; }

/* people */
.sv-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 6px; }
.sv-person {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 14px;
	align-items: start;
	border: 1px solid var(--sv-border);
	border-radius: 14px;
	padding: 16px;
	background: #fff;
}
.sv-person__pic {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--sv-green-tint);
	color: var(--sv-green);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 24px;
}
.entry-content .sv-person__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sv-person h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.sv-person .sv-years { display: block; color: var(--sv-green-2); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.sv-person p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--sv-text); }
.sv-person .sv-person__links { font-size: 14px; font-weight: 700; }
.sv-person .sv-person__links a { text-decoration: none; }

/* cards with photo (villages, sights) */
.sv-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 6px; }
.sv-tiles.sv-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.sv-tile { border: 1px solid var(--sv-border); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sv-tile__img { aspect-ratio: 16 / 10; background: var(--sv-green-tint); display: grid; place-items: center; color: var(--sv-green-2); overflow: hidden; }
.entry-content .sv-tile__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.sv-tile__img svg { width: 44px; height: 44px; opacity: .8; }
/* tiles without a photo: a low strip with the icon, not a big empty area */
.sv-tile__img:has(> svg) { aspect-ratio: auto; height: 84px; }
.sv-tile__body { padding: 14px 18px 16px; }
.sv-tile h3 { margin: 0 0 6px; font-size: 19px; }
.sv-tile p { margin: 0 0 8px; font-size: 15.5px; }
.sv-tile ul.sv-facts { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14.5px; }
.sv-tile ul.sv-facts li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--sv-border); }
.sv-tile ul.sv-facts li b { color: var(--sv-green); }
.sv-tile .sv-more { font-size: 14px; }

/* ---------- inner pages ---------- */
.entry-content .sv-lead { font-size: 19px; color: var(--sv-muted); }
.entry-content .sv-note {
	background: #fff8e6;
	border-left: 4px solid var(--sv-gold);
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 15px;
}
.sv-source { font-size: 13.5px; color: var(--sv-muted); }

/* share bar under a news item */
.sv-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 28px 0 4px;
	padding-top: 18px;
	border-top: 1px solid var(--sv-border);
}
.sv-share__label { font-weight: 600; color: var(--sv-text); font-size: 15px; }
.sv-share__list { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-share .sv-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 13px 0 10px;
	border: 0;
	border-radius: 999px;
	background: var(--sv-c, var(--sv-green));
	color: #fff;
	font: 600 14px/1 var(--sv-font);
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.entry-content .sv-share .sv-share__btn,
.entry-content .sv-share .sv-share__btn:hover { text-decoration: none; }
.sv-share .sv-share__btn:hover,
.sv-share .sv-share__btn:focus-visible { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.sv-share__btn svg { width: 20px; height: 20px; flex: none; }
.sv-share__btn[hidden] { display: none; }
.sv-share__btn--facebook { --sv-c: #1877f2; }
.sv-share__btn--viber { --sv-c: #7360f2; }
.sv-share__btn--whatsapp { --sv-c: #1fa855; }
.sv-share__btn--telegram { --sv-c: #229ed9; }
.sv-share__btn--native { --sv-c: var(--sv-green-2); }
.sv-share .sv-share__btn--link { background: var(--sv-surface); color: var(--sv-green); box-shadow: inset 0 0 0 1.5px var(--sv-green-2); }
.sv-share .sv-share__btn--link:hover,
.sv-share .sv-share__btn--link:focus-visible { color: var(--sv-green); }
.sv-share .sv-share__btn--link.is-done { background: var(--sv-green-tint); }

/* gallery ([gallery] shortcode) + lightbox */
.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 16px 0;
}
.entry-content .gallery .gallery-item {
	margin: 0;
	padding: 0;
	width: auto !important;
	max-width: none;
}
.entry-content .gallery .gallery-icon a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: var(--sv-green-tint);
}
.entry-content .gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0 !important;
	transition: transform .3s;
}
.entry-content .gallery a:hover img { transform: scale(1.04); }
.entry-content .gallery .gallery-caption { display: none; }
.sv-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 14, 10, .92);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sv-lb img {
	max-width: 92vw;
	max-height: 86vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.sv-lb button {
	position: absolute;
	border: 0;
	background: rgba(255,255,255,.12);
	color: #fff;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.sv-lb button:hover { background: rgba(255,255,255,.25); }
.sv-lb__close { top: 18px; right: 18px; }
.sv-lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.sv-lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.sv-lb__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }

/* contact */
.sv-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 10px 0 24px;
}
.sv-contact__card {
	background: var(--sv-surface);
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius);
	padding: 20px 22px;
}
.sv-contact__card h3 { margin: 0 0 8px; font-size: 18px; }
.sv-contact__card--sponsor {
	grid-column: 1 / -1;
	background: var(--sv-green-tint);
	border-color: transparent;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
}
.sv-contact__card--sponsor h3 { margin: 0; font-size: 20px; color: var(--sv-green); }
.sv-contact__card--sponsor p { margin: 0; font-weight: 600; }
.sv-sponsor__label {
	flex-basis: 100%;
	font-size: 13px;
	font-weight: 700;
	color: var(--sv-muted);
	text-transform: none;
}
.sv-footer__sponsor { margin-top: 12px; font-size: 14.5px; opacity: .95; }
.sv-contact dl { margin: 0; }
.sv-contact dt { font-size: 13px; color: var(--sv-muted); font-weight: 600; margin-top: 10px; }
.sv-contact dd { margin: 0; font-weight: 600; }
.sv-map {
	border-radius: var(--sv-radius);
	overflow: hidden;
	border: 1px solid var(--sv-border);
	aspect-ratio: 16 / 9;
}
.sv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* forecast */
.sv-forecast__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	margin: 8px 0 10px;
}
.sv-day {
	background: var(--sv-surface);
	border: 1px solid var(--sv-border);
	border-radius: 12px;
	padding: 12px 8px;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
}
.sv-day__name { font-weight: 700; }
.sv-day__icon { font-size: 30px; margin: 4px 0; line-height: 1.2; }
.sv-day__t { font-size: 16px; font-weight: 700; }
.sv-day__t span { color: var(--sv-muted); font-weight: 600; }
.sv-day__rain { color: #2b6cb0; font-size: 13px; }
.sv-station-card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--sv-surface);
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius);
	padding: 22px 24px;
	margin: 8px 0 6px;
}
.sv-station-card h3 { margin: 0 0 4px; font-size: 19px; }
.sv-station-card p { margin: 0 0 14px; color: var(--sv-muted); }
.entry-content .sv-station-card a.sv-btn { color: #fff; text-decoration: none; }

/* cameras */
.sv-cams {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 10px 0 16px;
}
.sv-cam { margin: 0; }
.sv-cam__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #111;
	border-radius: 12px;
	overflow: hidden;
}
.sv-cam video { width: 100%; height: 100%; display: block; object-fit: cover; background: #111; }
.sv-cam__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.sv-cam__play span {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(0,0,0,.6);
	color: #fff;
	font-size: 28px;
	display: grid;
	place-items: center;
}
.sv-cam__play:hover span { background: var(--sv-green-2); }
.sv-cam.is-playing .sv-cam__play { display: none; }
.sv-cam__msg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,.7);
	color: #fff;
	font-size: 14px;
	padding: 8px 12px;
}
.sv-cam figcaption { font-weight: 700; margin-top: 8px; }

/* ---------- footer ---------- */
.sv-footer {
	/* vine leaves and grapes woven into the green (viticulture of Sviri), faint so the text stays easy to read */
	background: var(--sv-green) url("assets/img/vine-pattern.svg") repeat 0 0 / 440px 320px;
	color: rgba(255,255,255,.9);
	padding: 48px 0 30px;
	font-size: 15.5px;
}
.sv-footer__wine {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-top: 18px;
}
.sv-bottle {
	flex: none;
	width: 84px;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.28));
}
.sv-footer .sv-footer__wine p {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.5;
	max-width: 260px;
}
.sv-footer__wine p span {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: #e6d39a;
	letter-spacing: .02em;
}
.sv-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 36px;
}
.sv-footer h2 {
	color: #fff;
	font-size: 17px;
	margin: 0 0 12px;
}
.sv-footer a { color: #fff; }
.sv-footer a:hover { color: #d9ecd9; }
.sv-footer ul { list-style: none; margin: 0; padding: 0; }
.sv-footer li { margin: 0 0 6px; }
.sv-footer p { margin: 0 0 8px; }
.sv-footer__brand { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.site-footer .site-below-footer-wrap,
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
	background: #173d22;
	color: rgba(255,255,255,.75);
	border-top: 0;
}
.site-below-footer-wrap a { color: #fff; }
.ast-footer-copyright,
.ast-footer-copyright p {
	color: rgba(255,255,255,.78);
	font-size: 14px;
}

/* ---------- archives / single ---------- */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
	border-radius: var(--sv-radius);
}
.ast-separate-container { background: var(--sv-bg); }
.ast-archive-description { border-radius: var(--sv-radius); }

/* ---------- colour accents and contours (owner: tint header and banners, add outlines) ---------- */
/* the four banners under the hero: each has its own soft tint, contour and icon colour */
.sv-quick__item { --qc-bg: #e8f2ea; --qc-line: #b5d3ba; --qc-ink: #2c6a3d; }
.sv-quick__item:nth-child(1) { --qc-bg: #fdf3e0; --qc-line: #e9cf98; --qc-ink: #94640f; } /* news: amber */
.sv-quick__item:nth-child(2) { --qc-bg: #fdebe9; --qc-line: #ecbdb8; --qc-ink: #b0382f; } /* live cameras: red */
.sv-quick__item:nth-child(3) { --qc-bg: #e7f1fb; --qc-line: #b4cfec; --qc-ink: #2a67a8; } /* weather: blue */
.sv-quick__item:nth-child(4) { --qc-bg: #e8f2ea; --qc-line: #b5d3ba; --qc-ink: #2c6a3d; } /* contact: green */
.sv-quick__item a {
	background: linear-gradient(180deg, #ffffff 0%, var(--qc-bg) 100%);
	border: 1.5px solid var(--qc-line);
	border-bottom-width: 3px;
}
.sv-quick__item a:hover { border-color: var(--qc-ink); color: var(--qc-ink); }
.sv-quick__item .sv-icon {
	background: #fff;
	color: var(--qc-ink);
	border: 1.5px solid var(--qc-line);
}
/* homepage panels and cards: contour + coloured top line */
.sv-panel {
	border: 1px solid #d5e2d7;
	border-top: 3px solid var(--sv-green-2);
	background: linear-gradient(180deg, #ffffff 0%, #f6faf6 100%);
}
.sv-live__grid .sv-panel:first-child { border-top-color: #2a67a8; background: linear-gradient(180deg, #ffffff 0%, #f1f6fc 100%); }
.sv-live__grid .sv-panel:last-child { border-top-color: #b0382f; background: linear-gradient(180deg, #ffffff 0%, #fdf5f4 100%); }
.sv-card { border: 1px solid #d5e2d7; }
.sv-card:hover { border-color: var(--sv-green-2); }
.sv-empty { border: 1.5px dashed #c3d6c6; background: #fbfdfb; }
.sv-mini div { border: 1px solid #dbe6f2; background: #fff; }
.sv-about__img, .sv-strip__grid a, .sv-cam-teaser { outline: 1px solid rgba(30, 77, 43, .18); outline-offset: 0; }
.sv-head h2 { padding-left: 12px; border-left: 4px solid var(--sv-green-2); line-height: 1.2; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.sv-feed__grid { grid-template-columns: 1fr; gap: 28px; }
	.sv-links { grid-template-columns: repeat(2, 1fr); }
	.sv-forecast__days { grid-template-columns: repeat(4, 1fr); }
	.sv-carousel__track { --sv-per: 3; }
}
@media (max-width: 900px) {
	.sv-carousel__track { --sv-per: 2; --sv-gap: 16px; }
	.sv-quick__grid { grid-template-columns: 1fr 1fr; }
	.sv-live__grid, .sv-about__grid, .sv-contact, .sv-cams { grid-template-columns: 1fr; }
	.sv-strip__grid { grid-template-columns: repeat(3, 1fr); }
	.entry-content .gallery { grid-template-columns: repeat(2, 1fr); }
	.sv-footer__grid { grid-template-columns: 1fr 1fr; }
	.sv-about__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.sv-hero { min-height: 480px; }
	.sv-hero__inner { padding-bottom: 60px; }
	.sv-hero__text { font-size: 17px; }
	.sv-quick { margin-top: -28px; }
	.sv-hero .sv-hero__dots { bottom: 34px; }
	.sv-quick__grid { gap: 10px; }
	.sv-quick__item a { padding: 14px; gap: 10px; font-size: 15px; }
	.sv-quick__item small { display: none; }
	.sv-icon { flex-basis: 38px; width: 38px; height: 38px; }
	.sv-cards { grid-template-columns: 1fr; }
	/* phones: one card plus the edge of the next one, so it is clear the row can be swiped */
	.sv-carousel__track { grid-auto-columns: 84%; --sv-gap: 14px; }
	.sv-carousel__btn { width: 36px; height: 36px; margin-top: -18px; }
	.sv-carousel__btn--prev { left: 6px; }
	.sv-carousel__btn--next { right: 6px; }
	.sv-head h2 { font-size: 23px; }
	.sv-forecast__days { grid-template-columns: repeat(2, 1fr); }
	.sv-footer__grid { grid-template-columns: 1fr; }
	.sv-station-card { flex-direction: column; }
	.sv-band { min-height: 190px; }
	.sv-band__inner { padding-top: 36px; padding-bottom: 26px; }
	.sv-has-band.page .ast-article-single,
	.sv-has-band.single .ast-article-single { padding: 24px 18px 28px; border-radius: 0; box-shadow: none; }
	.sv-has-band .site-content > .ast-container { padding: 0; }
	.sv-stats { grid-template-columns: 1fr 1fr; }
	.sv-stats b { font-size: 24px; }
	.sv-duo, .sv-people, .sv-tiles, .sv-tiles.sv-tiles--3, .sv-links { grid-template-columns: 1fr; }
	.sv-media { grid-template-columns: 1fr; }
	ol.sv-timeline::before { left: 7px; }
	.sv-timeline li { grid-template-columns: 1fr; padding-left: 26px; }
	.sv-timeline li::before { left: 1px; top: 6px; }
	.sv-tl__year { margin-bottom: 8px; }
	.entry-content > h2 { font-size: 22px; }
	/* phones: round icon buttons, the brand colour says which is which; copy keeps its words */
	.sv-share__label { flex-basis: 100%; }
	.sv-share .sv-share__btn { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
	.sv-share .sv-share__btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.sv-share .sv-share__btn--native,
	.sv-share .sv-share__btn--link { width: auto; padding: 0 14px 0 11px; }
	.sv-share .sv-share__btn--native > span,
	.sv-share .sv-share__btn--link > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.sv-share__btn svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
