/* =========================================
   NETCLUSIVE.DE - BASE STYLES
   Core Styles: Variables, Resets, Typography, Forms, Tables
   Version: 3.1.1
   Date: 2025-11-29
   ========================================= */

/**
 * netclusive.de - Modern Semantic CSS
 *
 * Semantic-first CSS architecture:
 * - HTML elements styled by default (button, a, h1-h6, table, form, input)
 * - Modifier classes only for variants (.btn-secondary, .btn-sm)
 * - Minimal utility classes (.text-center, .mt-4)
 * - Mobile-first responsive design
 * - WCAG AA compliant
 * - netclusive brand colors: #0b65ae (primary), #494c53 (secondary)
 *
 * Consolidates: style.css, style-quickwins.css, style-forms.css, style-sticky-tables.css
 * Load order: base.css → style-responsive.css
 */


/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
  /* Brand Colors - netclusive Corporate Identity */
  --color-primary: #0b65ae;
  --color-primary-dark: #084675;
  --color-primary-light: #2ba3ff;
  --color-primary-lighter: #2691e3;

  /* Secondary Colors */
  --color-secondary: #494c53;
  --color-secondary-dark: #333333;
  --color-secondary-light: #787b81;

  /* Gray Scale */
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-150: #f0f0f0;
  --color-gray-200: #eeeeee;
  --color-gray-250: #f3f3f3;
  --color-gray-300: #e5e5e5;
  --color-gray-350: #dee2e6;
  --color-gray-400: #cccccc;
  --color-gray-500: #aaaaaa;
  --color-gray-600: #888888;
  --color-gray-700: #666666;
  --color-gray-800: #444444;
  --color-gray-900: #222222;

  /* Bootstrap-compatible Grays (for legacy support) */
  --color-bs-gray-100: #f8f9fa;
  --color-bs-gray-200: #e9ecef;
  --color-bs-gray-300: #dee2e6;
  --color-bs-gray-500: #6c757d;
  --color-bs-gray-600: #495057;
  --color-bs-gray-800: #343a40;
  --color-bs-gray-900: #212529;

  /* Text Colors */
  --color-text-primary: #212529;
  --color-text-secondary: #495057;
  --color-text-muted: #6c757d;
  --color-text-light: #999999;

  /* Semantic Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;
  --color-success: #16a34a;
  --color-success-alt: #28a745;
  --color-success-bg: #f0fdf4;
  --color-success-bg-alt: #d4edda;
  --color-success-border: #c3e6cb;
  --color-warning: #f59e0b;
  --color-warning-alt: #ffc107;
  --color-warning-bg: #fff3cd;
  --color-info: #2ba3ff;
  --color-info-bg: #f0f9ff;
  --color-info-bg-light: #e0f2fe;
  --color-info-border: #bae6fd;

  /* Spacing Scale (8px base) */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* Typography Scale */
  --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 */

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* 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);

  /* Z-Index Scale */
  --z-auto: auto;
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-sidebar: 99999;

  /* Touch Target Minimum (WCAG AA) */
  --touch-target-min: 44px;

  /* Layout Variables */
  --layout-max-width: 1200px;
  --sidebar-width: 180px;
  --cart-sidebar-width: 200px;
  --login-bar-height: 32px;
  --header-height: 100px;

  /* Spacing (legacy compatibility) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Colors */
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;

  /* Background Colors */
  --color-bg-light: #f5f5f5;

  /* Z-Index (component specific) */
  --z-cart-sidebar: 100;
  --z-login-bar: 50;

  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-main: 1000px;

  /* Order Process Variables */
  --order-primary: var(--color-primary);
  --order-primary-active: var(--color-primary-dark);
  --order-text: var(--color-secondary);
  --order-text-secondary: var(--color-secondary-light);
  --order-text-muted: var(--color-gray-500);
  --order-error: var(--color-error);
  --order-error-bg: var(--color-error-bg);
  --order-warning: var(--color-warning);
  --order-warning-bg: #fff8e1;
  --order-bg-hero: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --order-bg-card: var(--color-white);
  --order-bg-section: var(--color-gray-50);
  --order-bg-info: #f0f9ff;
  --order-border: var(--color-gray-300);
  --order-border-hover: var(--color-primary-light);
  --order-spacing-xs: var(--space-2);
  --order-spacing-sm: var(--space-3);
  --order-spacing-md: var(--space-4);
  --order-spacing-lg: var(--space-6);
  --order-spacing-xl: var(--space-8);
  --order-spacing-2xl: var(--space-12);
  --order-radius-sm: var(--radius-sm);
  --order-radius-md: var(--radius-md);
  --order-radius-lg: var(--radius-lg);
  --order-shadow-sm: var(--shadow-sm);
  --order-shadow-md: var(--shadow-md);
  --order-shadow-hover: var(--shadow-lg);
  --order-transition-fast: var(--transition-fast);
  --order-transition-normal: var(--transition-base);
  --order-transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   2. RESETS & BOX-SIZING
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html,
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
p,
blockquote {
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../assets/fonts/pt-sans-narrow-700.woff2') format('woff2');
}

body {
  font-family: Arial, helvetica, sans-serif;
  font-size: 16px;
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

/* Headings - Default styles without classes */
h1 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

h2 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

h3 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

h4 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

h5 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

h6 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

/* Paragraphs and sections */
p {
  margin-bottom: var(--space-6);
  line-height: var(--line-height-normal);
}

section {
  margin-bottom: var(--space-6);
}

/* Text elements */
small {
  font-size: var(--font-size-sm);
  color: var(--color-secondary-dark);
}

sup {
  font-size: 0.65em;
  line-height: 0;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

/* Links - Default styles without classes */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ==========================================================================
   4. FORMS
   ========================================================================== */

/* Form structure */
form {
  width: 100%;
  max-width: 100%;
}

fieldset {
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

legend {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  padding: 0 var(--space-2);
}

/* Labels - :where() for zero specificity, allows third-party overrides */
:where(label) {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
}

/* Text inputs - Default styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  font-family: inherit;
  line-height: var(--line-height-normal);
  color: var(--color-secondary);
  background-color: var(--color-gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
textarea:hover {
  background-color: var(--color-gray-250);
  border-color: var(--color-gray-400);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 101, 174, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-gray-500);
  opacity: 1;
}

/* Textarea */
textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

/* Select dropdowns */
select {
  display: block;
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-4);
  padding-right: calc(var(--space-4) * 3);
  font-size: var(--font-size-base);
  font-family: inherit;
  line-height: var(--line-height-normal);
  color: var(--color-secondary);
  background-color: var(--color-gray-100);
  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='%23333' 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 var(--space-4) center;
  background-size: 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  transition: background-color var(--transition-base),
              border-color var(--transition-base);
}

select:hover {
  background-color: var(--color-gray-250);
  border-color: var(--color-gray-400);
}

select:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 101, 174, 0.1);
}

/* Checkboxes and radio buttons - 32px for better touch targets */
input[type="checkbox"],
input[type="radio"] {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  cursor: pointer;
  border: 2px solid var(--color-gray-400);
  background-color: var(--color-white);
  transition: all var(--transition-base);
}

input[type="checkbox"] {
  border-radius: var(--radius-sm);
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 101, 174, 0.1);
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: var(--color-gray-200);
  color: var(--color-gray-600);
  cursor: not-allowed;
  opacity: 0.6;
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

/* Default button styles - Primary */
/* Default button styles only apply to buttons without custom classes */
button:not([class]),
input[type="submit"]:not([class]),
input[type="button"]:not([class]),
input[type="reset"]:not([class]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 700;
  font-family: inherit;
  line-height: var(--line-height-none);
  color: var(--color-white);
  background: linear-gradient(to bottom, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  transition: background-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
}

button:not([class]):hover,
input[type="submit"]:not([class]):hover,
input[type="button"]:not([class]):hover {
  background: linear-gradient(to bottom, var(--color-primary-lighter) 0%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-md);
}

button:not([class]):active,
input[type="submit"]:not([class]):active,
input[type="button"]:not([class]):active {
  box-shadow: var(--shadow-xs);
}

button:not([class]):focus,
input[type="submit"]:not([class]):focus,
input[type="button"]:not([class]):focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 101, 174, 0.3);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  background: var(--color-gray-400);
  border-color: var(--color-gray-400);
  color: var(--color-gray-600);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Button modifier classes */
/* Note: .btn-outline, .btn-sm, .btn-lg, .btn-icon are defined in components.css */

/* Primary Button - default style is already primary, this is explicit */
.btn-primary {
  /* Inherits default button styles */
}

/* White Button */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}


/* ==========================================================================
   6. TABLES
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

thead {
  background-color: var(--color-secondary);
}

th {
  color: var(--color-white);
  font-weight: 700;
  text-align: left;
  padding: var(--space-3) var(--space-4);
}

td {
  padding: var(--space-3) var(--space-4);
}

/* Table base class - for use with modifier classes like .table-striped */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-gray-200);
}

.table thead th {
  background: var(--color-bs-gray-100);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-gray-300);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Table modifier classes */
.table-striped tbody tr:nth-child(odd) {
  background-color: var(--color-white);
}

.table-striped tbody tr:nth-child(even) {
  background-color: var(--color-gray-100);
}

.table-hover tbody tr:hover {
  background-color: var(--color-gray-50);
}


/* ==========================================================================
   7. STICKY TABLE HEADERS
   ========================================================================== */

/* Make table headers sticky on scroll */
table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Note: background-color removed - let styled tables define their own header colors */
}


/* ==========================================================================
   8. LISTS
   ========================================================================== */

ul,
ol {
  list-style-position: outside;
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
}

ul {
  list-style-type: square;
}

ul li::marker {
  color: var(--color-primary);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
}

/* Clean list variant (no markers) */
ul.list-none,
ol.list-none {
  list-style: none;
  padding-left: 0;
}

ul.list-none li {
  margin-left: 0;
}

/* Definition lists */
dl {
  line-height: 30px;
}

dt {
  font-weight: bold;
  font-size: 1.3em;
  line-height: 30px;
}

dd {
  line-height: 30px;
}


/* ==========================================================================
   9. UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* Spacing utilities (margin) */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

/* Legacy spacing classes for backward compatibility */
.space-top-xs { margin-top: var(--space-2) !important; }
.space-top-s { margin-top: var(--space-4) !important; }
.space-top-m { margin-top: var(--space-6) !important; }
.space-top-l { margin-top: var(--space-8) !important; }
.space-top-xxl { margin-top: var(--space-12) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-2 { margin-left: var(--space-2) !important; }
.ml-4 { margin-left: var(--space-4) !important; }

.mr-0 { margin-right: 0 !important; }
.mr-2 { margin-right: var(--space-2) !important; }
.mr-4 { margin-right: var(--space-4) !important; }

/* Typography utilities */
.font-mono { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-6 { gap: var(--space-6) !important; }

/* Width utilities */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }

/* Visibility utilities */
.visually-hidden,
.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;
}


/* ==========================================================================
   10. ACCESSIBILITY
   ========================================================================== */

/* Focus indicators */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-tooltip);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--radius-md);
}

.skip-to-main:focus {
  left: var(--space-4);
  top: var(--space-4);
}


/* ==========================================================================
   11. PRINT STYLES
   ========================================================================== */

@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
    max-width: 100% !important;
  }
}


/* ==========================================================================
   ADDITIONAL STYLES FROM STYLE-MODERN.CSS
   ========================================================================== */

/* Images & Media */
img {
  max-width: 100%;
  height: auto;
  border: 0;
}

img.icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: var(--space-1);
}

/* Horizontal Rule */
hr {
  border: 0;
  border-bottom: 1px solid var(--color-gray-300);
  margin: var(--space-6) 0;
}

/* Quotes & Citations */
blockquote {
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-primary);
  font-style: italic;
  color: var(--color-gray-700);
  margin: var(--space-6) 0;
}

cite::before {
  content: "— ";
  color: var(--color-primary);
}

q {
  display: block;
  font-weight: bold;
}

q::before {
  content: "\201E";
  color: var(--color-primary);
}

q::after {
  content: "\201C";
  color: var(--color-primary);
}

/* Code & Preformatted Text */
code {
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-sm);
}

pre {
  padding: var(--space-4);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

pre code {
  padding: 0;
  background: none;
}

/* Semantic Status/Feedback Classes */
.error {
  color: var(--color-error);
  font-weight: 700;
}

.success {
  color: var(--color-success);
  font-weight: 700;
}

.warning {
  color: var(--color-warning);
  font-weight: 700;
}

.info {
  color: var(--color-info);
}

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

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
  text-shadow: none;
}

::-moz-selection {
  background: var(--color-primary);
  color: var(--color-white);
  text-shadow: none;
}
