/* Δήμος Βόρειας Κέρκυρας — palette from the pe-public-institutions theme (2026-07 snapshot) */
:root {
  --font-scale: 1;
  --c-topbar: #abd651;
  --c-topbar-text: #1f3a05;
  --c-green: #396b0b;
  --c-green-mid: #4d7900;
  --c-blue: #036085;
  --c-blue-dark: #024a67;
  --c-navy: #002642;
  --c-orange: #f49d00;
  --c-orange-btn: #ffa743;
  --c-orange-border: #995910;
  --c-orange-text: #8a4f00;   /* AA on white */
  --c-text: #333;
  --c-muted: #5f5f5f;
  --c-border: #e3e3e3;
  --c-bg: #fff;
  --c-bg-alt: #f5f5f5;
  --c-footer: #e5e5e5;
  --c-notice: #4c4c4c;
  --c-focus: #002642;
  --c-sub-active: #fdf3e1;
  --radius: 4px;
  --container: 1200px;
  --font: "Noto Sans", "Droid Sans", Arial, Helvetica, sans-serif;
}

/* ---- Accessibility modes (original WCAG toolbar) ---- */
:root[data-contrast="high"] {
  --c-topbar: #000; --c-topbar-text: #fff; --c-green: #000; --c-green-mid: #000; --c-blue: #000; --c-blue-dark: #000;
  --c-navy: #000; --c-orange: #000; --c-orange-btn: #000; --c-orange-border: #000; --c-orange-text: #000;
  --c-text: #000; --c-muted: #000; --c-border: #000; --c-bg-alt: #fff; --c-footer: #fff; --c-notice: #000;
}
:root[data-contrast="yellow"] {
  --c-topbar: #000; --c-topbar-text: #ff0; --c-green: #000; --c-green-mid: #000; --c-blue: #ff0; --c-blue-dark: #ff0;
  --c-navy: #000; --c-orange: #ff0; --c-orange-btn: #000; --c-orange-border: #ff0; --c-orange-text: #ff0;
  --c-text: #ff0; --c-muted: #ff0; --c-border: #ff0; --c-bg: #000; --c-bg-alt: #000; --c-footer: #000; --c-notice: #000;
}
:root[data-contrast="yellow"] img { filter: grayscale(1) contrast(1.2); }
:root[data-contrast="yellow"] { --c-focus: #ff0; --c-sub-active: #000; }
:root[data-contrast="high"] { --c-sub-active: #fff; }
:root[data-contrast="yellow"] .footer-links a,
:root[data-contrast="yellow"] .form-status.is-ok,
:root[data-contrast="yellow"] .site-footer__bottom { color: #ff0; }
:root[data-contrast="yellow"] .footer-links::before { background: #ff0; }
:root[data-contrast="yellow"] .card, :root[data-contrast="yellow"] .contact-card,
:root[data-contrast="yellow"] .footer-contact, :root[data-contrast="yellow"] .site-footer__bottom { border: 1px solid #ff0; }
:root[data-contrast="yellow"] .main-nav .menu > li.is-active > a,
:root[data-contrast="yellow"] .btn--primary,
:root[data-contrast="yellow"] .btn-doc { color: #000; background: #ff0; }
:root[data-contrast="high"] .menu > li.is-active > a, :root[data-contrast="high"] .btn-doc { color: #fff; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--font-scale)); -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--c-text); background: var(--c-bg); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--c-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--c-bg); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--c-text); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--c-navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---- Top bar ---- */
.topbar { background: var(--c-topbar); color: var(--c-topbar-text); font-size: .85rem; }
.topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 44px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; flex: none; }
.topbar__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.a11y { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.a11y__label { margin: 0 .2rem 0 .6rem; }
.a11y button { min-width: 44px; min-height: 44px; padding: 0 .4rem; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; background: #fff; color: #000; font: inherit; font-weight: 700; cursor: pointer; }
.a11y button[aria-pressed="true"] { background: var(--c-navy); color: #fff; }

/* ---- Header + menu ---- */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }
.logo { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; color: var(--c-blue); text-decoration: none; padding: 1.4rem 0; }
.nav-toggle { display: none; }
.main-nav { display: flex; align-items: stretch; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; display: flex; }
.menu > li > a { display: flex; align-items: center; padding: 0 1rem; min-height: 84px; color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu > li.is-active > a { background: var(--c-orange); color: #1a1a1a; }
.submenu-toggle { display: none; }
.menu li > div { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--c-bg); border-top: 3px solid var(--c-orange); box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.menu li li > div { top: -3px; left: 100%; }
.menu li:hover > div, .menu li:focus-within > div { opacity: 1; visibility: visible; transform: none; }
.menu > li:nth-last-child(-n+2) > div { left: auto; right: 0; }
.menu > li:nth-last-child(-n+2) li > div { left: auto; right: 100%; }
.submenu li { position: relative; }
.submenu a { display: block; padding: .6rem 1rem; color: var(--c-text); text-decoration: none; font-size: .92rem; border-bottom: 1px solid var(--c-border); }
.submenu li.is-active > a { color: var(--c-orange-text); font-weight: 600; background: var(--c-sub-active); }
.submenu .has-sub > a::after { content: "›"; float: right; }
.nav-search { display: flex; align-items: center; margin-left: .5rem; }
.nav-search input { width: 0; padding: 0; border: 0; transition: width .2s; font: inherit; }
.nav-search:focus-within input { width: 170px; padding: .45rem .6rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
.nav-search button { width: 44px; height: 44px; border: 0; background: none; color: var(--c-text); cursor: pointer; }
.nav-search svg { width: 22px; height: 22px; }

@media (hover: hover) {
  .menu > li:not(.is-active) > a:hover { color: var(--c-orange-text); }
  .submenu a:hover { background: var(--c-bg-alt); color: var(--c-orange-text); }
}

/* ---- Hero ---- */
.hero { position: relative; height: 62vh; height: 62svh; min-height: 320px; max-height: 720px; overflow: hidden; background: var(--c-navy); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__caption { position: relative; height: 100%; display: flex; align-items: flex-start; padding-top: 8vh; }
.hero__caption h1 { margin: 0; color: #fff; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem); text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero__pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 2px solid #fff; border-radius: var(--radius); background: rgba(0,38,66,.75); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.notice-band { background: var(--c-notice); color: #fff; padding: 2rem 0; }
.notice-band p { margin: .3rem 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 700; }

/* ---- Content ---- */
.content-area { padding-block: 1.5rem 3rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumbs a { color: var(--c-muted); }
.entry__title { margin: 0 0 .6rem; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); color: var(--c-blue); }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--c-muted); font-size: .9rem; margin: 0 0 1.5rem; }
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 99px; background: var(--c-bg-alt); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-size: .8rem; }
.badge { padding: .1rem .5rem; border-radius: 3px; background: var(--c-bg-alt); font-size: .8rem; }
.event-when { padding: .8rem 1rem; background: var(--c-bg-alt); border-left: 4px solid var(--c-orange); color: var(--c-text); }

.prose { max-width: 900px; overflow-wrap: anywhere; }
.prose img { border-radius: 2px; }
.prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose figure { margin: 0 0 1.5rem; max-width: 100%; }
.prose .wp-caption { width: auto !important; }
.prose .wp-caption-text, .prose figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .4rem; }
.prose table:not(.data-table) { border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { padding: .3rem .5rem; vertical-align: top; }
.prose::after { content: ""; display: table; clear: both; }
.notice { padding: 1rem 1.2rem; background: var(--c-bg-alt); border-left: 4px solid var(--c-blue); }

/* MaxButtons replacement — keeps the orange "Περισσότερες Πληροφορίες" look */
.btn-doc { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.2rem; margin: .25rem .3rem .25rem 0;
  background: var(--c-orange-btn); border: 2px solid var(--c-orange-border); border-radius: var(--radius); color: #1a1a1a; font-weight: 700; font-size: .9rem;
  text-decoration: none; box-shadow: 0 0 2px #333; text-align: center; }
.btn-doc--file::before { content: ""; width: 14px; height: 17px; flex: none; background: currentColor;
  clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
@media (hover: hover) { .btn-doc:hover { background: #f08c1a; } }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { border: 1px solid var(--c-border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--c-blue); color: var(--c-bg); }
.data-table tbody tr:nth-child(even) { background: var(--c-bg-alt); }

.sc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.sc-col { min-width: 0; }
.sc-col img { float: none !important; margin: 0 0 .8rem !important; width: 100%; }

.pdf-embed { margin: 1rem 0 1.5rem; }
.pdf-embed iframe { width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--c-border); }
.video-embed { position: relative; max-width: 800px; aspect-ratio: 16 / 9; background: #000; margin: 1rem 0; overflow: hidden; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 48px; padding: .7rem 1.4rem; border: 0; border-radius: var(--radius); background: #c00; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.video-embed__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .4rem .8rem; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; }

.subpages__grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.subpages__grid a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--c-border); border-top: 4px solid var(--c-blue); border-radius: var(--radius); text-decoration: none; color: var(--c-text); }
.subpages__title { font-weight: 700; color: var(--c-blue); }
.subpages__excerpt { font-size: .88rem; color: var(--c-muted); }
@media (hover: hover) { .subpages__grid a:hover { border-top-color: var(--c-orange); box-shadow: 0 4px 14px rgba(0,0,0,.08); } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.post-nav a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; font-weight: 600; font-size: .92rem; }
.post-nav span { font-weight: 400; color: var(--c-muted); font-size: .8rem; }
.post-nav__next { grid-column: 2; text-align: right; }

/* ---- Listings ---- */
.archive-header { margin-bottom: 1.5rem; }
.archive-header__count { color: var(--c-muted); margin: 0 0 .8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--c-blue); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.card-list { display: grid; gap: 1rem; }
.card { padding: 1.1rem 1.3rem; border: 1px solid var(--c-border); border-left: 4px solid var(--c-blue); border-radius: var(--radius); background: var(--c-bg); }
.card__date { margin: 0 0 .2rem; font-size: .82rem; color: var(--c-muted); }
.card__title { margin: 0 0 .35rem; font-size: 1.08rem; }
.card__title a { text-decoration: none; }
.card__excerpt { margin: 0; font-size: .92rem; color: var(--c-muted); }
@media (hover: hover) { .card:hover { border-left-color: var(--c-orange); } .card__title a:hover { text-decoration: underline; } }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 2rem 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; }
.pagination [aria-current] { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-bg); }
.pagination .gap { align-self: center; padding: 0 .3rem; }

.search-form { display: flex; gap: .5rem; max-width: 640px; margin: 1rem 0 1.5rem; }
.search-form input { flex: 1; min-height: 46px; padding: .5rem .8rem; border: 2px solid var(--c-blue); border-radius: var(--radius); font: inherit; }
mark { background: #ffe58a; color: inherit; padding: 0 .1em; }

/* ---- Home ---- */
.home-news { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; padding-block: 2.5rem 1rem; }
.home-news__col:only-child { grid-column: 1 / -1; }
.section-title { margin: 0 0 1rem; font-size: 1.35rem; color: var(--c-blue); padding-bottom: .4rem; border-bottom: 3px solid var(--c-orange); display: inline-block; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-weight: 700; text-decoration: none; color: var(--c-orange-text); }
.card-list--compact .card__excerpt { display: none; }
.home-content { padding-block: 2.5rem 3rem; max-width: var(--container); }

/* ---- Buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.3rem; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
@media (hover: hover) { .btn--primary:hover { background: var(--c-blue-dark); } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { padding: 1.1rem 1.3rem; background: var(--c-bg-alt); border-left: 4px solid var(--c-blue); border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.contact-card p { margin: 0; }
.form-card { padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
.form-card h2 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { min-height: 44px; padding: .55rem .7rem; border: 1px solid #b5b5b5; border-radius: var(--radius); font: inherit; background: var(--c-bg); color: var(--c-text); }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { min-height: 0; width: 22px; height: 22px; margin-top: .15rem; flex: none; }
.field--check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.field [aria-invalid="true"] { border: 2px solid #b00020; }
.field__error { color: #b00020; font-size: .88rem; font-weight: 600; }
:root[data-contrast="yellow"] .field__error, :root[data-contrast="yellow"] .form-status.is-error { color: #ff0; }
.form-status { margin: .8rem 0 0; font-weight: 600; }
.form-status.is-error { color: #b00020; }
.form-status.is-ok { color: var(--c-green); }
.map { margin-top: 2.5rem; }
.map iframe { width: 100%; height: 360px; border: 1px solid var(--c-border); }

/* ---- Footer ---- */
.site-footer { background: var(--c-footer); margin-top: 2rem; }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 1.25rem 2.5rem; }
.footer-contact { background: var(--c-navy); color: #fff; padding: 1.8rem 1.6rem; margin-top: 0; overflow-wrap: anywhere; }
.footer-contact h2 { color: #fff; margin: 0 0 1.2rem; font-size: 1.35rem; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: .93rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact a { color: #fff; }
.footer-contact .ico { width: 1.2em; text-align: center; flex: none; }
.footer-links { padding-top: 1.8rem; border-top: 0; }
.footer-links::before { content: ""; display: block; width: 140px; height: 2px; background: var(--c-green); margin-bottom: 1.3rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-green); font-size: .93rem; }
.site-footer__bottom { background: var(--c-green); color: #fff; padding: 1.4rem 0; font-size: .85rem; }

/* ---- Cookie consent ---- */
.cookie-consent { position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--c-navy); color: #fff; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.3); font-size: .9rem; }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; }
.cookie-consent a { color: #fff; }
.cookie-consent__actions { display: flex; gap: .5rem; flex: none; }
.cookie-consent .btn--primary { background: #fff; color: var(--c-navy); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: 700; cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .main-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 1rem; }
  .main-nav.is-open { display: flex; }
  .menu { flex-direction: column; }
  .menu li, .submenu li { display: flex; flex-wrap: wrap; }
  .menu > li > a { min-height: 48px; flex: 1; border-bottom: 1px solid var(--c-border); }
  .submenu-toggle { display: block; width: 48px; min-height: 48px; border: 0; border-bottom: 1px solid var(--c-border); background: none; cursor: pointer; }
  .submenu-toggle::before { content: "▾"; font-size: 1.1rem; color: var(--c-text); }
  .submenu-toggle[aria-expanded="true"]::before { content: "▴"; }
  .menu li > div, .menu li li > div { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; display: none; }
  .menu li > div.is-open { display: block; }
  .menu li:hover > div:not(.is-open), .menu li:focus-within > div:not(.is-open) { display: none; }
  .submenu a { flex: 1; padding-left: 1.5rem; min-height: 44px; display: flex; align-items: center; }
  .submenu .submenu a { padding-left: 2.5rem; }
  .submenu .has-sub > a::after { content: none; }
  .nav-search { margin: 1rem 0 0; }
  .nav-search input, .nav-search:focus-within input { width: 100%; padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
  .home-news { grid-template-columns: 1fr; }
  .site-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .a11y { width: 100%; justify-content: center; padding-bottom: .4rem; }
  .topbar__in { justify-content: center; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .prose .alignleft, .prose .alignright { float: none; margin: 0 0 1rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: 1; text-align: left; }
  .cookie-consent { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .site-footer__in { grid-template-columns: minmax(0, 1fr); }
  .search-form { flex-direction: column; }
  .pdf-embed iframe { height: 60vh; min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .site-footer, .cookie-consent, .post-nav, .breadcrumbs { display: none; } }
/* Escape-dismissed desktop dropdown stays closed until focus/pointer leaves the item */
@media (min-width: 1081px) { .menu > li.is-dismissed > div { opacity: 0 !important; visibility: hidden !important; } }
