/* ---------- Hand-written replacement for the Tailwind CDN runtime ----------
   Covers exactly the utility classes used in index.html (checked against a
   grep of every class="" attribute in that file). No build step, no Node,
   no external request — plain CSS shipped as a static file. If a new
   Tailwind-style class is added to index.html later, add its rule here too.
   Design tokens (--color-*, --radius-*, --shadow-*) are defined in
   index.html's own <style> block, and this file is loaded after it, so it
   can read those custom properties directly. */

/* ---------- Minimal preflight (subset of Tailwind's base reset actually
   relied on by this page: hidden default margins on ol/ul/headings, hidden
   list markers, and inherited link/button chrome) ---------- */
*, ::before, ::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
button {
  font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit;
  color: inherit; margin: 0; padding: 0; background-color: transparent; border: 0;
  text-align: inherit; cursor: pointer;
}
svg { display: block; vertical-align: middle; }

/* ---------- Display ---------- */
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ---------- Position ---------- */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-1 { top: .25rem; }
.-left-\[26px\] { left: -26px; }
.z-50 { z-index: 50; }

/* ---------- Flex / grid layout ---------- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }

.grid-cols-1 { grid-template-columns: repeat(1, 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-2 { grid-column: span 2 / span 2; }
.col-span-4 { grid-column: span 4 / span 4; }

/* ---------- Gap ---------- */
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* ---------- Sizing ---------- */
.h-1\.5 { height: .375rem; }
.h-2 { height: .5rem; }
.h-2\.5 { height: .625rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.w-1\.5 { width: .375rem; }
.w-2\.5 { width: .625rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-app { max-width: 1120px; }

/* ---------- Margin ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

/* ---------- Padding ---------- */
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-3\.5 { padding-left: .875rem; padding-right: .875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-3\.5 { padding-top: .875rem; padding-bottom: .875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-32 { padding-top: 8rem; }
.pl-5 { padding-left: 1.25rem; }

/* ---------- Typography ---------- */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .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-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[11px\] { font-size: 11px; }
.text-\[17px\] { font-size: 17px; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 4px; }

/* ---------- Color (mapped to the design tokens defined above) ---------- */
.bg-accent { background-color: var(--color-accent); }
.bg-accent-text { background-color: var(--color-accent-text); }
.bg-background { background-color: var(--color-background); }
.bg-border { background-color: var(--color-border); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-raised { background-color: var(--color-surface-raised); }
.text-text { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.text-accent-text { color: var(--color-accent-text); }
.text-success { color: var(--color-success); }
.text-white { color: #fff; }
.decoration-transparent { text-decoration-color: transparent; }
.decoration-accent-text { text-decoration-color: var(--color-accent-text); }

/* ---------- Borders / radius / shadow ---------- */
.border { border-width: 1px; border-style: solid; border-color: var(--color-border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--color-border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--color-border); }
.border-l { border-left-width: 1px; border-left-style: solid; border-color: var(--color-border); }
.border-r { border-right-width: 1px; border-right-style: solid; border-color: var(--color-border); }
.border-border { border-color: var(--color-border); }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-border > :not([hidden]) ~ :not([hidden]) { border-color: var(--color-border); }
.rounded { border-radius: .25rem; }
.rounded-sm { border-radius: .125rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.overflow-hidden { overflow: hidden; }

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

/* ---------- Space-between (Tailwind's space-y-*) ---------- */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

/* ---------- Accessibility: sr-only / skip link ---------- */
.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;
}
.focus\:not-sr-only:focus {
  position: static; width: auto; height: auto; padding: 0; margin: 0;
  overflow: visible; clip: auto; white-space: normal;
}
.focus\:fixed:focus { position: fixed; }
.focus\:top-3:focus { top: .75rem; }
.focus\:left-3:focus { left: .75rem; }
.focus\:z-\[100\]:focus { z-index: 100; }
.focus\:bg-surface:focus { background-color: var(--color-surface); }
.focus\:text-text:focus { color: var(--color-text); }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: .5rem; padding-bottom: .5rem; }
.focus\:rounded-md:focus { border-radius: .375rem; }
.focus\:shadow-lg:focus { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* ---------- Hover ---------- */
.hover\:text-accent-text:hover { color: var(--color-accent-text); }
.hover\:decoration-accent-text:hover { text-decoration-color: var(--color-accent-text); }

/* ---------- Responsive: sm (>=640px) ---------- */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-\[160px_1fr\] { grid-template-columns: 160px 1fr; }
}

/* ---------- Responsive: md (>=768px) ---------- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_1\.4fr\] { grid-template-columns: 1fr 1.4fr; }
  .md\:grid-cols-\[200px_1fr\] { grid-template-columns: 200px 1fr; }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:gap-16 { gap: 4rem; }
  .md\:p-7 { padding: 1.75rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:pb-32 { padding-bottom: 8rem; }
  .md\:pt-44 { padding-top: 11rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
