/* PRG Tools 1.3.10 (colour scheme A "Coastal"; navy header). Originally 1.3.2: Post Road Guide global design for Blocksy (loaded only after Appearance > PRG Design > Apply).
 * Palette (also set as Blocksy's global palette): scheme A 1.3.10: accent #1f6f6b (hover #185753), ink #1c2430, navy #0f2a44, sea glass #9fd3cf,
 * line #d9d2c3, sand #f3eee3, page #fbfaf7, white. (1.3.2: the lighthouse red Get a Quote button is gone; no red left.)
 * Contrast (WCAG 2.x): ink/page 14.7, sea/page 6.0, sea/white 6.3, white/sea 6.3, white/navy 14.6, muted #5b6670/page 5.6,
 * #d9e3ea/navy 11.2, #9fd3cf/navy 8.9. All pass AA (4.5:1) for normal text.
 * Fonts are served from this plugin (no Google request): Fraunces (headings) and Public Sans (text), SIL OFL 1.1. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/fraunces-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/public-sans-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-italic-400.woff2") format("woff2"); }

body.prg-design {
	--prg-navy: #0f2a44; --prg-navy-2: #1d3f5f; --prg-sea: #1f6f6b; --prg-sea-hover: #185753; --prg-sea-light: #e2efee;
	--prg-sand: #f3eee3; --prg-sand-2: #e9e1d0; --prg-ink: #1c2430; --prg-muted: #5b6670; --prg-line: #d9d2c3;
	--prg-page: #fbfaf7;
	--prg-foam: #d9e3ea; --prg-seaglass: #9fd3cf;
	--prg-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--prg-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Spacing scale (4px base) */
	--prg-s1: 4px; --prg-s2: 8px; --prg-s3: 12px; --prg-s4: 16px; --prg-s5: 24px; --prg-s6: 32px; --prg-s7: 48px; --prg-s8: 64px;
	--prg-radius: 12px;

	/* Blocksy variables */
	--theme-font-family: var(--prg-sans);
	--theme-font-size: 17px;
	--theme-line-height: 1.65;
	--theme-text-color: var(--prg-ink);
	--theme-headings-color: var(--prg-navy);
	--theme-heading-color: var(--prg-navy);
	--theme-link-initial-color: var(--prg-sea);
	--theme-link-hover-color: var(--prg-sea-hover);
	--theme-border-color: var(--prg-line);
	--theme-button-background-initial-color: var(--prg-sea);
	--theme-button-background-hover-color: var(--prg-sea-hover);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-button-border-radius: 999px;
	--theme-button-min-height: 46px;
	--theme-button-padding: 10px 22px;
	--theme-button-font-weight: 600;
	--theme-button-font-size: 16px;
	--theme-form-field-border-radius: 8px;
	--theme-form-field-border-focus-color: var(--prg-sea);
	color: var(--prg-ink);
	background-color: var(--prg-page);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Headings: Fraunces, modular scale ~1.25 (fluid between 375px and 1200px wide). */
body.prg-design h1, body.prg-design h2, body.prg-design h3, body.prg-design h4,
body.prg-design .page-title, body.prg-design .entry-title {
	--theme-font-family: var(--prg-serif);
	font-family: var(--prg-serif);
	color: var(--prg-navy);
	letter-spacing: -0.01em;
	font-optical-sizing: auto;
}
body.prg-design h1, body.prg-design .page-title { --theme-font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); --theme-font-weight: 700; --theme-line-height: 1.12; }
body.prg-design h2 { --theme-font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.2rem); --theme-font-weight: 650; --theme-line-height: 1.2; }
body.prg-design h3 { --theme-font-size: clamp(1.3rem, 1.18rem + 0.5vw, 1.6rem); --theme-font-weight: 600; --theme-line-height: 1.3; }
body.prg-design h4 { --theme-font-size: 1.2rem; --theme-font-weight: 600; --theme-line-height: 1.35; }
body.prg-design h5, body.prg-design h6 { --theme-font-family: var(--prg-sans); font-family: var(--prg-sans); --theme-font-size: 1rem; --theme-font-weight: 700; --theme-line-height: 1.4; letter-spacing: 0.02em; }
body.prg-design .entry-content > :is(h2, h3) { margin-top: 1.8em; margin-bottom: 0.5em; }
body.prg-design .entry-content > h2 + :is(h3, p) { margin-top: 0; }

/* Page header on inner pages: a sand band with the title. */
body.prg-design:not(.home) .hero-section[data-type="type-1"] { margin-bottom: var(--prg-s6); }
body.prg-design:not(.home) .entry-header .page-title { --theme-font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); max-width: 22ch; }
body.prg-design .ct-breadcrumbs { --theme-font-size: 13px; letter-spacing: 0.08em; color: var(--prg-muted); }

/* Links in content: AA sea through Blocksy's link variables (sections that set their own link colour, like the
 * homepage's dark bands, still win), underlined so links don't rely on colour alone. */
body.prg-design .entry-content { --theme-link-initial-color: var(--prg-sea); --theme-link-hover-color: var(--prg-sea-hover); }
body.prg-design .entry-content a:where(:not(.wp-element-button, .wp-block-button__link, .ct-button, .prg-quote-btn)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
body.prg-design .entry-content a:where(:not(.wp-element-button, .wp-block-button__link, .ct-button, .prg-quote-btn)):hover {
	text-decoration-thickness: 2px;
}
body.prg-design :focus-visible { outline: 3px solid var(--prg-sea); outline-offset: 2px; border-radius: 4px; }

/* Buttons (core button block and Blocksy buttons). */
body.prg-design .wp-element-button, body.prg-design .wp-block-button__link, body.prg-design .ct-button {
	font-family: var(--prg-sans);
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body.prg-design .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--prg-sea); border: 2px solid currentColor;
}
body.prg-design .wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--prg-sea-hover); background: var(--prg-sea-light); }

/* ---------------------------------------------------------------- Header */
body.prg-design { --header-height: 116px; }
body.prg-design .ct-header [data-row*="top"] {
	--height: 36px;
	background: var(--prg-navy);
	background-color: var(--prg-navy);
	color: var(--prg-foam);
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body.prg-design .ct-header [data-row*="top"] .ct-header-text,
body.prg-design .ct-header [data-row*="top"] .ct-header-text p {
	color: var(--prg-foam);
	font-size: 13px;
	letter-spacing: 0.04em;
	margin: 0;
}
body.prg-design .ct-header [data-row*="middle"] {
	--height: 80px;
	background: var(--prg-navy);
	background-color: var(--prg-navy);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .10);
	box-shadow: 0 6px 18px -12px rgba(11, 31, 51, .55);
}
/* Scheme A: Blocksy's main row is navy, overriding any stale white row background (sticky/transparent states too). */
body.prg-design .ct-header [data-row*="middle"] > .ct-container,
body.prg-design .ct-header [data-sticky*="yes"] [data-row*="middle"],
body.prg-design .ct-header [data-transparent-row="yes"][data-row*="middle"] { background-color: var(--prg-navy); }

/* Wordmark: milestone mark + "Post Road Guide" in Fraunces. The Boston Post Road was measured with milestones. */
body.prg-design .ct-header [data-id="logo"] .site-title,
body.prg-design #offcanvas .ct-panel-heading {
	--theme-font-family: var(--prg-serif);
	--theme-font-size: 26px;
	--theme-font-weight: 700;
	--theme-line-height: 1.1;
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--prg-seaglass);
	color: #fff;
	font-family: var(--prg-serif);
	letter-spacing: -0.015em;
}
body.prg-design .ct-header [data-id="logo"] .site-title a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
body.prg-design .ct-header [data-id="logo"] .site-title a::before {
	content: "";
	flex: 0 0 auto;
	width: 30px;
	height: 36px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 36'%3E%3Cpath d='M3 36V14C3 6.8 8.4 1.5 15 1.5S27 6.8 27 14v22z' fill='%231f6f6b'/%3E%3Cpath d='M7 32V14.5C7 9.6 10.6 5.8 15 5.8s8 3.8 8 8.7V32' fill='none' stroke='%239fd3cf' stroke-width='1.4'/%3E%3Cpath d='M10 24.5c1.7-1.4 3.3-1.4 5 0s3.3 1.4 5 0' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M10 19.5c1.7-1.4 3.3-1.4 5 0s3.3 1.4 5 0' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.6'/%3E%3Ccircle cx='15' cy='13' r='1.8' fill='%23e3b866'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Menu */
body.prg-design .ct-header [data-id="menu"] > ul > li > a {
	--theme-font-family: var(--prg-sans);
	--theme-font-size: 15px;
	--theme-font-weight: 600;
	--theme-text-transform: none;
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--prg-seaglass);
	--theme-link-active-color: var(--prg-seaglass);
	letter-spacing: 0.01em;
}
body.prg-design .ct-header [data-id="menu"] > ul > li > a { position: relative; }
body.prg-design .ct-header [data-id="menu"] > ul > li > a::after {
	content: ""; position: absolute; left: var(--menu-item-padding, 14px); right: var(--menu-item-padding, 14px); bottom: 22px;
	height: 2px; background: var(--prg-seaglass); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
body.prg-design .ct-header [data-id="menu"] > ul > li:is(:hover, .current-menu-item, .current-menu-ancestor, .current-page-ancestor) > a::after { transform: scaleX(1); }
body.prg-design .ct-header [data-id="menu"] .sub-menu {
	--theme-link-initial-color: var(--prg-ink);
	--theme-link-hover-color: var(--prg-sea);
	--dropdown-divider: 1px solid var(--prg-line);
	--theme-box-shadow: 0 18px 40px -12px rgba(15, 42, 68, .28);
	--theme-border-radius: 10px;
	background: #fff;
	border: 1px solid var(--prg-line);
	padding: 6px 0;
}
body.prg-design .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	--theme-link-initial-color: var(--prg-ink);
	--theme-link-hover-color: var(--prg-sea);
	--theme-link-active-color: var(--prg-sea);
	--theme-font-size: 15px;
	--theme-font-weight: 500;
	padding-top: 12px; padding-bottom: 12px;
}
body.prg-design .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover { background: var(--prg-sea-light); }

/* Local events: a sea-glass outline button in the navy header's right-hand slot (1.3.10, scheme A). No fill, no shadow;
 * it fills with sea glass (navy text) on hover. Sea glass on navy 8.9:1, navy on sea glass 8.9:1. */
body.prg-design .ct-header .ct-button-ghost.prg-events-btn,
body.prg-design .ct-header .ct-button.prg-events-btn {
	--theme-button-min-height: 40px;
	--theme-button-padding: 0 18px;
	--theme-button-border-radius: 999px;
	--theme-button-text-initial-color: var(--prg-seaglass);
	--theme-button-text-hover-color: var(--prg-navy);
	--theme-button-background-initial-color: transparent;
	--theme-button-background-hover-color: var(--prg-seaglass);
	--theme-button-border: 1.5px solid var(--prg-seaglass);
	color: var(--prg-seaglass);
	background-color: transparent;
	border: 1.5px solid var(--prg-seaglass);
	box-shadow: none;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-left: 14px;
}
body.prg-design .ct-header .prg-events-btn:hover {
	color: var(--prg-navy);
	background-color: var(--prg-seaglass);
	border-color: var(--prg-seaglass);
}
/* In the phone menu panel (navy) the same button is a sea-glass outline. Sea glass on navy 8.9:1. */
body.prg-design #offcanvas .prg-events-btn,
body.prg-design .ct-header #offcanvas .prg-events-btn {
	--theme-button-min-height: 44px;
	--theme-button-text-initial-color: var(--prg-seaglass);
	color: var(--prg-seaglass);
	border-color: var(--prg-seaglass);
	background-color: transparent;
	margin: var(--prg-s5) 0 0;
	font-size: 16px;
}
body.prg-design #offcanvas .prg-events-btn:hover { color: var(--prg-navy); background-color: var(--prg-seaglass); }
/* Hidden from visitors until the events calendar is public (editors still see it). */
body.prg-design.prg-events-unpublished .ct-header-cta:has(.prg-events-btn),
body.prg-design.prg-events-unpublished .prg-events-btn { display: none !important; }

/* Mobile header + drawer: wordmark + Menu only (the Local events button lives in the panel). */
@media (max-width: 999.98px) {
	body.prg-design { --header-height: 68px; }
	body.prg-design .ct-header [data-row*="middle"] { --height: 68px; }
	body.prg-design .ct-header [data-id="logo"] .site-title { --theme-font-size: 21px; }
	body.prg-design .ct-header [data-id="logo"] .site-title a { gap: 9px; }
	body.prg-design .ct-header [data-id="logo"] .site-title a::before { width: 25px; height: 30px; }
	body.prg-design .ct-header [data-id="trigger"] { --theme-icon-color: #fff; --theme-icon-hover-color: var(--prg-seaglass); color: #fff; }
}
@media (max-width: 479.98px) {
	body.prg-design .ct-header [data-row*="middle"] .ct-container { padding-left: 14px; padding-right: 6px; } /* wordmark and Menu icon sit the same distance from the edges */
	body.prg-design .ct-header [data-id="logo"] .site-title { --theme-font-size: 20px; }
	body.prg-design .ct-header [data-id="trigger"] { padding: 8px; }
}
@media (max-width: 339.98px) {
	body.prg-design .ct-header [data-id="logo"] .site-title a::before { display: none; }
}
body.prg-design #offcanvas .ct-panel-inner { background-color: var(--prg-navy); }
body.prg-design #offcanvas { --theme-box-shadow: 0 0 60px rgba(11, 31, 51, .45); --side-panel-width: 420px; }
body.prg-design #offcanvas .ct-panel-heading { --theme-link-initial-color: #fff; color: #fff; font-size: 22px; }
body.prg-design #offcanvas .ct-toggle-close { --theme-icon-color: #fff; }
body.prg-design [data-id="mobile-menu"] {
	--theme-font-family: var(--prg-serif);
	--theme-font-size: 24px;
	--theme-font-weight: 600;
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--prg-seaglass);
	--theme-link-active-color: var(--prg-seaglass);
	--mobile-menu-divider: 1px solid rgba(217, 227, 234, .18);
	font-family: var(--prg-serif);
}
body.prg-design [data-id="mobile-menu"] .sub-menu { --theme-font-family: var(--prg-sans); --theme-font-size: 17px; font-family: var(--prg-sans); }
body.prg-design [data-id="mobile-menu"] .sub-menu a { --theme-link-initial-color: var(--prg-foam); }
body.prg-design #offcanvas .ct-header-text { margin-top: var(--prg-s6); padding-top: var(--prg-s5); border-top: 1px solid rgba(217, 227, 234, .18); }
body.prg-design #offcanvas .ct-header-text p { color: var(--prg-foam); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- Footer */
body.prg-design .ct-footer {
	background: var(--prg-navy);
	color: var(--prg-foam);
	--theme-text-color: var(--prg-foam);
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--prg-seaglass);
	position: relative;
}
body.prg-design .ct-footer::before {
	/* thin "tide line" in sea glass and brass */
	content: ""; display: block; height: 4px;
	background: linear-gradient(90deg, var(--prg-seaglass) 0 70%, #e3b866 70% 100%);
}
body.prg-design .ct-footer [data-row*="middle"] { background: transparent; }
body.prg-design .ct-footer [data-row*="bottom"] { background: #0b1f33; }
body.prg-design .ct-footer .ct-widget > p:empty { display: none; }
body.prg-design .ct-footer p { margin: 0; }
body.prg-design .prg-footer-brand { margin: 0 0 12px; }
body.prg-design .prg-footer-brand a {
	font: 700 26px/1.1 var(--prg-serif); letter-spacing: -0.015em; color: #fff; text-decoration: none;
}
body.prg-design .prg-footer-desc { max-width: 46ch; font-size: 15.5px; line-height: 1.65; color: var(--prg-foam); margin: 0 0 18px !important; }
body.prg-design .prg-footer-address { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--prg-foam); }
body.prg-design .prg-footer-label, body.prg-design .prg-footer-heading {
	display: block; margin: 0 0 10px !important; font: 700 12px/1.2 var(--prg-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--prg-seaglass);
}
body.prg-design .prg-footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
body.prg-design .prg-footer-links a { color: #fff; text-decoration: none; font-size: 15.5px; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 1px; }
body.prg-design .prg-footer-links a:hover { color: var(--prg-seaglass); border-bottom-color: currentColor; }
body.prg-design .prg-footer-unpublished span { font-size: 12px; color: #e3b866; }
body.prg-design .prg-footer-sponsor { font-size: 14px; color: var(--prg-foam); }
body.prg-design .prg-footer-sponsor a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
body.prg-design .prg-footer-sponsor a:hover { color: var(--prg-seaglass); }
body.prg-design .ct-footer [data-id="copyright"] { --theme-font-size: 14px; color: var(--prg-foam); }
/* Footer layout. Owned here (not by Blocksy's generated CSS) so it can't fall back to one column:
 * mobile (<690px) stacked; tablet (690-1023px) brand row on top, two link columns below;
 * desktop (1024px+) three columns: brand + address (wider), Explore, Post Road Guide. */
body.prg-design .ct-footer [data-row*="middle"] > .ct-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) !important;
	column-gap: 32px; row-gap: 36px;
	--container-spacing: 40px;
}
body.prg-design .ct-footer [data-row*="middle"] [data-column] { min-width: 0; }
@media (min-width: 690px) {
	body.prg-design .ct-footer [data-row*="middle"] > .ct-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 40px; }
	body.prg-design .ct-footer [data-row*="middle"] [data-column="widget-area-1"] { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	body.prg-design .ct-footer [data-row*="middle"] > .ct-container { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 56px; --container-spacing: 56px; }
	body.prg-design .ct-footer [data-row*="middle"] [data-column="widget-area-1"] { grid-column: auto; }
}
/* Bottom bar: stacked and left-aligned below 1024px; one row (copyright left, sponsor right) from 1024px. */
body.prg-design .ct-footer [data-row*="bottom"] > .ct-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) !important;
	row-gap: 8px; column-gap: 32px;
	align-items: center;
	--container-spacing: 20px;
}
body.prg-design .ct-footer [data-row*="bottom"] [data-column] { align-items: flex-start; justify-content: center; min-width: 0; }
body.prg-design .prg-footer-sponsor { text-align: left; }
@media (min-width: 1024px) {
	body.prg-design .ct-footer [data-row*="bottom"] > .ct-container { grid-template-columns: minmax(0, 1fr) auto !important; }
	body.prg-design .ct-footer [data-row*="bottom"] [data-column="widget-area-4"] { align-items: flex-end; }
	body.prg-design .prg-footer-sponsor { text-align: right; }
}

/* Homepage sections use the same fonts. */
body.prg-design .prg-home-section { --prg-serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif; --prg-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

@media (prefers-reduced-motion: reduce) {
	body.prg-design *, body.prg-design *::before, body.prg-design *::after { transition: none !important; }
}

/* 1.3.10 scheme A: explicit header link colours, so the navy header stays readable even if Blocksy's
 * Customizer CSS (or a cached stylesheet) still sets dark/navy link colours. White/navy 14.6:1, sea glass/navy 8.9:1. */
body.prg-design .ct-header [data-row*="middle"] [data-id="logo"] .site-title a,
body.prg-design .ct-header [data-row*="middle"] [data-id="menu"] > ul > li > a { color: #fff; }
body.prg-design .ct-header [data-row*="middle"] [data-id="logo"] .site-title a:hover,
body.prg-design .ct-header [data-row*="middle"] [data-id="menu"] > ul > li:is(:hover, .current-menu-item, .current-menu-ancestor, .current-page-ancestor) > a { color: var(--prg-seaglass); }
body.prg-design .ct-header [data-row*="top"] a { color: #fff; }
body.prg-design .ct-header [data-row*="top"] a:hover { color: var(--prg-seaglass); }

/* 1.3.11: dropdown sub-menus are a white card with dark text. The white header link colours above apply to
 * top-level items only; these rules restore ink links inside the dropdown (ink/white 15.6:1, #1f6f6b/white 6.0:1). */
body.prg-design .ct-header [data-id="menu"] .sub-menu,
body.prg-design .ct-header [data-id="menu"] .sub-menu li > a,
body.prg-design .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	--theme-link-initial-color: var(--prg-ink);
	--theme-link-hover-color: var(--prg-sea);
	--theme-link-active-color: var(--prg-sea);
	color: var(--prg-ink);
}
body.prg-design .ct-header [data-id="menu"] .sub-menu { background: #fff; background-color: #fff; }
body.prg-design .ct-header [data-id="menu"] .sub-menu li > a:is(:hover, :focus-visible),
body.prg-design .ct-header [data-id="menu"] .sub-menu li:is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor) > a {
	color: var(--prg-sea);
	background: var(--prg-sea-light);
}
body.prg-design .ct-header [data-id="menu"] .sub-menu a::after { display: none; }
