/* Yore Oyster — main stylesheet (2026 rebuild). One file; no !important except where
   legacy inline styles in old posts must be overridden (marked). */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-var.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
	--ink: #15201c;         /* headings */
	--text: #2b3632;        /* body copy */
	--muted: #4d5752;
	--rule: #e1e5df;
	--paper: #ffffff;
	--wash: #f4f6f1;        /* quiet panels */
	--brand: #e0533d;       /* oyster coral — logo + small accents only */
	--brand-strong: #bf3f2a; /* coral that passes AA with white text */
	--accent: #0c5b54;      /* links, buttons */
	--accent-strong: #08433e;
	--accent-wash: #e5f0ed;
	--highlight: #fdf3d6;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 8px;
	--header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must never beat the hidden attribute */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { display: block; }
.brand__name { font: 600 23px/1 var(--serif); letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--wash); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-search { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); padding-left: 14px; }
.site-search input { border: 0; background: transparent; font: inherit; font-size: 14px; width: 150px; padding: 7px 0; color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.site-search button { border: 0; background: transparent; color: var(--muted); padding: 7px 12px 7px 8px; cursor: pointer; display: grid; place-items: center; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--paper); border-radius: 6px; padding: 8px 12px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }

@media (max-width: 1080px) {
	.site-header__inner { gap: 12px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px; box-shadow: 0 12px 24px -16px rgba(21,32,28,.25); }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
	.site-nav a[aria-current="page"] { box-shadow: none; }
	.site-search { order: -1; }
	.site-search input { width: 100%; flex: 1; font-size: 16px; padding: 10px 0; }
}

/* ---------- Shared bits ---------- */
.section-title { font: 600 26px/1.2 var(--serif); margin: 0 0 20px; letter-spacing: -0.01em; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--accent); }
.more-link { font-weight: 600; font-size: 15px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.grid { display: grid; gap: 32px 28px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.chip-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.chip-list a:hover { border-color: var(--accent); color: var(--accent); }
.empty-note { color: var(--muted); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--wash); }
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card__img { transform: scale(1.02); }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__hub { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.card__title { font: 600 20px/1.25 var(--serif); margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.card__excerpt { margin: 0; color: var(--text); font-size: 16px; }
.card__meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.card--row { padding-block: 14px; border-top: 1px solid var(--rule); gap: 4px; }
.card--row:first-child { padding-top: 0; border-top: 0; }
.card--row .card__title { font-size: 18px; }
.card--lead .card__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }

/* ---------- Home ---------- */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; padding-block: 56px 48px; }
.home-intro__title { font: 600 clamp(36px, 5.2vw, 58px)/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
.home-intro__lede { font-size: 19px; color: var(--text); margin: 0 0 24px; max-width: 52ch; }
.home-search { display: flex; gap: 8px; max-width: 560px; }
.home-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.home-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.home-search button, .btn { font: 600 15px var(--sans); background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer; text-decoration: none; display: inline-block; }
.home-search button:hover, .btn:hover { background: var(--accent-strong); color: #fff; }

/* Deposit-stub card: the one "Canada money" detail on the homepage */
.paydate { position: relative; background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px 20px 30px; }
.paydate::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background-image: radial-gradient(circle, var(--rule) 1.5px, transparent 1.6px); background-size: 2px 9px; }
.paydate__label { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.paydate__date { margin: 8px 0 2px; font: 600 34px/1.05 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.paydate__day { display: block; font: 500 17px/1.3 var(--sans); color: var(--text); }
.paydate__count { margin: 0 0 14px; font-weight: 600; color: var(--brand-strong); }
.paydate__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 14.5px; font-weight: 600; }
.paydate__links a { text-decoration: none; }
.paydate__links a:hover { text-decoration: underline; }

.home-top { padding-block: 24px 40px; }
.home-top__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
.hub-band { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; padding-block: 40px; border-top: 1px solid var(--rule); }
.hub-band__head .section-title { margin-bottom: 8px; }
.hub-band__blurb { margin: 0 0 14px; color: var(--muted); }
.hub-band__posts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.trust { padding-block: 48px 64px; border-top: 1px solid var(--rule); }
.trust__item h3 { font: 600 20px/1.25 var(--serif); margin: 0 0 8px; }
.trust__item p { margin: 0 0 10px; }

@media (max-width: 900px) {
	.home-intro { grid-template-columns: 1fr; padding-block: 36px 28px; gap: 28px; }
	.home-top__grid, .hub-band, .hub-band__posts { grid-template-columns: 1fr; gap: 24px; }
	.hub-band { padding-block: 32px; }
}

/* ---------- Hub / archive ---------- */
.hub-head { padding-block: 40px 28px; }
.hub-head__title { font: 600 clamp(32px, 4.5vw, 48px)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.hub-head__intro { font-size: 18px; max-width: 64ch; }
.hub-head__intro p { margin: 0 0 10px; }
.hub-head__note { display: inline-block; margin: 8px 0 0; background: var(--wash); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; font-size: 15px; }
.hub-head .home-search { margin-top: 16px; }
.hub-start { padding-block: 8px 40px; }
.hub-all { padding-block: 24px 64px; }
.hub-start + .hub-all { border-top: 1px solid var(--rule); padding-top: 40px; }
.pagination, .pager { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers.dots { border: 0; }

/* ---------- Article ---------- */
.article__head { max-width: calc(1100px + 2 * var(--gutter)); padding-block: 32px 8px; }
.article__head > * { max-width: 760px; }
.article__title { font: 600 clamp(32px, 4.4vw, 48px)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 14px; }
.article__dek { font-size: 20px; line-height: 1.5; color: var(--text); margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.byline__img { border-radius: 50%; display: block; }
.byline__text { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 14.5px; color: var(--muted); }
.byline__text a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline__text a:hover { text-decoration: underline; }
.byline__text span + span::before { content: "·"; margin-right: 14px; }
@media (max-width: 600px) { .byline__text { gap: 2px 12px; } .byline__text span + span::before { content: none; } }
.disclosure { font-size: 13.5px; color: var(--muted); margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.disclosure a { color: var(--muted); }

.article__layout { max-width: calc(1100px + 2 * var(--gutter)); display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; padding-block: 28px 48px; }
.article__hero { margin: 0 0 28px; }
.article__hero img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article__aside { min-width: 0; }
.article__aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }

.toc__label { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); max-height: 50vh; overflow-y: auto; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
.toc-mobile summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink); }
.toc-mobile .toc { padding: 0 16px 12px; }
.toc-mobile .toc__label { display: none; }

@media (max-width: 1000px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.article__aside .toc { display: none; }
	.article__aside-sticky { position: static; }
	.toc-mobile { display: block; }
}

/* Offer card (Yore Offers plugin markup) */
.yo-offer { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 12px 28px -22px rgba(21,32,28,.35); }
.yo-offer__eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.yo-offer__logo { display: block; max-height: 32px; width: auto; margin-bottom: 10px; }
.yo-offer__brand { margin: 0; font-weight: 600; color: var(--ink); }
.yo-offer__headline { margin: 4px 0 12px; font: 600 22px/1.2 var(--serif); color: var(--ink); }
.yo-offer__bullets { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.yo-offer__bullets li { position: relative; padding-left: 24px; }
.yo-offer__bullets li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.yo-offer__cta { display: block; text-align: center; background: var(--brand-strong); color: #fff; font-weight: 600; text-decoration: none; border-radius: 8px; padding: 12px 16px; }
.yo-offer__cta:hover { background: #a2331f; color: #fff; }
.yo-offer__fine { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.yo-offer--after_content { margin: 40px 0 0; }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 20px; border-radius: var(--radius); background: var(--wash); }
.author-box__img { border-radius: 50%; flex-shrink: 0; }
.author-box__name { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.author-box__bio { margin: 0 0 8px; font-size: 15px; }
.author-box__links { margin: 0; font-size: 14px; }
.related { padding-block: 40px 64px; border-top: 1px solid var(--rule); }

/* ---------- Prose (article bodies, incl. legacy content) ---------- */
.prose { font-size: 19px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.1em; }
.prose h2 { font: 600 clamp(26px, 3vw, 31px)/1.2 var(--serif); letter-spacing: -0.01em; margin: 2em 0 .6em; }
.prose h3 { font: 650 21px/1.3 var(--sans); margin: 1.7em 0 .5em; }
.prose h4, .prose h5:not(.buttonsmall), .prose h6 { font: 600 18px/1.35 var(--sans); margin: 1.5em 0 .4em; }
.prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 4px; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: left; }
.prose :where(img, iframe, video, figure, div, p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote) { max-width: 100%; }
.prose [style*="width"]:not(table):not(td):not(th) { max-width: 100% !important; } /* legacy inline widths */
.prose .aligncenter { margin-inline: auto; display: block; }
.prose .wp-block-embed iframe, .prose iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose code { font-size: .9em; background: var(--wash); padding: .1em .35em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--wash); padding: 16px; border-radius: 6px; font-size: 15px; }

/* Tables: scroll inside their own box on phones */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--rule); border-radius: 6px; }
.prose figure.wp-block-table { margin: 0 0 1.4em; }
.prose figure.wp-block-table .table-scroll { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; font-variant-numeric: tabular-nums; margin: 0; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; min-width: 110px; }
.prose tr:last-child > td { border-bottom: 0; }
.prose thead th, .prose table:not(:has(thead)) tr:first-child > td { background: var(--wash); color: var(--ink); font-weight: 600; }
.prose table.is-style-stripes tbody tr:nth-child(odd) { background: #fafbf8; }
.prose .has-text-align-center { text-align: center; }

/* Legacy highlight boxes and buttons in old posts */
.prose .section.dark { background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 1.4em; }
.prose .section.dark > :last-child { margin-bottom: 0; }
.prose h5.buttonsmall, .prose .wp-block-button__link { display: inline-block; margin: .4em 0; background: var(--accent); color: #fff !important; /* legacy inline colors */ font: 600 15px/1.2 var(--sans); letter-spacing: .02em; padding: 12px 20px; border-radius: 8px; text-decoration: none; }
.prose a:hover h5.buttonsmall, .prose .wp-block-button__link:hover { background: var(--accent-strong); }
.prose a:has(h5.buttonsmall) { text-decoration: none; }
.prose .rank-math-faq-item { border-top: 1px solid var(--rule); padding-top: 12px; }
.prose .rank-math-question { font: 650 19px/1.35 var(--sans); margin: 0 0 6px; }

/* ---------- Page / 404 ---------- */
.page-article { padding-block: 36px 64px; }
.notfound { padding-block: 64px 96px; }
.notfound__code { font: 600 15px var(--sans); letter-spacing: .1em; color: var(--brand-strong); margin: 0 0 8px; }
.notfound .home-search { margin: 20px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2ce; font-size: 15px; margin-top: 24px; }
.site-footer a { color: #e9efec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.brand--footer .brand__name { color: #fff; font-size: 24px; }
.site-footer__about p { max-width: 36ch; margin: 12px 0 0; }
.site-footer__h { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa19a; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px 32px; font-size: 13.5px; color: #93a39c; }
.site-footer__legal p { margin: 0 0 8px; max-width: 110ch; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .article__aside, .toc-mobile, .disclosure, .related { display: none; } }

/* ---------- Benefit payment calendar (Yore Benefits plugin, .ybn-*) ---------- */
.ybn-muted { color: var(--muted); }
.ybn-small { font-size: 13.5px; margin: 8px 0 0; }
.ybn-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--sans); background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer; text-decoration: none; }
.ybn-btn:hover { background: var(--accent-strong); color: #fff; }
.ybn-link { font-weight: 600; font-size: 15px; }
.ybn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2e9b62; box-shadow: 0 0 0 3px rgba(46,155,98,.18); margin-right: 8px; vertical-align: 1px; }

.ybn-next__label { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ybn-next__date { margin: 6px 0 2px; font: 600 30px/1.1 var(--serif); color: var(--ink); }
.ybn-next__date--tbd { font-size: 22px; }
.ybn-next__count { margin: 0; font-weight: 600; color: var(--brand-strong); }

/* Panel at the top of a benefit page */
.ybn-panel { margin: 0 0 36px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-size: 16px; line-height: 1.5; }
.ybn-panel__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.ybn-panel__next { position: relative; padding: 22px 24px 22px 32px; background: var(--wash); border-radius: var(--radius) 0 0 0; }
.ybn-panel__next::before { content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 2px; background-image: radial-gradient(circle, #cfd6cf 1.5px, transparent 1.6px); background-size: 2px 9px; }
.ybn-panel__rule { margin: 12px 0 0; font-size: 14.5px; color: var(--text); }
.ybn-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; }
.ybn-panel__amounts { padding: 22px 24px; border-left: 1px solid var(--rule); }
.ybn-amounts { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ybn-amounts th, .ybn-amounts td { padding: 8px 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: 15px; vertical-align: top; }
.ybn-amounts th { font-weight: 500; color: var(--text); padding-right: 12px; }
.ybn-amounts td { text-align: right; font-weight: 650; color: var(--ink); white-space: nowrap; }
.ybn-amounts tr:last-child > * { border-bottom: 0; }
.ybn-year { padding: 18px 24px; border-top: 1px solid var(--rule); }
.ybn-year__h { margin: 0 0 12px; font-weight: 650; color: var(--ink); }
.ybn-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ybn-dates__d { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border: 1px solid var(--rule); border-radius: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.ybn-dates__m { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ybn-dates__n { font: 600 22px/1.1 var(--serif); color: var(--ink); }
.ybn-dates__w { font-size: 12px; color: var(--muted); }
.ybn-dates__d.is-past { opacity: .45; }
.ybn-dates__d.is-next { border-color: var(--brand-strong); background: #fdf0ec; box-shadow: inset 0 0 0 1px var(--brand-strong); }
.ybn-late { padding: 14px 24px; border-top: 1px solid var(--rule); }
.ybn-late summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ybn-late p { margin: 10px 0 0; }
.ybn-sources { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.ybn-sources a { color: var(--muted); }
.ybn-panel .ybn-sources { border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
	.ybn-panel__top { grid-template-columns: 1fr; }
	.ybn-panel__next { border-radius: var(--radius) var(--radius) 0 0; }
	.ybn-panel__amounts { border-left: 0; border-top: 1px solid var(--rule); }
	.ybn-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ybn-panel__next, .ybn-panel__amounts, .ybn-year, .ybn-late, .ybn-sources { padding-inline: 18px; }
	.ybn-panel__next { padding-left: 26px; }
}

/* Subscribe menu */
.ybn-sub { position: relative; display: inline-block; }
.ybn-sub__toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.ybn-sub__menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 16px 32px -18px rgba(21,32,28,.4); padding: 6px; }
.ybn-sub__menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.ybn-sub__menu a:hover { background: var(--wash); }
.ybn-sub__note { margin: 4px 12px 6px; font-size: 12.5px; color: var(--muted); }

/* Upcoming list */
.ybn-upcoming { list-style: none; margin: 0; padding: 0; }
.ybn-upcoming__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.ybn-upcoming__row:first-child { border-top: 0; }
.ybn-upcoming__date { display: grid; justify-items: center; line-height: 1.05; padding: 6px 0; border-radius: 6px; background: var(--wash); font-variant-numeric: tabular-nums; }
.ybn-upcoming__m { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ybn-upcoming__d { font: 600 21px/1.1 var(--serif); color: var(--ink); }
.ybn-upcoming__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.ybn-upcoming__name:hover { color: var(--accent); text-decoration: underline; }
.ybn-upcoming__in { font-size: 14px; color: var(--muted); white-space: nowrap; }
.ybn-upcoming__month { padding: 22px 0 6px; font: 600 19px/1.2 var(--serif); color: var(--ink); border-top: 0; }
.ybn-upcoming__month + .ybn-upcoming__row { border-top: 0; }

/* The calendar tool */
.ybn-cal { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.ybn-cal__pick { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; padding: 20px; background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius); }
.ybn-cal__field label, .ybn-cal__benefits legend { display: block; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.ybn-cal__field select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.ybn-cal__benefits { border: 0; margin: 0; padding: 0; min-width: 0; }
.ybn-cal__benefits legend .ybn-muted { font-weight: 400; font-size: 14px; }
.ybn-cal__group { margin-top: 12px; }
.ybn-cal__glabel { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ybn-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-size: 14.5px; cursor: pointer; user-select: none; }
.ybn-chip input { accent-color: var(--accent); margin: 0; }
.ybn-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-strong); font-weight: 600; }
.ybn-cal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ybn-cal__title { font: 600 26px/1.2 var(--serif); margin: 0; color: var(--ink); }
.ybn-cal .ybn-sources { padding: 14px 0 0; border: 0; }
.ybn-dir { margin-top: 56px; }
.ybn-dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 18px; }
.ybn-dir__card { padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); }
.ybn-dir__where { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ybn-dir__name { margin: 0 0 6px; font: 600 18px/1.3 var(--serif); }
.ybn-dir__name a { color: var(--ink); text-decoration: none; }
.ybn-dir__name a:hover { color: var(--accent); text-decoration: underline; }
.ybn-dir__next { margin: 0; font-size: 14.5px; color: var(--text); }
@media (max-width: 900px) { .ybn-cal { grid-template-columns: 1fr; gap: 24px; } .ybn-cal__pick { position: static; } }

/* ---------- Benefits-first homepage (bh-*) ---------- */
.btn--lg { font-size: 17px; padding: 15px 24px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.bh-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 52px 40px; }
.bh-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); }
.bh-hero__title { font: 600 clamp(40px, 6vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 0 18px; }
.bh-hero__lede { font-size: 19px; line-height: 1.55; margin: 0 0 26px; max-width: 54ch; }
.bh-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0; }
.bh-checked { font-size: 14px; color: var(--muted); }
.bh-hero__next { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 0 var(--rule), 0 18px 36px -26px rgba(21,32,28,.35); }
.bh-hero__next .ybn-upcoming { margin: 10px 0 14px; }
.bh-tiles { padding-block: 16px 40px; }
.bh-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.bh-tile { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.bh-tile:hover { border-color: var(--accent); box-shadow: 0 10px 24px -20px rgba(12,91,84,.6); color: var(--text); }
.bh-tile__name { font: 600 22px/1.15 var(--serif); color: var(--ink); }
.bh-tile__full { font-size: 13.5px; color: var(--muted); }
.bh-tile__next { margin-top: 8px; font-size: 14.5px; }
.bh-tile__next strong { color: var(--ink); }
.bh-situations { padding-block: 32px 40px; border-top: 1px solid var(--rule); }
.bh-situation { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--wash); border: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.bh-situation:hover { border-color: var(--accent); color: var(--text); }
.bh-situation__h { font: 600 20px/1.2 var(--serif); color: var(--ink); }
.bh-situation__p { font-size: 15px; }
.bh-guides { padding-block: 40px; border-top: 1px solid var(--rule); }
.bh-guides__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.bh-guides__head .section-title { margin: 0; }
.bh-more { padding-block: 8px 48px; }
.bh-more__h { font: 600 15px var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.cal-page { padding-block: 8px 72px; }
@media (max-width: 900px) { .bh-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 24px; } }

/* "More topics" in the header */
.site-nav__more details { position: relative; }
.site-nav__more summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.site-nav__more summary::-webkit-details-marker { display: none; }
.site-nav__more summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.site-nav__more summary:hover { background: var(--wash); }
.site-nav__more details > ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none; display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 16px 32px -18px rgba(21,32,28,.4); }
@media (max-width: 1080px) {
	.site-nav__more details > ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
	.site-nav__more summary { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
}

/* ---------- Readability for older readers ---------- */
/* Nothing smaller than 14px; bigger tap targets. */
.card__meta, .crumbs ol, .disclosure, .byline__text, .ybn-sources, .ybn-small, .toc a, .site-footer__legal { font-size: max(14px, 1em * .82); }
.ybn-next__label, .paydate__label, .toc__label, .card__hub, .ybn-dates__m, .ybn-dir__where, .ybn-cal__glabel, .ybn-upcoming__m, .bh-kicker { font-size: 14px; letter-spacing: .05em; }
.ybn-upcoming__in, .ybn-dir__next, .bh-tile__full { font-size: 15.5px; }
.btn, .ybn-btn, .home-search button, .nav-toggle, .ybn-chip { min-height: 48px; }
.ybn-chip { font-size: 16px; padding: 10px 14px; }
.ybn-tel { font-weight: 700; white-space: nowrap; }
/* Text-size control: A / A+ / A++ (remembered per device) */
.textsize { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.textsize button { font: 600 15px/1 var(--sans); background: var(--paper); color: var(--ink); border: 0; border-left: 1px solid var(--rule); min-width: 40px; min-height: 40px; cursor: pointer; }
.textsize button:first-child { border-left: 0; }
.textsize button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.textsize button:nth-child(2) { font-size: 17px; } .textsize button:nth-child(3) { font-size: 19px; }
html[data-textsize="1"] body { zoom: 1.12; }
html[data-textsize="2"] body { zoom: 1.25; }
.ybn-notgov { margin: 16px 0 0; padding: 12px 16px; background: var(--wash); border-radius: 8px; font-size: 16px; }
/* Calendar actions: print + share */
.ybn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ybn-btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.ybn-btn--ghost:hover { background: var(--wash); color: var(--ink); }
@media print {
	body { zoom: 1 !important; font-size: 14pt; }
	.site-header, .site-footer, .ybn-cal__pick, .ybn-actions, .ybn-sub, .ybn-dir, .hub-head .hub-head__intro, .crumbs, .skip { display: none !important; }
	.ybn-cal { display: block; }
	.ybn-upcoming__row { break-inside: avoid; padding: 6px 0; }
	.ybn-upcoming__row[hidden], .ybn-upcoming__month[hidden] { display: none !important; }
	.ybn-print-title { display: block !important; font: 600 22pt Georgia, serif; margin: 0 0 8pt; }
}
.ybn-print-title { display: none; }

.ybn-cal__hint { margin: 4px 0 8px; color: var(--muted); font-size: 16px; }
/* Phones: text-size control moves into the menu panel so the header fits. */
.site-nav .textsize { display: none; }
@media (max-width: 600px) {
	.site-header__inner > .textsize { display: none; }
	.site-nav.is-open .textsize { display: inline-flex; align-self: flex-start; }
	.brand__name { font-size: 21px; }
}

/* Homepage = calendar; expandable rows with amounts */
.bh-hero--tool { display: block; padding-block: 40px 20px; }
.bh-hero--tool .bh-hero__lede { max-width: 70ch; margin-bottom: 10px; }
.ybn-upcoming__row--x { display: block; padding: 0; }
.ybn-upcoming__row--x summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; list-style: none; }
.ybn-upcoming__row--x summary::-webkit-details-marker { display: none; }
.ybn-upcoming__row--x summary:hover .ybn-upcoming__name { color: var(--accent); text-decoration: underline; }
.ybn-upcoming__main { display: grid; gap: 2px; min-width: 0; }
.ybn-upcoming__amt { font-size: 15.5px; color: var(--text); }
.ybn-upcoming__in::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.ybn-upcoming__row--x details[open] .ybn-upcoming__in::after { transform: rotate(-135deg) translateY(-1px); }
.ybn-upcoming__body { padding: 4px 0 18px 66px; }
.ybn-facts { display: grid; gap: 14px; padding: 16px 18px; background: var(--wash); border-radius: 8px; font-size: 16.5px; }
.ybn-facts__h { margin: 0 0 4px; font-weight: 650; color: var(--ink); }
.ybn-facts p { margin: 0; }
.ybn-facts__amounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ybn-facts__amounts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.ybn-facts__amounts strong { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.ybn-facts__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-weight: 600; }
.ybn-btn--sm { min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.ybn-dir__amt { margin: 6px 0 0; font-weight: 650; color: var(--ink); font-size: 15.5px; }
@media (max-width: 600px) { .ybn-upcoming__body { padding-left: 0; } }

/* Picker fold + directory fold */
.ybn-cal__more-sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--paper); color: var(--accent-strong); font-weight: 650; }
.ybn-cal__more-sum::-webkit-details-marker { display: none; }
.ybn-cal__more-sum::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.ybn-cal__more[open] > .ybn-cal__more-sum::after { transform: rotate(-135deg); }
.ybn-cal__more[open] > .ybn-cal__more-sum { margin-bottom: 14px; }
@media (min-width: 901px) { .ybn-cal__more > .ybn-cal__more-sum { display: none; } }
.ybn-dir__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ybn-dir__sum::-webkit-details-marker { display: none; }
.ybn-dir__sum::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; }
.ybn-dir[open] .ybn-dir__sum::after { transform: rotate(-135deg); }

/* ---------- Homepage opening ---------- */
.hp-top { background: linear-gradient(180deg, var(--wash) 0%, #eef3ee 100%); border-bottom: 1px solid var(--rule); }
.hp-top__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px 44px; }
.hp-top__title { font: 600 clamp(40px, 5.6vw, 62px)/1.03 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; }
.hp-top__lede { font-size: 19px; line-height: 1.55; margin: 0 0 24px; max-width: 56ch; }
.hp-top__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.hp-board { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px 16px; box-shadow: 0 1px 0 var(--rule), 0 24px 44px -30px rgba(21,32,28,.45); }
.hp-board__h { margin: 0 0 6px; font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hp-board__list { list-style: none; margin: 0 0 12px; padding: 0; }
.hp-board__day { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.hp-board__day:first-child { border-top: 0; }
.hp-board__day:first-child .hp-board__date { background: var(--ink); color: #fff; }
.hp-board__day:first-child .hp-board__wd { color: #c9d2ce; }
.hp-board__date { display: grid; justify-items: center; padding: 6px 4px; border-radius: 8px; background: var(--wash); color: var(--ink); line-height: 1.1; }
.hp-board__wd { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hp-board__md { font: 600 20px/1.1 var(--serif); white-space: nowrap; }
.hp-board__what { font-weight: 650; color: var(--ink); font-size: 17px; }
.hp-board__what a { color: var(--ink); text-decoration: none; }
.hp-board__what a:hover { color: var(--accent); text-decoration: underline; }
.hp-board__in { font-size: 15px; color: var(--brand-strong); font-weight: 650; white-space: nowrap; }
.hp-news { padding-block: 28px 8px; }
.hp-news__h { margin: 0 0 12px; font: 600 22px/1.2 var(--serif); }
.hp-news__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.hp-news__item { padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: 8px; font-size: 16.5px; line-height: 1.45; }
.hp-news__item a { color: var(--ink); text-decoration: none; }
.hp-news__item a:hover { color: var(--accent); text-decoration: underline; }
.hp-news__when { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-strong); }
.hp-cal-title { margin: 12px 0 18px; font-size: 30px; }
@media (max-width: 900px) { .hp-top__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; } }
