:root {
    --ink: #24302b;
    --ink-soft: #53615b;
    --paper: #fffdf8;
    --paper-warm: #fbf5e8;
    --white: #fff;
    --gold: #f6b82d;
    --gold-dark: #7a5200;
    --gold-soft: #fff0bd;
    --sage: #728064;
    --sage-dark: #3f4f3c;
    --sage-soft: #e7ecdf;
    --clay: #9f745a;
    --mint: #cce5d6;
    --teal: #287267;
    --rose: #f3d7d0;
    --red: #a72926;
    --border: #dfe3dc;
    --shadow: 0 20px 60px rgba(36, 48, 43, .10);
    --shadow-small: 0 10px 30px rgba(36, 48, 43, .08);
    --radius-small: .85rem;
    --radius: 1.35rem;
    --radius-large: 2.25rem;
    --wrap: 76rem;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

html.has-large-text {
    font-size: 112.5%;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--sage-dark);
    text-decoration-thickness: .09em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--gold-dark);
}

:focus-visible {
    border-radius: .2rem;
    outline: .2rem solid #125da8;
    outline-offset: .2rem;
}

::selection {
    background: var(--gold-soft);
    color: var(--ink);
}

h1,
h2,
h3,
h4 {
    margin-block: 0 .65em;
    color: var(--ink);
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.3rem);
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.35rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

p,
ul,
ol {
    margin-block: 0 1.25rem;
}

.wrap {
    width: min(calc(100% - 2rem), var(--wrap));
    margin-inline: auto;
}

.section {
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: .7rem;
    left: .7rem;
    padding: .8rem 1.1rem;
    transform: translateY(-180%);
    border-radius: .5rem;
    background: var(--ink);
    color: var(--white);
    font-weight: 750;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: .8rem;
    color: var(--gold-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: center;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    padding: .78rem 1.25rem;
    gap: .55rem;
    align-items: center;
    justify-content: center;
    border: .125rem solid var(--sage-dark);
    border-radius: 999px;
    background: var(--sage-dark);
    color: var(--white);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow-small);
}

.button svg,
.text-link svg,
.icon-button svg,
.footer-contact svg,
.post-card__meta svg,
.hero__features svg {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button--small {
    min-height: 2.75rem;
    padding: .58rem 1rem;
    font-size: .9rem;
}

.button--outline {
    background: transparent;
    color: var(--sage-dark);
}

.button--dark {
    border-color: var(--ink);
    background: var(--ink);
}

.button--light {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.button--ghost {
    border-color: rgba(255, 255, 255, .65);
    background: transparent;
}

.button--ghost:hover {
    background: var(--white);
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    color: var(--sage-dark);
    font-weight: 780;
    text-decoration: none;
}

.text-link svg {
    transition: transform .18s ease;
}

.text-link:hover svg {
    transform: translateX(.25rem);
}

.icon-button,
.text-button {
    display: inline-flex;
    border: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.icon-button {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}

.icon-button:hover {
    background: var(--sage-soft);
}

.accessibility-bar {
    background: var(--ink);
    color: var(--white);
    font-size: .78rem;
}

.accessibility-bar__inner {
    display: flex;
    min-height: 2.55rem;
    align-items: center;
    justify-content: space-between;
}

.accessibility-bar p {
    margin: 0;
}

.accessibility-tools {
    display: flex;
    gap: .4rem;
}

.text-button {
    min-height: 2rem;
    padding-inline: .6rem;
    gap: .42rem;
    border-radius: .35rem;
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
}

.text-button:hover {
    background: rgba(255, 255, 255, .14);
}

.contrast-symbol {
    width: 1rem;
    height: 1rem;
    border: .1rem solid currentColor;
    border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 253, 248, .96);
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        position: sticky;
        top: 0;
        background: rgba(255, 253, 248, .88);
        backdrop-filter: blur(14px);
    }
}

.site-header__inner {
    display: flex;
    min-height: 5.75rem;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    gap: .85rem;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand img,
.brand .custom-logo {
    width: 4.6rem;
    height: 3.15rem;
    border-radius: .7rem;
    object-fit: cover;
}

.brand__text {
    display: grid;
    line-height: 1.05;
}

.brand__text strong {
    font-size: 1.27rem;
    letter-spacing: -.03em;
}

.brand__text small {
    margin-top: .28rem;
    color: var(--ink-soft);
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.primary-nav,
.primary-nav__list,
.primary-nav__actions {
    display: flex;
    align-items: center;
}

.primary-nav {
    gap: 1.4rem;
}

.primary-nav__list {
    padding: 0;
    margin: 0;
    gap: clamp(.8rem, 1.6vw, 1.65rem);
    list-style: none;
}

.primary-nav__list a {
    display: block;
    padding-block: .75rem;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
    color: var(--gold-dark);
}

.primary-nav__list .menu-item-has-children {
    position: relative;
}

.primary-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: -.8rem;
    width: 14rem;
    padding: .6rem;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    visibility: hidden;
    background: var(--white);
    box-shadow: var(--shadow-small);
    list-style: none;
    opacity: 0;
    transform: translateY(.5rem);
}

.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.primary-nav__list .sub-menu a {
    padding: .55rem .7rem;
    border-radius: .45rem;
}

.primary-nav__list .sub-menu a:hover {
    background: var(--paper-warm);
}

.primary-nav__actions {
    gap: .55rem;
}

.menu-toggle {
    display: none;
}

.menu-toggle__close {
    display: none;
}

.search-dialog {
    width: min(calc(100% - 2rem), 42rem);
    padding: 0;
    border: 0;
    border-radius: var(--radius-large);
    background: var(--paper);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .3);
}

.search-dialog::backdrop {
    background: rgba(20, 27, 24, .68);
    backdrop-filter: blur(5px);
}

.search-dialog__inner {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem);
}

.search-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.search-dialog h2 {
    font-size: clamp(2rem, 6vw, 3.3rem);
}

.search-form {
    display: flex;
    gap: .65rem;
}

.search-form input {
    min-width: 0;
    min-height: 3.35rem;
    flex: 1;
    padding: .75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--white);
}

.search-dialog__hint {
    margin: .8rem 0 0;
    color: var(--ink-soft);
    font-size: .9rem;
}

.breadcrumbs {
    display: flex;
    padding-block: .85rem;
    gap: .5rem;
    align-items: center;
    color: var(--ink-soft);
    font-size: .82rem;
}

.breadcrumbs a {
    color: var(--ink-soft);
}

.is-front-page .breadcrumbs {
    display: none;
}

.hero {
    position: relative;
    display: flex;
    min-height: clamp(34rem, 68vh, 47rem);
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
    background:
        linear-gradient(90deg, rgba(23, 32, 27, .92) 0%, rgba(23, 32, 27, .78) 46%, rgba(23, 32, 27, .34) 100%),
        url("../images/hero.jpg") center center / cover no-repeat;
    align-items: center;
}

.hero__grid {
    position: relative;
    z-index: 1;
}

.hero__content {
    width: 100%;
}

.hero h1 span {
    color: var(--gold-soft);
}

.hero h1,
.hero .eyebrow {
    color: var(--white);
}

.hero__lead {
    max-width: 64rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.hero .button {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.hero .button:hover {
    border-color: var(--gold-soft);
    background: var(--gold-soft);
    color: var(--ink);
}

.hero .button--outline {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(23, 32, 27, .25);
    color: var(--white);
}

.hero .button--outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.hero__features {
    display: flex;
    padding: 0;
    margin-top: 2rem;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: var(--white);
    font-size: .88rem;
    font-weight: 700;
    list-style: none;
}

.hero__features li {
    display: inline-flex;
    gap: .38rem;
    align-items: center;
}

.hero__features svg {
    padding: .12rem;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--ink);
}

.notice-band {
    position: relative;
    z-index: 2;
    margin-top: -1.8rem;
}

.notice-card {
    display: grid;
    padding: 1.2rem 1.4rem;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #ecd997;
    border-radius: var(--radius);
    background: #fff8da;
    box-shadow: var(--shadow-small);
}

.notice-card__icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    place-items: center;
    background: var(--gold);
    color: #322400;
    font-weight: 900;
}

.notice-card .eyebrow,
.notice-card p,
.notice-card h2 {
    margin: 0;
}

.notice-card h2 {
    margin-bottom: .2rem;
    font-size: 1.15rem;
    letter-spacing: -.015em;
}

.notice-card__content > p:last-child {
    color: #5a5040;
    font-size: .9rem;
}

.section-heading {
    max-width: 47rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading > p:last-child {
    color: var(--ink-soft);
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--row {
    display: flex;
    max-width: none;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
}

.section-heading--row h2 {
    margin-bottom: 0;
}

.quick-links {
    background: var(--paper);
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-card {
    display: grid;
    min-height: 8rem;
    padding: 1.25rem;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.quick-card:hover {
    border-color: var(--sage);
    color: var(--ink);
    box-shadow: var(--shadow-small);
    transform: translateY(-3px);
}

.quick-card__icon {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    place-items: center;
    background: var(--paper-warm);
    color: var(--gold-dark);
    font-size: 1.45rem;
    font-weight: 800;
}

.quick-card strong,
.quick-card small {
    display: block;
}

.quick-card strong {
    margin-bottom: .3rem;
    font-size: 1.05rem;
}

.quick-card small {
    color: var(--ink-soft);
    font-size: .81rem;
    line-height: 1.45;
}

.quick-card__arrow {
    font-size: 1.35rem;
    transition: transform .18s ease;
}

.quick-card:hover .quick-card__arrow {
    transform: translateX(.2rem);
}

.groups-section {
    position: relative;
    background: var(--paper-warm);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.group-card {
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.group-card__illustration {
    display: grid;
    min-height: 15rem;
    padding: 1rem;
    place-items: center;
    background: var(--gold-soft);
}

.group-card--misie .group-card__illustration {
    background: #dceae8;
}

.group-card--jezyki .group-card__illustration {
    background: #e1ead8;
}

.group-card__illustration svg {
    width: min(100%, 16rem);
}

.group-card__body {
    padding: 1.6rem;
}

.group-card__body h3 {
    margin-bottom: .45rem;
    font-size: 1.85rem;
}

.group-card__body > p:not(.group-card__age) {
    color: var(--ink-soft);
}

.group-card__age {
    margin-bottom: .45rem;
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.shape-bg {
    fill: rgba(255, 255, 255, .66);
}

.animal-eye,
.animal-nose {
    fill: var(--ink);
}

.animal-line,
.accent-line {
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-width: 4;
}

.accent-line {
    stroke: var(--gold-dark);
}

.accent-dot {
    fill: var(--gold);
}

.bee-body {
    fill: #f7bd31;
}

.bee-wing {
    fill: #fff;
    stroke: #cc9420;
    stroke-width: 3;
}

.bee-stripe {
    fill: none;
    stroke: #524329;
    stroke-width: 8;
}

.bear-ear,
.bear-head {
    fill: #9f745a;
}

.bear-muzzle {
    fill: #e8c7ae;
}

.hedgehog-spines {
    fill: #68765c;
}

.hedgehog-face {
    fill: #ddb68e;
}

.values-section {
    background: var(--sage-dark);
    color: rgba(255, 255, 255, .8);
}

.values-section__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.values-section h2,
.values-section h3,
.values-section .eyebrow {
    color: var(--white);
}

.values-section__intro > p:not(.eyebrow) {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.value-card {
    min-height: 13rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .07);
}

.value-card > span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 2rem;
    border-radius: 50%;
    place-items: center;
    background: var(--gold-soft);
    color: var(--ink);
    font-size: .74rem;
    font-weight: 850;
}

.value-card h3 {
    margin-bottom: .45rem;
}

.value-card p {
    margin: 0;
    font-size: .9rem;
}

.news-section {
    background: var(--paper);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-small);
    transform: translateY(-3px);
}

.post-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--paper-warm);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.025);
}

.post-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        radial-gradient(circle at 70% 35%, var(--gold-soft) 0 3.2rem, transparent 3.3rem),
        radial-gradient(circle at 30% 80%, var(--sage-soft) 0 5rem, transparent 5.1rem),
        #f8f3e7;
    color: var(--gold-dark);
    font-size: 3rem;
}

.post-card__body {
    padding: 1.35rem;
}

.post-card__meta {
    display: flex;
    margin-bottom: .7rem;
    gap: .4rem;
    align-items: center;
    color: var(--ink-soft);
    font-size: .78rem;
}

.post-card__body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.post-card__body > p:not(.post-card__meta) {
    color: var(--ink-soft);
    font-size: .92rem;
}

.contact-cta {
    padding-top: 1rem;
}

.contact-cta__card {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4.5rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr);
    gap: 3rem;
    align-items: center;
    border-radius: var(--radius-large);
    background: var(--clay);
    color: rgba(255, 255, 255, .88);
}

.contact-cta__card::after {
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 22rem;
    height: 22rem;
    border: 3rem solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.contact-cta h2,
.contact-cta .eyebrow {
    color: var(--white);
}

.contact-cta__hours {
    position: relative;
    z-index: 1;
    display: grid;
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .13);
}

.contact-cta__hours > span {
    margin-bottom: .8rem;
    font-size: 2rem;
}

.contact-cta__hours strong {
    font-size: 1.2rem;
}

.contact-cta__hours p {
    margin: .25rem 0 .7rem;
}

.contact-cta__hours small {
    font-size: .72rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--ink-soft);
    text-align: center;
}

.site-footer {
    padding-top: 5rem;
    background: #202a26;
    color: rgba(255, 255, 255, .72);
}

.site-footer__grid {
    display: grid;
    padding-bottom: 4rem;
    grid-template-columns: 1.3fr .7fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
}

.brand--footer {
    margin-bottom: 1.2rem;
    color: var(--white);
}

.brand--footer .brand__text small {
    color: rgba(255, 255, 255, .58);
}

.brand--footer img {
    width: 4.1rem;
}

.footer-brand > p {
    max-width: 27rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: .6rem;
}

.footer-links a,
.footer-contact a,
.site-footer__bottom a {
    color: rgba(255, 255, 255, .76);
}

.footer-contact {
    font-style: normal;
}

.footer-contact p {
    display: flex;
    margin-bottom: .8rem;
    gap: .65rem;
    align-items: flex-start;
}

.footer-contact svg {
    width: 1.2rem;
    margin-top: .2rem;
    color: var(--gold);
}

.site-footer__bottom {
    display: flex;
    min-height: 4.5rem;
    padding-block: 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .78rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Inner pages */
.page-hero {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: var(--paper-warm);
}

.page-hero__inner {
    max-width: 52rem;
}

.page-hero h1 {
    margin-bottom: .35em;
    font-size: clamp(2.6rem, 6vw, 4.7rem);
}

.page-hero p:last-child {
    max-width: 46rem;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.content-layout {
    display: grid;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
}

.entry-content {
    min-width: 0;
}

.entry-content > * {
    max-width: 48rem;
}

.entry-content > .alignwide {
    max-width: 64rem;
}

.entry-content > .alignfull {
    max-width: none;
}

.entry-content h2 {
    margin-top: 2em;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.entry-content h3 {
    margin-top: 1.7em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content li + li {
    margin-top: .45rem;
}

.entry-content blockquote {
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
    border-left: .35rem solid var(--gold);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--paper-warm);
}

.entry-content table {
    width: 100%;
    margin-block: 1.5rem;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: .8rem;
    border: 1px solid var(--border);
    text-align: left;
}

.entry-content th {
    background: var(--sage-soft);
}

.entry-content .wp-block-button__link {
    border-radius: 999px;
    background: var(--sage-dark);
}

.entry-sidebar {
    position: sticky;
    top: 8rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--paper-warm);
}

.entry-sidebar h2 {
    font-size: 1rem;
}

.entry-sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.entry-sidebar li + li {
    margin-top: .55rem;
}

.entry-sidebar a {
    font-size: .9rem;
    font-weight: 700;
}

.single-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: .87rem;
}

.archive-header {
    padding-block: 3.5rem;
    background: var(--paper-warm);
}

.archive-header__inner {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
}

.archive-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.archive-content {
    padding-block: 4.5rem 7rem;
}

.pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: grid;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    place-items: center;
    background: var(--white);
    text-decoration: none;
}

.page-numbers.current {
    border-color: var(--sage-dark);
    background: var(--sage-dark);
    color: var(--white);
}

.document-list {
    display: grid;
    gap: .8rem;
}

.document-card {
    display: grid;
    padding: 1.2rem;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--white);
}

.document-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    border-radius: .8rem;
    place-items: center;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.document-card__icon svg {
    width: 1.5rem;
}

.document-card h2 {
    margin-bottom: .25rem;
    font-size: 1.1rem;
    letter-spacing: -.01em;
}

.document-card__meta {
    margin: 0;
    color: var(--ink-soft);
    font-size: .78rem;
}

.search-results-list {
    display: grid;
    gap: 1rem;
}

.search-result {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--white);
}

.search-result h2 {
    margin-bottom: .4rem;
    font-size: 1.4rem;
}

.search-result h2 a {
    color: var(--ink);
    text-decoration: none;
}

.search-result__type {
    margin-bottom: .5rem;
    color: var(--gold-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.not-found {
    min-height: 55vh;
    padding-block: 6rem;
    text-align: center;
}

.not-found__number {
    display: block;
    color: var(--gold);
    font-size: clamp(6rem, 18vw, 13rem);
    font-weight: 850;
    letter-spacing: -.08em;
    line-height: .75;
}

.not-found p {
    max-width: 37rem;
    margin-inline: auto;
}

/* Contact form from the project plugin */
.boboraj-form {
    display: grid;
    max-width: 48rem;
    gap: 1.1rem;
}

.contact-details {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper-warm);
    font-style: normal;
}

.boboraj-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.boboraj-form__field {
    display: grid;
    gap: .35rem;
}

.boboraj-form label,
.boboraj-form legend {
    font-weight: 730;
}

.boboraj-form input:not([type="checkbox"]),
.boboraj-form textarea {
    width: 100%;
    min-height: 3.2rem;
    padding: .75rem .9rem;
    border: 2px solid var(--border);
    border-radius: .7rem;
    background: var(--white);
}

.boboraj-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.boboraj-form input:focus,
.boboraj-form textarea:focus {
    border-color: #125da8;
}

.boboraj-form__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .65rem;
    align-items: start;
    font-size: .88rem;
}

.boboraj-form__consent input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .2rem;
}

.boboraj-form__required,
.form-error {
    color: var(--red);
}

.form-notice {
    padding: 1rem 1.2rem;
    border-left: .35rem solid var(--teal);
    border-radius: .35rem;
    background: #e1f3ed;
}

.form-notice--error {
    border-color: var(--red);
    background: #f8e4e1;
}

.boboraj-form__trap {
    position: absolute;
    left: -9999px;
}

.site-map-list {
    columns: 2;
    column-gap: 3rem;
}

.site-map-list li {
    break-inside: avoid;
}

/* High contrast user preference */
body.has-high-contrast {
    --ink: #000;
    --ink-soft: #171717;
    --paper: #fff;
    --paper-warm: #fff;
    --white: #fff;
    --gold: #ffcd00;
    --gold-dark: #5c3d00;
    --sage: #234d20;
    --sage-dark: #0b3611;
    --sage-soft: #e6f1df;
    --clay: #66341d;
    --border: #555;
}

.has-high-contrast a:not(.button) {
    text-decoration: underline;
}

.has-high-contrast .post-card,
.has-high-contrast .quick-card {
    border-color: #000;
}

@media (max-width: 70rem) {
    .primary-nav {
        gap: .7rem;
    }

    .primary-nav__actions .button--outline {
        display: none;
    }

    .quick-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 58rem) {
    .site-header__inner {
        min-height: 5rem;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__open {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__close {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 7rem);
        padding: 1rem;
        overflow-y: auto;
        border-top: 1px solid var(--border);
        background: var(--paper);
        box-shadow: var(--shadow-small);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav__list,
    .primary-nav__actions {
        align-items: stretch;
    }

    .primary-nav__list {
        display: grid;
        gap: 0;
    }

    .primary-nav__list a {
        padding: .85rem;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav__list .sub-menu {
        position: static;
        width: auto;
        padding: 0 0 0 1rem;
        border: 0;
        visibility: visible;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .primary-nav__actions {
        display: grid;
        padding-top: 1rem;
        grid-template-columns: auto 1fr 1fr;
    }

    .primary-nav__actions .button--outline {
        display: inline-flex;
    }

    .values-section__grid,
    .contact-cta__card,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .groups-grid,
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-card:last-child,
    .post-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - .65rem);
        justify-self: center;
    }

    .entry-sidebar {
        position: static;
    }
}

@media (max-width: 42rem) {
    body {
        font-size: 1rem;
    }

    .accessibility-bar__inner > p {
        display: none;
    }

    .accessibility-bar__inner {
        justify-content: flex-end;
    }

    .brand__text {
        display: none;
    }

    .brand img,
    .brand .custom-logo {
        width: 4.3rem;
        height: 3rem;
    }

    .hero {
        min-height: 38rem;
        padding-top: 3.2rem;
        background-position: 42% center;
    }

    .notice-card {
        grid-template-columns: auto 1fr;
    }

    .notice-card .text-link {
        grid-column: 2;
    }

    .section-heading--row,
    .archive-header__inner {
        display: block;
    }

    .section-heading--row > a,
    .archive-header__inner .search-form {
        margin-top: 1.2rem;
    }

    .quick-links__grid,
    .groups-grid,
    .posts-grid,
    .values-grid,
    .boboraj-form__row,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .group-card:last-child,
    .post-card:last-child {
        grid-column: auto;
        width: auto;
    }

    .search-form {
        display: grid;
    }

    .document-card {
        grid-template-columns: auto 1fr;
    }

    .document-card .button {
        grid-column: 2;
        justify-self: start;
    }

    .site-footer__bottom {
        display: block;
    }

    .site-footer__bottom nav {
        margin-top: .8rem;
    }

    .site-map-list {
        columns: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .accessibility-bar,
    .site-header,
    .site-footer,
    .breadcrumbs,
    .button,
    .entry-sidebar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    a {
        color: #000;
    }

    .content-layout {
        display: block;
    }
}
