/* =====================================================
   Seattle Emergency Hubs – Main Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Reset & Base ----------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #2e86c1;   /* medium blue      */
  --color-secondary: #1e8449;   /* forest green     */
  --color-accent:    #ff4d00;   /* signal orange    */
  --color-bg:        #f4f6f8;   /* light grey bg    */
  --color-surface:   #ffffff;
  --color-text:      #2c3e50;
  --color-muted:     #5d6d7e;
  --color-border:    #d5dbdb;
  --color-footer-bg: #1a2e3a;
  --color-footer-text: #bdc3c7;
  --header-scale:    1.5;
  --header-height:   56px;
  --max-width:       1100px;
  --radius:          6px;
  --shadow:          0 2px 8px rgba(0,0,0,0.10);
}

/* --- Dark Mode Variables ---------------------------- */
[data-theme="dark"] {
  --color-bg:          #111827;
  --color-surface:     #1f2937;
  --color-text:        #e2e8f0;
  --color-muted:       #94a3b8;
  --color-border:      #374151;
  --color-footer-bg:   #0d1117;
  --color-footer-text: #9ca3af;
  --shadow:            0 2px 8px rgba(0,0,0,0.40);
}

[data-theme="dark"] .notice       { background: #1e3a5f; }
[data-theme="dark"] .notice.green  { background: #14432a; }
[data-theme="dark"] .notice.orange { background: #3d2a0c; }

[data-theme="dark"] .alpha-warning-badge {
  background: #451a03;
  color: #fcd34d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Skip Link (accessibility) ---------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* --- Alpha Banner ---------------------------------- */
.alpha-site-banner {
  background: #b91c1c;
  color: #fff;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.alpha-site-banner-label {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.alpha-site-banner-text {
  max-width: 72rem;
}

.alpha-site-banner-text a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .alpha-site-banner {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
  }
}

/* --- Alpha Warning Modal ---------------------------- */
body.alpha-warning-open {
  overflow: hidden;
}

.alpha-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.alpha-warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.72);
  backdrop-filter: blur(3px);
}

.alpha-warning-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.5rem 1.5rem 1.25rem;
}

.alpha-warning-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fef3c7;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.alpha-warning-dialog h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.alpha-warning-dialog p {
  font-size: 1rem;
  color: var(--color-text);
}

.alpha-warning-dialog a {
  font-weight: 700;
}

.alpha-warning-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* --- Site Header ------------------------------------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(0.75rem * var(--header-scale)) calc(1.5rem * var(--header-scale));
  display: flex;
  align-items: center;
  gap: calc(1.5rem * var(--header-scale));
}

/* Logo / org name */
.site-branding {
  display: flex;
  align-items: center;
  gap: calc(0.85rem * var(--header-scale));
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: calc(44px * var(--header-scale));
  width: auto;
  display: block;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.site-title:hover {
  text-decoration: none;
  opacity: 0.9;
}
.site-title span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: calc(5px * var(--header-scale));
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(4px * var(--header-scale));
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: calc(24px * var(--header-scale));
  height: calc(2px * var(--header-scale));
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(calc(7px * var(--header-scale))) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(calc(-7px * var(--header-scale))) rotate(-45deg);
}

/* --- Theme Toggle ----------------------------------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(36px * var(--header-scale));
  height: calc(36px * var(--header-scale));
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: calc(1.1rem * var(--header-scale));
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.28);
}

/* --- Navigation ------------------------------------- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: calc(0.25rem * var(--header-scale));
  flex-wrap: nowrap;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: flex;
  align-items: center;
  gap: calc(0.3rem * var(--header-scale));
  padding: calc(0.45rem * var(--header-scale)) calc(0.75rem * var(--header-scale));
  border-radius: var(--radius);
  color: rgba(255,255,255,0.9);
  font-size: calc(0.9rem * var(--header-scale));
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li > a.active,
.nav-list > li > button.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
}

/* Dropdown caret */
.caret {
  font-size: calc(0.7rem * var(--header-scale));
  transition: transform 0.2s;
  display: inline-block;
}
.nav-list > li > button[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + calc(4px * var(--header-scale)));
  left: 0;
  min-width: calc(200px * var(--header-scale));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
}
.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: calc(0.55rem * var(--header-scale)) calc(1rem * var(--header-scale));
  color: var(--color-text);
  font-size: calc(0.9rem * var(--header-scale));
  transition: background 0.12s;
}
.dropdown-menu a:hover {
  background: var(--color-bg);
  text-decoration: none;
}

/* --- Main Content ----------------------------------- */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Page Hero -------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1f618d 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Section Headings ------------------------------- */
h1, h2, h3 {
  color: var(--color-primary);
  line-height: 1.25;
}
h1 { font-size: 1.9rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

/* --- Home Intro ------------------------------------- */
.home-intro {
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-secondary);
  display: inline-block;
}

/* --- Blog Posts ------------------------------------- */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.post-card.has-image {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.post-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #2e86c1 0%, #1e8449 100%);
}

.post-card.has-image .post-card-media {
  flex: 0 0 clamp(110px, 18vw, 170px);
  width: clamp(110px, 18vw, 170px);
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--color-border);
}

/* Wide artwork (event banners) runs full width above the text instead of
   being cropped into the square thumbnail. */
.post-card.has-banner {
  flex-direction: column;
  align-items: stretch;
}

.post-card.has-banner .post-card-media {
  flex: none;
  width: 100%;
  aspect-ratio: auto;
  border-right: none;
  border-bottom: 1px solid var(--color-border);
}

.post-card.has-banner .post-card-media img {
  height: auto;
  object-fit: contain;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-card-body {
  padding: 1.5rem 1.75rem 1.25rem;
  flex: 1;
}

.post-card.has-image .post-card-body {
  min-width: 0;
}

.post-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border: none;
}
.post-card h2 a {
  color: var(--color-primary);
  text-decoration: none;
}
.post-card h2 a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.post-excerpt {
  font-size: 1rem;
  color: var(--color-text);
}

.post-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--color-border);
}

.post-card.has-image .post-card-footer {
  margin-top: auto;
}

@media (max-width: 680px) {
  .post-card.has-image {
    display: flex;
    flex-direction: column;
  }

  .post-card.has-image .post-card-media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* Blog post article */
.post-article {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 780px;
}

.post-featured {
  margin: 0.5rem 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.post-featured img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

/* Banner artwork keeps its own proportions rather than being cropped to 16/8. */
.post-featured.is-banner img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.post-article p {
  margin-bottom: 1rem;
}

.post-article ul,
.post-article ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

/* Inline artwork within a post body, sized so tall images do not dominate. */
.post-figure {
  margin: 1.5rem auto;
  max-width: 440px;
}

.post-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.post-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.back-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* --- Event Calendar --------------------------------- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  overflow: hidden;
}

.event-date-block {
  background: var(--color-primary);
  color: #fff;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  text-align: center;
  flex-shrink: 0;
}
.event-date-block .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.event-date-block .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.event-date-block .year {
  font-size: 0.7rem;
  opacity: 0.7;
}

.event-info {
  padding: 1rem 1.25rem 1rem 0;
  flex: 1;
}
.event-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.event-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.event-meta span {
  margin-right: 1rem;
}
.event-info p {
  font-size: 0.9rem;
}

.calendar-embed {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.calendar-frame {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
}

.calendar-frame-agenda {
  min-height: 500px;
}

/* --- Map -------------------------------------------- */
#hub-map {
  height: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.map-legend {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.map-legend h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Hubs ------------------------------------------- */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-left: 4px solid var(--color-secondary);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.hub-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.hub-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

/* Hub detail page */
.hub-detail {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 780px;
}
.hub-detail p {
  margin-bottom: 1rem;
}
.hub-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.hub-info-item {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1rem;
}
.hub-info-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}
.hub-info-item .value {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* --- Resources -------------------------------------- */
.resources-section {
  margin-bottom: 2.5rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s;
}
.resource-card:hover {
  transform: translateY(-2px);
}

.resource-icon {
  font-size: 2rem;
}

.resource-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}
.resource-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  flex: 1;
}

/* --- Footer ----------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-cta-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.footer-cta-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.footer-cta-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--color-footer-text);
}
.btn-footer {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-footer:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn-mail {
  background: var(--color-secondary);
  color: #fff;
}
.btn-donate {
  background: var(--color-accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.footer-bottom a {
  color: var(--color-footer-text);
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Utility ---------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Notice / info box */
.notice {
  background: #eaf4fb;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.notice.green {
  background: #eafaf1;
  border-color: var(--color-secondary);
}
.notice.orange {
  background: #fef9e7;
  border-color: var(--color-accent);
}

/* --- Responsive ------------------------------------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.75rem;
  }
  .site-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: calc(0.75rem * var(--header-scale)) calc(1rem * var(--header-scale));
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    width: 100%;
    justify-content: space-between;
    padding: calc(0.55rem * var(--header-scale)) calc(0.5rem * var(--header-scale));
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
  }
  .dropdown-menu a {
    color: rgba(255,255,255,0.85);
    padding: calc(0.5rem * var(--header-scale)) calc(1.5rem * var(--header-scale));
  }
  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
  }

  main {
    padding: 1.25rem 1rem;
  }

  .event-card {
    flex-direction: column;
  }
  .event-date-block {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }
  .event-info {
    padding: 0 1rem 1rem;
  }

  .calendar-frame {
    min-height: 480px;
  }

  .calendar-frame-agenda {
    min-height: 420px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
