/* PTTK Inowrocław 0.6 — visual layer matching the approved mockups.
   Loaded after main/responsive/layout.css. Fonts are bundled (SIL OFL 1.1, see assets/fonts);
   Barlow, PTTK Serif and Caveat are declared in theme.json (front end + editor), Barlow Condensed here. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--forest: #0b4f36;
	--forest-dark: #0a3a2a;
	--forest-deep: #0f3a2d;
	--ink: #1d2e27;
	--muted: #4f5d56;
	--leaf: #e8f2ec;
	--mint: #eef6f1;
	--line: #dbe5df;
	--red: #c3172c;
	--red-dark: #9d1023;
	--font-serif: "PTTK Serif", Georgia, "Times New Roman", serif;
	--font-sans: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
	--font-cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
	--font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
	--card-shadow: 0 1px 2px rgb(10 58 42 / .06), 0 4px 14px rgb(10 58 42 / .07);
}

body { font-family: var(--font-sans); font-size: 1.0625rem; color: var(--ink); }
h1, h2, h3, .footer-title strong { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.005em; color: var(--forest-dark); }
.entry-content blockquote { font-family: var(--font-serif); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Shared icon sizing */
.icon, .button-icon, .link-icon, .heading-icon, .tile-icon, .navigation-icon, .footer-icon, .card-arrow, .tile-arrow { display: inline-block; flex: 0 0 auto; width: 1.1em; height: 1.1em; }
.button-icon, .link-icon { width: 1.05em; height: 1.05em; }

/* Buttons */
.button { gap: 10px; border-radius: 4px; font-family: var(--font-cond); font-size: .98rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 10px 20px; min-height: 46px; }
.button .icon { width: 1.25em; height: 1.25em; }
.text-link { gap: 10px; font-family: var(--font-cond); font-weight: 700; letter-spacing: .03em; color: var(--forest); }
.text-link .link-icon { width: 1.25em; height: 1.25em; }
.wide-only { display: inline; }

/* ---------- Top strip ---------- */
.contact-strip { background: var(--forest-dark); }
.contact-strip-inner { width: min(1360px, calc(100% - 40px)); gap: 4px 28px; }
.contact-strip a { gap: 8px; font-size: .86rem; min-height: 38px; }
.contact-strip a .icon { width: 1.1rem; height: 1.1rem; }
.strip-hours { gap: 18px; }
.strip-hours-row span { margin-right: 8px; }
.strip-tools { display: flex; align-items: center; gap: 14px; }
.contact-strip .social-icons a { min-height: 0; width: 28px; height: 28px; }
.contact-strip .social-icons-brand .social-youtube { width: 36px; }
.strip-tools .social-icons { padding-right: 14px; border-right: 1px solid #ffffff4d; }
.strip-search { position: relative; }
.strip-search summary { display: grid; place-items: center; width: 38px; height: 38px; cursor: pointer; list-style: none; color: #fff; }
.strip-search summary::-webkit-details-marker { display: none; }
.strip-search summary .icon { width: 1.2rem; height: 1.2rem; }
.strip-search .search-form { position: absolute; z-index: 60; top: 100%; right: 0; width: min(340px, 90vw); padding: 10px; background: #fff; border-radius: 6px; box-shadow: 0 14px 30px #0a302533; }

/* Social icons */
.social-icons { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; text-decoration: none; }
.social-icons .icon { width: 22px; height: 22px; }
.social-icons-brand .social-facebook { background: #1877f2; color: #fff; }
.social-icons-brand .social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.social-icons-brand .social-youtube { background: #ff0000; color: #fff; width: 38px; }
.social-icons-plain a { width: 40px; height: 40px; color: #fff; }
.social-icons-plain .icon { width: 30px; height: 30px; }
.social-icons a:hover { filter: brightness(1.1); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.custom-logo { width: 74px; height: 74px; }
.brand { gap: 12px; }
.brand-name { color: var(--forest); }
.brand-name span { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: .01em; line-height: .9; }
.brand-name strong { font-family: var(--font-cond); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .02em; margin-top: 5px; color: var(--forest-dark); }
.brand-signature { font-family: var(--font-hand); font-style: normal; font-size: 1.02rem; line-height: 1.02; color: var(--forest-dark); margin-left: 10px; transform: rotate(-8deg); }
.primary-menu a { font-family: var(--font-sans); font-weight: 600; color: var(--forest-dark); }
.membership-button { gap: 10px; background: var(--red); border-color: var(--red); border-radius: 4px; box-shadow: 0 2px 6px #c3172c40; }
.membership-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.menu-toggle { color: var(--forest); background: transparent; }
.menu-toggle .icon, .menu-toggle svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }

@media (min-width: 1101px) {
	.header-layout .header-main { padding-block: 10px; }
	.header-layout .primary-menu { gap: 2px 16px; }
	.header-layout .primary-menu a { font-size: .9rem; }
	.navigation-search { display: none; }
	.membership-button { padding-inline: 18px; font-size: .95rem; }
	.navigation-icon, .primary-menu > .mobile-home { display: none; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
	.header-layout .primary-menu { gap: 2px 10px; }
	.header-layout .primary-menu a { font-size: .84rem; }
	.custom-logo { width: 60px; height: 60px; }
	.brand-name span { font-size: 2rem; }
	.strip-hours { display: none; }
}
@media (min-width: 1480px) { .brand-signature { display: block; } }
@media (min-width: 1101px) and (max-width: 1219px) {
	.header-layout { gap: 12px; }
	.header-layout .primary-menu { gap: 2px 7px !important; }
	.header-layout .primary-menu a { font-size: .8rem !important; }
	.header-layout .submenu-toggle { min-width: 15px; }
	.custom-logo { width: 50px; height: 50px; }
	.brand-name span { font-size: 1.75rem; }
	.brand-name strong { font-size: .68rem; }
	.membership-button { padding-inline: 10px; font-size: .82rem; gap: 6px; }
	.membership-button .icon { display: none; }
}
@media (min-width: 1101px) and (max-width: 1479px) {
	.brand-signature { display: none; }
	.header-layout .primary-menu { gap: 2px 12px; }
}

/* ---------- Hero ---------- */
.hero:has(.hero-illustration) h1 { color: var(--forest-dark); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.04; margin-bottom: 0; }
.hero:has(.hero-illustration) .hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 500; color: var(--forest-dark); }
.hero:has(.hero-illustration) .button-light { background: var(--forest); border-color: var(--forest); color: #fff; }
.hero:has(.hero-illustration) .button-light:hover { background: var(--forest-dark); }
.hero:has(.hero-illustration) .button-outline { background: #fffffff2; color: var(--forest-dark); border: 1px solid var(--forest); }
.hero:has(.hero-illustration) .button-outline:hover { background: #fff; }
.hero-signature { font-family: var(--font-hand); font-style: normal; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1; color: var(--forest-dark); right: 4%; top: 9%; transform: rotate(-12deg); text-align: center; }
.hero-signature::after, .footer-motto::after, .regional-signature::after, .menu-signature::after { content: ""; display: block; width: 120px; max-width: 80%; height: 22px; margin: 4px 0 0 auto; background: url("../images/brush.svg") no-repeat center / contain; clip-path: none; transform: none; }
.hero-caption { position: absolute; right: 0; bottom: 18px; margin: 0; padding: 7px 14px 7px 18px; background: #0a2e22d9; color: #fff; font-size: .84rem; font-weight: 600; border-radius: 6px 0 0 6px; }

/* ---------- Quick links ---------- */
.quick-links { padding-block: 14px 8px; }
.quick-grid { gap: 16px; }
.quick-card { background: linear-gradient(180deg, #fff 55%, #f2f6f4); border-radius: 8px; box-shadow: var(--card-shadow); border: 1px solid #e6ece8; transition: transform .18s ease, box-shadow .18s ease; }
.quick-card:hover { background: linear-gradient(180deg, #fff 55%, #eaf3ee); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(10 58 42 / .08), 0 10px 22px rgb(10 58 42 / .12); }
.quick-media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--leaf); }
.quick-media-empty { background: linear-gradient(180deg, #2c6a50, #0f3a2d 85%); }
.quick-media-empty::before { content: ""; position: absolute; inset: 20% 0 0; background: url("../images/panorama.svg") no-repeat center bottom / cover; opacity: .9; }
.quick-media .quick-image { height: 100%; aspect-ratio: auto; clip-path: none; }
.quick-media::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 34%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 18C90 8 170 18 250 34s110 24 150 26V60H0z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }
.quick-copy { padding: 26px 18px 14px; }
.quick-card:not(:has(.quick-image)) .quick-icon { position: absolute; margin: 0; }
.quick-icon { left: 16px; top: -40px; width: 62px; height: 62px; border: 3px solid #fff; background: var(--forest); box-shadow: 0 3px 8px #0a3a2a40; z-index: 1; }
.quick-icon .tile-icon { width: 32px; height: 32px; }
.quick-copy h2 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: .01em; color: var(--forest-dark); }
.quick-copy p { font-size: .95rem; color: #34433c; line-height: 1.45; }
.quick-copy .card-arrow { width: 22px; height: 22px; color: var(--forest-dark); }

/* ---------- Section headings ---------- */
.illustrated-heading { gap: 14px; font-size: clamp(1.55rem, 2.3vw, 1.95rem); line-height: 1.15; }
.illustrated-heading .heading-icon { width: 38px; height: 38px; color: var(--forest); }
#main:has(.hero) .section { padding-block: clamp(18px, 2vw, 28px); }
#main:has(.hero) .section-heading { margin-bottom: 16px; }
.home-news .section-heading .text-link, .home-offer .section-heading .text-link, .home-events .section-heading .text-link { font-size: .9rem; text-transform: uppercase; }

/* ---------- News cards ---------- */
#main:has(.hero) .post-card, .post-card { background: #fff; border: 1px solid #e3e9e5; border-radius: 8px; box-shadow: var(--card-shadow); }
.home-news .card-image { aspect-ratio: 2.1 / 1; }
.home-news .post-meta { font-size: .78rem; font-weight: 500; color: #34433c; border-radius: 4px; padding: 3px 8px; box-shadow: 0 1px 3px #0003; }
.home-news .post-card:has(.card-image-link) .post-meta { margin-top: -30px; }
.home-news .post-card h3, .post-card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--forest-dark); }
.post-card h3 a { color: inherit; }
.card-body > p { font-size: .93rem; color: #3d4b44; line-height: 1.45; }
.card-category { background: #dcefe4; color: var(--forest); font-family: var(--font-cond); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; }
.home-news .card-actions .text-link { font-size: 1rem; color: var(--forest-dark); }

/* ---------- Events (visible after the calendar adapter is added) ---------- */
.event-media { position: relative; }
.event-media .card-image { aspect-ratio: 2.4 / 1; }
.event-date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 58px; padding: 6px 8px 5px; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px #0003; font-family: var(--font-cond); font-weight: 700; font-size: .9rem; text-transform: uppercase; color: var(--forest-dark); line-height: 1; }
.event-date span:first-child { font-size: 1.9rem; margin-bottom: 2px; }
.event-card .card-actions { display: flex; align-items: center; gap: 12px; }
.event-place { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #34433c; }
.event-card .card-actions .text-link { margin-left: auto; font-size: 1.2rem; }

/* ---------- Offer tiles ---------- */
.offer-grid .tile { background: var(--mint); border: 1px solid #dceae2; border-radius: 6px; color: var(--forest-dark); font-weight: 600; font-size: .98rem; line-height: 1.2; padding: 18px 10px; min-height: 118px; gap: 12px; }
.offer-grid .tile:hover { background: #e1efe7; border-color: var(--forest); }
.offer-grid .tile-icon { width: 42px; height: 42px; color: var(--forest); }

/* ---------- Organization + Sejmik ---------- */
.home-organization { gap: 30px; padding-top: 10px; }
.organization .illustrated-heading { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.organization-intro { margin: 4px 0 0 52px; font-size: 1.02rem; color: #34433c; }
.organization-grid { gap: 10px; }
.organization-grid .tile { min-height: 48px; padding: 9px 14px; gap: 14px; background: #fff; border-color: #dfe7e2; box-shadow: 0 1px 3px #0a3a2a12; font-weight: 500; font-size: .95rem; color: var(--ink); }
.organization-grid .tile-icon { width: 24px; height: 24px; color: var(--forest); }
.organization-grid .tile:hover { border-color: var(--forest); background: var(--mint); }
.feature-sejmik { border-radius: 8px; }
.home-organization .feature-sejmik:has(> .card-image)::before { background: linear-gradient(90deg, #1a120cdd 0%, #1a120ca8 52%, #1a120c33); }
.feature-sejmik h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.feature-sejmik .feature-copy > p { font-size: 1.12rem; color: #f2efe9; }
.feature-sejmik .button { background: var(--forest); border-color: #ffffffb3; }
.feature-sejmik .button:hover { background: var(--forest-dark); }

/* ---------- Regional strip ---------- */
.regional-strip { position: relative; background: #fff; border: 0; padding-bottom: clamp(46px, 6vw, 84px); }
.regional-strip-inner { grid-template-columns: minmax(0, 1fr) auto; }
.regional-mark { color: var(--ink); font-weight: 600; }
.regional-mark img { max-width: 64px; height: 54px; }
.regional-signature, .menu-signature { font-family: var(--font-hand); font-style: normal; font-weight: 600; font-size: 1.35rem; line-height: 1.05; color: #3a4842; transform: rotate(-6deg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 0; padding-top: 34px; background: linear-gradient(180deg, #0f3a2d 0%, #12402f 55%, #0b3125 100%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: clamp(60px, 9vw, 120px); background: url("../images/forest-edge.svg") no-repeat right bottom / cover; pointer-events: none; }
.site-footer::after { content: ""; position: absolute; inset: auto 0 0; height: 190px; background: url("../images/las.svg") repeat-x center bottom / 720px 192px; opacity: .55; pointer-events: none; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-brand { gap: 6px 14px; }
.footer-brand .footer-logo { width: 72px; height: 72px; }
.footer-title strong { color: #fff; font-family: var(--font-cond); font-size: 2.4rem; }
.footer-title span { font-family: var(--font-cond); font-size: .82rem; letter-spacing: .02em; }
.footer-signature, .footer-motto { font-family: var(--font-hand); font-style: normal; font-weight: 600; color: #fff; }
.footer-signature { font-size: 1.45rem; transform: rotate(-4deg); transform-origin: left; }
.footer-motto { font-size: 1.75rem; line-height: 1; transform: rotate(-12deg); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 38px; }
.footer-col { display: flex; align-items: flex-start; gap: 12px; font-style: normal; font-size: .95rem; line-height: 1.5; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-icon { width: 20px; height: 20px; margin-top: 2px; color: #fff; }
.footer-address a { max-width: 17ch; }
.footer-reach { display: grid; gap: 4px; }
.footer-reach .contact-link { gap: 12px; min-height: 30px; font-size: .95rem; }
.footer-reach .contact-link .footer-icon { margin-top: 0; }
.footer-contact .office-hours { margin: 0; display: grid; gap: 2px; font-size: .95rem; line-height: 1.5; }
.office-hours div { display: grid; grid-template-columns: minmax(7.5em, auto) auto; gap: 14px; }
.office-hours dd { margin: 0; }
.footer-contact .footer-hours { min-height: 32px; font-size: .82rem; opacity: .85; }
.footer-bottom { border-top: 1px solid #ffffff2e; font-size: .86rem; }
.footer-menu a { font-size: .86rem; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.footer-copy { margin-inline: auto; }
.footer-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-top .link-icon { transform: rotate(180deg); }
@media (min-width: 1001px) {
	.footer-grid { grid-template-columns: minmax(250px, .9fr) 2.4fr auto; align-items: start; padding-bottom: 30px; }
	.footer-contact { display: flex; }
	.footer-motto { align-self: center; }
}

/* ---------- Mobile contact bar ---------- */
.mobile-contact a { gap: 3px; font-weight: 600; justify-items: center; }
.mobile-contact .icon { width: 24px; height: 24px; }

/* ---------- Mobile + tablet navigation ---------- */
@media (max-width: 1100px) {
	.contact-strip { display: none; }
	.custom-logo { width: 62px; height: 62px; }
	.brand-name span { font-size: 2.3rem; }
	.brand-name strong { font-size: .78rem; max-width: 9.5em; white-space: normal; }
	.brand-signature { display: block; font-size: .95rem; }
	.navigation-icon { width: 26px; height: 26px; color: var(--forest); }
	.primary-menu > li > a { gap: 16px; font-size: 1.08rem; font-weight: 600; color: var(--forest-dark); }
	.primary-menu > li > .submenu-toggle { color: var(--forest-dark); }
	.primary-menu > li:has(> .submenu-toggle[aria-expanded=true]) { background: var(--mint); }
	.primary-menu > li:has(> .submenu-toggle[aria-expanded=true]) > a, .primary-menu > li > .submenu-toggle[aria-expanded=true] { background: var(--forest); color: #fff; }
	.primary-menu > li > .sub-menu { padding-left: 54px; box-shadow: none; }
	.primary-menu > li > .sub-menu a { font-size: 1rem; color: var(--ink); }
	.navigation-inner .membership-button { min-height: 52px; font-size: 1.1rem; }
	.navigation-inner .membership-button .icon { width: 1.5em; height: 1.5em; }
	.navigation-search summary { color: var(--forest-dark); font-weight: 600; }
	.menu-contact { position: relative; display: grid; gap: 14px; padding: 18px 14px 150px; background: #fff; border: 0; border-radius: 0; overflow: hidden; }
	.menu-contact address { display: grid; gap: 2px; font-style: normal; }
	.menu-contact address a { gap: 14px; font-size: 1.05rem; color: var(--ink); text-decoration: none; min-height: 42px; }
	.menu-contact address .icon { width: 24px; height: 24px; color: var(--forest-dark); }
	.menu-contact .social-icons a { width: 36px; height: 36px; }
	.menu-contact .social-icons .icon { width: 26px; height: 26px; }
	.menu-contact .social-icons-brand .social-youtube { width: 46px; }
	.menu-contact { padding-bottom: 210px; }
	.menu-signature { justify-self: end; margin: -6px 6px 0 0; font-size: 1.25rem; text-align: right; }
	.menu-panorama { position: absolute; inset: auto -16px 0; height: 200px; margin: 0; background: linear-gradient(#0f3a2d, #0f3a2d) no-repeat bottom / 100% 88px, url("../images/panorama.svg") no-repeat center 0 / 100% 116px; }
	.menu-panorama span { position: absolute; left: 34px; bottom: 18px; font-family: var(--font-hand); font-weight: 600; font-size: 1.65rem; line-height: .95; color: #fff; transform: rotate(-6deg); }
}
@media (max-width: 1100px) and (min-width: 701px) {
	.menu-signature { right: 24px; }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
	.wide-only { display: none; }
	.custom-logo { width: 58px; height: 58px; }
	.brand-name span { font-size: 2.2rem; }
	.brand-name strong { font-size: .76rem; }
	.brand-signature { font-size: .88rem; margin-left: 4px; }
	.hero:has(.hero-illustration) h1 { font-size: clamp(2.35rem, 10.5vw, 3.2rem); }
	.hero:has(.hero-illustration) .hero-actions { max-width: 300px; }
	.hero .button { min-height: 48px; font-size: 1rem; }
	.hero-signature { color: #fff; text-shadow: 0 1px 6px #072e23; right: 5%; top: auto; bottom: 40px; font-size: 1.6rem; }
	.hero-caption { display: none; }
	.quick-grid { gap: 10px; }
	.quick-copy { padding: 22px 12px 10px; }
	.quick-icon { width: 50px; height: 50px; top: -32px; left: 10px; }
	.quick-icon .tile-icon { width: 26px; height: 26px; }
	.quick-copy h2 { font-size: 1.08rem; }
	.quick-copy p { font-size: .84rem; }
	.illustrated-heading { font-size: 1.45rem; gap: 10px; }
	.illustrated-heading .heading-icon { width: 30px; height: 30px; }
	.organization-intro { margin-left: 0; }
	.home-news .post-card:has(.card-image-link) .post-meta { margin-top: 0; }
	.home-news .post-meta { box-shadow: none; padding: 0; }
	.regional-strip-inner { grid-template-columns: minmax(0, 1fr) auto; }
	.regional-signature { justify-self: end; }
	#main:has(.hero) .section-heading { flex-wrap: nowrap; }
	.home-news .section-heading .text-link, .home-offer .section-heading .text-link, .home-events .section-heading .text-link { font-size: .82rem; text-transform: none; font-family: var(--font-sans); font-weight: 600; white-space: nowrap; }
	.offer-grid .tile { min-height: 96px; font-size: .92rem; }
	.offer-grid .tile-icon { width: 36px; height: 36px; }
	.regional-strip { padding-bottom: 34px; }
	.footer-contact { flex-direction: column; gap: 14px; }
	.footer-motto { justify-self: end; font-size: 1.45rem; }
	.footer-bottom { align-items: flex-start; }
	.footer-copy { margin-inline: 0; }
}

/* ---------- Navigation: submenu toggles (all sizes) ---------- */
.submenu-toggle { display: inline-grid; place-items: center; }
.submenu-toggle svg { width: 12px; height: 12px; transition: transform .2s ease; }
.submenu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }

/* ---------- Navigation: desktop dropdowns ---------- */
@media (min-width: 1101px) {
	.header-layout .primary-menu > li { display: flex; align-items: center; }
	.header-layout .primary-menu > li.mobile-home { display: none; }
	.header-layout .primary-menu > li > a { position: relative; text-decoration: none; }
	.header-layout .primary-menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
	.header-layout .primary-menu > li:hover > a::after,
	.header-layout .primary-menu > li.is-open > a::after,
	.header-layout .primary-menu > li > a:focus-visible::after,
	.header-layout .primary-menu > .current-menu-item > a::after,
	.header-layout .primary-menu > .current-menu-ancestor > a::after,
	.header-layout .primary-menu > .current-menu-parent > a::after { transform: scaleX(1); }
	.header-layout .primary-menu > li.is-open > a, .header-layout .primary-menu > li > a:hover { color: var(--forest); }
	.header-layout .primary-menu .current-menu-item > a { text-decoration: none; }
	.header-layout .submenu-toggle { min-width: 22px; min-height: 40px; margin-left: 1px; padding: 0; border-radius: 4px; color: #5d6f66; background: transparent; }
	.header-layout .submenu-toggle:hover, .header-layout .is-open > .submenu-toggle { color: var(--forest); background: transparent; }
	.header-layout .submenu-toggle[aria-expanded=true] { background: transparent; }

	.header-layout .primary-menu .sub-menu {
		top: calc(100% - 4px); left: -16px; min-width: 270px; max-width: 340px; padding: 10px;
		background: #fff; border: 0; border-top: 3px solid var(--forest); border-radius: 4px 4px 12px 12px;
		box-shadow: 0 22px 44px rgb(10 48 37 / .2), 0 3px 8px rgb(10 48 37 / .08);
		opacity: 0; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease;
	}
	.header-layout .primary-menu .sub-menu.is-visible { opacity: 1; transform: none; }
	/* Invisible bridge: the pointer can cross the gap without closing the panel. */
	.header-layout .primary-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
	.header-layout .primary-menu > li > .sub-menu::after { content: ""; position: absolute; top: -10px; left: 30px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--forest); }
	.header-layout .primary-menu > li > .sub-menu.aligns-right { left: auto; right: -12px; }
	.header-layout .primary-menu > li > .sub-menu.aligns-right::after { left: auto; right: 26px; }
	.header-layout .primary-menu .sub-menu li { display: flex; align-items: center; }
	/* Long top-level lists (7+ items) split into two columns instead of a tall strip. */
	.header-layout .primary-menu > li > .sub-menu:has(> li:nth-child(7)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; width: 500px; max-width: min(500px, 90vw); }
	.header-layout .primary-menu > li > .sub-menu:has(> li:nth-child(7))[hidden] { display: none; }
	.header-layout .primary-menu > li > .sub-menu:has(> li:nth-child(7)) > li + li { margin-top: 0; }
	.header-layout .primary-menu .sub-menu li + li { margin-top: 2px; }
	.header-layout .primary-menu .sub-menu a {
		flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px;
		min-height: 42px; padding: 8px 12px; border-radius: 7px;
		font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--ink); text-decoration: none;
		transition: background-color .15s ease, color .15s ease;
	}
	.header-layout .primary-menu .sub-menu a::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-5px) rotate(45deg); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
	.header-layout .primary-menu .sub-menu a:hover, .header-layout .primary-menu .sub-menu a:focus-visible { background: var(--mint); color: var(--forest); }
	.header-layout .primary-menu .sub-menu a:hover::after, .header-layout .primary-menu .sub-menu a:focus-visible::after { opacity: 1; transform: translateX(0) rotate(45deg); }
	.header-layout .primary-menu .sub-menu .current-menu-item > a { color: var(--forest); font-weight: 600; background: var(--mint); box-shadow: inset 3px 0 0 var(--red); }
	.header-layout .primary-menu .sub-menu .menu-item-has-children > a::after { display: none; }
	.header-layout .primary-menu .sub-menu .submenu-toggle svg { transform: rotate(-90deg); }
	.header-layout .primary-menu .sub-menu .submenu-toggle[aria-expanded=true] svg { transform: rotate(-90deg); }
	/* Third level: flyout beside the panel, flipped by JS near the right edge. */
	.header-layout .primary-menu .sub-menu .sub-menu { top: -13px; left: calc(100% + 10px); border-radius: 12px; }
	.header-layout .primary-menu .sub-menu .sub-menu::before { top: 0; bottom: 0; left: -14px; right: auto; width: 14px; height: auto; }
	.header-layout .primary-menu .sub-menu .sub-menu.opens-left { left: auto; right: calc(100% + 10px); }
	.header-layout .primary-menu .sub-menu .sub-menu.opens-left::before { left: auto; right: -14px; }
	.header-layout .primary-menu .sub-menu li { position: relative; }
}

/* ---------- Navigation: phone and tablet accordion ---------- */
@media (max-width: 1100px) {
	.primary-menu > li > .submenu-toggle::after { display: none; }
	.primary-menu .submenu-toggle svg { width: 18px; height: 18px; transform: rotate(-90deg); }
	.primary-menu .submenu-toggle[aria-expanded=true] svg { transform: rotate(0deg); }
	.primary-menu .sub-menu.is-visible { animation: pttk-reveal .2s ease both; }
	.primary-menu > li > .sub-menu a { position: relative; }
	.primary-menu > li > .sub-menu .current-menu-item > a { color: var(--forest); font-weight: 600; }
	.primary-menu > li > .sub-menu .current-menu-item > a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }
}
@keyframes pttk-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.quick-card, .quick-card:hover { transition: none; transform: none; }
	.header-layout .primary-menu .sub-menu { transition: none; transform: none; }
	.primary-menu .sub-menu.is-visible { animation: none; }
}
@media (forced-colors: active) {
	.social-icons a { border: 1px solid CanvasText; }
}
