/* Cedar Bend: components beyond theme.json. Colors come from the theme palette.
   Direction: the schoolhouse itself. Plaster walls, schoolroom green, chalkboard slate, brick for actions, river for links. */
:root {
	--cb-plaster: var(--wp--preset--color--plaster, #F4F5F1);
	--cb-green: var(--wp--preset--color--green, #DFE7DD);
	--cb-slate: var(--wp--preset--color--slate, #22322D);
	--cb-brick: var(--wp--preset--color--cedar, #6B2E1F);
	--cb-brick-dark: var(--wp--preset--color--cedar-dark, #4A1F14);
	--cb-river: var(--wp--preset--color--river, #1F5C63);
	--cb-ink: var(--wp--preset--color--ink, #1B1F1D);
	--cb-soft: var(--wp--preset--color--soft, #4E5551);
	--cb-chalk: var(--wp--preset--color--chalk, #EEF1EA);
	--cb-chalk-yellow: var(--wp--preset--color--chalk-yellow, #EBD27A);
	--cb-rule: #C9D1C8;
	--cb-rule-strong: var(--cb-slate);
}

/* Focus and accessibility basics */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--cb-ink); outline-offset: 3px; border-radius: 2px; }
.cb-footer :where(a, button):focus-visible, .cb-demo-bar a:focus-visible { outline-color: var(--cb-chalk-yellow); }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: var(--cb-chalk-yellow); color: var(--cb-ink); padding: .75rem 1rem; z-index: 1000; top: .5rem; left: .5rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
img { height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--cb-brick-dark); }
/* Dates, times and rates line up in columns */
.cbnt-events, .cbnt-rates, .cbnt-meetings, .cbnt-details { font-variant-numeric: lining-nums tabular-nums; }

/* Buttons: brick means "you can act here". Hover darkens, press sinks a pixel. */
.wp-element-button, .wp-block-button__link, .cbnt-btn { transition: background-color .15s ease, color .15s ease; }
.wp-element-button:active, .wp-block-button__link:active, .cbnt-btn:active { transform: translateY(1px); background-color: var(--cb-brick-dark); color: #fff; }

/* Demo notice */
.cb-demo-bar { margin: 0 !important; background: var(--cb-ink); color: var(--cb-chalk); font-size: .875rem; text-align: center; padding: .5rem 1.25rem; }
.cb-demo-bar a { color: var(--cb-chalk-yellow); }
.cb-demo-bar a:hover { color: #fff; }

/* Header: on the chalkboard, so header and home hero read as one board, and inner pages get a dark frame matching the footer */
.cb-header { background: var(--cb-slate); color: var(--cb-chalk); border-bottom: 1px solid rgba(238, 241, 234, .14); }
.cb-header :where(a, button):focus-visible { outline-color: var(--cb-chalk-yellow); }
.cb-brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.cb-brand img { width: 48px; height: 48px; flex: none; }
.cb-brand__text { display: flex; flex-direction: column; line-height: 1; }
.cb-brand__name { font-family: var(--wp--preset--font-family--heading); font-size: 1.625rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.cb-brand__sub { font-size: .875rem; font-weight: 500; letter-spacing: .01em; color: #C9D3CC; margin-top: .3rem; }
.cb-brand:hover .cb-brand__name { color: var(--cb-chalk-yellow); }
.cb-brand:active, .cb-brand:active .cb-brand__name { color: #fff; }
/* Nav at 700: at 600 this unhinted variable font draws some r stems one pixel wide and others two, so "Programs" looked uneven */
.cb-header .wp-block-navigation { font-size: 1.0625rem; font-weight: 700; color: var(--cb-chalk); }
.cb-header .wp-block-navigation a:where(:not(.wp-element-button)) { color: var(--cb-chalk); text-decoration: none; padding: .5rem .15rem; border-bottom: 2px solid transparent; }
.cb-header .wp-block-navigation a:where(:not(.wp-element-button)):hover { border-bottom-color: var(--cb-chalk-yellow); color: var(--cb-chalk-yellow); }
.cb-header .wp-block-navigation a:where(:not(.wp-element-button)):active { color: #fff; }
.cb-header .wp-block-navigation .current-menu-item > a, .cb-header .wp-block-navigation a[aria-current="page"] { border-bottom-color: var(--cb-chalk); }
.cb-header .wp-block-navigation .is-donate > a { background: var(--cb-chalk-yellow); color: var(--cb-ink) !important; padding: .6rem 1.1rem; border-radius: 3px; border: 0; }
.cb-header .wp-block-navigation .is-donate > a:hover { background: #fff; color: var(--cb-ink) !important; }
.cb-header .wp-block-navigation .is-donate > a:active { background: #D9BE5E; transform: translateY(1px); }
.cb-header .wp-block-navigation__responsive-container-open, .cb-header .wp-block-navigation__responsive-container-close { color: var(--cb-chalk); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--cb-slate) !important; color: var(--cb-chalk) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom-color: rgba(238, 241, 234, .18) !important; }

/* Lede (page intros). In constrained pages it shares the content column, so its left edge lines up with the title. */
.cb-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: #333A36; max-width: 36em; }
:where(.is-layout-constrained) > .cb-lede { max-width: var(--wp--style--global--content-size); }
.cb-lede p { margin: 0; }

/* ---------- Home hero, the signature: the Commons drawn into its neighborhood ----------
   A chalk plat of the lots draws itself in from the edges toward the schoolhouse, the river's banks draw along the bend,
   member lots fill in, and a chalk-yellow lot line closes around the photo. The photo and headline never animate. */
/* No gap between the header and the board on the home page */
.home .wp-site-blocks > main { margin-top: 0 !important; }
.cb-hero { position: relative; overflow: hidden; color: var(--cb-chalk); padding-top: clamp(3rem, 6vw, 5.5rem) !important; padding-bottom: clamp(4rem, 8vw, 7rem) !important; margin-top: 0 !important; }
.cb-plat { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; margin: 0 !important; pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 36%, #000 62%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 36%, #000 62%); }
.cb-plat__lots, .cb-plat__blocks { fill: none; stroke: var(--cb-chalk); stroke-width: 1.3; stroke-opacity: .3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cb-plat__blocks { stroke-opacity: .2; }
.cb-plat__members rect { fill: var(--cb-chalk); fill-opacity: .13; }
.cb-plat__bank { fill: none; stroke: var(--cb-chalk); stroke-opacity: .5; stroke-width: 96; stroke-linecap: round; stroke-dasharray: 1; }
.cb-plat__water { fill: none; stroke: #2A3F38; stroke-width: 92; stroke-linecap: round; stroke-dasharray: 1; }
.cb-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title photo" "intro photo" "intro label"; column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cb-hero__grid > * { margin: 0 !important; }
.cb-hero h1 { grid-area: title; color: #fff; font-size: clamp(2.75rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -.028em; text-wrap: balance; align-self: end; }
.cb-hero__intro { grid-area: intro; padding-top: 1.75rem; }
.cb-hero .cb-lede { color: var(--cb-chalk); margin: 0; }
.cb-hero__intro .wp-block-buttons { margin-top: 2rem; }
.cb-hero .wp-block-button__link { background: var(--cb-chalk-yellow); color: var(--cb-ink); }
.cb-hero .wp-block-button__link:hover { background: #fff; color: var(--cb-ink); }
.cb-hero .wp-block-button__link:active { background: #D9BE5E; color: var(--cb-ink); }
.cb-hero .wp-block-button.is-style-line .wp-block-button__link { background: transparent; color: #fff; border-color: var(--cb-chalk); }
.cb-hero .wp-block-button.is-style-line .wp-block-button__link:hover { background: var(--cb-chalk); color: var(--cb-slate); }
.cb-hero .wp-block-button.is-style-line .wp-block-button__link:active { background: #C9D3CC; color: var(--cb-slate); border-color: #C9D3CC; }
.cb-hero :where(a, button):focus-visible { outline-color: var(--cb-chalk-yellow); }
/* Yellow buttons get a white ring, so the ring never blends into the button */
.cb-hero .wp-block-button:not(.is-style-line) .wp-block-button__link:focus-visible, .cb-header .is-donate > a:focus-visible { outline-color: #fff; }
.cb-hero-photo { grid-area: photo; align-self: center; position: relative; overflow: visible; }
.cb-hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
/* The lot line: four chalk-yellow edges 14px outside the photo (it never covers the photo), traced in one stroke on load */
.cb-hero-photo::after { content: ""; position: absolute; inset: -14px; pointer-events: none;
	background: linear-gradient(var(--cb-chalk-yellow), var(--cb-chalk-yellow)) left top / 100% 2px no-repeat,
		linear-gradient(var(--cb-chalk-yellow), var(--cb-chalk-yellow)) right top / 2px 100% no-repeat,
		linear-gradient(var(--cb-chalk-yellow), var(--cb-chalk-yellow)) right bottom / 100% 2px no-repeat,
		linear-gradient(var(--cb-chalk-yellow), var(--cb-chalk-yellow)) left bottom / 2px 100% no-repeat; }
.cb-hero__label { grid-area: label; justify-self: end; width: fit-content; margin-top: 1.4rem !important; padding: .2rem .55rem; background: var(--cb-slate); position: relative; font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 1.125rem; color: var(--cb-chalk-yellow); }
@media (max-width: 781px) {
	.cb-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "intro" "photo" "label"; }
	.cb-hero__intro { padding-top: 1.25rem; padding-bottom: 2.5rem; }
	.cb-hero-photo { align-self: start; margin-inline: 14px !important; }
	.cb-hero__label { justify-self: start; }
	.cb-plat { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 45%, #000 70%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 45%, #000 70%); }
}
/* The drawing. Keyframes start from the undrawn state; with reduced motion, animations are off and the base state is the finished drawing. */
@keyframes cb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Lot lines draw bright, then settle to their resting tone, like chalk dust settling */
@keyframes cb-draw-chalk { 0% { stroke-dashoffset: 1; stroke-opacity: .75; } 70% { stroke-opacity: .6; } 100% { stroke-dashoffset: 0; stroke-opacity: .3; } }
@keyframes cb-fill { from { fill-opacity: 0; } }
@keyframes cb-trace {
	0% { background-size: 0 2px, 2px 0, 0 2px, 2px 0; }
	30% { background-size: 100% 2px, 2px 0, 0 2px, 2px 0; }
	50% { background-size: 100% 2px, 2px 100%, 0 2px, 2px 0; }
	80% { background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0; }
	100% { background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%; }
}
@keyframes cb-label { from { opacity: 0; transform: translateY(6px); } }
.cb-plat__blocks { animation: cb-draw 1.8s cubic-bezier(.45, 0, .25, 1) .3s both; }
.cb-plat__lots { animation: cb-draw-chalk 2.4s cubic-bezier(.45, 0, .25, 1) .3s both; }
.cb-plat__bank, .cb-plat__water { animation: cb-draw 1.6s cubic-bezier(.3, 0, .2, 1) .8s both; }
.cb-plat__members rect { animation: cb-fill .6s ease-out var(--d, 1.2s) both; }
.cb-hero-photo::after { animation: cb-trace 1.1s linear 2.3s both; }
.cb-hero__label { animation: cb-label .6s ease-out 3.1s both; }

/* A heading in its own column beside the content (desktop only) */
.cb-side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--wp--preset--spacing--60); align-items: start; }
.cb-side > * { margin-top: 0 !important; }
.cb-side > h2 { padding-top: 1rem; }
@media (max-width: 900px) { .cb-side { display: block; } .cb-side > h2 { padding-top: 0; } }

/* "What brings you here?": a lobby directory. Unnumbered, because the tasks are alternatives, not steps. */
.is-style-directory { list-style: none; padding: 0 !important; margin: 0; border-top: 2px solid var(--cb-rule-strong); }
.is-style-directory > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; align-items: baseline; padding: 1.15rem 0; margin: 0 !important; border-bottom: 1px solid var(--cb-rule); }
.is-style-directory > li > a { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; line-height: 1.25; color: var(--cb-slate); text-decoration-color: var(--cb-river); }
.is-style-directory > li > a:hover { color: var(--cb-brick); text-decoration-color: var(--cb-brick); }
.is-style-directory > li > span { color: var(--cb-soft); }
@media (max-width: 600px) { .is-style-directory > li { display: block; } .is-style-directory > li > span { display: block; margin-top: .25rem; } }

/* Programs on home: one lead program, two beside each other below it */
.cb-feature { margin-top: 1.5rem; }
.cb-feature .wp-block-media-text__content { padding-right: 0 !important; }
.cb-feature h3 { font-size: var(--wp--preset--font-size--xx-large); }
.cb-pair { margin-top: var(--wp--preset--spacing--50) !important; }
.cb-pair-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cb-pair h3 { margin-top: 1.25rem; }
.wp-block-media-text__media img { border-radius: 4px; }
/* Programs page: an index of programs, photo left and details right, ruled between */
.cb-program-list { margin-top: var(--wp--preset--spacing--50); border-top: 2px solid var(--cb-rule-strong); }
.cb-program-list > .wp-block-media-text { grid-template-columns: 38% auto !important; padding: 2rem 0; margin: 0 !important; border-bottom: 1px solid var(--cb-rule); }
.cb-program-list .wp-block-media-text__content { padding: 0 0 0 var(--wp--preset--spacing--50) !important; }
.cb-program-list h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 0; }
.cb-program-list .wp-block-media-text__media img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 600px) { .cb-program-list > .wp-block-media-text { grid-template-columns: 100% !important; } .cb-program-list .wp-block-media-text__content { padding: 1.25rem 0 0 !important; } }

/* Numbered task list block style (kept for real step-by-step lists) */
.is-style-tasks { list-style: none; counter-reset: task; padding: 0 !important; border-top: 1px solid var(--cb-rule); }
.is-style-tasks > li { counter-increment: task; border-bottom: 1px solid var(--cb-rule); padding: 1.1rem 0 1.1rem 2.75rem; position: relative; margin: 0 !important; }
.is-style-tasks > li::before { content: counter(task); position: absolute; left: 0; top: 1rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; color: var(--cb-slate); }

/* Green panel and public notice group styles */
.is-style-panel { background: var(--cb-green); border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.75rem) !important; }
.is-style-panel :where(p, li) { color: var(--cb-ink); }
.is-style-notice { background: #fff; border: 1px solid var(--cb-ink); outline: 1px solid var(--cb-ink); outline-offset: 5px; padding: clamp(1.5rem, 4vw, 2.5rem) !important; margin: 6px 6px var(--wp--preset--spacing--50) !important; }
.is-style-notice h2, .is-style-notice h3 { color: var(--cb-ink); margin-top: 0; }
.is-style-notice > :last-child { margin-bottom: 0; }

/* Outline button style */
.wp-block-button.is-style-line .wp-block-button__link { background: transparent; color: var(--cb-brick); border: 2px solid var(--cb-brick); }
.wp-block-button.is-style-line .wp-block-button__link:hover { background: var(--cb-brick); color: #fff; }
.wp-block-button.is-style-line .wp-block-button__link:active { background: var(--cb-brick-dark); border-color: var(--cb-brick-dark); color: #fff; }

/* Quotes on light pages */
.wp-block-quote { color: var(--cb-slate); }

/* Quote band: schoolroom green, so the home page isn't three dark bands */
.cb-quote .wp-block-quote { color: var(--cb-slate); border-left-color: var(--cb-river); max-width: 34em; }
.cb-quote .wp-block-quote p { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.3; }
.cb-quote .wp-block-quote cite { color: var(--cb-soft); }

/* Footer: chalkboard, with a small chalk map of the lots on the bend, the Commons marked in chalk yellow */
.cb-footer { background: var(--cb-slate); color: var(--cb-chalk); position: relative; overflow: hidden; }
.cb-footer__map { display: block; width: 100%; max-width: 340px; height: auto; margin: 1.5rem 0; }
.cb-footer a { color: #fff; text-decoration-color: rgba(238, 241, 234, .55); }
.cb-footer a:hover { color: var(--cb-chalk-yellow); text-decoration-color: currentColor; }
.cb-footer__tagline { margin-top: -.5rem !important; font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 1.125rem; color: var(--cb-chalk-yellow); }
.cb-footer h2 { color: var(--cb-chalk); font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 500; letter-spacing: 0; margin-bottom: .75rem; }
.cb-footer ul { list-style: none; padding: 0; margin: 0; }
.cb-footer li { margin-bottom: .45rem; }

/* ---------- Plugin blocks ---------- */
.cbnt-btn, .cbnt-btn:visited { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.3rem; background: var(--cb-brick); color: #fff; border: 2px solid var(--cb-brick); border-radius: 3px; font: 700 1rem/1.2 var(--wp--preset--font-family--body); text-decoration: none; cursor: pointer; }
.cbnt-btn:hover { background: var(--cb-brick-dark); border-color: var(--cb-brick-dark); color: #fff; }
.cbnt-btn--line, .cbnt-btn--line:visited { background: transparent; color: var(--cb-brick); }
.cbnt-btn--line:hover, .cbnt-btn--line:active { background: var(--cb-brick); color: #fff; }
.cbnt-empty, .cbnt-muted, .cbnt-note { color: var(--cb-soft); }

/* Events */
.cbnt-events { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--cb-rule-strong); }
.cbnt-event { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--cb-rule); }
.cbnt-event__date { display: block; text-align: left; color: var(--cb-slate); line-height: 1; }
.cbnt-event__mon { display: block; font-size: 1rem; font-weight: 700; color: var(--cb-river); margin-bottom: .2rem; }
.cbnt-event__day { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 3rem; }
.cbnt-event__title { font-size: 1.5rem !important; margin: 0 0 .3rem !important; }
.cbnt-event__title a, .cbnt-resource__title a { color: var(--cb-slate); text-decoration-color: var(--cb-river); }
.cbnt-event__title a:hover, .cbnt-resource__title a:hover { color: var(--cb-brick); text-decoration-color: var(--cb-brick); }
.cbnt-event__meta { margin: 0; color: var(--cb-soft); }
.cbnt-event__time { font-weight: 700; color: var(--cb-ink); margin-right: .75rem; }
.cbnt-event__excerpt { margin: .35rem 0 0; }

/* Library */
.cbnt-library__filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 1rem; align-items: end; background: var(--cb-green); padding: 1.25rem; border-radius: 4px; }
.cbnt-filter label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.cbnt-filter input, .cbnt-filter select, .cbnt-field input, .cbnt-field select, .cbnt-field textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid #6F7772; border-radius: 3px; background: #fff; color: var(--cb-ink); font: 1rem var(--wp--preset--font-family--body); }
/* Fields show focus whether reached by keyboard or click (a date input's later segments only match :focus-within in Chromium) */
.cbnt-filter :is(input, select):focus, .cbnt-field :is(input, select, textarea):focus, .cbnt-field input[type="date"]:focus-within { outline: 3px solid var(--cb-ink); outline-offset: 2px; }
.cbnt-filter input:hover, .cbnt-filter select:hover, .cbnt-field :is(input, select, textarea):hover { border-color: var(--cb-slate); }
.cbnt-filter--actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.cbnt-clear { font-weight: 600; }
.cbnt-library__count { font-weight: 700; margin: 1.5rem 0 .5rem; }
.cbnt-library__list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--cb-rule-strong); }
.cbnt-resource { padding: 1.25rem 0; border-bottom: 1px solid var(--cb-rule); }
.cbnt-resource__meta { margin: 0 0 .2rem; font-size: .9375rem; font-weight: 700; color: var(--cb-river); }
.cbnt-resource__title { font-size: 1.4rem !important; margin: 0 0 .35rem !important; }
.cbnt-resource p { margin: 0 0 .5rem; }
.cbnt-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.cbnt-tags span { font-size: .875rem; font-weight: 600; background: var(--cb-green); color: var(--cb-ink); padding: .1rem .55rem; border-radius: 3px; }

/* Tables: rates and meetings */
.cbnt-rates, .cbnt-meetings { width: 100%; border-collapse: collapse; }
.cbnt-rates caption, .cbnt-meetings caption { text-align: left; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 500; color: var(--cb-slate); padding-bottom: .5rem; }
.cbnt-rates th, .cbnt-rates td, .cbnt-meetings th, .cbnt-meetings td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--cb-rule); vertical-align: top; }
.cbnt-rates thead th, .cbnt-meetings thead th { font-size: .9375rem; font-weight: 700; color: var(--cb-soft); border-bottom: 2px solid var(--cb-rule-strong); }
.cbnt-rates tbody th a { font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; font-weight: 500; color: var(--cb-slate); text-decoration-color: var(--cb-river); }
.cbnt-rates tbody th a:hover { color: var(--cb-brick); text-decoration-color: var(--cb-brick); }
.cbnt-rates tbody th span { display: block; font-weight: 400; color: var(--cb-soft); font-size: .9375rem; }
.cbnt-meetings tbody th { font-weight: 600; }
.cbnt-badge { display: inline-block; margin-left: .4rem; font-size: .875rem; font-weight: 700; color: var(--cb-river); border: 1px solid var(--cb-river); padding: 0 .4rem; border-radius: 3px; }

/* Details on single items */
.cbnt-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem 2rem; margin: 0; padding: 1.25rem 0; border-block: 1px solid var(--cb-rule); }
.cbnt-details dt { font-size: .9375rem; font-weight: 700; color: var(--cb-soft); }
.cbnt-details dd { margin: .2rem 0 0; font-size: 1.125rem; }
.cbnt-details__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* Inquiry form */
.cbnt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.cbnt-field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.cbnt-opt { font-weight: 400; color: var(--cb-soft); }
.cbnt-field--full { grid-column: 1 / -1; }
.cbnt-field textarea { min-height: 120px; }
.cbnt-field [aria-invalid="true"] { border-color: #9B1C1C; border-width: 2px; }
.cbnt-error { color: #9B1C1C; font-weight: 700; margin: .35rem 0 0; font-size: .9375rem; }
.cbnt-success { padding: 1.5rem; background: var(--cb-green); border-left: 4px solid var(--cb-river); border-radius: 3px; }

/* Toast for placeholder links */
.cb-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 999; max-width: calc(100% - 2rem); padding: .75rem 1.1rem; background: var(--cb-ink); color: #fff; border-radius: 4px; font-size: .9375rem; }

@media (max-width: 900px) {
	.cbnt-library__filters { grid-template-columns: 1fr 1fr; }
	.cbnt-filter--search, .cbnt-filter--actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.cbnt-library__filters, .cbnt-form { grid-template-columns: 1fr; }
	.cbnt-event { grid-template-columns: 60px minmax(0, 1fr); gap: 1rem; }
	.cbnt-event__day { font-size: 2.25rem; }
	.cbnt-rates thead, .cbnt-meetings thead { display: none; }
	.cbnt-rates, .cbnt-rates tbody, .cbnt-rates tr, .cbnt-rates th, .cbnt-rates td,
	.cbnt-meetings, .cbnt-meetings tbody, .cbnt-meetings tr, .cbnt-meetings th, .cbnt-meetings td { display: block; width: auto; }
	.cbnt-rates tr, .cbnt-meetings tr { border-bottom: 1px solid var(--cb-rule); padding: .75rem 0; }
	.cbnt-rates th, .cbnt-rates td, .cbnt-meetings th, .cbnt-meetings td { border: 0; padding: .2rem 0; }
	.cbnt-rates caption, .cbnt-meetings caption { display: block; width: auto; }
	.cbnt-rates td[data-label]::before { content: attr(data-label) ": "; color: var(--cb-soft); }
	.is-style-tasks > li { padding-left: 2.25rem; }
}

/* Quote attribution: small and plain, not part of the quote's voice */
.wp-block-quote cite { display: block; margin-top: .9rem; font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: 1rem; font-weight: 600; letter-spacing: .01em; color: var(--cb-soft); }
.cb-back { font-weight: 600; margin-bottom: 1rem !important; }

/* Breathing room before headings that follow content */
.entry-content :is(p, ul, ol, table, figure, .wp-block-group, .cbnt-rates, .cbnt-meetings, .cbnt-note, blockquote) + :is(h2, .wp-block-heading:where(h2)) { margin-top: var(--wp--preset--spacing--60); }
.entry-content :is(p, ul, ol, figure) + h3 { margin-top: var(--wp--preset--spacing--50); }
.wp-block-group.alignwide > h1:first-child { margin-top: 0; }
.cbnt-note + h2, .wp-block-group.is-style-notice + .wp-block-group { margin-top: var(--wp--preset--spacing--50) !important; }
.wp-block-column > .is-style-notice:first-child { margin-top: 6px !important; }

/* Form fields include their padding and border in their width; decorative layers never cause sideways scrolling */
.cbnt-form :is(input, select, textarea), .cbnt-library__filters :is(input, select) { box-sizing: border-box; max-width: 100%; }
html, body { overflow-x: clip; }

/* Phone menu: left-aligned, padded, large tap targets */
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1.25rem, 6vw, 2rem) 2rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 3rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--cb-rule); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a { display: block; width: 100%; font-size: 1.25rem; padding: .9rem 0 !important; border-bottom: 0 !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-donate { border-bottom: 0; margin-top: 1.25rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-donate > a { display: inline-block; width: auto; padding: .8rem 1.5rem !important; }
.wp-block-navigation__responsive-container-close { top: 1.25rem !important; right: clamp(1.25rem, 6vw, 2rem) !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { padding: .5rem; min-width: 44px; min-height: 44px; }

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { justify-content: flex-start !important; text-align: left; }

/* Use the menu button up to 1023px (WordPress's default switch is 600px, which wraps the menu on tablets) */
@media (min-width: 600px) and (max-width: 1023px) {
	.cb-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.cb-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.cb-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; position: fixed; inset: 0; z-index: 100000; }
	.cb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.cb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; }
}

/* ---------- Scroll reveals (only under html.cb-motion, set in <head> when motion is welcome; see site.js) ----------
   Ruled lists draw their top rule left to right; rows and headings rise a little in a short stagger.
   Transform and opacity only, so nothing shifts layout. */
.cb-motion :is(main h2:not(.cb-hero h2), .is-style-directory > li, .cbnt-event, .cb-feature, .cb-pair > .wp-block-column, .cb-program-list > .wp-block-media-text, .cbnt-resource, .cb-quote .wp-block-quote, main .is-style-panel) {
	transition: opacity .7s ease var(--cb-d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--cb-d, 0s);
}
.cb-motion :is(main h2:not(.cb-hero h2), .is-style-directory > li, .cbnt-event, .cb-feature, .cb-pair > .wp-block-column, .cb-program-list > .wp-block-media-text, .cbnt-resource, .cb-quote .wp-block-quote, main .is-style-panel):not(.is-in) { opacity: 0; transform: translateY(18px); }
.cb-motion :is(.is-style-directory, .cbnt-events, .cb-program-list, .cbnt-library__list) { position: relative; border-top-color: transparent; }
.cb-motion :is(.is-style-directory, .cbnt-events, .cb-program-list, .cbnt-library__list)::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--cb-rule-strong); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.cb-motion :is(.is-style-directory, .cbnt-events, .cb-program-list, .cbnt-library__list).is-in::before { transform: scaleX(1); }
