/*
Theme Name: ALGS
Theme URI: https://algs.nl
Author: ALGS
Description: Elegant thema voor de Amsterdamsche Ladies Golf Society. Groen, ivoor en messing, met een ledengedeelte, aanpasbare homepage en kant-en-klare blokpatronen voor bestuur, wedstrijdkalender en POTY-stand.
Version: 1.2.1
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: algs
*/

/* ---------- Lettertypen (lokaal gehost, AVG-vriendelijk) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Kleuren & maten ---------- */
:root {
	--green-950: #102318;
	--green-900: #16301f;
	--green-800: #1f4129;
	--green-600: #2f5e3c;
	--fairway: #dfe7d6;
	--ivory: #f6f1e6;
	--paper: #fffcf6;
	--brass: #a8834a;
	--brass-light: #d9c39a;
	--red: #b3261e;
	--ink: #1c221e;
	--muted: #5b655e;
	--line: #e4dccb;

	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--text: 700px;
	--gutter: clamp(18px, 4vw, 40px);
	--radius: 4px;
	--shadow: 0 1px 2px rgba(16,35,24,.06), 0 8px 28px rgba(16,35,24,.07);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
	color: var(--green-900);
	letter-spacing: -.005em;
	margin: 1.6em 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--green-900); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--sans); font-size: .74rem; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Drie Andreaskruisjes, klein Amsterdams accent */
.xxx { display: inline-flex; gap: 5px; color: var(--red); }
.xxx svg { width: 9px; height: 9px; }

/* ---------- Knoppen ---------- */
.btn, .wp-block-button__link, input[type="submit"], button.button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: .8em 1.5em;
	border: 1px solid var(--green-900);
	border-radius: var(--radius);
	background: var(--green-900); color: #fff;
	font: 600 .82rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-900); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--green-900); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--green-900); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--green-900); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,252,246,.94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand .custom-logo { max-height: 52px; width: auto; display: block; }
.brand__mark {
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--brass); color: var(--green-900);
	font: 600 1.05rem/1 var(--serif); letter-spacing: .04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 1.6rem/1 var(--serif); letter-spacing: .08em; }
.brand__tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
	display: block; padding: 10px 14px;
	color: var(--ink); text-decoration: none;
	font-size: .9rem; font-weight: 500;
	border-radius: var(--radius);
}
.primary-nav a:hover { color: var(--green-600); background: var(--ivory); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--green-900); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px;
	display: none; flex-direction: column; align-items: stretch;
	padding: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: .7em 1.1em; font-size: .74rem; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px; padding: 0;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: transparent; color: var(--green-900); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 20px; height: 1.5px; margin: 0 auto; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.header-actions .btn { display: none; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		display: none;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 24px;
	}
	.nav-open .primary-nav { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
	.primary-nav .current-menu-item > a { box-shadow: none; color: var(--brass); }
	.primary-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.primary-nav .mobile-login { display: block; margin-top: 18px; }
}
@media (min-width: 961px) { .primary-nav .mobile-login { display: none; } }
@media (max-width: 520px) { .brand__tag { display: none; } .brand__mark { width: 40px; height: 40px; } }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	min-height: min(78vh, 720px);
	display: flex; align-items: flex-end;
	color: #fff;
	background: var(--green-900);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(16,35,24,.15) 0%, rgba(16,35,24,.35) 45%, rgba(16,35,24,.88) 100%),
		linear-gradient(90deg, rgba(16,35,24,.55) 0%, rgba(16,35,24,0) 60%);
}
.hero--plain::before {
	background:
		radial-gradient(1200px 500px at 85% 10%, rgba(168,131,74,.22), transparent 60%),
		repeating-radial-gradient(circle at 80% 30%, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
		linear-gradient(160deg, var(--green-800), var(--green-950));
}
.hero__content { padding: clamp(120px, 18vh, 200px) 0 clamp(56px, 9vh, 96px); max-width: 760px; }
.hero .eyebrow { color: var(--brass-light); }
.hero h1 { color: #fff; margin: .35em 0 .35em; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kerncijfers ---------- */
.facts { background: var(--green-900); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { display: block; font: 500 2.6rem/1 var(--serif); color: var(--brass-light); }
.fact__label { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (max-width: 760px) {
	.facts__grid { grid-template-columns: repeat(2, 1fr); }
	.fact { padding: 22px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
	.fact:nth-child(-n+2) { border-top: 0; }
	.fact:nth-child(odd) { padding-left: 0; }
	.fact__value { font-size: 2.1rem; }
}

/* ---------- Secties ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--ivory { background: var(--ivory); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head h2 { margin: .3em 0 0; }

.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { margin-top: .3em; }
.intro__quote {
	margin: 2em 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--brass);
	font: italic 500 1.5rem/1.35 var(--serif); color: var(--green-800);
}
.intro__body { font-size: 1.08rem; }
.intro__body > :first-child { margin-top: 0; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Kaarten: competitie / POTY / trip */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
	position: relative; background: var(--paper);
	padding: 40px 32px 36px; border: 1px solid var(--line); border-radius: var(--radius);
}
.pillar__num { font: italic 500 1rem/1 var(--serif); color: var(--brass); }
.pillar__icon { width: 44px; height: 44px; color: var(--green-600); margin: 18px 0 6px; }
.pillar h3 { margin: .4em 0 .45em; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Nieuws */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--fairway); border-radius: var(--radius); margin-bottom: 20px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty { display: grid; place-items: center; color: var(--green-600); }
.card__media--empty svg { width: 54px; height: 54px; opacity: .55; }
.card__meta { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.card__title { font-size: 1.6rem; margin: .35em 0 .4em; }
.card__title a { color: var(--green-900); text-decoration: none; }
.card__title a:hover { color: var(--brass); }
.card__excerpt { color: var(--muted); font-size: .97rem; }
.card__excerpt p { margin: 0; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* Lidmaatschap-band */
.join {
	position: relative; overflow: hidden;
	background: var(--green-900); color: #fff;
	border-radius: var(--radius);
	padding: clamp(40px, 6vw, 72px);
	display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.join::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	border: 1px solid rgba(217,195,154,.25); box-shadow: 0 0 0 40px rgba(217,195,154,.04), 0 0 0 80px rgba(217,195,154,.03);
}
.join h2 { color: #fff; margin: .3em 0 .3em; }
.join p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.join .eyebrow { color: var(--brass-light); }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; } }

/* ---------- Pagina's & berichten ---------- */
.page-hero { background: var(--ivory); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { margin: .3em 0 0; }
.page-hero__meta { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.page-hero--image { position: relative; isolation: isolate; color: #fff; background: var(--green-900); border: 0; padding-top: clamp(120px, 16vw, 200px); }
.page-hero--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,35,24,.1), rgba(16,35,24,.8)); }
.page-hero--image h1 { color: #fff; }
.page-hero--image .eyebrow { color: var(--brass-light); }
.page-hero--image .page-hero__meta { color: rgba(255,255,255,.8); }

.entry { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.entry-content > * { max-width: var(--text); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content blockquote { border-left: 2px solid var(--brass); margin: 2em auto; padding: 0 0 0 24px; font: italic 500 1.45rem/1.4 var(--serif); color: var(--green-800); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content thead th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--green-900); }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3em auto; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--ivory); }

/* Bestuur-raster (patroon) */
.algs-board .wp-block-column { text-align: center; }
.algs-board img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 150px; }
.algs-board h3 { margin: .7em 0 .1em; font-size: 1.4rem; }
.algs-board p { color: var(--brass); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; max-width: var(--text); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.post-nav small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.pagination { margin-top: 56px; display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--green-900); border-color: var(--green-900); color: #fff; }

/* Ledenpoort */
.members-gate {
	max-width: 520px; margin: 0 auto; text-align: center;
	background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 48px clamp(24px, 5vw, 48px);
}
.members-gate__icon { width: 44px; height: 44px; color: var(--brass); }
.members-gate h2 { margin: .4em 0 .3em; font-size: 2rem; }
.members-gate p { color: var(--muted); }
.members-gate form { text-align: left; margin-top: 28px; }
.members-gate label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.members-gate input[type="text"], .members-gate input[type="password"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit;
}
.members-gate .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.members-gate .login-submit input { width: 100%; justify-content: center; }
.members-gate__lost { display: inline-block; margin-top: 12px; font-size: .88rem; }

/* Formulieren algemeen */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], textarea {
	font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; }

/* Reacties */
.comments { max-width: var(--text); margin: 64px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); font-size: .94rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__mark { color: #fff; border-color: var(--brass-light); }
.footer-brand .brand__tag { color: rgba(255,255,255,.6); }
.footer-brand p { margin-top: 20px; max-width: 360px; }
.footer-col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* WordPress-kernklassen */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Verfijningen ---------- */
.members-gate__icon, .pillar__icon { display: inline-block; }
.members-gate__icon svg, .pillar__icon svg { width: 100%; height: 100%; display: block; }
.fact__value, .pillar__num { font-variant-numeric: lining-nums; }
.primary-nav .mobile-login a.btn {
	display: flex; justify-content: center; padding: 1em; border: 1px solid var(--green-900);
	border-radius: var(--radius); color: #fff; font-size: .82rem; background: var(--green-900);
}

/* ---------- Zijbalk (widgets) ---------- */
.layout.has-sidebar {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
}
.layout.has-sidebar.sidebar-right { grid-template-columns: minmax(0, 1fr) 250px; }
.layout.sidebar-left .sidebar { order: -1; }
.has-sidebar .entry-content > *,
.has-sidebar .post-nav,
.has-sidebar .comments { margin-left: 0; margin-right: 0; }
.has-sidebar .entry-content > .alignwide,
.has-sidebar .entry-content > .alignfull { max-width: none; }
.has-sidebar .news-grid { grid-template-columns: repeat(2, 1fr); }

.sidebar { font-size: .94rem; line-height: 1.6; }
.sidebar .widget { margin: 0 0 36px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title,
.sidebar .widget .wp-block-heading,
.sidebar .wp-block-search__label {
	display: block;
	font: 600 .74rem/1.4 var(--sans);
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--brass);
	margin: 0 0 6px; padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.sidebar ul, .sidebar ol { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li li { border: 0; padding: 6px 0 0 14px; }
.sidebar li a { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none; }
.sidebar li a::after { content: "→"; color: var(--brass); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.sidebar li a:hover { color: var(--green-600); }
.sidebar li a:hover::after { opacity: 1; transform: none; }
.sidebar p { margin: 12px 0 0; color: var(--muted); }
.sidebar img { border-radius: var(--radius); }
.sidebar .wp-block-image, .sidebar figure { margin: 12px 0 0; }

.sidebar .wp-block-search__inside-wrapper, .sidebar .search-form { display: flex; gap: 8px; margin-top: 14px; }
.sidebar .wp-block-search__input, .sidebar .search-field { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; }
.sidebar .wp-block-search__button {
	margin: 0; padding: 0 14px; border: 0; border-radius: var(--radius);
	background: var(--green-900); color: #fff; cursor: pointer;
	font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.sidebar .wp-block-search__button:hover { background: var(--brass); }

.sidebar-members {
	background: var(--ivory);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 22px 8px;
	margin-top: 36px;
}
.sidebar-members:first-child { margin-top: 0; }
.sidebar-members > .eyebrow { margin-bottom: 18px; }
.sidebar-members .widget { margin-bottom: 20px; }

@media (max-width: 960px) {
	.layout.has-sidebar, .layout.has-sidebar.sidebar-right { grid-template-columns: minmax(0, 1fr); }
	.layout.sidebar-left .sidebar { order: 2; }
	.sidebar { border-top: 1px solid var(--line); padding-top: 40px; }
}
@media (max-width: 600px) { .has-sidebar .news-grid { grid-template-columns: 1fr; } }
.algs-board p { overflow-wrap: normal; word-break: normal; }
.has-sidebar .algs-board { flex-wrap: wrap !important; row-gap: 32px; }
.has-sidebar .algs-board > .wp-block-column { flex-basis: calc(50% - 1em) !important; flex-grow: 0; }
@media (max-width: 781px) { .has-sidebar .algs-board > .wp-block-column { flex-basis: 100% !important; } }
