/*
Theme Name: HARC Light
Theme URI: https://harc.turnwire.net
Author: Holsworthy Amateur Radio Club
Description: Light theme for the Holsworthy Amateur Radio Club (M0OMC). Landing page with an animated voice waveform, welcome page with section buttons.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: harc
*/

:root {
	--sky-1: #f3f9ff;
	--sky-2: #d6ebfb;
	--sky-3: #a9d2f1;
	--ink: #13283f;
	--ink-soft: #4a5f76;
	--navy: #0b1446;         /* a touch brighter than the logo ring #0b0e35 */
	--navy-deep: #0b0e35;    /* the logo ring */
	--navy-lift: #1a2a78;
	--gold: #f0d020;         /* the HARC lettering */
	--gold-ink: #8a6d00;     /* gold dark enough to read on white */
	--card: #ffffff;
	--line: #cfe2f2;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(14, 51, 88, .06), 0 8px 24px rgba(14, 51, 88, .08);
	--font-head: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
	--font-mono: "Red Hat Mono", ui-monospace, monospace;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%) fixed;
	min-height: 100vh;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-lift); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy-lift); outline-offset: 3px; border-radius: 6px; }

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

/* ---------------------------------------------------------------
   Landing page
   --------------------------------------------------------------- */

.landing {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(180deg, #eef7ff 0%, #cfe6f8 45%, #94c6ec 100%);
}

.landing canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.landing__inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 16px;
}

.landing__logo {
	width: clamp(180px, 36vw, 260px);
	height: auto;
	border-radius: 50%;
	box-shadow: 0 18px 50px rgba(11, 14, 53, .30);
	animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}

.landing__title {
	margin: 34px 0 6px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.6rem, 5.2vw, 3rem);
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--navy);
	animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both;
}

.landing__sub {
	margin: 0 0 34px;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: .04em;
	color: var(--ink-soft);
	animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both;
}

.btn-enter {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 38px;
	border-radius: 999px;
	background: var(--navy-deep);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.1rem;
	letter-spacing: .04em;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(11, 14, 53, .30);
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) both;
}
.btn-enter:hover { background: var(--navy-lift); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 14, 53, .36); }
.btn-enter svg { color: var(--gold); }
.btn-enter svg { width: 20px; height: 20px; transition: transform .15s ease; }
.btn-enter:hover svg { transform: translateX(3px); }

@keyframes rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.landing__logo, .landing__title, .landing__sub, .btn-enter { animation: none; }
}

/* ---------------------------------------------------------------
   Inner pages: header
   --------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(243, 249, 255, .86);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--navy);
	min-width: 0;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand__call { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .8rem; color: var(--gold-ink); }

.nav-toggle {
	margin-left: auto;
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 10px;
	color: var(--navy);
	cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
	color: var(--ink-soft);
}
.site-nav a:hover { background: #fff; color: var(--navy); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current_page_parent > a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 2px 2px; }

@media (max-width: 1140px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sky-1); border-bottom: 1px solid var(--line); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; padding: 8px 16px 14px; }
	.site-nav a { padding: 12px; }
}

/* ---------------------------------------------------------------
   Inner pages: content
   --------------------------------------------------------------- */

.site-main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 16px 64px;
}

.page-head { margin: 8px 0 28px; }
.page-head__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .95rem;
	color: var(--ink-soft);
	margin: 0 0 6px;
}
.page-head__kicker::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 2px var(--navy-deep);
}
.page-head h1 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--navy);
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(20px, 4vw, 40px);
}

.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry h2, .entry h3 {
	font-family: var(--font-head);
	color: var(--navy);
	letter-spacing: -.01em;
	line-height: 1.25;
	margin: 1.8em 0 .5em;
}
.entry h2 { font-size: 1.45rem; }
.entry h3 { font-size: 1.15rem; }
.entry p, .entry ul, .entry ol { margin: 0 0 1em; }
.entry .lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.entry code, .callsign { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
.entry figure { margin: 1.5em 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font-family: var(--font-head); font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.note {
	border-left: 4px solid var(--gold);
	background: #fffbe8;
	padding: 14px 18px;
	border-radius: 0 10px 10px 0;
	margin: 1.4em 0;
}
.note--info { border-color: var(--navy); background: #f0f7fd; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 1.4em; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.panel {
	background: var(--sky-1);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
}
.panel h3 { margin-top: 0; }

/* Members list */
.roster {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.roster li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--sky-1);
}
.roster .callsign { color: var(--navy); }
.roster .role { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }

/* Diary */
.diary { list-style: none; margin: 0 0 1.5em; padding: 0; }
.diary li {
	display: grid;
	grid-template-columns: 2.9rem 7rem 1fr;
	gap: 12px;
	align-items: baseline;
	padding: 12px 10px;
	border-bottom: 1px solid var(--line);
}
.diary li:last-child { border-bottom: 0; }
.diary .date { font-family: var(--font-mono); font-weight: 600; color: var(--navy); }
.diary .tbc { color: var(--ink-soft); font-style: italic; }
.diary__state { display: inline-flex; align-self: center; justify-content: center; color: #2f8a4e; }
.diary__state svg { width: 18px; height: 18px; stroke-width: 2.4; }
.diary li.is-past { color: var(--ink-soft); }
.diary li.is-past > span:not(.diary__state) { opacity: .6; }
.diary li.is-past .date { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.diary li.is-next {
	background: #fff8d6;
	border: 2px solid var(--gold);
	border-radius: 12px;
	margin: 6px -2px;
	box-shadow: 0 6px 18px rgba(11, 14, 53, .08);
}
.diary li.is-next .date, .diary li.is-next > span:last-child { font-weight: 700; color: var(--navy-deep); }
.diary__state--next {
	grid-column: 1;
	font-family: var(--font-head);
	font-size: .66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--navy-deep);
	background: var(--gold);
	border-radius: 999px;
	padding: 2px 0;
	justify-content: center;
	width: 2.9rem;
	margin-left: -4px;
}
@media (max-width: 520px) {
	.diary li, .diary li.is-next { grid-template-columns: 2.9rem 1fr; }
	.diary li > span:last-child { grid-column: 2; }
	.diary .date { grid-column: 2; }
}

/* News */
.news-list { display: grid; gap: 18px; }
.news-item h2 { margin: 0 0 4px; font-size: 1.3rem; }
.news-item h2 a { text-decoration: none; }
.news-item .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); margin: 0 0 12px; }

.pagination { margin-top: 28px; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; text-decoration: none; }

/* ---------------------------------------------------------------
   Welcome page
   --------------------------------------------------------------- */

.welcome {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
@media (max-width: 900px) { .welcome { grid-template-columns: 1fr; } }

.welcome__intro .entry p:first-child { font-size: 1.2rem; line-height: 1.6; }

.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.badge-row img { height: 56px; width: auto; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.facts svg { width: 22px; height: 22px; color: var(--navy-lift); margin-top: 3px; }
.facts strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--navy); }

.tiles {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.tile.tile--wide { background: var(--navy-deep); }
.tile.tile--wide .tile__label { color: #fff; }
.tile.tile--wide .tile__hint { color: #c9dcef; }
.tile.tile--wide .tile__icon { background: rgba(255,255,255,.12); color: var(--gold); flex: none; }
.tile.tile--wide:hover { border-color: var(--navy); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tiles { grid-template-columns: 1fr; } }
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 20px 18px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	color: var(--ink);
	border: 1px solid transparent;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--sky-3); color: var(--ink); box-shadow: 0 2px 4px rgba(14,51,88,.06), 0 16px 32px rgba(14,51,88,.12); }
.tile__icon {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: var(--sky-2);
	color: var(--navy);
}
.tile__icon svg { width: 24px; height: 24px; }
.tile:hover .tile__icon { background: var(--gold); color: var(--navy-deep); }
.tile__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.tile__hint { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }

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

.site-footer {
	border-top: 1px solid var(--line);
	background: rgba(255,255,255,.5);
}
.site-footer__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 22px 16px 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	font-size: .9rem;
	color: var(--ink-soft);
}
.site-footer .mono { font-family: var(--font-mono); font-size: .88rem; }

/* ---------------------------------------------------------------
   Forms (rally booking)
   --------------------------------------------------------------- */

.booking-form { margin-top: 8px; }
.booking-form__rally { font-family: var(--font-head); color: var(--navy); }
.booking-form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.booking-form legend { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .req { color: #b42318; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	padding: 11px 13px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 51, 88, .14); }
.booking-form fieldset.choices { margin: 0; }
.booking-form fieldset.choices legend { font-family: var(--font-body); font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.choice { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 0 0 6px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy-lift); flex: none; }
.hp { position: absolute; left: -9999px; }
.btn-primary {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 30px;
	border: 0; border-radius: 999px;
	background: var(--navy-deep); color: #fff;
	font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(11, 14, 53, .22);
	transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--navy-lift); transform: translateY(-1px); }
.note--ok { border-color: #2f8a4e; background: #effaf2; }
.note ul { margin: 0; }

/* Scheme mini badges (welcome page) */
.schemes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.schemes a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.schemes img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; transition: transform .15s ease; }
.schemes a:hover img { transform: translateY(-2px) scale(1.06); }
.badge-row img.schemes__img { height: 48px; }
.badge-row .schemes img { height: 48px; }

/* Venue card (welcome page) */
.venue { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: center; }
.venue h2 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; font-size: 1.45rem; }
.venue p { margin: 0 0 1em; }
.venue__links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.venue__links .btn-primary { text-decoration: none; }
.venue__links .btn-primary svg { width: 18px; height: 18px; color: var(--gold); }
.venue__links .btn-primary:hover { color: #fff; }
.venue__map { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.venue__map img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.venue__map:hover img { transform: scale(1.02); }
.venue__credit { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: .7rem; padding: 2px 8px; color: var(--ink-soft); border-top-left-radius: 6px; }
@media (max-width: 800px) { .venue { grid-template-columns: 1fr; } }

/* Wide tables scroll on small screens */
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.table-scroll table { margin: 0; min-width: 560px; }
.entry td .freq { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.entry td small { display: block; color: var(--ink-soft); font-size: .85rem; }

/* Newsletter */
.issue { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.entry .issue__cover { margin: 0; display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(11,14,53,.18); border: 1px solid var(--line); }
.issue__cover a, .issue__cover img { display: block; width: 100%; height: auto; }
.issue h2 { margin-top: 0; }
.issue .btn-primary { text-decoration: none; margin: 4px 0 6px; }
.issue .btn-primary:hover { color: #fff; }
@media (max-width: 640px) { .issue { grid-template-columns: 1fr; } .issue__cover { max-width: 220px; } }

/* Members page */
.entry a.callsign { color: var(--navy); text-decoration: none; border-bottom: 1px dotted var(--sky-3); }
.entry a.callsign:hover { color: var(--navy-lift); border-bottom: 2px solid var(--gold); }
.president {
	display: block;
	width: fit-content;
	padding: 18px 32px;
	margin: 0 auto 8px;
	text-align: center;
	border-radius: 14px;
	background: linear-gradient(135deg, #fffbe8, #fff4c2);
	border: 2px solid var(--gold);
}
.entry .president p { margin: 0; }
.president__title { font-family: var(--font-head); font-size: 1rem; color: var(--navy-deep); text-transform: none; }
.president__title strong { font-weight: 800; }
.president__name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy-deep); line-height: 1.3; }
.president__note { font-size: .92rem; color: var(--ink-soft); }
.officers {
	list-style: none; margin: 0 0 1.2em; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.officers li { padding: 14px 16px; border-radius: 12px; background: var(--sky-1); border: 1px solid var(--line); border-left: 4px solid var(--navy-deep); }
.officers--committee li { border-left-color: var(--navy-lift); }
.officers--roles li { border-left-color: var(--gold); }
.officers__role { display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.officers__who { display: grid; grid-template-columns: 5.8em 1fr; align-items: baseline; gap: 8px; font-size: 1.1rem; margin-top: 4px; }
.officers--committee .officers__who { margin-top: 0; }
.officers--committee li { padding-top: 12px; padding-bottom: 12px; }
.officers__who a.callsign { justify-self: start; }
.roster li { align-items: center; }
.roster li { display: grid; grid-template-columns: 5.8em 1fr; }
.roster a.callsign { justify-self: start; }

/* Contact card (Brickworks page) */
.contact-card { display: inline-block; padding: 16px 22px; margin: 0 0 8px; border-radius: 14px; background: var(--sky-1); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.entry .contact-card p { margin: 0 0 4px; }
.contact-card__role { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.entry .contact-card__name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.entry .btn-primary { text-decoration: none; }
.entry .btn-primary:hover { color: #fff; }

/* Diary type tags */
.tag { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; white-space: nowrap; }
.tag--meeting { background: #e3e9fb; color: var(--navy-deep); }
.tag--workshop { background: #fff1b8; color: #6b5400; }
.tag--pota { background: #dcf3e2; color: #1d6b38; }
.tag--event { background: #ece4fb; color: #4b2a8a; }
.tag--rally { background: var(--navy-deep); color: #fff; }
.diary-key { font-size: .9rem; color: var(--ink-soft); }
.diary-key .tag { margin-left: 10px; }
.diary-key .tag:first-child { margin-left: 0; }
.diary li.is-past .tag { opacity: .7; }

.diary li.is-next { scroll-margin-top: 110px; }

/* Diary scroller (events page) */
.diary-wrap { position: relative; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.diary-scroll {
	max-height: min(62vh, 540px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 12px;
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: var(--navy-lift) var(--sky-1);
}
.diary-scroll:focus-visible { outline: 3px solid var(--navy-lift); outline-offset: -3px; }
.diary-scroll::-webkit-scrollbar { width: 10px; }
.diary-scroll::-webkit-scrollbar-track { background: var(--sky-1); }
.diary-scroll::-webkit-scrollbar-thumb { background: #9fb3d9; border-radius: 10px; border: 2px solid var(--sky-1); }
.diary-scroll::-webkit-scrollbar-thumb:hover { background: var(--navy-lift); }
.diary-scroll .diary { margin: 0; }
.diary-nav {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: 100%; height: 34px;
	border: 0; padding: 0; cursor: pointer;
	background: var(--sky-1); color: var(--navy);
	transition: background .15s ease, opacity .15s ease;
}
.diary-nav--up { border-bottom: 1px solid var(--line); }
.diary-nav--down { border-top: 1px solid var(--line); }
.diary-nav svg { width: 22px; height: 22px; stroke-width: 2.4; }
.diary-nav:hover:not(:disabled) { background: var(--sky-2); }
.diary-nav:disabled { opacity: .35; cursor: default; }
.diary-wrap { scroll-margin-top: 100px; }
