/* Additions to the original Fortuna theme: accessibility + cookie consent. */

/* ---------- screen reader / skip link */
.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: 12px; top: -60px; z-index: 100000;
  padding: 10px 18px; background: #1d1d1d; color: #fff !important; font-weight: 600;
  border-radius: 3px; transition: top .15s;
}
.skip-link:focus { top: 12px; }
#main-content:focus { outline: none; }

/* ---------- visible keyboard focus (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid #1a73e8 !important;
  outline-offset: 2px;
}
#footer a:focus-visible, .cookie-banner :focus-visible { outline-color: #ffd54a !important; }

/* Sub-menus reachable with the keyboard: same display as on hover (li.active is set by site.js too). */
#menu > ul > li:focus-within > div { visibility: visible; opacity: 1; }

/* Mobile menu toggler is a real control */
#mobile_menu_toggler { cursor: pointer; }

/* Footer e-mail keeps the look of the plain text of the original */
#footer .footer_mail { color: inherit; }

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

/* ---------- consent placeholders (Twitter, Google Maps) */
.consent-placeholder { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
#footer .consent-placeholder { color: #ccc; }
.consent-placeholder__btn {
  display: inline-block; margin: 6px 8px 0 0; padding: 6px 14px; border: 2px solid currentColor;
  background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; border-radius: 3px;
}
.consent-placeholder__btn:hover { background: #45c9a0; border-color: #45c9a0; color: #1d1d1d; }
.consent-placeholder__link { text-decoration: underline; }
#footer .consent-placeholder__link { color: #fff; }

/* ---------- cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  background: #333; color: #fff; font-size: 14px; line-height: 1.5;
  box-shadow: 0 -1px 10px rgba(0,0,0,.2);
}
.cookie-banner[hidden], .cookie-dialog[hidden], .cookie-manage[hidden] { display: none !important; }
.cookie-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  max-width: 1170px; margin: 0 auto; padding: 14px 20px;
}
.cookie-banner__text { margin: 0; flex: 1 1 420px; color: #fff; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-btn {
  padding: 8px 18px; border: 2px solid #45c9a0; border-radius: 3px; background: #45c9a0; color: #1d1d1d;
  font: 700 13px/1.4 'Open Sans', Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.cookie-btn:hover { background: #6fd8b7; border-color: #6fd8b7; }
.cookie-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cookie-btn--ghost:hover { background: #fff; color: #1d1d1d; border-color: #fff; }
.cookie-btn--link { background: none; border-color: transparent; color: #fff; text-decoration: underline; text-transform: none; letter-spacing: 0; font-weight: 600; }
.cookie-btn--link:hover { background: none; border-color: transparent; color: #45c9a0; }

.cookie-manage {
  position: fixed; left: 20px; bottom: 0; z-index: 9999; padding: 6px 14px;
  background: #fff; color: #333; border: 1px solid #333; border-bottom: 0; border-radius: 4px 4px 0 0;
  font: 600 13px/1.4 'Open Sans', Arial, sans-serif; cursor: pointer;
}

.cookie-dialog {
  position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); padding: 16px;
}
.cookie-dialog__box {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: #333; border-radius: 4px; padding: 30px 28px 20px; font-size: 14px; line-height: 1.6;
}
.cookie-dialog__box:focus { outline: none; }
.cookie-dialog h2 { font-size: 20px; margin: 0 0 12px; color: #333; letter-spacing: 0; }
.cookie-dialog__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 6px;
  border: 0; background: transparent; cursor: pointer; color: #333;
}
.cookie-dialog__close svg { width: 24px; height: 24px; fill: currentColor; }
.cookie-dialog__group { border: 1px solid #ddd; border-radius: 3px; padding: 10px 14px; margin: 0 0 12px; }
.cookie-dialog__group legend { font-weight: 700; padding: 0 6px; color: #333; }
.cookie-dialog__row { margin: 0 0 6px; }
.cookie-dialog__row label { font-weight: 600; }
.cookie-dialog__always { font-weight: 400; color: #555; }
.cookie-dialog__desc { margin: 0; color: #555; }
.cookie-dialog__footer { text-align: right; padding-top: 6px; }
html.cookie-dialog-open { overflow: hidden; }

@media (max-width: 600px) {
  .cookie-banner__inner { padding: 12px 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .cookie-btn:not(.cookie-btn--link) { flex: 1 1 auto; }
}

/* Events Calendar title bar: category name shown like the theme h1 (the real h1 is the calendar title). */
.page_heading p.h1 {
  font-size: 20px; line-height: 27px; margin: 0; color: #fff;
  font-family: "Open Sans", arial; font-weight: 700; letter-spacing: -0.04em;
}
