/*
 * Modern CSS for Marsja Mudde Muziek
 * A contemporary refresh - works WITH custom.css
 * Only overrides visual styling, not layout
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Refined and Modern */
  --color-primary: #1a5f7a;
  --color-primary-light: #2d8bb5;
  --color-primary-dark: #0d3d4d;

  --color-accent: #c45c3e;
  --color-accent-light: #d97b5f;
  --color-accent-dark: #9a4730;

  --color-secondary: #d4a574;

  /* Neutrals */
  --color-bg: #fafafa;
  --color-bg-warm: #f8f6f3;
  --color-bg-card: #ffffff;

  --color-text: #2d3436;
  --color-text-light: #636e72;

  --color-border: #e5e7eb;

  /* Calendar Colors */
  --color-events: #e8f4f8;
  --color-events-border: #b8dae6;
  --color-workshops: #fef3f0;
  --color-workshops-border: #f5c7b8;

  /* Shadows - Softer */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Border radius */
  --border-radius: 8px;
  --border-radius-lg: 12px;
}


/* ============================================
   Base - Only color and typography updates
   ============================================ */
html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  overscroll-behavior: none;
  font-size: 1rem;
}

/* Consistent font size for all content */
.content,
.content p,
.content li,
.content div:not(.event-card__date),
.post,
.post p,
.post li,
.posts,
.posts p,
.posts li,
.capital-m,
.capital-m p {
  font-size: 1rem !important;
}

/* Smoother scrolling, disable bounce */
html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

/* Link colors */
a {
  transition: color var(--transition-fast);
}


/* ============================================
   Typography - Improved hierarchy
   ============================================ */
h1 {
  color: #003399;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  color: #003399;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  color: #003399;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

h4 {
  color: #ed4001;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Paragraph spacing */
p {
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

/* Better spacing after headings */
h1 + p,
h2 + p,
h3 + p,
h4 + p {
  margin-top: 0;
}

/* Lists */
ul, ol {
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

li {
  margin-bottom: 0.15rem;
}

/* Lead paragraph - first paragraph after title */
.post > p:first-of-type,
.content > .container > p:first-of-type {
  font-size: 1rem;
  line-height: 1.45;
}

/* Override base styles */
.content {
  line-height: 1.45 !important;
}

/* Blockquotes */
blockquote {
  font-style: italic;
  border-left: 4px solid #b4250c;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #555;
}

blockquote p {
  margin-bottom: 0;
}

/* ============================================
   Images - Subtle improvements
   ============================================ */
.content img {
  border-radius: 6px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease !important;
}

.content img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
}

/* No hover effects on header images */
.header img {
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}

.header img:hover {
  box-shadow: none !important;
}

/* Move tagline to the right to avoid menu overlap */
.header img:nth-of-type(2) {
  padding-left: 14em !important;
}

/* Show more of gothic arch and wider menu */
@media (min-width: 60em) {
  .sidebar {
    background-position: top right !important;
    width: 17rem !important;
  }
}

/* Images with float (already styled inline) */
.content img[style*="float"] {
  margin-bottom: 1rem;
}

/* Full-width images */
.content figure {
  margin: 1.5rem 0;
}

.content figure img {
  width: 100%;
}

.content figcaption {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}


/* ============================================
   Sidebar - Keep gothic arch background
   ============================================ */
.sidebar {
  /* Keep the original gothic arch background image */
  box-shadow: var(--shadow-lg);
}

.sidebar a {
  transition: all var(--transition-fast);
}

.sidebar a:hover {
  transform: translateX(2px);
}

.sidebar .lang-switch img {
  transition: all var(--transition-fast);
}

.sidebar .lang-switch:hover img {
  transform: scale(1.1);
}

.sidebar-nav li a.active,
.sidebar-nav .menu-item a.active,
.sidebar nav li a.active {
  color: #d4a574 !important;
}

.sidebar-nav li a:hover {
  color: #d4a574;
  font-weight: normal; /* Prevent text from jumping */
}

/* Submenu items - better distinction */
.sidebar-nav ul {
  margin-left: 1.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-nav .indent,
.sidebar-nav li.indent {
  margin-left: 0;
}

.sidebar-nav .indent a,
.sidebar-nav li.indent a {
  font-size: 0.8em !important;
  opacity: 0.85;
}

.sidebar-nav .indent a:hover,
.sidebar-nav li.indent a:hover {
  opacity: 1;
}

.sidebar .social-icons a {
  transition: all var(--transition-fast);
}

.sidebar .social-icons a:hover {
  transform: scale(1.15);
}


/* ============================================
   Header - Subtle improvements
   ============================================ */
.header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #fffcf3 !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Ensure content scrolls under header */
.content.container {
  position: relative;
  z-index: 1;
}

ul.posts,
div.posts,
div.post,
.home-posts {
  position: relative;
  z-index: 1;
}


/* ============================================
   Label/Ribbon - Keep medieval style
   ============================================ */
.label {
  /* Keep the original medieval ribbon clip-path from custom.css */
  /* Only update the color to match new palette */
  background-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.label h2 {
  /* Keep original Copperplate font for medieval feel */
}


/* ============================================
   Content - Visual updates only
   ============================================ */
.content {
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
}

/* Vertical accent line for page content - parent pages (ul.posts) */
ul.posts {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  list-style: none;
  overflow: visible;
}

/* Allow capital-m decorative letter to overflow */
.capital-m {
  overflow: visible !important;
}

/* Clear floats after capital-m so list items start fresh */
.capital-m::after {
  content: "";
  display: table;
  clear: both;
}

/* List items after capital-m should not be indented */
ul.posts > li {
  clear: both;
}

/* Ensure full decorative M is visible with space around it */
.content .capital-m p:first-child::first-letter,
.content .capital-m h3:first-child::first-letter {
  background-size: contain !important;
  padding-right: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Extra space for capital-m pages while keeping border */
/* Capital-m with h3 needs more top space */
ul.posts:has(> .capital-m h3:first-child),
ul.posts:has(> div.capital-m h3:first-child) {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  padding-top: 2rem !important;
  margin-top: 0 !important;
  overflow: visible;
}

/* Capital-m with p needs less top space */
ul.posts:has(> .capital-m p:first-child),
ul.posts:has(> div.capital-m p:first-child) {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  padding-top: 1.5rem !important;
  margin-top: 0 !important;
  overflow: visible;
}

/* Vertical accent line for child pages (div.post without home-posts parent) */
main.content > div.post {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

/* Child pages with capital-m need extra top space and keep border */
main.content > div.post:has(.capital-m) {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  padding-top: 1.5rem !important;
  margin-top: 0.5rem !important;
  overflow: visible;
}

/* Consistent top spacing after header - all page types */
ul.posts:not(:has(> .capital-m)),
div.posts,
.home-posts,
main.content > div.post:not(:has(.capital-m)) {
  margin-top: 1.75rem !important;
  padding-top: 0 !important;
}

/* Hide br tags that add unwanted space */
ul.posts > br,
.posts > br,
ul.posts br:first-child {
  display: none !important;
  line-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* First content element - no extra top margin */
.posts article:first-child,
.posts > div:first-of-type:not(.capital-m),
ul.posts > li:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Clearfix for list items with floated images */
ul.posts > li::after {
  content: "";
  display: table;
  clear: both;
}

ul.posts > li {
  overflow: hidden;
}

/* Reduce gap between link title and h3 in workshop list */
ul.posts > li > .flex + h3 {
  margin-top: 0 !important;
}

/* Capital-m needs extra top space for the decorative letter */
.posts > .capital-m:first-child,
.posts .capital-m:first-child,
ul.posts > .capital-m {
  margin-top: 1rem !important;
  padding-top: 0.5rem !important;
}

.posts .capital-m h3:first-child,
.posts .capital-m p:first-child,
.posts article:first-child h3,
ul.posts > li:first-of-type h3,
ul.posts > div:first-of-type h3,
ul.posts > div:first-of-type p:first-child {
  margin-top: 0 !important;
}

/* Drop cap refinement */
.content p:first-child::first-letter,
h3:first-child::first-letter {
  color: var(--color-accent);
}

/* Link styling */
.content a {
  color: var(--color-accent);
  transition: all var(--transition-fast);
}

.content a:hover {
  color: var(--color-accent-dark);
}

.content a:visited {
  color: var(--color-accent-dark);
}


/* ============================================
   Posts / News items (homepage only)
   ============================================ */
.home-posts .post {
  border-bottom: none;
  padding: 0.5rem 1.25rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  border-left: 4px solid #b4250c;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Subtle but visible links in news */
.home-posts .post p a {
  color: var(--color-accent) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.home-posts .post p a:hover {
  color: var(--color-accent-dark) !important;
  text-decoration-thickness: 3px;
}

.home-posts .post:last-child {
  margin-bottom: 0;
}

.home-posts .post h3 {
  margin-top: 0 !important;
}

.home-posts .post p:last-child {
  margin-bottom: 0 !important;
}

/* Child pages - clean styling without news card look */
main.content > div.post {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

main.content > div.post > div:first-child,
main.content > div.post > div:first-child h3:first-child,
main.content > div.post > div:first-child p:first-child,
main.content > div.post h3:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-posts .post h3::before {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b4250c;
  background: rgba(180, 37, 12, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.75rem;
  vertical-align: middle;
  font-weight: 700;
}

:lang(nl) .home-posts .post h3::before {
  content: 'Nieuws';
}

:lang(en) .home-posts .post h3::before {
  content: 'News';
}

/* Intro text - no news label, different style */
.home-posts .post .capital-m h3::before,
.home-posts .capital-m h3::before {
  display: none !important;
}

.home-posts .post:has(.capital-m) {
  border-left: 4px solid #176a99;
  padding-left: 1.5rem;
  padding-top: 2rem;
  margin-top: 1rem;
  overflow: visible;
}

.readmore a {
  display: inline-block;
  color: var(--color-primary) !important;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.readmore a:hover {
  color: var(--color-primary-dark) !important;
  border-bottom-color: var(--color-primary);
}


/* ============================================
   Calendar/Agenda - Modern Card Layout
   ============================================ */

/* Events Grid */
.calendar .events-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
}

/* Event Card */
a.event-card {
  display: flex !important;
  align-items: stretch !important;
  background: #f6e8d7 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: #2d3436 !important;
  transition: all 0.25s ease !important;
  border: 1px solid #e0d0c0 !important;
}

a.event-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  color: #2d3436 !important;
  border-color: #c0b0a0 !important;
}

/* Date Badge */
.event-card__date {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem 1rem !important;
  width: 6rem !important;
  min-width: 6rem !important;
  max-width: 6rem !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.event-card--concert .event-card__date {
  background: #176a99 !important;
  color: #ffffff !important;
}

.event-card--workshop .event-card__date {
  background: #b4250c !important;
  color: #ffffff !important;
}

.event-card--online .event-card__date {
  background: #6b5b95 !important;
  color: #ffffff !important;
}

.event-card__day {
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #ffffff !important;
}

.event-card__day--range {
  font-size: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  line-height: 1.1 !important;
}

.event-card__day-separator {
  font-size: 0.7rem !important;
  opacity: 0.7;
  line-height: 1 !important;
}


/* ============================================
   Popup/Modal for Workshop Promotion
   ============================================ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #fff;
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  color: #333;
  transition: all var(--transition-fast);
}

.popup-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.popup-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-text {
  padding: 1.5rem;
  text-align: center;
}

.popup-label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.popup-text h3 {
  color: var(--color-primary-dark);
  margin: 0 0 0.75rem 0;
  font-size: 1.4rem;
}

.popup-text p {
  color: var(--color-text-light);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.popup-date {
  color: var(--color-accent) !important;
  font-size: 1rem !important;
  margin-top: 0.75rem !important;
}

.popup-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all var(--transition-fast);
}

.popup-button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .popup-image {
    height: 140px;
  }

  .popup-text {
    padding: 1rem;
  }

  .popup-text h3 {
    font-size: 1.2rem;
  }
}


/* ============================================
   Contact/Registration Forms
   ============================================ */
.contact-form {
  max-width: 500px;
  margin: 1.5rem 0;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.contact-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.contact-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.contact-form .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.contact-form .form-submit {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.contact-form .form-submit:hover {
  background-color: var(--color-accent-dark);
}

.event-card__month {
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-top: 0.35rem !important;
  color: #ffffff !important;
}

.event-card__year {
  font-size: 0.8rem !important;
  opacity: 0.85 !important;
  margin-top: 0.2rem !important;
  color: #ffffff !important;
}

/* Card Content */
.event-card__content {
  flex: 1 !important;
  padding: 1.25rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: #f6e8d7 !important;
}

.event-card__type {
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
  margin-bottom: 0.35rem !important;
}

.event-card--concert .event-card__type {
  color: #176a99 !important;
}

.event-card--workshop .event-card__type {
  color: #b4250c !important;
}

.event-card--online .event-card__type {
  color: #6b5b95 !important;
}

.event-card__title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #2d3436 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.event-card__title::first-letter {
  font-size: inherit !important;
  float: none !important;
  color: inherit !important;
}

.event-card__description {
  font-size: 1rem !important;
  color: #636e72 !important;
  margin: 0.5rem 0 0 0 !important;
  line-height: 1.45 !important;
}

/* Arrow */
.event-card__arrow {
  display: flex !important;
  align-items: center !important;
  padding: 0 1.25rem !important;
  color: #a09080 !important;
  transition: all 0.2s ease !important;
  background: #f6e8d7 !important;
}

a.event-card:hover .event-card__arrow {
  transform: translateX(5px) !important;
}

.event-card--concert:hover .event-card__arrow {
  color: #176a99 !important;
}

.event-card--workshop:hover .event-card__arrow {
  color: #b4250c !important;
}

.event-card--online:hover .event-card__arrow {
  color: #6b5b95 !important;
}

/* Legend */
.calendar .calendar-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.calendar .calendar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.calendar .calendar-legend .legend-item::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.calendar .calendar-legend .legend-events::before {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.calendar .calendar-legend .legend-workshops::before {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

/* No events message */
.no-events {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
}

/* Mobile responsive - match custom.css breakpoint */
@media (max-width: 60em) {
  /* Larger logo on mobile */
  .header img:first-of-type {
    max-width: 95% !important;
    min-width: 250px !important;
  }

  /* Larger title on mobile */
  .label h2 {
    font-size: 1.4em !important;
  }

  /* Compact header on scroll */
  .header {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out !important;
    will-change: max-height, padding;
    transform: translateZ(0);
  }

  .header img:first-of-type {
    transition: max-width 0.3s ease-out, max-height 0.3s ease-out !important;
    will-change: max-width, max-height;
  }

  .header .label,
  .header img:nth-of-type(2) {
    transition: opacity 0.2s ease-out !important;
    will-change: opacity;
  }

  .header.header-compact {
    min-height: auto !important;
    height: auto !important;
    max-height: 4rem !important;
    padding: 0.25rem !important;
    overflow: hidden !important;
  }

  .header.header-compact img:first-of-type {
    max-width: 40% !important;
    max-height: 3rem !important;
    min-width: auto !important;
  }

  .header.header-compact .label,
  .header.header-compact img:nth-of-type(2) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Smaller mobile */
@media (max-width: 40em) {

  .event-card {
    flex-direction: column;
  }

  .event-card__date {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: auto;
  }

  .event-card__day {
    font-size: 1.25rem;
  }

  .event-card__month,
  .event-card__year {
    font-size: 0.85rem;
    margin: 0;
  }

  .event-card__arrow {
    display: none;
  }
}


/* ============================================
   Toggle Button - Modern
   ============================================ */
.toggle {
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.toggle:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.05);
}


/* ============================================
   Accessibility - Updated colors
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.sidebar a:focus-visible {
  outline-color: var(--color-secondary);
}

.skip-link:focus {
  background: var(--color-primary);
}


/* ============================================
   Blockquotes
   ============================================ */
blockquote {
  border-left-color: var(--color-accent);
  color: var(--color-text-light);
}


/* ============================================
   Pagination
   ============================================ */
.pagination li a {
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.pagination li a:hover,
.pagination li.active a {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}


/* ============================================
   Subtle animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content > .container {
  animation: fadeIn 0.4s ease-out;
}


/* ============================================
   Breadcrumbs - Subtle navigation aid
   ============================================ */
nav.breadcrumbs {
  padding: 0.25rem 0 !important;
  margin-bottom: 0.25rem !important;
  font-size: 0.75rem !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

nav.breadcrumbs:hover {
  opacity: 0.9;
}

nav.breadcrumbs ol.breadcrumbs__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

nav.breadcrumbs ol.breadcrumbs__list li.breadcrumbs__item {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--color-text-light);
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

nav.breadcrumbs ol.breadcrumbs__list li.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.4rem;
  color: var(--color-text-light);
  opacity: 0.5;
}

nav.breadcrumbs .breadcrumbs__link {
  color: var(--color-text-light);
  text-decoration: none;
}

nav.breadcrumbs .breadcrumbs__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

nav.breadcrumbs .breadcrumbs__item--current {
  color: var(--color-text-light);
}

@media (max-width: 30em) {
  nav.breadcrumbs {
    font-size: 0.7rem !important;
  }
}


/* ============================================
   Larger inline images
   ============================================ */
.content img[style*="float"],
.posts img[style*="float"],
.post img[style*="float"],
.capital-m img[style*="float"] {
  width: 18rem !important;
  max-width: 45% !important;
  height: auto !important;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-top: 0.25rem !important;
}

@media (max-width: 60em) {
  .content img[style*="float"],
  .posts img[style*="float"],
  .post img[style*="float"],
  .capital-m img[style*="float"] {
    width: 15rem !important;
    max-width: 40% !important;
  }
}

@media (max-width: 40em) {
  .content img[style*="float"],
  .posts img[style*="float"],
  .post img[style*="float"],
  .capital-m img[style*="float"] {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
  }
}
