/**
 * ============================================================================
 * EXHIBITIONS DESIGN SYSTEM & THEME TOKENS
 * ============================================================================
 * Brand Colors: Primary Amber/Orange (#f69400), Secondary Azure/Blue (#04a2ff)
 * Supports automatic prefers-color-scheme: dark and optional data-theme attributes.
 * All color combinations strictly comply with WCAG AA contrast standards.
 */

/* ----------------------------------------------------------------------------
 * LIGHT MODE (DEFAULT TOKENS)
 * ---------------------------------------------------------------------------- */
:root,
:root[data-theme="light"] {
  /* Color Scheme Indicator for Browsers */
  color-scheme: light;

  /* Brand Palette & Shaded Variations */
  --color-brand-orange: #f69400;
  --color-brand-orange-hover: #e08600;
  --color-brand-orange-active: #c77600;
  --color-brand-orange-subtle: rgba(246, 148, 0, 0.1);
  --color-brand-orange-text: #b86900; /* Contrast >= 4.5:1 on light backgrounds */

  --color-brand-blue: #04a2ff;
  --color-brand-blue-hover: #008ae6;
  --color-brand-blue-active: #0073c2;
  --color-brand-blue-subtle: rgba(4, 162, 255, 0.1);
  --color-brand-blue-text: #0072c6; /* Contrast >= 4.5:1 on light backgrounds */

  --color-brand-gradient: linear-gradient(135deg, #f69400 0%, #04a2ff 100%);
  --color-brand-gradient-subtle: linear-gradient(135deg, rgba(246, 148, 0, 0.08) 0%, rgba(4, 162, 255, 0.08) 100%);

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc; /* Slate 50 */
  --bg-tertiary: #f1f5f9;  /* Slate 100 */
  --bg-subtle: #e2e8f0;    /* Slate 200 */
  --bg-overlay: rgba(15, 23, 42, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Surface & Card Colors */
  --surface-card: #ffffff;
  --surface-card-hover: #f8fafc;
  --surface-elevated: #ffffff;
  --surface-modal: #ffffff;
  --surface-input: #ffffff;
  --surface-input-hover: #f8fafc;
  --surface-input-focus: #ffffff;

  /* Typography & Text Colors (WCAG AA Compliant) */
  --text-primary: #0f172a;    /* Slate 900 - Contrast 15.6:1 */
  --text-secondary: #334155;  /* Slate 700 - Contrast 9.5:1 */
  --text-tertiary: #475569;   /* Slate 600 - Contrast 7.0:1 */
  --text-muted: #64748b;      /* Slate 500 - Contrast 4.6:1 */
  --text-inverse: #ffffff;    /* Contrast 15.6:1 on dark surfaces */
  --text-brand-primary: var(--color-brand-orange-text);
  --text-brand-secondary: var(--color-brand-blue-text);
  --text-link: #0072c6;
  --text-link-hover: #00508c;

  /* Border & Divider Tokens */
  --border-color: #e2e8f0;         /* Slate 200 */
  --border-color-subtle: #f1f5f9;  /* Slate 100 */
  --border-color-hover: #cbd5e1;   /* Slate 300 */
  --border-color-focus: #04a2ff;
  --border-color-brand: rgba(246, 148, 0, 0.4);

  /* Shadow Tokens */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-glow-brand: 0 0 20px rgba(246, 148, 0, 0.25);
  --shadow-glow-blue: 0 0 20px rgba(4, 162, 255, 0.25);

  /* Border Radii Tokens */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography System */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-md: 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 */

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;

  /* Animation & Transition Timings */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;
  --color-info: #04a2ff;
  --color-info-bg: #f0f9ff;
}

/* ----------------------------------------------------------------------------
 * DARK MODE INVERSION (SLATE / NAVY PALETTE)
 * Triggered automatically by prefers-color-scheme or manually via [data-theme="dark"]
 * ---------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    /* Brand Palette - Adjusted for Dark Surfaces */
    --color-brand-orange: #f69400;
    --color-brand-orange-hover: #ffaa2c;
    --color-brand-orange-active: #ffb74d;
    --color-brand-orange-subtle: rgba(246, 148, 0, 0.18);
    --color-brand-orange-text: #f69400; /* Contrast >= 7.2:1 on dark slate */

    --color-brand-blue: #04a2ff;
    --color-brand-blue-hover: #38bdf8;
    --color-brand-blue-active: #7dd3fc;
    --color-brand-blue-subtle: rgba(4, 162, 255, 0.18);
    --color-brand-blue-text: #38bdf8; /* Contrast >= 9.1:1 on dark slate */

    --color-brand-gradient: linear-gradient(135deg, #f69400 0%, #04a2ff 100%);
    --color-brand-gradient-subtle: linear-gradient(135deg, rgba(246, 148, 0, 0.15) 0%, rgba(4, 162, 255, 0.15) 100%);

    /* Background Colors (Deep Slate / Navy Palette) */
    --bg-primary: #0f172a;    /* Slate 900 */
    --bg-secondary: #0b0f19;  /* Navy Deep */
    --bg-tertiary: #1e293b;   /* Slate 800 */
    --bg-subtle: #334155;     /* Slate 700 */
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --bg-glass: rgba(15, 23, 42, 0.85);

    /* Surface & Card Colors */
    --surface-card: #1e293b;         /* Slate 800 */
    --surface-card-hover: #273549;   /* Slate 750 */
    --surface-elevated: #334155;     /* Slate 700 */
    --surface-modal: #1e293b;        /* Slate 800 */
    --surface-input: #0f172a;        /* Slate 900 */
    --surface-input-hover: #1e293b;  /* Slate 800 */
    --surface-input-focus: #1e293b;

    /* Typography & Text Colors (WCAG AA Compliant on Dark Backgrounds) */
    --text-primary: #f8fafc;    /* Slate 50 - Contrast 15.8:1 */
    --text-secondary: #cbd5e1;  /* Slate 300 - Contrast 9.9:1 */
    --text-tertiary: #94a3b8;   /* Slate 400 - Contrast 5.4:1 */
    --text-muted: #94a3b8;      /* Slate 400 - Contrast 5.4:1 */
    --text-inverse: #0f172a;    /* Contrast 15.8:1 on light text elements */
    --text-brand-primary: var(--color-brand-orange-text);
    --text-brand-secondary: var(--color-brand-blue-text);
    --text-link: #38bdf8;
    --text-link-hover: #7dd3fc;

    /* Border & Divider Tokens */
    --border-color: #334155;         /* Slate 700 */
    --border-color-subtle: #1e293b;  /* Slate 800 */
    --border-color-hover: #475569;   /* Slate 600 */
    --border-color-focus: #04a2ff;
    --border-color-brand: rgba(246, 148, 0, 0.5);

    /* Shadow Tokens (Dark Mode Depth & Vibrant Glows) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow-brand: 0 0 25px rgba(246, 148, 0, 0.35);
    --shadow-glow-blue: 0 0 25px rgba(4, 162, 255, 0.35);

    /* Status Backgrounds in Dark Mode */
    --color-success-bg: rgba(16, 185, 129, 0.15);
    --color-warning-bg: rgba(245, 158, 11, 0.15);
    --color-error-bg: rgba(239, 68, 68, 0.15);
    --color-info-bg: rgba(4, 162, 255, 0.15);
  }
}

/* Explicit data-theme="dark" attribute support (Override for manual toggle) */
:root[data-theme="dark"] {
  color-scheme: dark;

  --color-brand-orange: #f69400;
  --color-brand-orange-hover: #ffaa2c;
  --color-brand-orange-active: #ffb74d;
  --color-brand-orange-subtle: rgba(246, 148, 0, 0.18);
  --color-brand-orange-text: #f69400;

  --color-brand-blue: #04a2ff;
  --color-brand-blue-hover: #38bdf8;
  --color-brand-blue-active: #7dd3fc;
  --color-brand-blue-subtle: rgba(4, 162, 255, 0.18);
  --color-brand-blue-text: #38bdf8;

  --color-brand-gradient: linear-gradient(135deg, #f69400 0%, #04a2ff 100%);
  --color-brand-gradient-subtle: linear-gradient(135deg, rgba(246, 148, 0, 0.15) 0%, rgba(4, 162, 255, 0.15) 100%);

  --bg-primary: #0f172a;
  --bg-secondary: #0b0f19;
  --bg-tertiary: #1e293b;
  --bg-subtle: #334155;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.85);

  --surface-card: #1e293b;
  --surface-card-hover: #273549;
  --surface-elevated: #334155;
  --surface-modal: #1e293b;
  --surface-input: #0f172a;
  --surface-input-hover: #1e293b;
  --surface-input-focus: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --text-brand-primary: var(--color-brand-orange-text);
  --text-brand-secondary: var(--color-brand-blue-text);
  --text-link: #38bdf8;
  --text-link-hover: #7dd3fc;

  --border-color: #334155;
  --border-color-subtle: #1e293b;
  --border-color-hover: #475569;
  --border-color-focus: #04a2ff;
  --border-color-brand: rgba(246, 148, 0, 0.5);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-glow-brand: 0 0 25px rgba(246, 148, 0, 0.35);
  --shadow-glow-blue: 0 0 25px rgba(4, 162, 255, 0.35);

  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-error-bg: rgba(239, 68, 68, 0.15);
  --color-info-bg: rgba(4, 162, 255, 0.15);
}

/* ----------------------------------------------------------------------------
 * BASE GLOBAL STYLES & UTILITY CLASSES
 * ---------------------------------------------------------------------------- */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.theme-card {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.theme-card:hover {
  background-color: var(--surface-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.theme-text-brand-gradient {
  background: var(--color-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

* {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

img {
  cursor: pointer;
}

nav {
  display: flex;
  padding: 10px 2%;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

nav h1 {
  display: inline;
  color: var(--color-brand-blue-text);
  font-size: 3em;
  margin-left: 10px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
}

nav img.logo {
  width: 42px;
  vertical-align: text-bottom;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li a {
  color: var(--color-brand-orange-text);
  text-decoration: none;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--color-brand-blue);
  display: block;
  margin: auto;
  transition: width var(--transition-normal);
}

.nav-links ul li:hover::after {
  width: 100%;
}

button.menu-close {
  display: none;
}

button.menu-open {
  display: none;
}

div.container {
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 20px;
  padding-bottom: 20px;
  margin: auto;
  max-width: 80%;
}

button.nav_btn {
  border-radius: var(--radius-md);
  margin: 10px 5px;
  background-color: var(--surface-card);
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

button.nav_btn img {
  width: 15px;
  height: 15px;
  vertical-align: text-bottom;
  margin-right: 5px;
}

button.nav_btn:hover {
  background-color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #ffffff;
}

button.nav_btn:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(314deg) brightness(106%) contrast(101%);
}

select.lang-select {
  max-width: 120px;
  padding: 8px;
  font-size: var(--font-size-sm);
  background-color: var(--surface-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  cursor: pointer;
}

@media (max-width: 991px) {
  div.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  nav {
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
  }
  nav img.logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  nav h1 {
    font-size: clamp(0.95rem, 3.2vw, 1.35rem);
    line-height: 1.2;
    margin-left: 4px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  select.lang-select {
    max-width: 90px;
    padding: 4px 6px;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--surface-input);
  }
  .nav-links {
    position: fixed;
    background-color: var(--surface-modal);
    height: 100vh;
    height: 100dvh;
    width: 80vw;
    max-width: 300px;
    top: 0;
    right: 0;
    text-align: left;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-slow) ease-in-out;
    box-shadow: var(--shadow-2xl);
    border-left: 1px solid var(--border-color);
    display: block;
  }
  .nav-links.is-active {
    transform: translateX(0);
  }
  .nav-links ul li {
    display: block;
    padding: 12px 16px;
  }
  .nav-links ul {
    padding: 20px;
  }
  button.menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: 0;
    margin-left: 10px;
    margin-top: 10px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
  }
  button.menu-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 4px;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  div.container {
    max-width: 80%;
  }
  nav h1 {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    white-space: nowrap;
    margin-left: 10px;
  }
  button.menu-close,
  button.menu-open {
    display: none !important;
  }
  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    transform: none;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    box-shadow: none;
    border-left: none;
  }
  .nav-links ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
  }
  .nav-links ul li {
    display: inline-block;
    padding: 4px 8px;
  }
  select.lang-select {
    margin-left: 1rem;
    max-width: 110px;
  }
}

section.content {
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

div.list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 15px;
}

div.ve-list {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  text-align: left;
  overflow: hidden;
}

div.ve-list .thumbnail {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-color: var(--border-color);
  height: 220px;
  object-fit: cover;
}

div.ve-list:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-hover);
}

div.ve-list .edesc {
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 0.4rem;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

div.ve-list .details {
  padding: 1.5rem;
  color: var(--text-tertiary);
}

div.details h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

div.details:hover h4 {
  color: var(--text-brand-primary);
}

div.details h5 {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

img.cth {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-right: 5px;
}

a.elink,
button.elink {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  color: var(--text-brand-primary);
  float: right;
  font-weight: var(--font-weight-medium);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

button.elink:hover,
a.elink:hover {
  color: #ffffff;
  background-color: var(--color-brand-orange);
}

span.e_category {
  color: var(--text-primary);
  background-color: var(--color-brand-orange-subtle);
  padding: 0.25rem 1rem;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  margin-right: 1rem;
}

p.e_categories {
  margin-bottom: 0.5rem;
}

span.stats {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  color: var(--text-secondary);
}

span.stats img {
  width: 15px;
  height: 15px;
  vertical-align: text-bottom;
}

span.name {
  color: var(--text-secondary);
}

div.heroContainer {
  background-image: url(/images/artegallery.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

div.heroText {
  margin: auto;
  max-width: 52rem;
  vertical-align: middle;
  color: #ffffff;
  padding: clamp(1.5rem, 5vw, 6rem);
  box-sizing: border-box;
  width: 100%;
}

div.heroText h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  text-align: center;
  max-width: 32rem;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

div.heroText p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: var(--line-height-relaxed);
  max-width: 42rem;
  text-align: center;
}

div.heroText h1 span.titleOrange {
  color: var(--color-brand-orange);
}

div.heroOverlay {
  background-color: var(--bg-overlay);
  backdrop-filter: blur(2px);
  width: 100%;
  min-height: 80vh;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

div.search_container {
  margin: 2rem auto;
  align-items: center;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  background: var(--surface-input);
  border-radius: var(--radius-md);
  display: flex;
  max-width: 470px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

div.search_container:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-hover);
}

div.search_container:focus-within {
  border-color: var(--color-brand-orange);
  box-shadow: 0 0 0 3px var(--color-brand-orange-subtle);
}

input#search_input {
  border: none;
  outline: none;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  background: transparent;
  color: var(--text-primary);
  width: 90%;
  padding: 0.5rem;
  font-family: var(--font-sans);
}

div.search_container img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

div.category_links {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

a.category_link,
button.category_link {
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  margin-right: 12px;
  border-radius: var(--radius-md);
  background: var(--color-brand-orange-subtle);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-block;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

a.category_link:hover,
button.category_link:hover {
  background-color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #ffffff;
}

h2.list_header {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

div.category_header {
  padding: 1rem 0rem;
  color: #ffffff;
  background-image: var(--color-brand-gradient);
}

div.category_header h2 {
  padding: 1rem 0rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-5xl);
  line-height: 1;
}

div.list_header_container {
  padding-top: 3em;
  padding-bottom: 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.link {
  float: right;
  border: 0;
  background: transparent;
  color: var(--text-brand-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

a.link:hover {
  color: #ffffff;
  background-color: var(--color-brand-orange);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
}

section#hero {
  padding: 3% 1%;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

section.bg {
  background-color: var(--bg-primary);
}

div.paginate {
  margin-top: 2rem;
  text-align: center;
}

div.paginate ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

div.paginate ul li {
  margin: 2px;
}

a.page_link_text,
a.page_link_num {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: var(--surface-card);
  color: var(--text-primary);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

a.page_link_text:hover,
a.page_link_num:hover {
  background-color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #ffffff;
}

a.link_dsbl {
  pointer-events: none;
  opacity: 0.5;
}

h2.ct {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: center;
}

p.ct {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--text-secondary);
  text-align: center;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.ptype {
  flex-basis: 31%;
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-sizing: border-box;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  margin-bottom: 1em;
  box-shadow: var(--shadow-md);
}

.ptype:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-hover);
}

.ptype ul {
  margin-left: 1.5em;
  margin-top: 3%;
}

.ptype li {
  text-align: left;
  margin-bottom: 3%;
  color: var(--text-secondary);
}

.optin-container {
  background-color: var(--surface-card);
  color: var(--text-primary);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 450px;
  text-align: center;
  border-top: 5px solid var(--color-brand-blue);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: auto;
}

.optin-container h2 {
  margin-top: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  letter-spacing: var(--letter-spacing-tight);
}

.optin-container p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

input[type="email"] {
  width: 100%;
  padding: 15px;
  background-color: var(--surface-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  font-size: var(--font-size-md);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px var(--color-brand-blue-subtle);
}

.cta-button {
  width: 100%;
  padding: 15px;
  background-color: var(--color-brand-orange);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.cta-button:hover {
  background-color: var(--color-brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-brand);
}

.footer-note {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 20px;
}

.early-access-success {
  display: none;
  color: var(--text-brand-secondary);
  margin-top: 20px;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
}

@media screen and (max-width: 700px) {
  div.heroText {
    padding: 1.5rem 1rem;
  }
  div.heroOverlay {
    display: flex;
  }
}
footer {
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: 3%;
  padding-right: 3%;
  margin-top: 20px;
  width: 100%;
  margin: auto;
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
}

div.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 2rem;
  margin-top: 15px;
}

.copyright {
  margin: auto;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

ul.plist {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.plist li {
  margin-bottom: 10px;
}

ul.plist li button.link-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul.plist li button.link-button:hover {
  text-decoration: underline;
  color: var(--text-brand-primary);
}

ul.plist li.top {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

div.social {
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

div.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  transition: background-color var(--transition-fast);
}

div.social a:hover {
  background-color: var(--bg-tertiary);
}

div.social img {
  width: 24px;
  height: 24px;
}

img.logo-small {
  width: 64px;
  max-width: 100%;
  height: auto;
}

footer .store-btn {
  padding: 14px 28px;
  font-size: var(--font-size-md);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-image: var(--color-brand-gradient);
  margin: 10px 0;
  display: block;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-sans);
  max-width: 250px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

footer .store-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-brand);
}

footer ul.buttons {
  display: block;
  margin-bottom: 2rem;
  margin-right: 1em;
  list-style-type: none;
  padding: 0;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--color-brand-orange-text);
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.cookie-consent__inner {
  pointer-events: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 14px 16px;
  max-width: 980px;
  width: calc(100% - 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "text text" "links actions";
  gap: 12px;
  align-items: center;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.cookie-consent__text {
  grid-area: text;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
}

.cookie-consent__links {
  grid-area: links;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent__link {
  color: var(--text-link);
  text-decoration: underline;
  font-size: var(--font-size-xs);
  transition: color var(--transition-fast);
}

.cookie-consent__link:hover {
  color: var(--text-link-hover);
}

.cookie-consent__manage {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--font-size-xs);
  transition: color var(--transition-fast);
}

.cookie-consent__manage:hover {
  color: var(--text-primary);
}

.cookie-consent__actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  justify-self: end;
  align-self: center;
}

.cookie-consent__btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-sans);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cookie-consent__btn--primary {
  background-color: var(--color-brand-orange);
  color: #ffffff;
}

.cookie-consent__btn--primary:hover {
  background-color: var(--color-brand-orange-hover);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.cookie-consent__btn--ghost:hover {
  background-color: var(--bg-tertiary);
}

/* Modal */
.cookie-consent__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  z-index: 1100;
  pointer-events: auto;
}

.cookie-consent__modal-inner {
  background-color: var(--surface-modal);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 640px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent__legal {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-top: 12px;
}

.cookie-consent__notice {
  margin-top: 20px;
  padding: 12px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
}

.cookie-consent__pref {
  margin: 14px 0;
}

.cookie-consent__pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-consent__pref-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.cookie-consent__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .cookie-consent {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .cookie-consent__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "links" "actions";
  }
  .cookie-consent__actions {
    justify-self: start;
  }
}

.cookie-consent[hidden],
.cookie-consent__modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

body.cookie-modal-open {
  overflow: hidden;
}

