/* ==========================================================================
   Gig Worker Tax Calculator — compiled stylesheet
   Tailwind CSS v3 utility subset, hand-compiled for a static host.
   Source of truth: src/input.css + tailwind.config.js
   Rebuild with:  npx tailwindcss -i ./src/input.css -o ./styles.css --minify
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE / PREFLIGHT
   -------------------------------------------------------------------------- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button { background-color: transparent; background-image: none; cursor: pointer; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; }
select { -webkit-appearance: menulist; appearance: menulist; }
input::placeholder { opacity: 1; }
table { border-collapse: collapse; border-color: inherit; text-indent: 0; }
th { text-align: inherit; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 1em; }
summary { display: list-item; cursor: pointer; }
svg { display: block; vertical-align: middle; }
:root { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none; }

/* Focus visibility for keyboard users */
:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }

::selection { background-color: #6366f1; color: #ffffff; }

/* --------------------------------------------------------------------------
   2. CUSTOM COMPONENTS
   -------------------------------------------------------------------------- */
.font-mono-num { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

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

.noscript-banner {
  background-color: #451a03;
  color: #fde68a;
  border-bottom: 1px solid #f59e0b;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* FAQ disclosure widgets */
.faq-item {
  background-color: rgb(2 6 23 / 0.6);
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
}
.faq-item > summary {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.6rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  color: #818cf8;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  flex: none;
}
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item > p {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.6;
  padding-bottom: 0.75rem;
}
.faq-item + .faq-item { margin-top: 0.75rem; }

/* Reference table sticky header */
.sticky-table-head th {
  position: sticky;
  top: 0;
  background-color: #0f172a;
  z-index: 1;
}

/* Report identity strip shown on screen and in the PDF export */
.report-heading { border-bottom: 1px dashed #1e293b; padding-bottom: 0.75rem; }

/* Disabled buttons (e.g. while the PDF is rendering) */
button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   2b. PDF EXPORT MODE
   Applied to <body> by script.js for the duration of the html2canvas capture.
   Print stylesheets do not affect html2canvas, so ad slots and decorative
   effects are suppressed explicitly here.
   -------------------------------------------------------------------------- */
.pdf-export-mode #ad-slot-header,
.pdf-export-mode #ad-slot-inline,
.pdf-export-mode #ad-slot-sidebar,
.pdf-export-mode #ad-slot-middle,
.pdf-export-mode [id^="ad-slot-"] {
  display: none !important;
}

.pdf-export-mode #report-export-container {
  position: static !important;
  top: auto !important;
}

.pdf-export-mode .blur-3xl { display: none !important; }

.pdf-export-mode .report-heading { border-bottom-color: #334155; }

/* --------------------------------------------------------------------------
   2c. HEADER CONTROL SIZING
   The sticky header holds two <select> elements. A select refuses to shrink
   below its longest option's width, so without an explicit cap the pill
   overflows the viewport on narrow phones. Let the pill wrap onto its own
   row and constrain the selects to the available width.
   -------------------------------------------------------------------------- */
.header-controls {
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
}

.header-controls > div {
  min-width: 0;
  flex: 1 1 auto;
}

.header-controls select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .header-controls select { width: auto; }
}

/* --------------------------------------------------------------------------
   2d. STICKY RESULTS PANEL HEIGHT CAP
   The dashboard column is taller than a typical laptop viewport once the
   breakdown, totals, metric boxes, quarterly card and export buttons are all
   stacked. A sticky element taller than the viewport pins its own bottom
   content permanently off-screen, so cap its height and let it scroll
   internally. The cap is released while exporting/printing so no content is
   clipped out of the PDF or the printed page.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  #report-export-container {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
  }
  #report-export-container::-webkit-scrollbar { width: 8px; }
  #report-export-container::-webkit-scrollbar-track { background: transparent; }
  #report-export-container::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 9999px;
  }
}

/* Release the height cap during a PDF capture — html2canvas must see the
   full, unclipped element or the exported report loses its lower sections. */
.pdf-export-mode #report-export-container {
  max-height: none !important;
  overflow: visible !important;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.table { display: table; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex: none; }
.min-w-0 { min-width: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.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)); }
.col-span-1 { grid-column: span 1 / span 1; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.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; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }

.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-7 { width: 1.75rem; }
.w-40 { width: 10rem; }
.w-px { width: 1px; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-16 { height: 4rem; }
.h-40 { height: 10rem; }
.min-h-16 { min-height: 4rem; }
.min-h-20 { min-height: 5rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60px\] { min-height: 60px; }
.min-h-\[100px\] { min-height: 100px; }
.min-h-\[250px\] { min-height: 250px; }
.min-h-\[300px\] { min-height: 300px; }
.max-h-\[420px\] { max-height: 420px; }
.max-w-7xl { max-width: 80rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.-right-12 { right: -3rem; }
.-top-12 { top: -3rem; }
.z-40 { z-index: 40; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-1\.5 { padding: 0.375rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.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; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-4 { padding-left: 1rem; }
.pl-9 { padding-left: 2.25rem; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.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; }

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

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.underline { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   5. COLOR UTILITIES — BACKGROUNDS
   -------------------------------------------------------------------------- */
.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.bg-slate-900\/40 { background-color: rgb(15 23 42 / 0.4); }
.bg-slate-900\/60 { background-color: rgb(15 23 42 / 0.6); }
.bg-slate-900\/80 { background-color: rgb(15 23 42 / 0.8); }
.bg-slate-900\/90 { background-color: rgb(15 23 42 / 0.9); }
.bg-slate-800\/40 { background-color: rgb(30 41 59 / 0.4); }
.bg-slate-800\/90 { background-color: rgb(30 41 59 / 0.9); }
.bg-slate-950\/60 { background-color: rgb(2 6 23 / 0.6); }
.bg-slate-950\/70 { background-color: rgb(2 6 23 / 0.7); }
.bg-slate-950\/80 { background-color: rgb(2 6 23 / 0.8); }
.bg-slate-950\/90 { background-color: rgb(2 6 23 / 0.9); }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-950 { background-color: #1e1b4b; }
.bg-indigo-600\/30 { background-color: rgb(79 70 229 / 0.3); }
.bg-indigo-950\/40 { background-color: rgb(30 27 75 / 0.4); }
.bg-emerald-950\/40 { background-color: rgb(2 44 34 / 0.4); }
.bg-amber-950\/40 { background-color: rgb(69 26 3 / 0.4); }
.bg-amber-950\/30 { background-color: rgb(69 26 3 / 0.3); }

.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.from-indigo-600 {
  --tw-gradient-from: #4f46e5;
  --tw-gradient-to: rgb(79 70 229 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-slate-900 {
  --tw-gradient-from: #0f172a;
  --tw-gradient-to: rgb(15 23 42 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-indigo-950\/80 {
  --tw-gradient-from: rgb(30 27 75 / 0.8);
  --tw-gradient-to: rgb(30 27 75 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-violet-500 { --tw-gradient-to: #8b5cf6; }
.to-slate-950 { --tw-gradient-to: #020617; }
.to-slate-900 { --tw-gradient-to: #0f172a; }

/* --------------------------------------------------------------------------
   6. COLOR UTILITIES — TEXT
   -------------------------------------------------------------------------- */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-indigo-200 { color: #c7d2fe; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-indigo-600 { color: #4f46e5; }
.text-emerald-200 { color: #a7f3d0; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-amber-200 { color: #fde68a; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-amber-600 { color: #d97706; }
.text-indigo-200\/80 { color: rgb(199 210 254 / 0.8); }
.text-emerald-200\/80 { color: rgb(167 243 208 / 0.8); }
.text-amber-200\/80 { color: rgb(253 230 138 / 0.8); }

/* --------------------------------------------------------------------------
   7. COLOR UTILITIES — BORDERS
   -------------------------------------------------------------------------- */
.border { border-width: 1px; }
.border-none { border-style: none; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-dashed { border-style: dashed; }
.border-collapse { border-collapse: collapse; }

.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-600 { border-color: #475569; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-900 { border-color: #0f172a; }
.border-indigo-500 { border-color: #6366f1; }
.border-indigo-800 { border-color: #3730a3; }
.border-emerald-500 { border-color: #10b981; }
.border-amber-500 { border-color: #f59e0b; }
.border-slate-700\/60 { border-color: rgb(51 65 85 / 0.6); }
.border-slate-700\/80 { border-color: rgb(51 65 85 / 0.8); }
.border-slate-800\/60 { border-color: rgb(30 41 59 / 0.6); }
.border-slate-800\/80 { border-color: rgb(30 41 59 / 0.8); }
.border-slate-800\/90 { border-color: rgb(30 41 59 / 0.9); }
.border-indigo-800\/50 { border-color: rgb(55 48 163 / 0.5); }
.border-indigo-800\/80 { border-color: rgb(55 48 163 / 0.8); }
.border-indigo-500\/30 { border-color: rgb(99 102 241 / 0.3); }
.border-indigo-500\/40 { border-color: rgb(99 102 241 / 0.4); }
.border-indigo-900\/60 { border-color: rgb(49 46 129 / 0.6); }
.border-emerald-500\/30 { border-color: rgb(16 185 129 / 0.3); }
.border-amber-500\/30 { border-color: rgb(245 158 11 / 0.3); }

/* --------------------------------------------------------------------------
   8. BORDERS RADIUS, SHADOWS, RINGS, EFFECTS
   -------------------------------------------------------------------------- */
.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; }

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-inner {
  --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-indigo-500\/20 { --tw-shadow-color: rgb(99 102 241 / 0.2); }
.shadow-indigo-600\/30 { --tw-shadow-color: rgb(79 70 229 / 0.3); }

.ring-1 {
  --tw-ring-color: var(--tw-ring-color-default, rgb(99 102 241 / 0.5));
  --tw-ring-shadow: 0 0 0 1px var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-white\/20 { --tw-ring-color: rgb(255 255 255 / 0.2); }
.ring-indigo-500\/40 { --tw-ring-color: rgb(99 102 241 / 0.4); }
.ring-indigo-500 { --tw-ring-color: #6366f1; }

.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-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;
}
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }

/* Interactive states */
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:text-indigo-300:hover { color: #a5b4fc; }
.active\:scale-95:active { transform: scale(0.95); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus {
  --tw-ring-color: var(--tw-ring-color-default, rgb(99 102 241 / 0.5));
  --tw-ring-shadow: 0 0 0 2px var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-indigo-500:focus { --tw-ring-color: #6366f1; }
.focus\:ring-white\/20:focus { --tw-ring-color: rgb(255 255 255 / 0.2); }
.focus\:border-indigo-500:focus { border-color: #6366f1; }

.focus-within\:border-indigo-500:focus-within { border-color: #6366f1; }
.focus-within\:ring-2:focus-within {
  --tw-ring-color: var(--tw-ring-color-default, rgb(99 102 241 / 0.5));
  --tw-ring-shadow: 0 0 0 2px var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-within\:ring-indigo-500\/20:focus-within { --tw-ring-color: rgb(99 102 241 / 0.2); }

.placeholder-slate-600::placeholder { color: #475569; }

/* --------------------------------------------------------------------------
   9. RESPONSIVE VARIANTS (sm: 640px / lg: 1024px / xl: 1280px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:h-20 { height: 5rem; }
  .sm\:p-2 { padding: 0.5rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:sticky { position: sticky; }
  .lg\:top-24 { top: 6rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

@media (min-width: 1280px) {
  .xl\:max-w-\[1400px\] { max-width: 1400px; }
}

/* --------------------------------------------------------------------------
   10. PRINT STYLESHEET
   -------------------------------------------------------------------------- */
@media print {
  @page { margin: 0.5in; }

  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  /* Neutralise dark-theme effects so the report prints cleanly */
  body * {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  .print\:hidden { display: none !important; }
  .print\:static { position: static !important; }
  .print\:bg-white { background-color: #ffffff !important; }
  .print\:bg-transparent { background-color: transparent !important; }
  .print\:bg-slate-50 { background-color: #f8fafc !important; }
  .print\:bg-slate-100 { background-color: #f1f5f9 !important; }
  .print\:bg-slate-200 { background-color: #e2e8f0 !important; }
  .print\:bg-black { background-color: #000000 !important; }

  .print\:text-black { color: #000000 !important; }
  .print\:text-white { color: #ffffff !important; }
  .print\:text-slate-600 { color: #475569 !important; }
  .print\:text-slate-700 { color: #334155 !important; }
  .print\:text-slate-800 { color: #1e293b !important; }
  .print\:text-slate-900 { color: #0f172a !important; }
  .print\:text-slate-300 { color: #cbd5e1 !important; }
  .print\:text-slate-200 { color: #e2e8f0 !important; }
  .print\:text-indigo-600 { color: #4f46e5 !important; }
  .print\:text-amber-600 { color: #d97706 !important; }

  .print\:border-slate-200 { border-color: #e2e8f0 !important; }
  .print\:border-slate-300 { border-color: #cbd5e1 !important; }
  .print\:border-none { border-style: none !important; }
  .print\:border-b-2 { border-bottom-width: 2px !important; }

  .print\:gap-2 { gap: 0.5rem !important; }

  /* Keep the header and results block from breaking awkwardly across pages */
  header, article, section { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  table { break-inside: auto; }
  tr { break-inside: avoid; }

  /* Expand every disclosure so the printed guide is complete */
  details { display: block !important; }
  details > summary { list-style: none; }
  details > p { display: block !important; }

  .faq-item {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
  }
  .faq-item > summary { color: #000000 !important; }
  .faq-item > summary::after { content: "" !important; }
  .faq-item > p { color: #334155 !important; }

  .sticky-table-head th {
    position: static !important;
    background-color: #ffffff !important;
  }

  a[href]::after { content: ""; }
}
