/* PDF Viewer Pro Design System
   Theme: Dross:Media brand colors - Clean, professional, trustworthy
   Primary: Teal/Blue #1a75b5
   Fonts: Outfit (headings), Inter (body) - self-hosted
*/

/* ==========================================================================
   Font Face Declarations (inlined to eliminate render-blocking fonts.css)
   Inter (body text) and Outfit (headings) - self-hosted
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/inter-bold.woff2') format('woff2');
}

/* Metric-adjusted fallback to reduce CLS when Inter loads */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit/outfit-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/outfit/outfit-bold.woff2') format('woff2');
}

/* Metric-adjusted fallback to reduce CLS when Outfit loads */
@font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 100%;
    ascent-override: 102%;
    descent-override: 25%;
    line-gap-override: 0%;
}

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Light Mode */
  --background: 220 15% 95%;
  --foreground: 220 20% 15%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 15%;
  --primary: 200 75% 30%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 15% 90%;
  --secondary-foreground: 220 20% 15%;
  --muted: 220 15% 92%;
  --muted-foreground: 220 15% 20%;
  --accent: 24 90% 33%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 15% 85%;
  --input: 220 15% 85%;
  --ring: 200 75% 30%;
  --radius: 0.5rem;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(200 75% 30%) 0%, hsl(200 75% 40%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(24 90% 45%) 0%, hsl(38 92% 50%) 100%);
  --gradient-dark: linear-gradient(180deg, hsl(220 20% 12%) 0%, hsl(220 20% 18%) 100%);
  --gradient-glass: linear-gradient(135deg, hsla(0, 0%, 100%, 0.95) 0%, hsla(0, 0%, 100%, 0.85) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 98%) 100%);

  /* Shadows */
  --shadow-soft: 0 4px 6px -1px hsla(220, 20%, 20%, 0.08), 0 2px 4px -2px hsla(220, 20%, 20%, 0.06);
  --shadow-medium: 0 10px 15px -3px hsla(220, 20%, 20%, 0.1), 0 4px 6px -4px hsla(220, 20%, 20%, 0.08);
  --shadow-large: 0 25px 50px -12px hsla(220, 20%, 20%, 0.2);
  --shadow-glow: 0 0 40px hsla(200, 75%, 30%, 0.25);
  --shadow-accent-glow: 0 0 40px hsla(24, 90%, 45%, 0.25);
  --shadow-card: 0 4px 20px -4px hsla(220, 20%, 20%, 0.1);
}

.dark {
  --background: 220 20% 10%;
  --foreground: 220 15% 95%;
  --card: 220 20% 14%;
  --card-foreground: 220 15% 95%;
  --popover: 220 20% 14%;
  --popover-foreground: 220 15% 95%;
  --primary: 200 75% 55%;
  --primary-foreground: 220 20% 10%;
  --secondary: 220 15% 20%;
  --secondary-foreground: 220 15% 95%;
  --muted: 220 15% 20%;
  --muted-foreground: 220 10% 70%;
  --accent: 24 90% 60%;
  --accent-foreground: 220 20% 10%;
  --destructive: 0 72% 55%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 15% 25%;
  --input: 220 15% 25%;
  --ring: 200 75% 55%;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Reset list styles for navigation menus */
nav ul, nav ol,
header ul, header ol,
.site-header ul, .site-header ol,
.site-footer ul, .site-footer ol,
[role="menubar"], [role="menu"] {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

nav ul li, nav ol li,
header ul li, header ol li,
.site-header ul li, .site-header ol li,
.site-footer ul li, .site-footer ol li,
[role="menubar"] li, [role="menu"] li {
  list-style: none !important;
  list-style-type: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Outfit Fallback', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Reset blockquote default margins */
blockquote {
  margin: 0;
  padding: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: inherit;
}

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

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, [role="button"] {
  cursor: pointer;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Interactive elements min touch target */
button, a, input, select, textarea, [role="button"] {
  min-height: 44px;
}

.inline-flex, .inline, span > a, li a {
  min-height: auto;
}

/* ==========================================================================
   Arbitrary Value Utilities (Tailwind JIT-style)
   ========================================================================== */

/* Fixed header spacer heights */
.h-\[72px\] { height: 72px; }
.max-h-\[calc\(100vh-4rem\)\] { max-height: calc(100vh - 4rem); }

/* Min-width for buttons and tables */
.min-w-\[220px\] { min-width: 220px; }
.min-w-\[240px\] { min-width: 240px; }
.min-w-\[400px\] { min-width: 400px; }
.min-w-\[500px\] { min-width: 500px; }
.min-w-\[600px\] { min-width: 600px; }

@media (min-width: 768px) {
  .md\:h-\[76px\] { height: 76px; }
}
@media (min-width: 1024px) {
  .lg\:h-\[80px\] { height: 80px; }
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Arbitrary value font sizes (Tailwind JIT-style) */
.text-\[10px\] { font-size: 10px; }
.text-\[13px\] { font-size: 13px; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.16; }
.text-6xl { font-size: 3.75rem; line-height: 1.1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.underline { text-decoration-line: underline; }
.no-underline { text-decoration-line: none; }

/* ==========================================================================
   Colors
   ========================================================================== */

.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-popover { background-color: hsl(var(--popover)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }

.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-accent\/5 { background-color: hsl(var(--accent) / 0.05); }
.bg-accent\/10 { background-color: hsl(var(--accent) / 0.1); }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/60 { background-color: hsl(var(--muted) / 0.6); }
.bg-destructive\/5 { background-color: hsl(var(--destructive) / 0.05); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }

/* Amber colors */
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-500 { background-color: #f59e0b; }
.text-amber-400 { color: #fbbf24; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.dark .bg-amber-900\/30 { background-color: rgba(120, 53, 15, 0.3); }
.dark .text-amber-300 { color: #fcd34d; }

/* Traffic light colors (browser mockup) */
.bg-red-400 { background-color: #f87171; }
.bg-yellow-400 { background-color: #facc15; }
.bg-green-400 { background-color: #4ade80; }

/* Green colors */
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.border-green-300 { border-color: #86efac; }
.border-green-500\/20 { border-color: rgba(34, 197, 94, 0.2); }
.dark .bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3); }
.dark .text-green-300 { color: #86efac; }
.dark .border-green-700 { border-color: #15803d; }

/* Blue colors */
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.border-blue-300 { border-color: #93c5fd; }
.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2); }
.dark .bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); }
.dark .text-blue-300 { color: #93c5fd; }
.dark .border-blue-700 { border-color: #1d4ed8; }

/* Purple colors */
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7e22ce; }
.text-purple-800 { color: #6b21a8; }
.border-purple-500\/20 { border-color: rgba(168, 85, 247, 0.2); }
.dark .bg-purple-900\/30 { background-color: rgba(88, 28, 135, 0.3); }
.dark .text-purple-300 { color: #d8b4fe; }

/* Emerald colors */
.bg-emerald-100 { background-color: #d1fae5; }
.text-emerald-800 { color: #065f46; }
.dark .bg-emerald-900\/30 { background-color: rgba(6, 78, 59, 0.3); }
.dark .text-emerald-300 { color: #6ee7b7; }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground\/60 { color: hsl(var(--muted-foreground) / 0.6); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-white { color: #fff; }

.text-primary-foreground\/60 { color: hsl(var(--primary-foreground) / 0.6); }
.text-primary-foreground\/70 { color: hsl(var(--primary-foreground) / 0.7); }
.text-primary-foreground\/40 { color: hsl(var(--primary-foreground) / 0.4); }
.text-primary-foreground\/10 { color: hsl(var(--primary-foreground) / 0.1); }

.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-destructive\/20 { border-color: hsl(var(--destructive) / 0.2); }
.border-primary-foreground\/10 { border-color: hsl(var(--primary-foreground) / 0.1); }
.border-transparent { border-color: transparent; }

/* ==========================================================================
   Spacing
   ========================================================================== */

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pt-40 { padding-top: 10rem; }
.pt-48 { padding-top: 12rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-32 { padding-bottom: 8rem; }
.pl-0 { padding-left: 0; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }

.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.-mt-1 { margin-top: -0.25rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* ==========================================================================
   Flexbox & Grid
   ========================================================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Responsive display utilities */
@media (min-width: 768px) {
  .md\:grid { display: grid !important; }
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:grid { display: grid !important; }
  .lg\:flex { display: flex !important; }
  .lg\:block { display: block !important; }
  .lg\:inline { display: inline !important; }
  .lg\:hidden { display: none !important; }
}

/* Drupal content visibility controlled by .hidden class - JavaScript toggles visibility
   Do NOT use display:none !important here as it prevents JS from showing content */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.align-middle { vertical-align: middle; }
.align-baseline { vertical-align: baseline; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.grow { flex-grow: 1; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

/* ==========================================================================
   Sizing
   ========================================================================== */

.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }

.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-w-\[220px\] { min-width: 220px; }
.min-w-\[240px\] { min-width: 240px; }
.min-w-\[260px\] { min-width: 260px; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 64rem; } /* 1024px - fits within 1200px container with padding */
.max-w-7xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.max-w-none { max-width: none; }
.max-w-prose { max-width: 65ch; }

.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-\[72px\] { height: 72px; }

.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Positioning
   ========================================================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }

.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-20 { top: 5rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-10 { right: 2.5rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-20 { bottom: 5rem; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.left-8 { left: 2rem; }
.left-10 { left: 2.5rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

/* ==========================================================================
   Borders & Rounded
   ========================================================================== */

.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }

.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

/* ==========================================================================
   Effects & Shadows
   ========================================================================== */

.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-none { box-shadow: none; }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-large { box-shadow: var(--shadow-large); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-accent-glow { box-shadow: var(--shadow-accent-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ==========================================================================
   Custom Gradients & Effects
   ========================================================================== */

.gradient-hero { background: var(--gradient-hero); }
.gradient-accent { background: var(--gradient-accent); }
.gradient-dark { background: var(--gradient-dark); }
.gradient-card { background: var(--gradient-card); }

.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

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

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

.blur-3xl { filter: blur(64px); }
.blur-2xl { filter: blur(40px); }
.blur-xl { filter: blur(24px); }
.blur-lg { filter: blur(16px); }
.blur { filter: blur(8px); }

.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* ==========================================================================
   Overflow & Visibility
   ========================================================================== */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-visible { overflow: visible; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }
.break-words { word-wrap: break-word; overflow-wrap: break-word; }
.whitespace-pre { white-space: pre; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

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

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==========================================================================
   Transforms
   ========================================================================== */

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-1\/2 { transform: translateX(50%); }
.translate-y-1\/2 { transform: translateY(50%); }

/* ==========================================================================
   Transitions & Animations
   ========================================================================== */

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Keyframe Animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsla(200, 75%, 30%, 0.3); }
  50% { box-shadow: 0 0 40px hsla(200, 75%, 30%, 0.5); }
}

@keyframes accordion-down {
  from { height: 0; opacity: 0; }
  to { height: var(--accordion-height, auto); opacity: 1; }
}

@keyframes accordion-up {
  from { height: var(--accordion-height, auto); opacity: 1; }
  to { height: 0; opacity: 0; }
}

.animate-fade-in { animation: fade-in 0.6s ease-out forwards; animation-play-state: paused; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; animation-play-state: paused; }
.animate-slide-in-left { animation: slide-in-left 0.6s ease-out forwards; animation-play-state: paused; }
.animate-slide-in-right { animation: slide-in-right 0.6s ease-out forwards; animation-play-state: paused; }
.animate-scale-in { animation: scale-in 0.5s ease-out forwards; animation-play-state: paused; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Animation delays */
[style*="animation-delay"] { opacity: 0; }

/* Reduced motion support for 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;
  }

  .animate-fade-in,
  .animate-fade-in-up,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-scale-in,
  .animate-float,
  .animate-pulse-glow {
    animation: none !important;
    opacity: 1 !important;
  }

  [style*="animation-delay"] {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Focus States & Accessibility
   ========================================================================== */

.focus-ring:focus-visible,
.focus-visible\:ring-2:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.focus-visible\:outline-none:focus-visible { outline: none; }

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 2px solid hsl(var(--primary));
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  z-index: 100;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background: var(--gradient-hero);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.btn-ghost:active,
.btn-ghost.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-ghost:focus-visible {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-icon {
  width: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-md { height: 2.5rem; padding: 0 1rem; }
.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; }
.btn-xl { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

.card-hover {
  transition: all 300ms ease;
}

.card-hover:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* ==========================================================================
   Scroll Margin (for sticky headers)
   ========================================================================== */

.scroll-mt-32 { scroll-margin-top: 8rem; }
.scroll-mt-40 { scroll-margin-top: 10rem; }

/* Documentation page content sections need extra margin for sticky tabs */
.animate-fade-in[style*="animation-delay"] {
  scroll-margin-top: 10rem;
}

/* ==========================================================================
   Lists
   ========================================================================== */

.list-none { list-style-type: none; padding-left: 0; margin: 0; }
.list-disc { list-style-type: disc !important; }
.list-decimal { list-style-type: decimal !important; }
.list-inside { list-style-position: inside; }

/* Force list items to display in content areas */
.bg-card ul.list-disc,
.bg-card ol.list-decimal,
main ul.list-disc,
main ol.list-decimal {
  list-style-position: inside !important;
  padding-left: 0 !important;
}

.bg-card ul.list-disc li,
.bg-card ol.list-decimal li,
main ul.list-disc li,
main ol.list-decimal li {
  display: list-item !important;
  list-style: inherit !important;
  padding-left: 0.5rem;
}

.bg-card ul.list-disc > li::marker,
.bg-card ol.list-decimal > li::marker {
  color: hsl(var(--primary));
}

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

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

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

/* Mobile table scroll */
.table-scroll-container {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, hsl(var(--background)));
  pointer-events: none;
}

/* ==========================================================================
   Code Blocks
   ========================================================================== */

code {
  background: hsl(var(--muted));
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

pre {
  background: hsl(var(--muted));
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* ==========================================================================
   Dropdown Menus
   ========================================================================== */

[data-dropdown-menu],
div[data-dropdown-menu],
.site-header [data-dropdown-menu] {
  display: none;
  flex-direction: column;
  background: #ffffff;
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.15),
    0 4px 12px -2px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  min-width: 11rem;
  margin-top: 0;
  white-space: nowrap;
  z-index: 9999;
}

/* When dropdown is open (controlled by JS) */
[data-dropdown-menu][style*="display: block"] {
  display: flex !important;
}

[data-dropdown-menu] a,
div[data-dropdown-menu] a,
.site-header [data-dropdown-menu] a {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.875rem !important;
  color: hsl(var(--foreground)) !important;
  border-radius: 0.5rem !important;
  transition: all 150ms ease !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

[data-dropdown-menu] a:hover,
[data-dropdown-menu] a:focus,
div[data-dropdown-menu] a:hover,
div[data-dropdown-menu] a:focus {
  background-color: hsl(var(--primary) / 0.08) !important;
  color: hsl(var(--primary)) !important;
}

[data-dropdown-menu] a:focus,
div[data-dropdown-menu] a:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2) !important;
}

[data-dropdown-menu] a svg,
div[data-dropdown-menu] a svg {
  flex-shrink: 0 !important;
  opacity: 0.8 !important;
  width: 16px !important;
  height: 16px !important;
}

[data-dropdown-menu] a:hover svg,
[data-dropdown-menu] a:focus svg,
div[data-dropdown-menu] a:hover svg,
div[data-dropdown-menu] a:focus svg {
  opacity: 1 !important;
}

/* Dark mode dropdown */
.dark [data-dropdown-menu],
.dark div[data-dropdown-menu] {
  background: hsl(220 20% 16%) !important;
  background-color: hsl(220 20% 16%) !important;
  border-color: hsl(var(--border)) !important;
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.4),
    0 4px 12px -2px rgba(0, 0, 0, 0.25) !important;
}

/* ==========================================================================
   Accordions
   ========================================================================== */

.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 200ms ease;
}

.accordion-content[hidden] {
  display: none;
}

.accordion-content-inner {
  padding-bottom: 1rem;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.tab-trigger {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
}

.tab-trigger:hover {
  color: hsl(var(--foreground));
}

.tab-trigger[aria-selected="true"],
.tab-trigger.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* Platform tab buttons (used on Documentation, Changelog) */
.platform-tab {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.platform-tab:hover {
  background-color: hsl(var(--muted) / 0.8);
}

.platform-tab[aria-selected="true"],
.platform-tab[aria-selected="true"].bg-muted {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

.platform-tab[aria-selected="true"]:hover {
  background-color: hsl(var(--primary)) !important;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fade-in 0.3s ease-out;
}

/* ==========================================================================
   Hover States
   ========================================================================== */

.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-primary-foreground:hover { color: hsl(var(--primary-foreground)); }
.hover\:text-accent:hover { color: hsl(var(--accent)); }
.hover\:bg-primary:hover { background-color: hsl(var(--primary)); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:bg-primary\/10:hover { background-color: hsl(var(--primary) / 0.1); }
.hover\:border-primary\/30:hover { border-color: hsl(var(--primary) / 0.3); }
.hover\:shadow-medium:hover { box-shadow: var(--shadow-medium); }
.hover\:shadow-glow:hover { box-shadow: var(--shadow-glow); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }

.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.group:hover .group-hover\:shadow-glow { box-shadow: var(--shadow-glow); }

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

/* Small screens (640px) */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Medium screens (768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:inline-flex { display: inline-flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-0 { padding-left: 0; padding-right: 0; }
  .md\:pl-20 { padding-left: 5rem; }
  .md\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:pt-24 { padding-top: 6rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:gap-1 { gap: 0.25rem; }
  .md\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .md\:left-8 { left: 2rem; }
  .md\:max-w-md { max-width: 28rem; }
  .md\:table-cell { display: table-cell; }
  .md\:h-\[76px\] { height: 76px; }
}

/* Large screens (1024px) - Tablet landscape */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:gap-2 { gap: 0.5rem; }
  .lg\:gap-3 { gap: 0.75rem; }
  .lg\:gap-4 { gap: 1rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:pt-32 { padding-top: 8rem; }
  .lg\:pt-40 { padding-top: 10rem; }
  .lg\:pt-48 { padding-top: 12rem; }
  .lg\:pb-32 { padding-bottom: 8rem; }
  .lg\:h-\[80px\] { height: 80px; }
}

/* Extra large screens (1280px) - Desktop navigation */
@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
  .xl\:hidden { display: none !important; }
  .xl\:inline { display: inline !important; }
  .xl\:block { display: block !important; }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:gap-12 { gap: 3rem; }
  .xl\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .xl\:h-20 { height: 5rem; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@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;
  }
}

/* ==========================================================================
   Mobile Optimizations
   ========================================================================== */

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  input, select, textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }

  pre, code {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure good tap targets on mobile */
  .btn, button, a {
    min-height: 44px;
  }
}

/* ==========================================================================
   Breadcrumb Navigation - Horizontally Scrollable
   Matches React VisualBreadcrumbs component
   ========================================================================== */

/* Hide scrollbar while keeping horizontal scroll functionality */
.scrollbar-breadcrumb {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
}

.scrollbar-breadcrumb::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Breadcrumb responsive styles */
.breadcrumb-chevron {
  width: 12px;
  height: 12px;
}

@media (min-width: 768px) {
  .breadcrumb-chevron {
    width: 14px;
    height: 14px;
  }
}

/* Truncate long current-page breadcrumb on small screens */
.breadcrumb-current {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .breadcrumb-current {
    max-width: 300px;
  }
}

@media (min-width: 768px) {
  .breadcrumb-current {
    max-width: none;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .no-print { display: none !important; }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

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

/* ==========================================================================
   Hide Empty List Items
   ========================================================================== */

/* Hide completely empty list items */
li:empty {
  display: none !important;
}

/* Hide list items that only contain whitespace or just a dash */
li:not(:has(*)):not(:has(code)) {
  display: none !important;
}

/* Drupal content hidden by default via hidden attribute or .hidden class.
   JavaScript removes hidden/class when the relevant tab is selected */

/* Ensure platform content panels display as block when not hidden
   IMPORTANT: also respect [hidden] attribute to prevent CLS on page load */
#panel-wordpress:not(.hidden):not([hidden]),
#panel-drupal:not(.hidden):not([hidden]),
#panel-react:not(.hidden):not([hidden]),
.wp-shortcodes:not(.hidden):not([hidden]),
.drupal-shortcodes:not(.hidden):not([hidden]),
.wp-hooks:not(.hidden):not([hidden]),
.drupal-hooks:not(.hidden):not([hidden]),
.wp-templates:not(.hidden):not([hidden]),
.drupal-templates:not(.hidden):not([hidden]) {
  display: block;
}

/* Override inline styles when JavaScript sets display:block */
#panel-wordpress[style*="display: block"],
#panel-drupal[style*="display: block"],
.wp-shortcodes[style*="display: block"],
.drupal-shortcodes[style*="display: block"],
.wp-hooks[style*="display: block"],
.drupal-hooks[style*="display: block"],
.wp-templates[style*="display: block"],
.drupal-templates[style*="display: block"] {
  display: block !important;
}

/* ==========================================================================
   PDF Archive & Single Pages - Hide Sidebar Widgets
   ========================================================================== */

/* Hide sidebar/widget areas on PDF pages */
.post-type-archive-pdf aside,
.post-type-archive-pdf #secondary,
.post-type-archive-pdf .widget-area,
.post-type-archive-pdf .sidebar,
.post-type-archive-pdf .widgets,
.single-pdf aside,
.single-pdf #secondary,
.single-pdf .widget-area,
.single-pdf .sidebar,
.single-pdf .widgets,
.tax-pdf_category aside,
.tax-pdf_category #secondary,
.tax-pdf_category .widget-area {
  display: none !important;
}

/* Ensure main content is full width on PDF pages */
.post-type-archive-pdf .site-content,
.post-type-archive-pdf .content-area,
.post-type-archive-pdf main,
.post-type-archive-pdf .container,
.single-pdf .site-content,
.single-pdf .content-area,
.single-pdf main,
.single-pdf .container {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* ==========================================================================
   Contact Form 7 - Theme Overrides
   Styles CF7 output to match the existing design system.
   ========================================================================== */

/* Form layout */
.cf7-contact-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Input, select, textarea with .pdfviewer-input class */
.cf7-contact-wrapper .pdfviewer-input,
.cf7-contact-wrapper .wpcf7-form-control.pdfviewer-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.5;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

.cf7-contact-wrapper .pdfviewer-input:focus,
.cf7-contact-wrapper .wpcf7-form-control.pdfviewer-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--accent) / 0.5);
  border-color: hsl(var(--accent) / 0.5);
}

/* Textarea height */
.cf7-contact-wrapper textarea.pdfviewer-input,
.cf7-contact-wrapper textarea.wpcf7-form-control {
  min-height: 6rem;
  resize: vertical;
}

/* Submit row: Turnstile + button side by side */
.cf7-contact-wrapper .submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cf7-contact-wrapper .submit-row .wpcf7-submit {
  flex: 1;
  min-width: 0;
}

/* Submit button */
.cf7-contact-wrapper .wpcf7-submit {
  width: 100%;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.cf7-contact-wrapper .wpcf7-submit:hover {
  opacity: 0.9;
}

/* Checkbox + acceptance wrappers
   CF7 renders: span.wpcf7-form-control-wrap > span.wpcf7-checkbox > span.wpcf7-list-item > label > input + span.wpcf7-list-item-label */
.cf7-contact-wrapper .wpcf7-form-control-wrap:has(.wpcf7-checkbox),
.cf7-contact-wrapper .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  display: block;
}

.cf7-contact-wrapper .wpcf7-checkbox,
.cf7-contact-wrapper .wpcf7-acceptance {
  display: block;
}

.cf7-contact-wrapper .wpcf7-checkbox .wpcf7-list-item,
.cf7-contact-wrapper .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.cf7-contact-wrapper .wpcf7-checkbox label,
.cf7-contact-wrapper .wpcf7-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  line-height: 1.5;
  min-height: auto !important;
}

.cf7-contact-wrapper .wpcf7-checkbox input[type="checkbox"],
.cf7-contact-wrapper .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0 !important;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  min-height: 1rem !important;
  max-height: 1rem !important;
  margin: 0.1875rem 0 0 0 !important;
  padding: 0 !important;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  accent-color: hsl(var(--accent));
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
}

.cf7-contact-wrapper .wpcf7-list-item-label {
  flex: 1;
}

/* Acceptance link styling */
.cf7-contact-wrapper .wpcf7-acceptance a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.cf7-contact-wrapper .wpcf7-acceptance a:hover {
  text-decoration: underline;
}

/* Validation errors */
.cf7-contact-wrapper .wpcf7-not-valid-tip {
  color: hsl(var(--destructive));
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.cf7-contact-wrapper .wpcf7-not-valid {
  border-color: hsl(var(--destructive)) !important;
}

/* Response messages */
.cf7-contact-wrapper .wpcf7-response-output {
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem;
  border-width: 1px !important;
}

.cf7-contact-wrapper .wpcf7-mail-sent-ok,
.cf7-contact-wrapper .wpcf7 form.sent .wpcf7-response-output {
  border-color: #86efac !important;
  background-color: #dcfce7;
  color: #166534;
}

.cf7-contact-wrapper .wpcf7 form.failed .wpcf7-response-output,
.cf7-contact-wrapper .wpcf7 form.aborted .wpcf7-response-output {
  border-color: hsl(var(--destructive) / 0.3) !important;
  background-color: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}

.cf7-contact-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.cf7-contact-wrapper .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #fbbf24 !important;
  background-color: #fef3c7;
  color: #92400e;
}

/* Turnstile: CF7 auto-injects it — position next to submit button */
.cf7-contact-wrapper .wpcf7-form > .cf-turnstile,
.cf7-contact-wrapper .wpcf7-form > [data-turnstile-widget],
.cf7-contact-wrapper .wpcf7-form > p > .cf-turnstile {
  order: 100;
  margin: 0;
}

/* Spinner */
.cf7-contact-wrapper .wpcf7-spinner {
  margin: 0 0 0 1rem;
  vertical-align: middle;
}

/* Remove CF7 default paragraph margins */
.cf7-contact-wrapper .wpcf7-form p {
  margin: 0;
}

/* Ensure wpcf7-form-control-wrap doesn't break layout */
.cf7-contact-wrapper .wpcf7-form-control-wrap {
  display: block;
}
