/*
Theme Name: Arbor Pointe 2026
Description: Responsive, accessible (WCAG 2.2 AA) base theme for the Arbor Pointe Homeowners Association. Layouts are Elementor Theme Builder templates; this theme supplies the document shell, base styles, Download Manager overrides and a few shortcodes. Works without Elementor as a plain PHP theme.
Author: HOA Web / Moore Web X
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: MIT
Text Domain: arbor-pointe-2026
*/

/* ---------------------------------------------------------------------
   Fonts (self-hosted, SIL Open Font License)
   ------------------------------------------------------------------ */
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}

/* ---------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
	--fir: #1f3d2f;        /* header, hero, buttons */
	--fir-deep: #16291f;   /* footer */
	--moss: #5b6b2e;       /* heritage accent from the 2016 site */
	--lichen: #dfe8c6;     /* pale accent on dark bands */
	--mist: #f1f5f1;       /* page background */
	--paper: #ffffff;      /* reading surface */
	--ink: #1b2420;        /* body text */
	--ink-soft: #46534c;   /* secondary text */
	--link: #1b5e4a;
	--line: #d3ddd5;       /* hairlines */
	--field: #6a786f;      /* form field borders (3:1+ on white) */
	--focus: #1b2420;
	--focus-on-dark: #ffd866;

	--font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;

	--step--1: 0.9375rem;
	--step-0: 1.125rem;
	--step-1: 1.3125rem;
	--step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.875rem);
	--step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
	--step-4: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);

	--gap: clamp(1rem, 0.6rem + 2vw, 2rem);
	--radius: 6px;
}

/* With Elementor active, its Site Settings (global colours and fonts) drive these
   tokens, so a change made there also restyles everything Elementor does not render
   (sidebar widgets, FAQs, documents, forms). */
body {
	--fir: var(--e-global-color-primary, #1f3d2f);
	--moss: var(--e-global-color-secondary, #5b6b2e);
	--ink: var(--e-global-color-text, #1b2420);
	--link: var(--e-global-color-accent, #1b5e4a);
	--fir-deep: var(--e-global-color-apfirdeep, #16291f);
	--lichen: var(--e-global-color-aplichen, #dfe8c6);
	--mist: var(--e-global-color-apmist, #f1f5f1);
	--paper: var(--e-global-color-appaper, #ffffff);
	--ink-soft: var(--e-global-color-apinksoft, #46534c);
	--line: var(--e-global-color-apline, #d3ddd5);
	--font-head: var(--e-global-typography-primary-font-family, "Fraunces"), Georgia, "Times New Roman", serif;
	--font-body: var(--e-global-typography-text-font-family, "Atkinson Hyperlegible Next"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 2em 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: var(--step-3); line-height: 1.1; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p, ul, ol, dl, blockquote, table, figure { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
#main:focus { outline: none; }

blockquote {
	margin-left: 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 4px solid var(--moss);
	color: var(--ink-soft);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wrap {
	width: min(100% - 2.5rem, 72rem);
	margin-inline: auto;
}

.icon { flex: none; }

/* ---------------------------------------------------------------------
   Skip link
   ------------------------------------------------------------------ */
.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -5rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.3);
}
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
	background: var(--fir);
	color: #fff;
}
.site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding-block: 0.9rem;
}

.brand {
	display: inline-flex;
	flex: 0 1 auto;
	min-width: 0;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	color: #fff;
	text-decoration: none;
}
.brand .icon-tree { color: var(--lichen); }
.brand-logo { width: auto; max-height: 3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
	font-family: var(--font-head);
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.brand-tagline { font-size: var(--step--1); color: var(--lichen); }
.brand:hover .brand-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
@media (max-width: 26em) {
	.brand { gap: 0.6rem; }
	.brand-name { font-size: 1.375rem; }
	.brand-tagline { font-size: 0.875rem; }
	.brand .icon-tree { width: 36px; height: 36px; }
}

.nav-toggle {
	display: none;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.9rem;
	background: transparent;
	color: #fff;
	border: 2px solid rgb(255 255 255 / 0.75);
	border-radius: var(--radius);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.nav-toggle span { display: inline-flex; }
.nav-toggle-close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex !important; }
@media (max-width: 26em) { .nav-toggle { padding-inline: 0.7rem; } }

.nav-list, .site-nav > div > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-list li, .site-nav li { margin: 0; }
.site-nav a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.25rem 0.8rem;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius);
	box-shadow: inset 0 -3px 0 transparent;
}
.site-nav a:hover { background: rgb(255 255 255 / 0.12); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
	box-shadow: inset 0 -3px 0 var(--lichen);
	border-radius: var(--radius) var(--radius) 0 0;
	font-weight: 700;
}

@media (max-width: 61.99em) {
	.js .nav-toggle { display: inline-flex; }
	.site-nav { flex-basis: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.nav-list, .site-nav > div > ul {
		flex-direction: column;
		gap: 0;
		padding-block: 0.5rem 0.25rem;
		border-top: 1px solid rgb(255 255 255 / 0.25);
	}
	.site-nav a { min-height: 3rem; padding-inline: 0.5rem; }
	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a {
		box-shadow: inset 4px 0 0 var(--lichen);
		border-radius: 0;
		padding-left: 1rem;
	}
}

.announcement {
	background: #fff4c7;
	color: var(--ink);
	border-bottom: 1px solid #d9c36a;
	padding-block: 0.75rem;
}
.announcement p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Page heading band + home hero
   ------------------------------------------------------------------ */
.page-header {
	background: var(--fir) url("assets/img/contours.svg") center / cover no-repeat;
	color: #fff;
	padding-block: clamp(1.5rem, 1rem + 3vw, 3rem);
	border-top: 1px solid rgb(255 255 255 / 0.16);
}
.page-title {
	margin: 0;
	color: #fff;
	font-size: var(--step-3);
	max-width: 22ch;
}
.page-intro { margin: 0.6rem 0 0; color: var(--lichen); }

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
	font-size: var(--step--1);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li::after { content: "/"; color: var(--lichen); }
.breadcrumb a { color: #fff; display: inline-block; padding-block: 0.2rem; }

.hero {
	background: var(--fir) url("assets/img/contours.svg") center / cover no-repeat;
	color: #fff;
	border-top: 1px solid rgb(255 255 255 / 0.16);
	padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem) clamp(4.5rem, 3.5rem + 5vw, 7rem);
}
.hero-title {
	margin: 0;
	color: #fff;
	font-size: var(--step-4);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.015em;
	max-width: 16ch;
}
.hero-lead {
	margin: 1.25rem 0 0;
	max-width: 46ch;
	font-size: var(--step-1);
	line-height: 1.5;
	color: #eef4ee;
}

/* Quick links overlap the bottom of the hero */
.quick { margin-top: clamp(-3.5rem, -2.5rem - 2vw, -2.75rem); position: relative; }
.quick-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0.75rem;
	padding: 0;
	list-style: none;
}
.quick-list li { margin: 0; display: flex; }
.quick-link {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.15rem 0.85rem;
	width: 100%;
	padding: 1.1rem 1.15rem;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	border-radius: var(--radius);
	border-bottom: 4px solid var(--moss);
	box-shadow: 0 6px 18px rgb(22 41 31 / 0.14);
}
.quick-link .icon { grid-row: span 2; color: var(--moss); align-self: start; margin-top: 0.15rem; }
.quick-label {
	font-family: var(--font-head);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.2;
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.2em;
}
.quick-text { grid-column: 2; font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); }
.quick-link:hover { border-bottom-color: var(--fir); }
.quick-link:hover .quick-label { text-decoration-thickness: 0.14em; }

/* ---------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------ */
.layout {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 3.5rem);
	padding-block: clamp(1.5rem, 1rem + 3vw, 3rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.content {
	min-width: 0;
	background: var(--paper);
	padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.content > :first-child,
.content > :first-child > :first-child,
.entry > :first-child { margin-top: 0; }
.content > :last-child,
.entry > :last-child { margin-bottom: 0; }

@media (min-width: 62em) {
	.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; }
}
@media (max-width: 30em) {
	.layout > .content { margin-inline: -1.25rem; border-inline: 0; border-radius: 0; }
}

.entry { max-width: 68ch; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry > table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry > table th, .entry > table td { padding: 0.5rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry .alignleft { float: left; margin: 0.3rem 1.25rem 1rem 0; }
.entry .alignright { float: right; margin: 0.3rem 0 1rem 1.25rem; }
.entry .aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--step--1); color: var(--ink-soft); }

.section-title {
	margin: 0 0 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--moss);
	font-size: var(--step-2);
}
.entry + .section-title, .entry + section, .folder-list + .section-title, .summary-list + .more, section + section { margin-top: 2.5rem; }

/* ---------------------------------------------------------------------
   Buttons + forms
   ------------------------------------------------------------------ */
.button,
.gform_button,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.55rem 1.4rem;
	background: var(--fir);
	color: #fff;
	border: 2px solid var(--fir);
	border-radius: var(--radius);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.button:hover, .gform_button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--fir-deep); border-color: var(--fir-deep); }
.button-quiet { background: transparent; color: var(--link); }
.button-quiet:hover { background: var(--mist); color: var(--link); border-color: var(--fir); }

label, .gfield_label { display: block; margin-bottom: 0.35rem; font-weight: 700; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="search"], input[type="password"], select, textarea {
	width: 100%;
	max-width: 34rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	background: var(--paper);
	color: var(--ink);
	border: 1.5px solid var(--field);
	border-radius: var(--radius);
	font: inherit;
}
textarea { min-height: 10rem; max-width: 100%; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }

.search-form { margin-bottom: 1.5rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-row .search-input { flex: 1 1 14rem; }
.search-hint { color: var(--ink-soft); }

/* Gravity Forms (legacy markup) */
.gform_wrapper ul.gform_fields { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.gform_wrapper .gfield { margin: 0 0 1.25rem; padding: 0; }
.gform_wrapper .gfield_required { color: #a3261b; margin-left: 0.2em; }
.gform_wrapper .gfield_description { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.3rem; }
.gform_wrapper .ginput_complex { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gform_wrapper .ginput_complex > span { flex: 1 1 14rem; max-width: 34rem; }
.gform_wrapper .ginput_complex label { font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); margin: 0.2rem 0 0; }
.gform_wrapper .gf_name_has_1 label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gform_wrapper .gform_validation_container,
.gform_wrapper li.gform_validation_container { position: absolute !important; left: -9000px !important; display: none !important; }
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message { color: #a3261b; font-weight: 700; margin-top: 0.3rem; }
.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_error { border: 2px solid #a3261b; border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1.25rem; color: #7d1c13; background: #fdf1ef; font-weight: 700; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea { border-color: #a3261b; border-width: 2px; }
.gform_confirmation_message { border-left: 4px solid var(--moss); padding: 0.75rem 1rem; background: var(--mist); font-weight: 700; }
.gform_footer { margin-top: 0.5rem; }
body .gform_wrapper input.medium, body .gform_wrapper input.large, body .gform_wrapper .ginput_complex input { width: 100%; }

/* ---------------------------------------------------------------------
   Post summaries, pagination, post navigation
   ------------------------------------------------------------------ */
.summary { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.summary:first-child { padding-top: 0; border-top: 0; }
.summary-date { margin: 0 0 0.15rem; font-size: var(--step--1); color: var(--ink-soft); }
.summary-title { margin: 0 0 0.35rem; font-size: var(--step-1); }
.summary-title a { text-decoration-thickness: 0.06em; }
.summary-excerpt { margin: 0; max-width: 68ch; }
.more { margin-bottom: 0; }

.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.25rem 0.75rem;
	border: 1.5px solid var(--field);
	border-radius: var(--radius);
	text-decoration: none;
	font-weight: 700;
}
.page-numbers.current { background: var(--fir); border-color: var(--fir); color: #fff; }
.page-numbers.dots { border-color: transparent; }
a.page-numbers:hover { background: var(--mist); }

.post-navigation { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { justify-content: space-between; gap: 1rem; }
.post-navigation a { display: flex; flex-direction: column; padding-block: 0.3rem; text-decoration: none; max-width: 24rem; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.nav-dir { font-size: var(--step--1); color: var(--ink-soft); }
.nav-title { font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

/* News archive index */
.post-index { margin: 0; padding: 0; list-style: none; columns: 18rem 2; column-gap: 2.5rem; }
.post-index li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0;
	padding-block: 0.15rem;
	break-inside: avoid;
	border-bottom: 1px dotted var(--line);
}
.post-index a { display: inline-block; padding-block: 0.4rem; }
.post-index time { flex: none; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   Documents
   ------------------------------------------------------------------ */
.folder-list, .doc-list { margin: 0; padding: 0; list-style: none; }
.folder-list li, .doc-list li { margin: 0; border-top: 1px solid var(--line); }
.folder-list li:first-child, .doc-list li:first-child { border-top: 0; }
.folder-link, .doc-link {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 3.25rem;
	padding: 0.85rem 0.5rem;
	color: var(--ink);
	text-decoration: none;
	border-radius: var(--radius);
}
.folder-link:hover, .doc-link:hover { background: var(--mist); }
.folder-link .icon-folder, .doc-link .icon-file { color: var(--moss); }
.folder-link .icon-chevron { margin-left: auto; color: var(--ink-soft); }
.folder-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.folder-name {
	font-family: var(--font-head);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.25;
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.2em;
}
.folder-list-compact .folder-name { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; }
.folder-text { font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); }
.doc-name { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; min-width: 0; }
.doc-type {
	margin-left: auto;
	flex: none;
	padding: 0.1rem 0.55rem;
	border: 1px solid var(--field);
	border-radius: 999px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* ---------------------------------------------------------------------
   FAQs
   ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 3.25rem;
	padding: 0.9rem 0.5rem;
	cursor: pointer;
	list-style: none;
	border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
	content: "";
	flex: none;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2.5px solid var(--moss);
	border-bottom: 2.5px solid var(--moss);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
.faq[open] summary::before { transform: rotate(45deg); }
.faq summary:hover { background: var(--mist); }
.faq-q { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.faq-a { padding: 0.25rem 0.5rem 1.25rem 2.05rem; }

/* ---------------------------------------------------------------------
   Community links (About page)
   ------------------------------------------------------------------ */
.link-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2.5rem; }
.link-group h3 { margin: 0 0 0.4rem; font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }
.link-group ul { margin: 0; padding: 0; list-style: none; }
.link-group li { margin: 0; }
.link-group a { display: inline-block; padding-block: 0.3rem; }
.link-note { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.link-note:empty { display: none; }

/* ---------------------------------------------------------------------
   Sidebar widgets
   ------------------------------------------------------------------ */
.sidebar { min-width: 0; font-size: 1.0625rem; line-height: 1.55; }
.widget { padding: 1.25rem 0 1.4rem; border-top: 3px solid var(--fir); }
.widget + .widget { margin-top: 0.5rem; }
.widget-title { margin: 0 0 0.6rem; font-size: 1.25rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin: 0; }
.widget li a { display: inline-block; padding-block: 0.3rem; }
.widget .textwidget { line-height: 1.7; }
.widget .textwidget > :last-child { margin-bottom: 0; }
.widget h2:not(.widget-title), .widget h3 { margin: 1rem 0 0.25rem; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; }

@media (min-width: 40em) and (max-width: 61.99em) {
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2.5rem; align-items: start; }
	.widget + .widget { margin-top: 0; }
}

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--fir-deep); color: #dbe6de; font-size: 1.0625rem; }
.site-footer-inner {
	display: grid;
	gap: 1.5rem 3rem;
	padding-block: 2.5rem;
}
@media (min-width: 48em) {
	.site-footer-inner { grid-template-columns: auto 1fr; align-items: start; }
	.footer-legal { grid-column: 1 / -1; }
}
.footer-name { margin: 0; font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; color: #fff; }
.footer-tagline { margin: 0; color: var(--lichen); }
.footer-list { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .footer-list { justify-content: flex-end; } }
.footer-list li { margin: 0; }
.site-footer a { color: #fff; display: inline-block; padding-block: 0.45rem; }
.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 2rem;
	margin: 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.2);
	font-size: var(--step--1);
}
.footer-credit a { padding-block: 0.1rem; }

/* ---------------------------------------------------------------------
   Elementor
   ------------------------------------------------------------------ */
.elementor-location-header :focus-visible,
.elementor-location-footer :focus-visible,
.ap-dark :focus-visible { outline-color: var(--focus-on-dark); }
.elementor-nav-menu li, .elementor-icon-list-item, .elementor-post { margin-bottom: 0; }
/* Elementor removes underlines from every link it renders. Put them back for links in
   content, so links are not told apart by colour alone, and leave buttons alone. */
main .elementor a,
.elementor-location-footer .elementor-widget-text-editor a { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
main .elementor a:hover { text-decoration-thickness: 0.16em; }
.elementor .elementor-nav-menu a,
main .elementor a.elementor-button, main .elementor .btn, main .elementor .button, main .elementor .gform_button,
main .elementor .folder-link, main .elementor .doc-link, main .elementor .page-numbers, main .elementor a.elementor-icon { text-decoration: none; }
.ap-dark a, .elementor .ap-dark a { color: #fff; }
.elementor-location-footer .elementor-widget-text-editor a { display: inline-block; padding-block: 0.2rem; }
.elementor-location-footer .elementor-widget-text-editor p { margin: 0; }
/* Headings placed by Elementor widgets carry their own spacing. */
.elementor .elementor-icon-box-title, .elementor .elementor-post__title, .elementor .elementor-heading-title { margin-top: 0; }
/* Content column takes the room, sidebar keeps its width. */
@media (min-width: 1025px) {
	.ap-body > .e-con-inner > .ap-content, .ap-body > .ap-content { flex: 1 1 0; min-width: 0; }
	.ap-body > .e-con-inner > .ap-aside, .ap-body > .ap-aside { flex: 0 0 19rem; width: 19rem; }
}
.elementor-widget-theme-post-content > :first-child, .elementor-widget-theme-post-content > .elementor-widget-container > :first-child { margin-top: 0; }
.elementor-widget-theme-post-content > :last-child, .elementor-widget-theme-post-content > .elementor-widget-container > :last-child { margin-bottom: 0; }
.elementor-widget-theme-post-content h2:first-child, .elementor-widget-theme-post-content h3:first-child { margin-top: 0; }
/* Only tables typed straight into page content, never a plugin's own (calendar, forms). */
.elementor-widget-theme-post-content > table, .elementor-widget-theme-post-content > .elementor-widget-container > table { display: block; overflow-x: auto; border-collapse: collapse; }
.elementor-widget-theme-post-content > table th, .elementor-widget-theme-post-content > table td,
.elementor-widget-theme-post-content > .elementor-widget-container > table th, .elementor-widget-theme-post-content > .elementor-widget-container > table td { padding: 0.5rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.elementor-widget-theme-post-content > p, .elementor-widget-theme-post-content > ul, .elementor-widget-theme-post-content > ol,
.elementor-widget-theme-post-content > h2, .elementor-widget-theme-post-content > h3, .elementor-widget-theme-post-content > h4 { max-width: 68ch; }
/* The sidebar column disappears on pages where no widget is set to show. */
.ap-aside:not(:has(.widget)) { display: none; }
.ap-no-sidebar .ap-aside { display: none; }
.ap-aside .sidebar { display: block; }
@media (min-width: 40em) and (max-width: 64em) {
	.ap-aside .sidebar { display: grid; }
}

/* ---------------------------------------------------------------------
   Download Manager (ported from the Rose Garden child theme, Arbor colours)
   ------------------------------------------------------------------ */
body .w3eden, body .w3eden .card, body .w3eden .card-header, body .w3eden label, body .w3eden .form-control,
body .w3eden .btn, body .w3eden small, body .w3eden .page-numbers, body .w3eden .list-group-item { font-family: var(--font-body); font-size: 1rem; }
body .w3eden { color: var(--ink); }
/* The archive add-on forces 10pt on everything in its results list. */
body #wpdm-downloads { font-size: 1rem; }
body #wpdm-downloads * { font-size: inherit; }
body #wpdm-downloads .package-title { font-size: var(--step-1); }
body #wpdm-downloads .text-small { font-size: var(--step--1); }
body .w3eden .card .package-title, body .w3eden h3.package-title { font-size: var(--step-1); }
body .w3eden .text-small { font-size: var(--step--1); }
body .w3eden input[type="checkbox"], body .w3eden input[type="radio"] { width: 1.15rem; height: 1.15rem; margin-right: 0.4rem; vertical-align: -0.2em; }
body .w3eden #wpdmcat-tree label, body .w3eden .card-footer label, body .w3eden .form-group label { display: inline-flex; align-items: center; min-height: 1.75rem; margin-bottom: 0; font-weight: 400; }
body .w3eden #reset-filter { display: inline-block; padding-block: 0.35rem; font-size: 1rem !important; }
.w3eden a { color: var(--link); }
.w3eden .btn { text-decoration: none; }
.w3eden .card .package-title, .w3eden h3.package-title { margin: 0 0 0.25rem; font-family: var(--font-head); font-size: var(--step-1); line-height: 1.25; }
.w3eden .text-muted, .w3eden .text-small { color: var(--ink-soft) !important; }
.w3eden .text-small { font-size: var(--step--1); }
.w3eden .media { flex-wrap: wrap; gap: 0.75rem; }
.w3eden .media .ml-3 .btn { margin: 0.15rem 0; min-height: 2.5rem; display: inline-flex; align-items: center; }
.wpdmap-card-filter .card-body { max-height: 500px; }
.wpdmap-filter-sidebar .card:nth-child(3) { display: none !important; } /* Hide the Tags filter */
#wpdmcat-tree,
#wpdmcat-tree > li { list-style: none; margin: 0; padding: 0; }
#wpdmcat-tree li ul { list-style: none; margin: 4px 0 4px 6px; padding-left: 18px; }
#wpdmcat-tree li ul li { list-style: circle; }

.rg-doc-related > h3 { margin: 0 0 20px !important; }
.rg-doc-related .w3eden .row > [class*="col-"] { display: flex; margin-bottom: 20px; }
.rg-rel-card { display: flex; flex-direction: column; width: 100%; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--fir); border-radius: 4px; }
.rg-rel-card .rg-rel-title { margin: 0 0 6px; padding: 0; font-size: 1.125rem; line-height: 1.35; }
.rg-rel-card .rg-rel-title a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 0.06em; }
.rg-rel-card .rg-rel-title a:hover { color: var(--link); }
.rg-rel-card .rg-rel-meta { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 14px; }
.rg-rel-card .rg-rel-meta i { margin-right: 4px; }
.rg-rel-card .rg-rel-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.rg-rel-card .rg-rel-actions a,
.rg-rel-card .rg-rel-actions .btn { display: inline-block; padding: 9px 16px !important; font-size: var(--step--1) !important; font-weight: 700; line-height: 1.4 !important; border-radius: 4px !important; text-decoration: none !important; }
.rg-rel-card .rg-rel-actions .rg-rel-view { background: var(--paper); color: var(--link) !important; border: 1px solid var(--fir); }
.rg-rel-card .rg-rel-actions .rg-rel-view:hover { background: var(--mist); }
.rg-rel-card .rg-rel-actions .wpdm-download-link,
.rg-rel-card .rg-rel-actions .btn-primary { background: var(--fir) !important; border: 1px solid var(--fir) !important; color: #fff !important; }
@media (max-width: 767px) { .rg-doc-related .w3eden .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; } }

/* ---------------------------------------------------------------------
   Motion + print
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
	body { background: #fff; color: #000; font-size: 11pt; }
	.site-header, .site-footer, .sidebar, .quick, .skip-link, .nav-toggle, .search-form, .pagination, .post-navigation, .more { display: none !important; }
	.page-header, .hero { background: none; color: #000; padding: 0 0 1rem; border: 0; }
	.page-title, .hero-title, .hero-lead, .page-intro, .breadcrumb a { color: #000; }
	.layout { display: block; padding: 0; }
	.content { border: 0; padding: 0; }
	.wrap { width: 100%; }
	a { color: #000; }
	.entry a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
	details.faq > .faq-a { display: block; }
}
