/*
 * Minimal utility layer replacing the Tailwind CDN build.
 *
 * The site previously loaded the full Tailwind 2.2.19 CDN bundle (a development
 * build, not meant for production) to use ~50 utilities. This file provides
 * exactly those utilities plus the preflight reset the original markup was
 * written against, so removing Tailwind changes nothing visually.
 *
 * Loaded BEFORE style.css, matching the order Tailwind used to occupy, so
 * site rules keep winning the cascade.
 */

/* ---------------------------------------------------------------------------
   Preflight (mirrors Tailwind's reset)
   --------------------------------------------------------------------------- */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p,
blockquote,
dl,
dd,
hr,
figure,
pre {
    margin: 0;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

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,
[type='button'],
[type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.top-full { top: 100%; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-50 { z-index: 50; }

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

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

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

.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------------------------------------------------------------------------
   Spacing
   --------------------------------------------------------------------------- */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* These mirror Tailwind's space-y exactly, and both details matter:
   1. The selector (0,3,0) outranks single-class rules in style.css such as
      .experience-toggle-btn { margin-top: 1rem }. "> * + *" would score 0,1,0
      and silently lose that cascade.
   2. Tailwind also emits margin-bottom: 0 (its space-y-reverse calc resolves to
      zero), which overrides .experience-point { margin-bottom: 0.5rem }. Omit
      it and the last bullet's margin escapes the container, shifting every
      card below by 8px. */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; margin-bottom: 0; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }

.cursor-pointer { cursor: pointer; }

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.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);
}
.duration-300 { transition-duration: 300ms; }

.hover\:text-accent:hover { color: var(--accent-primary); }

/* ---------------------------------------------------------------------------
   Gradient (certification card image overlay)
   --------------------------------------------------------------------------- */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent));
}
.from-gray-900 { --tw-gradient-from: #111827; }
.to-transparent { --tw-gradient-to: transparent; }

/* ---------------------------------------------------------------------------
   Responsive (md = 768px, lg = 1024px, matching Tailwind defaults)
   --------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; margin-right: 0; }
}

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