/**
 * SCAD Theme Main Stylesheet
 * 
 * This file imports all theme styles in the correct order.
 * Uses PostCSS for processing with nested rules and custom properties.
 */

/* Configuration and Design Tokens */

/**
 * Design Tokens
 * 
 * CSS custom properties for consistent design system implementation.
 * These can be overridden by theme settings via inline styles.
 */

:root {
  /* Brand Colors */
  --color-primary: #008c95; /* Dental Teal */
  --color-primary-light: #00b3be;
  --color-primary-dark: #006a71;
  --color-accent: #ff715b; /* Coral */
  --color-accent-light: #ff9685;
  --color-accent-dark: #e54a32;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-success-light: #d4edda;
  --color-success-dark: #155724;
  --color-warning: #ffc107;
  --color-warning-light: #fff3cd;
  --color-warning-dark: #856404;
  --color-error: #dc3545;
  --color-error-light: #f8d7da;
  --color-error-dark: #721c24;
  --color-info: #17a2b8;
  --color-info-light: #d1ecf1;
  --color-info-dark: #0c5460;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-black: #000000;
  
  /* Text Colors */
  --color-text-primary: #111927;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-text-inverse: var(--color-white);
  
  /* Additional Colors */
  --color-navy: #00263a; /* Deep Navy */
  --color-mint: #a8e6cf; /* Fresh Mint */
  --color-pearl: #f5f5f5; /* Pearl White */
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Inter', var(--font-primary);
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
  
  /* Heading Sizes */
  --font-size-h1: 2.5rem; /* 40px mobile */
  --font-size-h1-lg: 3.5rem; /* 56px desktop */
  --font-size-h2: 2rem; /* 32px */
  --font-size-h3: 1.75rem; /* 28px */
  --font-size-h4: 1.5rem; /* 24px */
  --font-size-h5: 1.25rem; /* 20px */
  --font-size-h6: 1.125rem; /* 18px */
  
  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */
  --spacing-4xl: 6rem; /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-2xl: 1.5rem; /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-base: 0.3s ease-in-out;
  --transition-fast: 0.15s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Z-Index Scale */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Layout */
  --container-max-width: 1200px;
  
  /* SCAD Layout Variables */
  --scad-gutter: 1.5rem;
  --scad-max-width: 1400px;
  --scad-space-lg: 2rem;
  --container-padding: var(--spacing-md);
  
  /* Focus */
  --color-focus: rgba(0, 140, 149, 0.5);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
}

/* Dark mode (future enhancement) */

@media (prefers-color-scheme: dark) {
  .color-mode--auto {
    --color-text-primary: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-400);
    /* Add more dark mode overrides */
  }
}

.color-mode--dark {
  --color-text-primary: var(--color-gray-100);
  --color-text-secondary: var(--color-gray-400);
  /* Add more dark mode overrides */
}

/**
 * Media Query Definitions
 * 
 * Custom media queries for responsive design.
 * These match the breakpoints defined in scad_theme.breakpoints.yml
 */

/* Additional utility queries */

/* Orientation queries */

/* High resolution displays */

/* Reduced motion preference */

/* Color scheme preference */

/* Base styles and resets */

/**
 * Reset & Normalize
 * 
 * Modern CSS reset with sensible defaults.
 */

/* Box sizing rules */

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

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Set core root defaults */

html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  line-height: var(--line-height-base);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #111927;
  color: var(--color-text-primary);
  background-color: #ffffff;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A elements that don't have a class get default styles */

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
  color: #008c95;
  color: var(--color-primary);
  text-decoration: underline;
}

a:not([class]):hover {
  color: #006a71;
  color: var(--color-primary-dark);
}

/* Make images easier to work with */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */

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

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */

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

/* Remove default button styles */

button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Remove default fieldset styles */

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Remove default blockquote styles */

blockquote {
  quotes: none;
}

blockquote::before,
blockquote::after {
  content: '';
  content: none;
}

/* Tables */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Hidden but accessible */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #008c95;
  background: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  padding: 0.5rem 1rem;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: 1070;
  z-index: var(--z-index-tooltip);
}

.skip-link:focus {
  top: 0;
}

/**
 * Typography System
 * 
 * Comprehensive typography implementation for optimal reading experience
 */

/* Responsive Type Scale using clamp() */

:root {
  /* Base type scale (1.333 ratio - perfect fourth) */
  --step-0: clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem);   /* body: 14.4px → 18px */
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);      /* h4: 19.2px → 24px */
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);       /* h3: 25.6px → 32px */
  --step-3: clamp(1.75rem, 1.6rem + 0.8vw, 2.25rem);       /* h2: 33.6px → 44px */
  --step-4: clamp(2.25rem, 2rem + 1.1vw, 3rem);      /* h1: 44.8px → 57.6px */
  
  /* Updated font families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Line heights */
  --line-height-heading: 1.2;
  --line-height-body: 1.6;
  --line-height-tight: 1.25;
  --line-height-relaxed: 1.75;
  
  /* Letter spacing */
  --letter-spacing-heading: -0.02em;
  --letter-spacing-body: 0;
  --letter-spacing-caps: 0.05em;
  
  /* Content width */
  --content-width: 75ch;
  --content-width-narrow: 65ch;
  --content-width-wide: 90ch;
}

/* Base body styles */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem);
  font-size: var(--step-0);
  line-height: 1.6;
  line-height: var(--line-height-body);
  color: #111927;
  background-color: #ffffff;
  font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1, "kern";
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  hyphens: auto;
}

/* Content width constraints */

.content-wrapper,
.text-content,
.node__content,
.field--name-body {
  max-width: 75ch;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* Headings with modular scale */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
  letter-spacing: var(--letter-spacing-heading);
  color: #111927;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem; /* Account for sticky header */
}

h1, .h1 {
  font-size: clamp(2.25rem, 2rem + 1.1vw, 3rem);
  font-size: var(--step-4);
  margin-top: 0;
}

h2, .h2 {
  font-size: clamp(1.75rem, 1.6rem + 0.8vw, 2.25rem);
  font-size: var(--step-3);
}

h3, .h3 {
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  font-size: var(--step-2);
}

h4, .h4 {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-size: var(--step-1);
}

h5, .h5 {
  font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem);
  font-size: var(--step-0);
  font-weight: 600;
}

h6, .h6 {
  font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem);
  font-size: var(--step-0);
  font-weight: 600;
  color: #6b7280;
}

/* Paragraphs with optimal spacing */

p {
  margin-block: 0 1rem;
  widows: 2;
  orphans: 2;
}

p + p {
  margin-top: 1rem;
}

/* Lead paragraph */

.lead,
.field--name-body > p:first-of-type {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  margin-bottom: 1.5rem;
}

/* Links with improved accessibility */

a {
  color: #008c95;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: #006a71;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #008c95;
  outline-offset: 2px;
  text-decoration: none;
}

/* Lists with better readability */

ul, ol {
  margin-block: 0.75rem 1.25rem;
  padding-inline-start: 1.1em;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
  text-indent: -0.3em;
  padding-left: 0.3em;
}

/* Ordered lists for membership criteria */

ol.membership-list,
.field--name-body ol {
  list-style-position: inside;
  counter-reset: item;
}

ol.membership-list li,
.field--name-body ol li {
  counter-increment: item;
  list-style: none;
  position: relative;
  padding-left: 2rem;
  text-indent: 0;
}

ol.membership-list li::before,
.field--name-body ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: #008c95;
}

/* Blockquotes */

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #008c95;
  background-color: #f3f4f6;
  font-size: 1.125rem;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  color: #6b7280;
}

blockquote cite::before {
  content: '— ';
}

/* Tables with numeric alignment */

table {
  font-feature-settings: tabular-nums lining-nums;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Code blocks */

code,
kbd,
samp {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

pre {
  display: block;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background-color: #1f2937;
  color: #e5e7eb;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

pre code {
  padding: 0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
}

/* Horizontal rules */

hr {
  margin: 3rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

/* Metadata and small text */

.text-meta,
.submitted,
.node__submitted,
time,
.author {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

/* Utility classes */

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Prevent widows in headings */

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/**
 * Forms
 * 
 * Base form element styles.
 */

/* Form groups */

.form-group {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
}

/* Labels */

label {
  display: inline-block;
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
}

/* Required field indicator */

.form-required {
  color: #dc3545;
  color: var(--color-error);
  margin-left: 0.25rem;
  margin-left: var(--spacing-xs);
}

/* Form controls */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-family: inherit;
  line-height: 1.5;
  line-height: var(--line-height-base);
  color: #111927;
  color: var(--color-text-primary);
  background-color: #ffffff;
  background-color: var(--color-white);
  border: 2px solid #dee2e6;
  border: 2px solid var(--color-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover, input[type="tel"]:hover, input[type="url"]:hover, input[type="search"]:hover, input[type="number"]:hover, input[type="date"]:hover, input[type="time"]:hover, input[type="datetime-local"]:hover, textarea:hover, select:hover {
    border-color: #ced4da;
    border-color: var(--color-gray-400);
  }

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="datetime-local"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #008c95;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.5);
    box-shadow: 0 0 0 3px var(--color-focus);
  }

input[type="text"]:disabled, input[type="email"]:disabled, input[type="password"]:disabled, input[type="tel"]:disabled, input[type="url"]:disabled, input[type="search"]:disabled, input[type="number"]:disabled, input[type="date"]:disabled, input[type="time"]:disabled, input[type="datetime-local"]:disabled, textarea:disabled, select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f1f3f5;
    background-color: var(--color-gray-100);
  }

input[type="text"]::-moz-placeholder, input[type="email"]::-moz-placeholder, input[type="password"]::-moz-placeholder, input[type="tel"]::-moz-placeholder, input[type="url"]::-moz-placeholder, input[type="search"]::-moz-placeholder, input[type="number"]::-moz-placeholder, input[type="date"]::-moz-placeholder, input[type="time"]::-moz-placeholder, input[type="datetime-local"]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder {
    color: #adb5bd;
    color: var(--color-gray-500);
  }

input[type="text"]::placeholder, input[type="email"]::placeholder, input[type="password"]::placeholder, input[type="tel"]::placeholder, input[type="url"]::placeholder, input[type="search"]::placeholder, input[type="number"]::placeholder, input[type="date"]::placeholder, input[type="time"]::placeholder, input[type="datetime-local"]::placeholder, textarea::placeholder, select::placeholder {
    color: #adb5bd;
    color: var(--color-gray-500);
  }

/* Textarea specific */

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Select specific */

select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-position: right var(--spacing-md) center;
  background-size: 16px;
  padding-right: calc(1rem * 2.5);
  padding-right: calc(var(--spacing-md) * 2.5);
}

/* Checkboxes and radios */

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
  margin-right: var(--spacing-xs);
  vertical-align: middle;
  cursor: pointer;
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
    outline: 3px solid rgba(0, 140, 149, 0.5);
    outline: var(--focus-ring-width) solid var(--color-focus);
    outline-offset: 2px;
    outline-offset: var(--focus-ring-offset);
  }

/* File input */

input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  padding: var(--spacing-sm) 0;
  font-size: 1rem;
  font-size: var(--font-size-base);
}

input[type="file"]:focus {
    outline: 3px solid rgba(0, 140, 149, 0.5);
    outline: var(--focus-ring-width) solid var(--color-focus);
    outline-offset: 2px;
    outline-offset: var(--focus-ring-offset);
  }

/* Form validation states */

.has-error input,
  .has-error textarea,
  .has-error select {
    border-color: #dc3545;
    border-color: var(--color-error);
  }

.has-error input:focus, .has-error textarea:focus, .has-error select:focus {
      box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    }

.has-success input,
  .has-success textarea,
  .has-success select {
    border-color: #28a745;
    border-color: var(--color-success);
  }

.has-success input:focus, .has-success textarea:focus, .has-success select:focus {
      box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
    }

/* Error messages */

.form-error,
.error {
  display: block;
  margin-top: 0.25rem;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #dc3545;
  color: var(--color-error);
}

/* Help text */

.form-help,
.description {
  display: block;
  margin-top: 0.25rem;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--color-text-secondary);
}

/* Fieldsets */

fieldset {
  min-width: 0;
  padding: 1rem;
  padding: var(--spacing-md);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-md) 0;
  border: 1px solid #dee2e6;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
}

legend {
  padding: 0 0.5rem;
  padding: 0 var(--spacing-sm);
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
}

/* Form actions */

.form-actions {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-md);
  margin-top: 1.5rem;
  margin-top: var(--spacing-lg);
  padding-top: 1.5rem;
  padding-top: var(--spacing-lg);
  border-top: 1px solid #e9ecef;
  border-top: 1px solid var(--color-gray-200);
}

/* Inline forms */

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-md);
}

.form-inline .form-group {
    margin-bottom: 0;
  }

.form-inline label {
    margin-bottom: 0;
    margin-right: 0.5rem;
    margin-right: var(--spacing-sm);
  }

/* @import .base/animations.css.; -- removed empty file */

/* Layout patterns */

/**
 * Container Layout
 * 
 * Responsive container system for consistent spacing and max-width.
 * Updated to provide more breathing room on large screens.
 */

.container {
  width: 100%;
  max-width: 100%; /* Use full viewport width */
  margin-left: auto;
  margin-right: auto;
  padding-left: 4vw;  /* Viewport-based padding for better scaling */
  padding-right: 4vw;
}

@media (min-width: 768px) {

.container {
    padding-left: 4vw;
    padding-right: 4vw
}
  }

@media (min-width: 1024px) {

.container {
    padding-left: 4vw;
    padding-right: 4vw
}
  }

/* Constrained container for reading content */

.container--constrained {
  max-width: 1200px;
  max-width: var(--container-max-width);
  padding-left: 1rem;
  padding-left: var(--container-padding);
  padding-right: 1rem;
  padding-right: var(--container-padding);
}

/* Fluid container */

.container--fluid {
  max-width: 100%;
}

/* Narrow container */

.container--narrow {
  max-width: 800px;
}

/* Wide container */

.container--wide {
  max-width: 1400px;
}

/* No padding container */

.container--no-padding {
  padding-left: 0;
  padding-right: 0;
}

/* Section spacing */

.section {
  padding-top: 3rem;
  padding-top: var(--spacing-2xl);
  padding-bottom: 3rem;
  padding-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {

.section {
    padding-top: 4rem;
    padding-top: var(--spacing-3xl);
    padding-bottom: 4rem;
    padding-bottom: var(--spacing-3xl)
}
  }

@media (min-width: 1024px) {

.section {
    padding-top: 6rem;
    padding-top: var(--spacing-4xl);
    padding-bottom: 6rem;
    padding-bottom: var(--spacing-4xl)
}
  }

/* Section variants */

.section--small {
  padding-top: 2rem;
  padding-top: var(--spacing-xl);
  padding-bottom: 2rem;
  padding-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {

.section--small {
    padding-top: 3rem;
    padding-top: var(--spacing-2xl);
    padding-bottom: 3rem;
    padding-bottom: var(--spacing-2xl)
}
  }

.section--large {
  padding-top: 4rem;
  padding-top: var(--spacing-3xl);
  padding-bottom: 4rem;
  padding-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {

.section--large {
    padding-top: 6rem;
    padding-top: var(--spacing-4xl);
    padding-bottom: 6rem;
    padding-bottom: var(--spacing-4xl)
}
  }

@media (min-width: 1024px) {

.section--large {
    padding-top: calc(6rem * 1.5);
    padding-top: calc(var(--spacing-4xl) * 1.5);
    padding-bottom: calc(6rem * 1.5);
    padding-bottom: calc(var(--spacing-4xl) * 1.5)
}
  }

/* Section backgrounds */

.section--gray {
  background-color: #f8f9fa;
  background-color: var(--color-gray-50);
}

.section--primary {
  background-color: #008c95;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
}

.section--primary h1, .section--primary h2, .section--primary h3, .section--primary h4, .section--primary h5, .section--primary h6 {
    color: #ffffff;
    color: var(--color-white);
  }

.section--dark {
  background-color: #00263a;
  background-color: var(--color-navy);
  color: #ffffff;
  color: var(--color-white);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5, .section--dark h6 {
    color: #ffffff;
    color: var(--color-white);
  }

.section--dark a:not(.c-button) {
    color: #a8e6cf;
    color: var(--color-mint);
  }

.section--dark a:not(.c-button):hover {
      color: #ffffff;
      color: var(--color-white);
    }

/* Content wrapper for sidebars - Updated with better grid control */

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 3rem;
  grid-gap: var(--spacing-2xl);
  gap: 3rem;
  gap: var(--spacing-2xl);
}

@media (min-width: 1024px) {
    .content-layout--with-sidebar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 350px; /* main | sidebar */
      grid-column-gap: 3rem;
      -moz-column-gap: 3rem;
           column-gap: 3rem;
    } /* visual separation */
      
      .content-layout--with-sidebar .sidebar--first {
        order: -1;
      }
      
      .content-layout--with-sidebar .sidebar--second {
        order: 1;
      }
    
    .content-layout--both-sidebars {
      grid-template-columns: 250px 1fr 250px;
    }
  }

/* Responsive adjustments for mobile */

@media (max-width: 780px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .content-layout--with-sidebar {
    grid-template-columns: 1fr; /* single column */
  }
}

/* Content main area */

.content-main {
  min-width: 0; /* Prevent grid blowout */
}

/**
 * Two Column Right Sidebar Layout
 * Mobile-first CSS Grid implementation
 * Updated to work with global sidebar styles
 */

/* Layout container */

.layout--two-col-right {
  width: 100%;
}

.layout--two-col-right .layout__container {
  /* Inherit global container styles */
  margin: 0 auto;
}

/* Mobile first: Stack layout */

.layout--two-col-right .layout__container {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2rem;
  grid-gap: var(--scad-space-lg, 2rem);
  gap: 2rem;
  gap: var(--scad-space-lg, 2rem);
}

/* Main content region */

.layout--two-col-right .layout__region--content {
  min-width: 0; /* Prevent content overflow */
}

/* Sidebar region - inherits styling from global sidebar.css */

.layout--two-col-right .layout__region--sidebar {
  min-width: 0; /* Prevent content overflow */
}

/* Remove redundant styling since global sidebar.css handles it */

.layout--two-col-right .layout__region--sidebar > * {
  /* Removed - handled by global sidebar styles */
}

/* Tablet breakpoint: 768px - 1023px */

@media (min-width: 768px) and (max-width: 1023px) {
  .layout--two-col-right .layout__container {
    grid-template-columns: 9fr 3fr;
    gap: 2rem;
  }
}

/* Desktop breakpoint: ≥1024px */

@media (min-width: 1024px) {
  .layout--two-col-right .layout__container {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 3rem;
  }
}

/* Large desktop: ≥1440px - maintain same split */

@media (min-width: 1440px) {
  .layout--two-col-right .layout__container {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 3rem;
  }
}

/* Ensure proper spacing in sidebar blocks */

.layout--two-col-right .layout__region--sidebar .block {
  margin: 0 0 2rem 0;
}

.layout--two-col-right .layout__region--sidebar .block:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */

@media (max-width: 780px) {
  .layout--two-col-right .layout__container {
    grid-template-columns: 1fr;
  }
  
  .layout--two-col-right .layout__region--sidebar {
    /* Handled by global sidebar.css */
  }
}

/* Accessibility: Skip to sidebar link */

.skip-to-sidebar {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: #000000;
  background-color: var(--color-black, #000000);
  color: #ffffff;
  color: var(--color-white, #ffffff);
  text-decoration: none;
}

.skip-to-sidebar:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

/* Print styles */

@media print {
  .layout--two-col-right .layout__container {
    grid-template-columns: 1fr;
  }
  
  /* Sidebar hiding handled by global sidebar.css */
}

/**
 * Content Layout
 * 
 * Optimal reading width for main content area
 */

/* Main content area */

.layout-content,
.region-content,
.main-content {
  width: 100%;
  padding-inline: 1rem;
}

/* Content wrapper - no restrictions */

.content-wrapper {
  max-width: none;
  width: 100%;
}

/* Main content area optimal width for desktop */

.content-main,
.content-layout:not(.content-layout--with-sidebar) .content-main {
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
}

/* Content with sidebar - let grid handle width */

.content-layout--with-sidebar .content-main {
  max-width: none;
}

/* Apply reading width to actual text content */

.node__content .field--name-body,
.text-formatted {
  max-width: 65ch; /* Optimal reading width */
  margin-inline: auto;
}

/* Wide content (tables, images) */

.content-wide,
.field--type-image,
.responsive-table-wrapper {
  max-width: 100%;
  margin-inline: auto;
}

/* Forms - slightly narrower for better UX */

.webform-submission-form,
.user-login-form,
.user-register-form,
.user-pass {
  max-width: 600px;
  margin-inline: auto;
}

/* Full-width backgrounds with constrained content */

.full-width-section {
  width: 100%;
  padding-block: 3rem;
}

.full-width-section > * {
  max-width: 1200px;
  max-width: var(--container-max-width, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Membership page - allow lists to be wider */

.page-node-type-page .field--name-body ul,
.page-node-type-page .field--name-body ol {
  max-width: 100%;
}

/* Commerce pages - full width for better layout */

.path-product .content-main,
.path-checkout .content-main,
.path-cart .content-main {
  max-width: none;
}

/* Node content - no restrictions */

.node__content {
  max-width: none;
}

/* Responsive adjustments */

@media (min-width: 768px) {
  .layout-content,
  .region-content {
    padding-inline: 2rem;
  }
}

@media (min-width: 1200px) {
  .layout-content,
  .region-content {
    padding-inline: 3rem;
  }
}

/* Mobile - ensure full width */

@media (max-width: 767px) {
  .content-main {
    max-width: 100%;
  }
  
  .node__content .field--name-body,
  .text-formatted {
    max-width: 100%;
  }
}

/* Add spacing before footer */

main,
.main-wrapper {
  padding-bottom: 4rem;
  padding-bottom: var(--spacing-3xl);
}

/* Remove padding when there's a comment section */

.comment-section + footer .site-footer,
.region-content-bottom + footer .site-footer {
  margin-top: 0;
}

/**
 * Grid System
 * 
 * Flexible grid layouts using CSS Grid.
 */

.grid {
  display: grid;
  grid-gap: 1.5rem;
  grid-gap: var(--spacing-lg);
  gap: 1.5rem;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {

.grid {
    gap: 2rem;
    gap: var(--spacing-xl)
}
  }

/* Auto-fit columns */

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Fixed column counts */

.grid--2-columns {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {

.grid--2-columns {
    grid-template-columns: repeat(2, 1fr)
}
  }

.grid--3-columns {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {

.grid--3-columns {
    grid-template-columns: repeat(2, 1fr)
}
  }

@media (min-width: 1024px) {

.grid--3-columns {
    grid-template-columns: repeat(3, 1fr)
}
  }

.grid--4-columns {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {

.grid--4-columns {
    grid-template-columns: repeat(2, 1fr)
}
  }

@media (min-width: 1024px) {

.grid--4-columns {
    grid-template-columns: repeat(4, 1fr)
}
  }

/* Asymmetric grids */

.grid--sidebar-left {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {

.grid--sidebar-left {
    grid-template-columns: 1fr 2fr
}
  }

.grid--sidebar-right {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {

.grid--sidebar-right {
    grid-template-columns: 2fr 1fr
}
  }

/* Grid gaps */

.grid--gap-small {
  gap: 0.5rem;
  gap: var(--spacing-sm);
}

@media (min-width: 768px) {

.grid--gap-small {
    gap: 1rem;
    gap: var(--spacing-md)
}
  }

.grid--gap-large {
  gap: 2rem;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {

.grid--gap-large {
    gap: 3rem;
    gap: var(--spacing-2xl)
}
  }

.grid--no-gap {
  gap: 0;
}

/* Grid alignment */

.grid--center {
  align-items: center;
}

.grid--stretch {
  align-items: stretch;
}

.grid--start {
  align-items: start;
}

.grid--end {
  align-items: end;
}

/* Grid item spans */

@media (min-width: 768px) {
  .grid__item--span-2 {
    grid-column: span 2;
  }
  
  .grid__item--span-3 {
    grid-column: span 3;
  }
  
  .grid__item--span-4 {
    grid-column: span 4;
  }
  
  .grid__item--span-full {
    grid-column: 1 / -1;
  }
}

/* Masonry-style grid */

.grid--masonry {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
}

.grid--masonry .grid__item--tall {
    grid-row: span 2;
  }

.grid--masonry .grid__item--wide {
    grid-column: span 2;
  }

.grid--masonry .grid__item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

/**
 * Header Layout
 */

.site-header {
  background-color: #ffffff !important;
  background-color: var(--color-white) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1020;
  z-index: var(--z-index-sticky);
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header__branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-md);
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

.site-header__name {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.site-header__name a {
  color: #00263a;
  color: var(--color-navy);
  text-decoration: none;
}

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Mobile menu */

@media (max-width: 1023px) {
  .site-header__nav {
    display: none;
  }
  
  .site-header__nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    background: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
  }
}

/* Mobile Header Layout */

@media (max-width: 1023px) {
  .site-header__container {
    position: relative;
    padding-right: 60px; /* Space for hamburger menu */
  }
  
  .site-header__branding {
    flex: 1;
  }
  
  .site-header__content {
    order: -1; /* Move logo/branding to the left */
    flex: 1;
  }
}

/**
 * Footer Layout
 * 
 * Responsive footer with flexible grid layout.
 */

.site-footer {
  background-color: #00263a;
  background-color: var(--color-navy);
  color: #ffffff;
  color: var(--color-white);
  padding: 4rem 0 2rem;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: 6rem;
  margin-top: var(--spacing-4xl);
}

.site-footer a {
    color: #a8e6cf;
    color: var(--color-mint);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    transition: color var(--transition-fast);
  }

.site-footer a:hover {
      color: #ffffff;
      color: var(--color-white);
      text-decoration: underline;
    }

.site-footer h2, .site-footer h3, .site-footer h4 {
    color: #ffffff;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-lg);
  }

/* Footer main grid */

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 3rem;
  grid-gap: var(--spacing-2xl);
  gap: 3rem;
  gap: var(--spacing-2xl);
  margin-bottom: 4rem;
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {

.site-footer__main {
    grid-template-columns: repeat(2, 1fr)
}
  }

@media (min-width: 1024px) {

.site-footer__main {
    grid-template-columns: repeat(3, 1fr)
}
  }

/* Footer blocks */

.footer-contact-info ul, .footer-key-links ul, .footer-email-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.footer-contact-info li, .footer-key-links li, .footer-email-contact li {
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-md);
  }

.footer-contact-info li:last-child, .footer-key-links li:last-child, .footer-email-contact li:last-child {
      margin-bottom: 0;
    }

/* Key links styling */

.footer-key-links .button {
    display: inline-block;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-md);
    margin-right: 0.5rem;
    margin-right: var(--spacing-sm);
  }

.footer-key-links .button--primary {
      background-color: #008c95;
      background-color: var(--color-primary);
      color: #ffffff;
      color: var(--color-white);
      padding: 0.5rem 1.5rem;
      padding: var(--spacing-sm) var(--spacing-lg);
      border-radius: 0.5rem;
      border-radius: var(--radius-md);
    }

.footer-key-links .button--primary:hover {
        background-color: #00b3be;
        background-color: var(--color-primary-light);
        text-decoration: none;
      }

.footer-key-links .button--secondary {
      background-color: transparent;
      color: #a8e6cf;
      color: var(--color-mint);
      border: 2px solid #a8e6cf;
      border: 2px solid var(--color-mint);
      padding: calc(0.5rem - 2px) calc(1.5rem - 2px);
      padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-lg) - 2px);
      border-radius: 0.5rem;
      border-radius: var(--radius-md);
    }

.footer-key-links .button--secondary:hover {
        background-color: #a8e6cf;
        background-color: var(--color-mint);
        color: #00263a;
        color: var(--color-navy);
        text-decoration: none;
      }

/* Footer bottom */

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  padding-top: var(--spacing-xl);
  text-align: center;
}

@media (min-width: 768px) {

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left
}
  }

/* Copyright */

.site-footer__copyright {
  text-align: center;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #ced4da;
  color: var(--color-gray-400);
  margin-top: 2rem;
  margin-top: var(--spacing-xl);
}

.site-footer__copyright p {
    margin: 0;
  }

/* Footer menu */

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  gap: var(--spacing-lg);
  margin: 1.5rem 0;
  margin: var(--spacing-lg) 0;
}

@media (min-width: 768px) {

.footer-menu {
    justify-content: flex-start;
    margin: 0
}
  }

.footer-menu a {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

/* Footer Columns Layout */

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2rem;
  grid-gap: var(--spacing-xl);
  gap: 2rem;
  gap: var(--spacing-xl);
  margin-bottom: 3rem;
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {

.site-footer__columns {
    grid-template-columns: repeat(2, 1fr)
}
  }

@media (min-width: 1024px) {

.site-footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    gap: var(--spacing-2xl)
}
  }

.site-footer__column h2, .site-footer__column h3 {
    color: #ffffff;
    color: var(--color-white);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

.site-footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.site-footer__column a {
    color: #dee2e6;
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    transition: color var(--transition-base);
  }

.site-footer__column a:hover {
      color: #ffffff;
      color: var(--color-white);
    }

/* 3-column specific layout */

@media (min-width: 1024px) {

.site-footer--3-columns .site-footer__columns {
      grid-template-columns: repeat(3, 1fr)
  }
    }

/**
 * Sidebar Layout and Styling
 * 
 * Visual separation and consistent styling for all sidebars site-wide
 */

/* Base sidebar styling for visual separation */

.sidebar--second,
.layout__region--sidebar {
  background: #f7f9fa;         /* light gray/blue tint */
  border-left: 2px solid #e0e4e7;
  padding: 2rem 1.5rem;
  border-radius: 4px;          /* softens look */
}

/* First sidebar (left) styling */

.sidebar--first {
  background: #f7f9fa;
  border-right: 2px solid #e0e4e7;
  border-left: none;
  padding: 2rem 1.5rem;
  border-radius: 4px;
}

/* Tighten headings in sidebars so they don't overpower */

.sidebar--second h2,
.sidebar--second h3,
.layout__region--sidebar h2,
.layout__region--sidebar h3,
.sidebar--first h2,
.sidebar--first h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #008c95;
  color: var(--scad-primary, #008c95);
}

/* Adjust spacing for sidebar blocks */

.sidebar--second .block,
.layout__region--sidebar .block,
.sidebar--first .block {
  margin-bottom: 2rem;
}

.sidebar--second .block:last-child,
.layout__region--sidebar .block:last-child,
.sidebar--first .block:last-child {
  margin-bottom: 0;
}

/* Remove double backgrounds for blocks that already have styling */

.sidebar--second .conference-block,
.sidebar--second .upcoming-conference,
.layout__region--sidebar .conference-block,
.layout__region--sidebar .upcoming-conference,
.sidebar--second .block > *[class*=card],
.layout__region--sidebar .block > *[class*=card] {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

/* Style links in sidebars */

.sidebar--second a:not(.button),
.layout__region--sidebar a:not(.button),
.sidebar--first a:not(.button) {
  color: #008c95;
  color: var(--scad-primary, #008c95);
  text-decoration: none;
}

.sidebar--second a:not(.button):hover,
.layout__region--sidebar a:not(.button):hover,
.sidebar--first a:not(.button):hover {
  text-decoration: underline;
}

/* CTA buttons in sidebars should span full width */

.sidebar--second .button,
.layout__region--sidebar .button,
.sidebar--first .button {
  display: block;
  width: 100%;
  text-align: center;
  margin: 1rem 0;
}

/* Menu blocks in sidebars */

.sidebar--second .menu,
.layout__region--sidebar .menu,
.sidebar--first .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar--second .menu li,
.layout__region--sidebar .menu li,
.sidebar--first .menu li {
  margin-bottom: 0.5rem;
}

.sidebar--second .menu a,
.layout__region--sidebar .menu a,
.sidebar--first .menu a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
}

/* Responsive behavior */

@media (max-width: 780px) {
  .sidebar--second,
  .layout__region--sidebar {
    margin-top: 2rem;
    border-left: none;
    border-top: 2px solid #e0e4e7;
    padding-top: 2rem;
    border-radius: 0;
  }
  
  .sidebar--first {
    margin-bottom: 2rem;
    border-right: none;
    border-bottom: 2px solid #e0e4e7;
    padding-bottom: 2rem;
    border-radius: 0;
  }
}

/* Print styles - hide sidebars */

@media print {
  .sidebar--second,
  .sidebar--first,
  .layout__region--sidebar {
    display: none;
  }
}

/* Components - imported from SDC */

/**
 * Button component styles
 * BEM methodology: Block = c-button
 */

.c-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-xs);
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Sizes */

.c-button--small {
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.c-button--medium {
  padding: 0.5rem 1rem;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.c-button--large {
  padding: 1rem 1.5rem;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* Primary variant */

.c-button--primary {
  background-color: #008c95;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  border-color: #008c95;
  border-color: var(--color-primary);
}

.c-button--primary:hover,
.c-button--primary:focus {
  background-color: #006a71;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  color: var(--color-white);
  border-color: #006a71;
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}

.c-button--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Secondary variant */

.c-button--secondary {
  background-color: #ff715b;
  background-color: var(--color-accent);
  color: #ffffff;
  color: var(--color-white);
  border-color: #ff715b;
  border-color: var(--color-accent);
}

.c-button--secondary:hover,
.c-button--secondary:focus {
  background-color: #e54a32;
  background-color: var(--color-accent-dark);
  color: #ffffff;
  color: var(--color-white);
  border-color: #e54a32;
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}

.c-button--secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Outline variant */

.c-button--outline {
  background-color: transparent;
  color: #008c95;
  color: var(--color-primary);
  border-color: #008c95;
  border-color: var(--color-primary);
}

.c-button--outline:hover,
.c-button--outline:focus {
  background-color: #008c95;
  background-color: var(--color-primary);
  color: #ffffff;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}

.c-button--outline:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Icon handling */

.c-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
}

.c-button--has-icon .c-button__text {
  margin-left: 0.25rem;
  margin-left: var(--spacing-xs);
}

/* Animations */

.animations-enabled .c-button {
  position: relative;
  overflow: hidden;
}

.animations-enabled .c-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.animations-enabled .c-button:active::before {
  width: 300px;
  height: 300px;
}

/* Focus styles for accessibility */

.c-button:focus-visible {
  outline: 3px solid rgba(0, 140, 149, 0.5);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .c-button {
    transition: none;
  }
  
  .c-button::before {
    display: none;
  }
}

/**
 * Card component styles
 * BEM methodology: Block = c-card
 */

.c-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-in-out;
  transition: all var(--transition-base);
  height: 100%;
}

.c-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Media/Image */

.c-card__media {
  position: relative;
  overflow: hidden;
  background-color: #f1f3f5;
  background-color: var(--color-gray-100);
}

.c-card__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
  transition: transform var(--transition-base);
}

.c-card:hover .c-card__image {
  transform: scale(1.05);
}

/* Card body */

.c-card__body {
  padding: 1rem;
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */

.c-card__header {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-sm);
  padding-bottom: 0.5rem;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid #e9ecef;
  border-bottom: 1px solid var(--color-gray-200);
}

/* Title */

.c-card__title {
  font-size: 1.5rem;
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-sm) 0;
  color: #00263a;
  color: var(--color-navy);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.c-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  transition: color var(--transition-base);
}

.c-card__title-link:hover,
.c-card__title-link:focus {
  color: #008c95;
  color: var(--color-primary);
}

/* Content */

.c-card__content {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-base);
  color: #374151;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

/* Actions */

.c-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
  padding-top: var(--spacing-sm);
}

/* Footer */

.c-card__footer {
  margin-top: 0.5rem;
  margin-top: var(--spacing-sm);
  padding-top: 0.5rem;
  padding-top: var(--spacing-sm);
  border-top: 1px solid #e9ecef;
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--color-text-secondary);
}

/* Variants */

/* Featured variant */

.c-card--featured {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  border: 2px solid #00b3be;
  border: 2px solid var(--color-primary-light);
}

.c-card--featured:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
  border-color: #008c95;
  border-color: var(--color-primary);
}

.c-card--featured .c-card__title {
  font-size: 1.75rem;
  font-size: var(--font-size-h3);
}

/* Minimal variant */

.c-card--minimal {
  box-shadow: none;
  background-color: transparent;
}

.c-card--minimal:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  background-color: var(--color-white);
}

.c-card--minimal .c-card__body {
  padding: 0.5rem;
  padding: var(--spacing-sm);
}

/* Responsive adjustments */

@media (min-width: 768px) {
  .c-card__body {
    padding: 1.5rem;
    padding: var(--spacing-lg);
  }
  
  .c-card--minimal .c-card__body {
    padding: 1rem;
    padding: var(--spacing-md);
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .c-card,
  .c-card__image,
  .c-card__title-link {
    transition: none;
  }
}

/**
 * Hero component styles
 * BEM methodology: Block = c-hero
 */

.c-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f1f3f5;
  background-color: var(--color-gray-100);
  /* Edge-to-edge display */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}

/* Height variants */

.c-hero--small {
  min-height: 300px;
}

.c-hero--medium {
  min-height: 400px;
}

.c-hero--large {
  min-height: 500px;
}

.c-hero--full {
  min-height: 100vh;
}

/* Background image handling */

.c-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.c-hero__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.c-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 38, 58, 0.9) 0%,
    rgba(0, 140, 149, 0.8) 100%
  );
}

/* Container */

.c-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Content */

.c-hero__content {
  max-width: 600px;
}

.c-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: #00b3be;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.c-hero__title {
  font-size: 2.5rem;
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.c-hero--has-image .c-hero__title {
  color: #ffffff;
  color: var(--color-white);
}

.c-hero__text {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  line-height: 1.5;
  line-height: var(--line-height-base);
  color: #374151;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.c-hero--has-image .c-hero__text {
  color: rgba(255, 255, 255, 0.9);
}

.c-hero__custom {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  gap: var(--spacing-md);
}

/* Variant: Centered */

.c-hero--centered .c-hero__container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.c-hero--centered .c-hero__content {
  max-width: 800px;
}

.c-hero--centered .c-hero__actions {
  justify-content: center;
}

/* Variant: Overlay */

.c-hero--overlay .c-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.c-hero--overlay .c-hero__title,
.c-hero--overlay .c-hero__text {
  color: #ffffff;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */

@media (min-width: 768px) {
  .c-hero--small {
    min-height: 350px;
  }
  
  .c-hero--medium {
    min-height: 450px;
  }
  
  .c-hero--large {
    min-height: 600px;
  }
  
  .c-hero__container {
    padding: 3rem 1.5rem;
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .c-hero__title {
    font-size: 3.5rem;
    font-size: var(--font-size-h1-lg);
  }
}

@media (min-width: 1024px) {
  .c-hero__content {
    max-width: 700px;
  }
  
  .c-hero--centered .c-hero__content {
    max-width: 900px;
  }
}

/* Animations */

.animations-enabled .c-hero__subtitle {
  animation: fadeInUp 0.6s ease-out;
}

.animations-enabled .c-hero__title {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.animations-enabled .c-hero__text {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animations-enabled .c-hero__actions {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .c-hero__subtitle,
  .c-hero__title,
  .c-hero__text,
  .c-hero__actions {
    animation: none;
  }
}

/**
 * Event card component styles
 * BEM methodology: Block = c-event-card
 */

.c-event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-in-out;
  transition: all var(--transition-base);
}

.c-event-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Date badge */

.c-event-card__date-badge {
  position: absolute;
  top: 1rem;
  top: var(--spacing-md);
  left: 1rem;
  left: var(--spacing-md);
  z-index: 2;
  background-color: #ffffff;
  background-color: var(--color-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  padding: var(--spacing-xs);
  text-align: center;
  min-width: 60px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}

.c-event-card__month {
  display: block;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: #008c95;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.c-event-card__day {
  display: block;
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #00263a;
  color: var(--color-navy);
  line-height: 1;
}

/* Badge */

.c-event-card__badge {
  position: absolute;
  top: 1rem;
  top: var(--spacing-md);
  right: 1rem;
  right: var(--spacing-md);
  z-index: 2;
  background-color: #ff715b;
  background-color: var(--color-accent);
  color: #ffffff;
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.c-event-card__badge--featured {
  background-color: #008c95;
  background-color: var(--color-primary);
}

/* Media */

.c-event-card__media {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: #f1f3f5;
  background-color: var(--color-gray-100);
}

.c-event-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease-in-out;
  transition: transform var(--transition-base);
}

.c-event-card:hover .c-event-card__image {
  transform: scale(1.05);
}

/* Content */

.c-event-card__content {
  padding: 1rem;
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.c-event-card__title {
  font-size: 1.5rem;
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-sm) 0;
  color: #00263a;
  color: var(--color-navy);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.c-event-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  transition: color var(--transition-base);
}

.c-event-card__title-link:hover,
.c-event-card__title-link:focus {
  color: #008c95;
  color: var(--color-primary);
}

/* Meta information */

.c-event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-xs);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--color-text-secondary);
}

.c-event-card__date,
.c-event-card__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-xs);
}

.c-event-card__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 2;
  color: #008c95;
  color: var(--color-primary);
}

.c-event-card__description {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-base);
  color: #374151;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.c-event-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
  padding-top: var(--spacing-sm);
}

.c-event-card__footer {
  margin-top: 0.5rem;
  margin-top: var(--spacing-sm);
  padding-top: 0.5rem;
  padding-top: var(--spacing-sm);
  border-top: 1px solid #e9ecef;
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--color-text-secondary);
}

/* Status variants */

.c-event-card--past {
  opacity: 0.8;
}

.c-event-card--past .c-event-card__date-badge {
  background-color: #f1f3f5;
  background-color: var(--color-gray-100);
}

.c-event-card--past .c-event-card__month {
  color: #374151;
  color: var(--color-text-secondary);
}

.c-event-card--cancelled {
  opacity: 0.6;
}

.c-event-card--cancelled .c-event-card__title {
  text-decoration: line-through;
}

.c-event-card--cancelled .c-event-card__badge {
  background-color: #dc3545;
  background-color: var(--color-error);
}

/* Featured variant */

.c-event-card--featured {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  border: 2px solid #00b3be;
  border: 2px solid var(--color-primary-light);
}

.c-event-card--featured:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
  border-color: #008c95;
  border-color: var(--color-primary);
}

/* Responsive adjustments */

@media (min-width: 768px) {
  .c-event-card__content {
    padding: 1.5rem;
    padding: var(--spacing-lg);
  }
  
  .c-event-card__meta {
    flex-direction: row;
    gap: 1rem;
    gap: var(--spacing-md);
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .c-event-card,
  .c-event-card__image,
  .c-event-card__title-link {
    transition: none;
  }
}

/**
 * Newsletter form component styles
 * BEM methodology: Block = c-newsletter-form
 */

.c-newsletter-form {
  background-color: #f8f9fa;
  background-color: var(--color-gray-50);
  border-radius: 0.75rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  padding: var(--spacing-lg);
}

/* Header */

.c-newsletter-form__header {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.c-newsletter-form__title {
  font-size: 1.75rem;
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-sm) 0;
}

.c-newsletter-form__description {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Form */

.c-newsletter-form__form {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-md);
}

.c-newsletter-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-sm);
}

.c-newsletter-form__field {
  flex: 1;
  position: relative;
}

.c-newsletter-form__input {
  width: 100%;
  padding: 1rem;
  padding: var(--spacing-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  border: 2px solid #dee2e6;
  border: 2px solid var(--color-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  background-color: var(--color-white);
  transition: all 0.3s ease-in-out;
  transition: all var(--transition-base);
}

.c-newsletter-form__input:hover {
  border-color: #ced4da;
  border-color: var(--color-gray-400);
}

.c-newsletter-form__input:focus {
  outline: none;
  border-color: #008c95;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.1);
}

.c-newsletter-form__input::-moz-placeholder {
  color: #adb5bd;
  color: var(--color-gray-500);
}

.c-newsletter-form__input::placeholder {
  color: #adb5bd;
  color: var(--color-gray-500);
}

/* Error state */

.c-newsletter-form__input[aria-invalid="true"] {
  border-color: #dc3545;
  border-color: var(--color-error);
}

.c-newsletter-form__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.c-newsletter-form__error {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #dc3545;
  color: var(--color-error);
  display: none;
}

.c-newsletter-form__error:not(:empty) {
  display: block;
}

/* Submit button */

.c-newsletter-form__submit {
  display: flex;
}

.c-newsletter-form__button {
  width: 100%;
}

/* Messages */

.c-newsletter-form__message {
  text-align: center;
  padding: 0.5rem;
  padding: var(--spacing-sm);
  border-radius: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
  margin-top: 1rem;
  margin-top: var(--spacing-md);
  display: none;
}

.c-newsletter-form__message:not(:empty) {
  display: block;
}

.c-newsletter-form__message--success {
  background-color: #d4edda;
  background-color: var(--color-success-light);
  color: #155724;
  color: var(--color-success-dark);
}

.c-newsletter-form__message--error {
  background-color: #f8d7da;
  background-color: var(--color-error-light);
  color: #721c24;
  color: var(--color-error-dark);
}

/* Footer */

.c-newsletter-form__footer {
  text-align: center;
}

.c-newsletter-form__privacy {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--color-text-secondary);
  margin: 0;
}

.c-newsletter-form__privacy a {
  color: #008c95;
  color: var(--color-primary);
  text-decoration: underline;
}

.c-newsletter-form__privacy a:hover {
  color: #006a71;
  color: var(--color-primary-dark);
}

/* Variant: Inline */

.c-newsletter-form--inline .c-newsletter-form__header {
  text-align: left;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.c-newsletter-form--inline .c-newsletter-form__fields {
  flex-direction: row;
  align-items: flex-start;
}

.c-newsletter-form--inline .c-newsletter-form__submit {
  flex-shrink: 0;
}

.c-newsletter-form--inline .c-newsletter-form__button {
  width: auto;
}

.c-newsletter-form--inline .c-newsletter-form__footer {
  text-align: left;
}

/* Variant: Minimal */

.c-newsletter-form--minimal {
  background-color: transparent;
  padding: 0;
}

.c-newsletter-form--minimal .c-newsletter-form__header {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.c-newsletter-form--minimal .c-newsletter-form__title {
  font-size: 1.5rem;
  font-size: var(--font-size-h4);
}

/* Loading state */

.c-newsletter-form--loading .c-newsletter-form__button {
  opacity: 0.7;
  pointer-events: none;
}

.c-newsletter-form--loading .c-newsletter-form__button::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25rem;
  margin-left: var(--spacing-xs);
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */

@media (min-width: 768px) {
  .c-newsletter-form {
    padding: 2rem;
    padding: var(--spacing-xl);
  }
  
  .c-newsletter-form--default .c-newsletter-form__fields {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .c-newsletter-form--default .c-newsletter-form__submit {
    flex-shrink: 0;
  }
  
  .c-newsletter-form--default .c-newsletter-form__button {
    width: auto;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .c-newsletter-form__input {
    transition: none;
  }
  
  .c-newsletter-form--loading .c-newsletter-form__button::after {
    animation: none;
  }
}

/* Drupal-specific components */

/**
 * Breadcrumb styles
 */

.breadcrumb-wrapper {
  background-color: #ffffff;
  background-color: var(--color-white);
  border-bottom: 1px solid #e9ecef;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0.5rem 0;
  padding: var(--spacing-sm) 0;
}

/* Target the nav element */

nav[role="navigation"][aria-labelledby="system-breadcrumb"] {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Hide the default list styling and make horizontal */

nav[role="navigation"][aria-labelledby="system-breadcrumb"] ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav[role="navigation"][aria-labelledby="system-breadcrumb"] li {
  display: flex;
  align-items: center;
  color: #374151;
  color: var(--color-text-secondary);
}

/* Add separator between items */

nav[role="navigation"][aria-labelledby="system-breadcrumb"] li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  margin: 0 var(--spacing-sm);
  color: #ced4da;
  color: var(--color-gray-400);
}

/* Links */

nav[role="navigation"][aria-labelledby="system-breadcrumb"] a {
  color: #006a71;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  padding: 0.25rem 0;
  padding: var(--spacing-xs) 0;
}

nav[role="navigation"][aria-labelledby="system-breadcrumb"] a:hover,
nav[role="navigation"][aria-labelledby="system-breadcrumb"] a:focus {
  color: #006a71;
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Current/last item */

nav[role="navigation"][aria-labelledby="system-breadcrumb"] li:last-child {
  color: #111927;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Alternative: Use SVG icon for home */

/*
nav[role="navigation"][aria-labelledby="system-breadcrumb"] li:first-child a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: var(--spacing-xs);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  vertical-align: middle;
}
*/

/* Responsive */

@media (max-width: 767px) {
  nav[role="navigation"][aria-labelledby="system-breadcrumb"] ol {
    gap: 0.25rem;
    gap: var(--spacing-xs);
  }
  
  nav[role="navigation"][aria-labelledby="system-breadcrumb"] li:not(:last-child)::after {
    margin: 0 0.25rem;
    margin: 0 var(--spacing-xs);
  }
}

/* @import .components/messages.css.; -- removed empty file */

/* @import .components/pager.css.; -- removed empty file */

/* @import .components/tabs.css.; -- removed empty file */

/* @import .components/field.css.; -- removed empty file */

/**
 * Node-specific Typography
 * 
 * Ensures proper typography for different content types
 */

/* Article nodes */

.node--type-article .field--name-body,
.node--type-news .field--name-body {
  font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem);
  font-size: var(--step-0);
  line-height: 1.6;
  line-height: var(--line-height-body);
}

/* Page nodes (like Membership) */

.node--type-page .field--name-body {
  max-width: 75ch;
  max-width: var(--content-width);
  margin-inline: auto;
}

/* Event nodes */

.node--type-event .field--name-body {
  max-width: 65ch;
  max-width: var(--content-width-narrow);
}

/* Presenter nodes */

.node--type-presenter .field--name-body {
  max-width: 65ch;
  max-width: var(--content-width-narrow);
}

/* Node metadata */

.node__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  color: var(--color-text-muted);
}

.node__submitted {
  font-size: 0.875rem;
  color: #6b7280;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Field spacing */

.node__content .field {
  margin-bottom: 2rem;
}

.node__content .field:last-child {
  margin-bottom: 0;
}

/**
 * Lead Paragraph Styles
 * For introductory paragraphs that need visual emphasis
 */

.lead,
p.lead {
  font-size: calc(clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem) + 6px);
  font-size: calc(var(--step-0) + 6px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #516381;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  max-width: 75ch;
  max-width: var(--content-width);
}

/* When lead is first element after hero banner */

.node__content > .field--name-body > .lead:first-child,
.content-main .lead:first-child {
  margin-top: 3rem;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .lead,
  p.lead {
    font-size: calc(clamp(0.9rem, 0.84rem + 0.3vw, 1.125rem) + 4px);
    font-size: calc(var(--step-0) + 4px);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .node__content > .field--name-body > .lead:first-child,
  .content-main .lead:first-child {
    margin-top: 2rem;
  }
}

/* Title adjustments */

.node__title,
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
  font-size: clamp(2.25rem, 2rem + 1.1vw, 3rem);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.2;
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
  letter-spacing: var(--letter-spacing-heading);
  color: #111927;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Responsive title sizing */

@media (max-width: 640px) {
  .node__title,
  .page-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
}

/**
 * Page title block
 */

.block-page-title-block {
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-xl);
}

.page-title {
  font-size: 2.5rem;
  font-size: var(--font-size-h1);
  font-weight: 700;
  color: #00263a;
  color: var(--color-navy);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-md) 0;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3.5rem;
    font-size: var(--font-size-h1-lg);
  }
}

/**
 * Menu Component
 */

.scad-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  gap: var(--spacing-lg);
}

.scad-menu li {
  position: relative;
}

.scad-menu a {
  color: #00263a;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  padding: var(--spacing-sm) 0;
  display: block;
  transition: color 0.15s ease-in-out;
  transition: color var(--transition-fast);
}

.scad-menu a:hover,
.scad-menu a:focus {
  color: #008c95;
  color: var(--color-primary);
}

/* Dropdown menus */

.scad-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  background: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.5rem;
  padding: var(--spacing-sm);
  margin: 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
}

.scad-menu li:hover ul,
.scad-menu li:focus-within ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scad-menu ul a {
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  white-space: nowrap;
}

/* Mobile menu */

@media (max-width: 1023px) {
  .scad-menu {
    flex-direction: column;
    padding: 1rem;
    padding: var(--spacing-md);
    gap: 0;
  }
  
  .scad-menu ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1.5rem;
    padding-left: var(--spacing-lg);
  }
}

/* Main menu specific */

.scad-menu--main {
  align-items: center;
}

/* Dropdown indicators */

.scad-menu li.has-submenu > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
  transition: transform 0.15s ease-in-out;
  transition: transform var(--transition-fast);
}

/* Fallback for browsers without :has() support - using class added by Drupal */

.scad-menu li.menu-item--expanded > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
  transition: transform 0.15s ease-in-out;
  transition: transform var(--transition-fast);
}

/* Rotate arrow on hover/focus */

.scad-menu li:hover > a::after,
.scad-menu li:focus-within > a::after {
  transform: rotate(180deg);
}

/* Mobile menu dropdown indicators */

@media (max-width: 1023px) {
  .scad-menu li.has-submenu > a::after,
  .scad-menu li.menu-item--expanded > a::after {
    float: right;
    margin-top: 0.25rem;
  }
  
  /* Keep arrow visible and rotated for open submenus on mobile */
  .scad-menu li.is-active-trail > a::after {
    transform: rotate(180deg);
  }
}

/**
 * Mobile Menu Component
 * Hamburger menu for mobile devices
 */

/* Mobile menu toggle button */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #00263a;
  background-color: var(--color-navy, #00263a);
  margin: 5px auto;
  transition: all 0.3s ease;
}

/* Show toggle on mobile */

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Hide desktop menu */
  .site-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 2rem 2rem;
  }
  
  /* Menu open state */
  .mobile-menu-open .site-header__nav {
    right: 0;
    display: block;
  }
}

/* Hamburger animation */

.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu styles */

@media (max-width: 1023px) {
  .site-header__nav .scad-menu {
    display: block;
    padding: 0;
    margin: 0;
  }
  
  .site-header__nav .scad-menu li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .site-header__nav .scad-menu a {
    display: block;
    padding: 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .site-header__nav .scad-menu a:hover {
    background-color: var(--color-background-light);
  }
}

/**
 * Homepage Hero Banner
 * 
 * Full-width hero section specifically for the homepage
 */

/* ----------  HERO BANNER  ---------- */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background: url('/themes/custom/scad_theme/images/background/bg-header-1.jpg')
              center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -64px; /* Pull up under header */
  padding-top: 64px; /* Add back header height */
}

.hero-overlay {
  /* subtle dark overlay so white text pops */
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 900px;
  z-index: 1;
  padding: 0 1.5rem;
  padding: 0 var(--spacing-lg);
}

.hero-kicker {
  letter-spacing: .15em;
  font-size: .875rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: .85;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
  color: #fff;
}

.hero-subhead {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  opacity: .9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: .9rem 2rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  display: inline-block;
}

.hero-cta .btn-primary {
  background: #008c95;
  background: var(--color-primary);
  color: #fff;
}

.hero-cta .btn-primary:hover {
  background: #006a71;
  background: var(--color-primary-dark);
}

.hero-cta .btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.hero-cta .btn-outline:hover {
  background: #fff;
  color: #008c95;
  color: var(--color-primary);
}

/* ----------  RESPONSIVE  ---------- */

@media (max-width: 768px) {
  .hero-banner {
    min-height: 70vh;
  }
  
  .hero-headline {
    font-size: 2.2rem;
  }
  
  .hero-subhead {
    font-size: .95rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-kicker {
    font-size: .75rem;
  }
  
  .hero-headline {
    font-size: 1.875rem;
  }
}

/* Edge-to-edge fix */

.hero-banner {
  /* Break out of page-wrapper constraints */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
}

/* Ensure the inner content respects container */

.hero-inner {
  margin-left: auto;
  margin-right: auto;
}

/**
 * Homepage Content Sections
 * Styles for conference teaser and color education blocks
 */

/* ---------- SHARED SECTION STYLES ---------- */

.homepage-section {
  margin: 4rem 0;
  padding: 3rem 0;
}

.section-label {
  color: #008c95;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ---------- CONFERENCE TEASER ---------- */

.conference-teaser {
  background: linear-gradient(135deg, #f8feff 0%, #f0f9fa 100%);
  border-radius: 12px;
  overflow: hidden;
}

.conference-teaser__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.conference-teaser__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.conference-date-badge {
  background: #008c95;
  background: var(--color-primary);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

.conference-date-badge .month {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.conference-date-badge .days {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.conference-date-badge .year {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
}

.conference-teaser__content {
  flex: 1;
}

.conference-teaser__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 1rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
}

.conference-teaser__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.icon-location {
  color: #008c95;
  color: var(--color-primary);
  flex-shrink: 0;
}

.conference-teaser__description {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 650px;
}

.conference-teaser__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.conference-teaser__actions .btn {
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  display: inline-block;
}

.conference-teaser__actions .btn-primary {
  background: #008c95;
  background: var(--color-primary);
  color: white;
}

.conference-teaser__actions .btn-primary:hover {
  background: #006a71;
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

.conference-teaser__actions .btn-outline {
  border: 2px solid #008c95;
  border: 2px solid var(--color-primary);
  color: #008c95;
  color: var(--color-primary);
  background: transparent;
}

.conference-teaser__actions .btn-outline:hover {
  background: #008c95;
  background: var(--color-primary);
  color: white;
}

.conference-teaser__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.conference-teaser__links a {
  color: #008c95;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
  transition: color var(--transition-fast);
}

.conference-teaser__links a:hover {
  color: #006a71;
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.conference-teaser__links .separator {
  color: #ccc;
}

/* ---------- COLOR EDUCATION SECTION ---------- */

.color-education {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 3rem;
}

.color-education__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.color-education__header {
  text-align: center;
  margin-bottom: 3rem;
}

.color-education__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 0.75rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
}

.color-education__subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #374151;
  color: var(--color-text-secondary);
  margin: 0;
}

.color-education__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  margin-bottom: 2rem;
}

.color-education__description p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.color-education__description p:last-child {
  margin-bottom: 0;
}

.color-education__features h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 1rem 0;
}

.color-education__features .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.color-education__features .feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.color-education__features .feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #008c95;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.125rem;
}

.color-education__tools {
  background: #f8feff;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.tools-highlight {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.tool-icon {
  background: #008c95;
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.tool-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 0.5rem 0;
}

.tool-info p {
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

.color-education__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.color-education__actions .btn {
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  display: inline-block;
}

.color-education__actions .btn-primary {
  background: #008c95;
  background: var(--color-primary);
  color: white;
}

.color-education__actions .btn-primary:hover {
  background: #006a71;
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

.color-education__actions .btn-outline {
  border: 2px solid #008c95;
  border: 2px solid var(--color-primary);
  color: #008c95;
  color: var(--color-primary);
  background: transparent;
}

.color-education__actions .btn-outline:hover {
  background: #008c95;
  background: var(--color-primary);
  color: white;
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 768px) {
  .conference-teaser__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .conference-date-badge {
    display: inline-block;
    padding: 1.5rem 2rem;
  }
  
  .conference-date-badge .days {
    font-size: 2rem;
  }
  
  .conference-teaser__title,
  .color-education__title {
    font-size: 1.75rem;
  }
  
  .conference-teaser__actions,
  .color-education__actions {
    flex-direction: column;
  }
  
  .conference-teaser__actions .btn,
  .color-education__actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .color-education__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .conference-teaser__links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .conference-teaser__links .separator {
    display: none;
  }
  
  .tools-highlight {
    flex-direction: column;
    text-align: center;
  }
  
  .tool-icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .homepage-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }
  
  .conference-teaser__inner,
  .color-education {
    padding: 1.5rem;
  }
  
  .conference-teaser__title,
  .color-education__title {
    font-size: 1.5rem;
  }
  
  .conference-teaser__description,
  .color-education__description p {
    font-size: 1rem;
  }
}

/**
 * Newsletter Subscription Block
 * Sidebar newsletter signup styling
 */

.newsletter-block {
  background: #f8feff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.newsletter-block__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00263a;
  color: var(--color-navy);
  margin: 0 0 0.75rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-family: var(--font-secondary);
}

.newsletter-block__description {
  font-size: 0.9375rem;
  color: #374151;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.newsletter-form {
  margin: 1rem 0;
}

.newsletter-form .form-group {
  margin-bottom: 0.75rem;
}

.newsletter-email,
input.newsletter-email,
input#qihjdu-qihjdu {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid #d1d5db !important;
  border-radius: 6px;
  background: white !important;
  color: #333 !important;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  box-sizing: border-box;
}

.newsletter-email:focus,
input.newsletter-email:focus,
input#qihjdu-qihjdu:focus {
  outline: none;
  border-color: #008c95 !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.1);
}

.newsletter-email::-moz-placeholder {
  color: #9ca3af;
}

.newsletter-email::placeholder {
  color: #9ca3af;
}

.newsletter-submit {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background: #008c95;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  transition: all var(--transition-fast);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-primary);
}

.newsletter-submit:hover {
  background: #006a71;
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 140, 149, 0.25);
}

.newsletter-submit:active {
  transform: translateY(0);
}

.newsletter-block__privacy {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0.75rem 0 0 0;
  font-style: italic;
}

/* Sidebar specific adjustments */

.sidebar .newsletter-block {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar--second .newsletter-block {
  margin-top: 2rem;
}

/* Conference block spacing when newsletter is above */

.sidebar--second .newsletter-block + .block {
  margin-top: 2rem;
}

/* Dark mode support (if needed) */

@media (prefers-color-scheme: dark) {
  .newsletter-block {
    background: #1f2937;
    border-color: #374151;
  }
  
  .newsletter-block__title {
    color: white;
  }
  
  .newsletter-block__description {
    color: #d1d5db;
  }
  
  .newsletter-email {
    background: #111827;
    border-color: #374151;
    color: white;
  }
  
  .newsletter-email::-moz-placeholder {
    color: #6b7280;
  }
  
  .newsletter-email::placeholder {
    color: #6b7280;
  }
  
  .newsletter-block__privacy {
    color: #9ca3af;
  }
}

/* Mobile responsiveness */

@media (max-width: 768px) {
  .newsletter-block {
    padding: 1.25rem;
  }
  
  .newsletter-block__title {
    font-size: 1.125rem;
  }
  
  .newsletter-block__description {
    font-size: 0.875rem;
  }
  
  .newsletter-email,
  .newsletter-submit {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Loading state */

.newsletter-form.is-loading .newsletter-submit {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-form.is-loading .newsletter-submit::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

/* Utility classes */

/* @import .utilities/spacing.css.; -- removed empty file */

/* @import .utilities/colors.css.; -- removed empty file */

/* @import .utilities/display.css.; -- removed empty file */

/* @import .utilities/text.css.; -- removed empty file */

/**
 * Accessibility Utility Classes
 * 
 * Utility classes for improving accessibility and screen reader support.
 */

/* Visually hidden but accessible to screen readers */

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

/* Show element only to screen readers */

.sr-only {
  position: absolute \!important;
  width: 1px \!important;
  height: 1px \!important;
  padding: 0 \!important;
  margin: -1px \!important;
  overflow: hidden \!important;
  clip: rect(0,0,0,0) \!important;
  white-space: nowrap \!important;
  border: 0 \!important;
}

/* Use to show sr-only element on focus (for skip links etc) */

.sr-only-focusable:focus {
  position: static \!important;
  width: auto \!important;
  height: auto \!important;
  padding: inherit \!important;
  margin: inherit \!important;
  overflow: visible \!important;
  clip: auto \!important;
  white-space: normal \!important;
}

/* Page-specific styles (loaded conditionally via libraries) */

/* Commerce styles */

/**
 * Commerce and checkout styling
 * Provides enhanced UX for membership purchase and checkout flow
 */

/* Membership Form Styling */

.scad-membership-form {
  max-width: 600px;
  margin: 2rem auto;
}

.scad-membership-form fieldset {
  border: none;
  padding: 0;
  margin: 2rem 0;
}

.scad-membership-form .fieldset-legend {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--scad-primary);
  margin-bottom: 1rem;
  display: block;
}

/* Radio Button Styling */

.scad-membership-form .form-radio {
  position: absolute;
  opacity: 0;
}

.scad-membership-form .form-item-membership-type {
  margin-bottom: 1rem;
}

.scad-membership-form .form-item-membership-type label {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.scad-membership-form .form-item-membership-type label:hover {
  border-color: var(--scad-primary);
  background: #f8fafb;
}

.scad-membership-form .form-radio:checked + label {
  border-color: var(--scad-primary);
  background: #f0f9fa;
  box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.1);
}

.scad-membership-form .form-radio:checked + label::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--scad-primary);
  background: white;
}

.scad-membership-form .form-radio:checked + label::after {
  content: '';
  position: absolute;
  left: calc(1.5rem + 6px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scad-primary);
}

.scad-membership-form .form-radio:not(:checked) + label::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: white;
}

.scad-membership-form .form-item-membership-type label.option {
  padding-left: 4rem;
  font-weight: 500;
  color: #333;
}

/* Submit Button */

.scad-membership-form .form-submit {
  background: var(--scad-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scad-membership-form .form-submit:hover {
  background: #007782;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

.scad-membership-form .form-submit:active {
  transform: translateY(0);
}

/* Messages and Alerts */

.messages {
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 6px;
  font-weight: 500;
}

.messages--status {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.messages--error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.messages ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Order Summary (for cart pages) */

.order-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.order-summary h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
  color: #333;
  font-family: var(--font-serif);
}

/* Order Information Section */

h1.page-title {
  font-size: clamp(1.75rem, 1.6rem + 0.8vw, 2.25rem);
  font-size: var(--step-3);
  color: #333;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

/* Payment Form */

.payment-information {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.payment-information h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-size: var(--step-1);
  margin-bottom: 1.5rem;
  color: #333;
}

/* Cart styling */

.views-field-edit-quantity input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* Edit button styling */

button.button--primary,
a.button--primary {
  background: var(--scad-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

button.button--primary:hover,
a.button--primary:hover {
  background: #007782;
}

/* Layout improvements 
 * WARNING: The 400px fixed width caused issues on checkout pages.
 * This rule is now scoped to exclude checkout pages.
 */

:not(.path-checkout) .layout--twocol-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-gap: 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.layout__region--first {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.layout__region--second {
  height: -moz-fit-content;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

/* Responsive */

@media (max-width: 768px) {
  :not(.path-checkout) .layout--twocol-section {
    grid-template-columns: 1fr;
  }
  
  .layout__region--second {
    position: relative;
    top: 0;
  }
}

/* Order Summary Table Styling */

.order-summary table,
.layout--checkout-order-summary table {
  width: 100%;
  border-collapse: collapse;
}

.order-summary td,
.layout--checkout-order-summary td {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.order-summary td:last-child,
.layout--checkout-order-summary td:last-child {
  text-align: right;
  font-weight: 600;
}

.order-summary tr:last-child td,
.layout--checkout-order-summary tr:last-child td {
  border-bottom: none;
  padding-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--scad-primary);
  font-weight: 700;
}

/* Product Links in Order Summary */

.order-summary a,
.layout--checkout-order-summary a {
  color: var(--scad-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.order-summary a:hover,
.layout--checkout-order-summary a:hover {
  color: #007782;
  text-decoration: underline;
}

/* Quantity Display */

.order-summary .quantity {
  color: #666;
  font-size: 0.9rem;
}

/* Price Emphasis */

.order-summary .price {
  font-weight: 600;
  color: #333;
}

/* Total Row Styling */

tr.order-total td {
  font-size: 1.5rem \!important;
  padding-top: 1.5rem \!important;
  border-top: 2px solid #e9ecef;
}

/* Edit Link Styling */

.edit-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.edit-link:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
}

/* Mobile Responsiveness for Order Summary */

@media (max-width: 768px) {
  .order-summary,
  .layout--checkout-order-summary {
    padding: 1.5rem;
  }
  
  .order-summary td,
  .layout--checkout-order-summary td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }
  
  button[value="Continue to review"],
  input[value="Continue to review"] {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Card-like appearance for sections */

.checkout-pane {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-pane__title {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-size: var(--step-1);
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

/**
 * Commerce Checkout Consolidated Styles
 * Single source for all checkout page styling
 */

/* ========================================
   Layout Structure
   ======================================== */

/* Main checkout container */

.path-checkout .layout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hide breadcrumbs during checkout for cleaner experience */

.path-checkout .breadcrumb-wrapper {
  display: none;
}

/* Page title with reduced top margin */

.path-checkout h1.page-title,
.path-checkout #block-scad-theme-page-title h1 {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: #212529;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Two-column desktop layout - Fixed with correct scope and intrinsic sizing */

@media (min-width: 960px) {
  /* Grid on the correct wrapper */
  .path-checkout .layout-checkout-form {
    display: grid !important;
    grid-template-columns: 1fr minmax(350px, 1fr) !important; /* Second column never less than 350px */
    grid-gap: 2rem !important;
    grid-gap: var(--spacing-xl, 3rem) !important;
    gap: 2rem !important;
    gap: var(--spacing-xl, 3rem) !important;
    align-items: start;
  }
  
  /* Main form column */
  .path-checkout .layout-region-checkout-main {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Neutralize hard-coded width from commerce.css */
  .path-checkout .layout-region-checkout-secondary {
    width: auto !important;
    position: sticky;
    top: 2rem;
    height: -moz-fit-content;
    height: fit-content;
  }
  
  /* Footer spans both columns */
  .path-checkout .layout-region-checkout-footer {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
  }
}

/* ========================================
   Order Summary
   ======================================== */

.checkout-pane-order-summary,
.layout-region-checkout-secondary .checkout-pane {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.checkout-pane-order-summary h3,
.layout-region-checkout-secondary h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

/* Order items table */

.checkout-pane-order-summary table {
  width: 100%;
  margin: 0;
  border: none;
  table-layout: fixed; /* Prevents column width issues */
}

.checkout-pane-order-summary td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

/* Product name column - fix word breaking */

.checkout-pane-order-summary .views-field-purchased-entity {
  word-break: break-word; /* NOT break-all - allows natural word breaking */
  overflow-wrap: break-word;
  hyphens: auto;
  padding-right: 1rem;
}

.checkout-pane-order-summary .views-field-purchased-entity a {
  color: #008c95;
  color: var(--scad-primary, #008c95);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.checkout-pane-order-summary .views-field-purchased-entity a:hover {
  text-decoration: underline;
}

/* Quantity column */

.checkout-pane-order-summary .views-field-quantity {
  width: 60px;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
}

/* Price column */

.checkout-pane-order-summary .views-field-total-price__number {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  width: 100px;
}

/* Order totals */

.order-total-line {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid #e9ecef;
}

.order-total-line__subtotal {
  margin-top: 1rem;
}

.order-total-line__total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #008c95;
  color: var(--scad-primary, #008c95);
  border-top: 2px solid #dee2e6;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.order-total-line-label {
  font-weight: 600;
}

/* ========================================
   Form Sections
   ======================================== */

.checkout-pane {
  margin-bottom: 2rem;
}

.checkout-pane fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.checkout-pane legend,
.checkout-pane__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

/* Form fields */

.checkout-pane .form-item {
  margin-bottom: 1.5rem;
}

.checkout-pane label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.checkout-pane input[type="text"],
.checkout-pane input[type="email"],
.checkout-pane input[type="tel"],
.checkout-pane select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Better focus states with higher contrast */

.checkout-pane input:focus,
.checkout-pane select:focus {
  outline: none;
  border-color: #008c95;
  border-color: var(--scad-primary, #008c95);
  box-shadow: 0 0 0 3px rgba(0, 140, 149, 0.25); /* Higher opacity for better contrast */
}

/* Required field indicator */

.form-required:after {
  content: ' *';
  color: #dc3545;
}

/* ========================================
   Payment Method Selection
   ======================================== */

.checkout-pane-payment-information .form-type-radio {
  margin-bottom: 1rem;
}

.checkout-pane-payment-information input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.checkout-pane-payment-information label.option {
  display: block;
  padding: 1rem 1.5rem;
  padding-left: 3rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

/* Radio button visual */

.checkout-pane-payment-information label.option:before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ced4da;
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
}

.checkout-pane-payment-information label.option:after {
  content: '';
  position: absolute;
  left: calc(1rem + 6px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #008c95;
  background: var(--scad-primary, #008c95);
  opacity: 0;
  transition: all 0.2s ease;
}

.checkout-pane-payment-information input[type="radio"]:checked + label.option {
  border-color: #008c95;
  border-color: var(--scad-primary, #008c95);
  background: #f0f9fa;
}

.checkout-pane-payment-information input[type="radio"]:checked + label.option:after {
  opacity: 1;
}

.checkout-pane-payment-information label.option:hover {
  border-color: #008c95;
  border-color: var(--scad-primary, #008c95);
  background: #f8fafb;
}

/* ========================================
   Address Display
   ======================================== */

.profile--customer,
.checkout-pane--review .fieldset-wrapper {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.profile--customer address,
.checkout-review-pane__data address {
  font-style: normal;
  line-height: 1.6;
  color: #495057;
  margin: 0;
}

/* ========================================
   Action Buttons
   ======================================== */

.layout-region-checkout-footer .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.checkout-pane .form-submit,
.checkout-pane .button,
#edit-actions-next {
  background: #008c95;
  background: var(--scad-primary, #008c95);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.checkout-pane .form-submit:hover,
.checkout-pane .button:hover,
#edit-actions-next:hover {
  background: #007782;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

/* Back/Cancel buttons */

.checkout-back,
.checkout-pane a.button--secondary {
  color: #6c757d;
  text-decoration: none;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid #6c757d;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
}

.checkout-back:hover,
.checkout-pane a.button--secondary:hover {
  color: #008c95;
  color: var(--scad-primary, #008c95);
  border-color: #008c95;
  border-color: var(--scad-primary, #008c95);
  background: #f8fafb;
}

/* ========================================
   Status Messages
   ======================================== */

.path-checkout .messages {
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

/* Enhanced success message styling - targeting actual Drupal message structure */

/* Works on any page with commerce checkout in the URL */

[data-drupal-messages] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  margin: 0;
}

[data-drupal-messages] > div {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-drupal-messages] > div.is-fading {
  opacity: 0;
  transform: translateY(-8px);
}

[data-drupal-messages] [aria-label="Status message"] {
  margin: 0;
  border-radius: 0;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: 0 2px 20px rgba(40, 167, 69, 0.3);
  animation: slideDown 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Hide the visually-hidden heading */

[data-drupal-messages] .visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

/* Close button for messages */

[data-drupal-messages] .message-close {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

[data-drupal-messages] .message-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

[data-drupal-messages] .message-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Animation */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Warning and error messages remain in document flow */

.path-checkout [data-drupal-messages] [aria-label="Warning message"] {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.path-checkout [data-drupal-messages] [aria-label="Error message"] {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ensure content below isn't hidden under fixed message */

.path-checkout.has-messages .layout-container {
  padding-top: 4rem;
  transition: padding-top 0.3s ease;
}

/* ========================================
   Review Page Specific
   ======================================== */

.path-checkout-review .layout-region-checkout-main {
  max-width: 800px;
}

.path-checkout-review .checkout-pane {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.path-checkout-review .checkout-pane legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  width: 100%;
}

.path-checkout-review .checkout-pane legend a {
  font-size: 0.875rem;
  font-weight: normal;
  color: #008c95;
  color: var(--scad-primary, #008c95);
  text-decoration: none;
}

.path-checkout-review .checkout-pane legend a:hover {
  text-decoration: underline;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
  .layout-checkout-form {
    display: block;
  }
  
  .layout-region-checkout-secondary {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }
  
  .path-checkout h1.page-title {
    font-size: 1.5rem;
  }
  
  .layout-region-checkout-footer .form-actions {
    flex-direction: column;
  }
  
  .checkout-pane .form-submit,
  .checkout-pane .button,
  #edit-actions-next {
    width: 100%;
    text-align: center;
  }
  
  .checkout-back {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* ========================================
   Accessibility Improvements
   ======================================== */

/* Skip to checkout button for screen readers */

.visually-hidden-focusable:focus {
  position: absolute;
  top: 0;
  background: #008c95;
  background: var(--scad-primary, #008c95);
  color: white;
  padding: 1rem;
  z-index: 1000;
}

/* Ensure all interactive elements have proper focus indicators */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #008c95;
  outline: 2px solid var(--scad-primary, #008c95);
  outline-offset: 2px;
}

/* High contrast mode support */

@media (prefers-contrast: high) {
  .checkout-pane input:focus,
  .checkout-pane select:focus {
    outline: 3px solid;
    outline-offset: 0;
  }
}

/* ========================================
   Legacy Checkout Styles (moved from commerce.css)
   ======================================== */

/* Checkout Flow Container */

.commerce-checkout-flow {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Continue/Review Buttons */

button[value="Continue to review"],
input[value="Continue to review"],
.button--primary[value="Continue to review"] {
  background: #008c95;
  background: var(--scad-primary, #008c95);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  display: block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button[value="Continue to review"]:hover,
input[value="Continue to review"]:hover,
.button--primary[value="Continue to review"]:hover {
  background: #007782;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 140, 149, 0.3);
}

/* Checkout Buttons */

.checkout-buttons .button {
  background: #008c95;
  background: var(--scad-primary, #008c95);
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.checkout-buttons .button:hover {
  background: #007782;
  transform: translateY(-2px);
}

/* Progress Steps Visual Enhancement (moved from commerce.css) */

.commerce-checkout-flow__step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.commerce-checkout-flow__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.commerce-checkout-flow__step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.commerce-checkout-flow__step:last-child::before {
  display: none;
}

.commerce-checkout-flow__step.is-active::before,
.commerce-checkout-flow__step.is-complete::before {
  background: #008c95;
  background: var(--scad-primary, #008c95);
}

.commerce-checkout-flow__step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.commerce-checkout-flow__step.is-complete .commerce-checkout-flow__step-number {
  background: #008c95;
  background: var(--scad-primary, #008c95);
  color: white;
}

.commerce-checkout-flow__step.is-active .commerce-checkout-flow__step-number {
  background: #ff715b;
  background: var(--scad-accent, #ff715b);
  color: white;
  box-shadow: 0 0 0 4px rgba(255, 113, 91, 0.2);
}
