/* ==========================================================================
   VenturedIn — Compiled Tailwind utilities + custom styles
   This is the production CSS for Drupal 11 (no CDN required)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Source+Sans+3:ital,wght@0,400..700;1,400..700&family=Noto+Naskh+Arabic:wght@400..700&display=swap');

:root {
  --color-ink-950: #06121f;
  --color-ink-900: #0a1c2e;
  --color-ink-800: #0e2740;
  --color-ink-700: #153456;
  --color-ink-600: #1d4573;
  --color-ink-500: #2b5a8f;
  --color-ink-400: #5b7a99;
  --color-bronze-700: #8a6823;
  --color-bronze-600: #9d7a2e;
  --color-bronze-500: #b08a3e;
  --color-bronze-400: #c6a157;
  --color-bronze-300: #d9bc80;
  --color-bronze-200: #e9d8b2;
  --color-bronze-100: #f4ead2;
  --color-paper: #f7f5ef;
  --color-paper-deep: #efeade;
  --color-line: #e0d9c8;
  --color-line-dark: #22405e;
  --color-jade-600: #256d52;
  --color-jade-500: #2e8262;
  --color-clay-600: #a83a2b;
  --color-amber-600: #a06a12;
}

/* ========== Base ========== */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--color-line); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: 'Source Sans 3', 'Noto Naskh Arabic', system-ui, sans-serif; }
body { margin: 0; background-color: var(--color-paper); color: var(--color-ink-900); font-family: inherit; line-height: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button { cursor: pointer; background: none; border: none; }
input, select, textarea { border: 1px solid var(--color-line); border-radius: 2px; padding: 0.5rem 0.75rem; background-color: var(--color-paper); }
input:focus, select:focus, textarea:focus, button:focus { outline: 2px solid var(--color-bronze-500); outline-offset: 2px; }

/* ========== Typography ========== */
.font-display { font-family: 'Fraunces', 'Noto Naskh Arabic', Georgia, serif; }
.font-body { font-family: 'Source Sans 3', 'Noto Naskh Arabic', system-ui, sans-serif; }
.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; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ========== Colors ========== */
.bg-ink-950 { background-color: var(--color-ink-950); }
.bg-ink-900 { background-color: var(--color-ink-900); }
.bg-ink-800 { background-color: var(--color-ink-800); }
.bg-paper { background-color: var(--color-paper); }
.bg-paper-deep { background-color: var(--color-paper-deep); }
.bg-bronze-500 { background-color: var(--color-bronze-500); }
.bg-bronze-100 { background-color: var(--color-bronze-100); }
.bg-jade-500 { background-color: var(--color-jade-500); }
.bg-jade-600 { background-color: var(--color-jade-600); }
.bg-clay-600 { background-color: var(--color-clay-600); }
.bg-amber-600 { background-color: var(--color-amber-600); }
.text-ink-950 { color: var(--color-ink-950); }
.text-ink-900 { color: var(--color-ink-900); }
.text-ink-800 { color: var(--color-ink-800); }
.text-ink-700 { color: var(--color-ink-700); }
.text-ink-600 { color: var(--color-ink-600); }
.text-ink-500 { color: var(--color-ink-500); }
.text-ink-400 { color: var(--color-ink-400); }
.text-paper { color: var(--color-paper); }
.text-bronze-700 { color: var(--color-bronze-700); }
.text-bronze-600 { color: var(--color-bronze-600); }
.text-bronze-500 { color: var(--color-bronze-500); }
.text-bronze-400 { color: var(--color-bronze-400); }
.text-bronze-300 { color: var(--color-bronze-300); }
.text-jade-500 { color: var(--color-jade-500); }
.text-jade-600 { color: var(--color-jade-600); }
.text-clay-600 { color: var(--color-clay-600); }
.text-amber-600 { color: var(--color-amber-600); }
.border-ink-900 { border-color: var(--color-ink-900); }
.border-bronze-500 { border-color: var(--color-bronze-500); }
.border-bronze-400 { border-color: var(--color-bronze-400); }
.border-line { border-color: var(--color-line); }
.border-line-dark { border-color: var(--color-line-dark); }
.border-jade-500 { border-color: var(--color-jade-500); }
.fill-bronze-500 { fill: var(--color-bronze-500); }
.fill-bronze-400 { fill: var(--color-bronze-400); }

/* ========== Layout ========== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.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-x-2 { column-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: 0.25rem; }
.gap-y-2 { row-gap: 0.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* ========== Sizing ========== */
.w-full { width: 100%; }
.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-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.w-36 { width: 9rem; }
.w-48 { width: 12rem; }
.w-52 { width: 13rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.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-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-36 { height: 9rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-\[22rem\] { min-height: 22rem; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.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; }

/* ========== Spacing ========== */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.ms-0\.5 { margin-inline-start: 0.125rem; }
.ms-auto { margin-inline-start: auto; }
.me-2 { margin-inline-end: 0.5rem; }
.me-3 { margin-inline-end: 0.75rem; }
.me-4 { margin-inline-end: 1rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.-mt-1 { margin-top: -0.25rem; }
.-mt-2 { margin-top: -0.5rem; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.translate-x-1 { transform: translateX(0.25rem); }

/* ========== Padding ========== */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.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; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.ps-10 { padding-inline-start: 2.5rem; }
.ps-13 { padding-inline-start: 3.25rem; }
.pe-5 { padding-inline-end: 1.25rem; }
.pe-12 { padding-inline-end: 3rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* ========== Borders ========== */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-s-2 { border-inline-start-width: 2px; }
.border-s-4 { border-inline-start-width: 4px; }
.border-dashed { border-style: dashed; }
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ========== Shadows ========== */
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.shadow-card { box-shadow: var(--shadow-card, 0 1px 2px rgba(10,28,46,.06), 0 8px 24px -12px rgba(10,28,46,.18)); }
.shadow-lift { box-shadow: var(--shadow-lift, 0 2px 4px rgba(10,28,46,.08), 0 18px 40px -16px rgba(10,28,46,.28)); }

/* ========== Position ========== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-7 { top: 1.75rem; }
.top-10 { top: 2.5rem; }
.top-12 { top: 3rem; }
.top-14 { top: 3.5rem; }
.top-16 { top: 4rem; }
.top-20 { top: 5rem; }
.top-24 { top: 6rem; }
.top-full { top: 100%; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }
.bottom-2 { bottom: 0.5rem; }
.bottom-4 { bottom: 1rem; }
.bottom-5 { bottom: 1.25rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-10 { bottom: 2.5rem; }
.left-0 { left: 0; }
.start-0 { inset-inline-start: 0; }
.start-1\/2 { inset-inline-start: 50%; }
.start-4 { inset-inline-start: 1rem; }
.start-6 { inset-inline-start: 1.5rem; }
.start-8 { inset-inline-start: 2rem; }
.end-0 { inset-inline-end: 0; }
.end-3 { inset-inline-end: 0.75rem; }
.end-4 { inset-inline-end: 1rem; }
.end-5 { inset-inline-end: 1.25rem; }
.end-6 { inset-inline-end: 1.5rem; }
.end-8 { inset-inline-end: 2rem; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ========== Overflow ========== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ========== Transforms ========== */
.scale-105 { transform: scale(1.05); }
.scale-x-0 { transform: scaleX(0); }
.scale-x-100 { transform: scaleX(1); }
.rotate-12 { transform: rotate(12deg); }
.rotate-180 { transform: rotate(180deg); }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.transform-origin-left { transform-origin: left; }
.transform-origin-right { transform-origin: right; }

/* ========== Transitions ========== */
.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(.4,0,.2,1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(.4,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(.4,0,.2,1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(.4,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; }
.duration-700 { transition-duration: 700ms; }
.ease-out { transition-timing-function: cubic-bezier(0,0,.2,1); }

/* ========== Opacity ========== */
.opacity-0 { opacity: 0; }
.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-95 { opacity: 0.95; }

/* ========== Effects ========== */
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.torn-start { clip-path: polygon(6% 0,100% 0,100% 100%,4% 100%,6.5% 92%,3% 84%,6% 76%,2.5% 67%,5.5% 58%,2% 49%,5% 40%,2.5% 31%,6% 22%,3.5% 13%,6.5% 6%); }
[dir="rtl"] .torn-start { clip-path: polygon(0 0,94% 0,93.5% 6%,96.5% 13%,94% 22%,97.5% 31%,95% 40%,98% 49%,94.5% 58%,97.5% 67%,94% 76%,97% 84%,93.5% 92%,96% 100%,0 100%); }
.sepia-\[\.35\] { sepia: .35; }
.sepia-\[0\.35\] { sepia: 0.35; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.object-center { object-position: center; }

/* ========== Animations ========== */
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.kenburns { animation: kenburns 2.4s cubic-bezier(.22,1,.36,1) both; }
@keyframes pulsedot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse-dot { animation: pulsedot 2.2s ease-in-out infinite; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ========== Backdrop ========== */
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* ========== Screen reader ========== */
.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; }

/* ========== Cursor ========== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ========== Resize ========== */
.resize-none { resize: none; }
.resize-y { resize: vertical; }

/* ========== List ========== */
.list-none { list-style-type: none; }

/* ========== Text alignment ========== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-start { text-align: start; }

/* ========== Vertical alignment ========== */
.align-middle { vertical-align: middle; }
.align-baseline { vertical-align: baseline; }
.align-top { vertical-align: top; }

/* ========== Whitespace ========== */
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }

/* ========== Word break ========== */
.break-words { word-wrap: break-word; }
.break-all { word-break: break-all; }

/* ========== Truncate ========== */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== Scrollbar ========== */
.slim-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.slim-scroll::-webkit-scrollbar-thumb { background: var(--color-line); border-radius: 3px; }

/* ========== Skip link ========== */
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 60; background: var(--color-ink-900); color: var(--color-paper); padding: .75rem 1rem; }
.skip-link:focus { inset-inline-start: 0; }

/* ========== RTL icon flip ========== */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ========== Nav link underline ========== */
.navlink { position: relative; }
.navlink::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 100%; background: var(--color-bronze-500); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22,1,.36,1); }
[dir="rtl"] .navlink::after { transform-origin: right; }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }

/* ========== Selection ========== */
::selection { background: var(--color-bronze-200); color: var(--color-ink-900); }

/* ========== Prose editorial ========== */
.prose-vi { font-size: 17px; line-height: 1.85; color: var(--color-ink-800); }
.prose-vi > p + p { margin-top: 1.5rem; }
.prose-vi > p:first-of-type::first-letter { float: inline-start; margin-inline-end: .75rem; font-family: var(--font-display); font-size: 3.75rem; line-height: .85; font-weight: 600; color: var(--color-bronze-600); }
.prose-vi blockquote { margin: 2rem 0; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-inline-start: 4px solid var(--color-bronze-500); background: rgba(244,234,210,.4); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.4; color: var(--color-ink-900); }

/* ========== Multi-script fallback ========== */
html[lang="ar"] body, html[lang="ar"] .font-display { font-family: 'Noto Naskh Arabic', 'Fraunces', serif; }
html[lang="zh"] body, html[lang="ja"] body, html[lang="ko"] body { font-family: 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans JP', 'Malgun Gothic', sans-serif; }
html[lang="zh"] .font-display, html[lang="ja"] .font-display, html[lang="ko"] .font-display { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans JP', 'Malgun Gothic', serif; font-weight: 700; }
html[lang="ru"] .font-display { font-family: Georgia, 'Times New Roman', serif; }

/* ========== Drupal admin toolbar ========== */
body.toolbar-fixed .sticky { top: 39px; }
body.toolbar-vertical.toolbar-fixed .sticky { top: 0; }

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .kenburns, .pulse-dot { animation: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ========== Print ========== */
@media print {
  .sticky { position: static !important; }
  nav, header, footer { display: none !important; }
  main { display: block !important; }
}
