/*
 * theme-extras.css
 *
 * The hengjitai theme ships a pre-purged Tailwind bundle (combined.min.css)
 * generated from the ORIGINAL hengjitai-pipeline-site templates. Any utility
 * class that the original site never used is missing from that bundle.
 *
 * This file supplements the bundle with extra responsive / layout / sizing
 * utilities that the site-forge-version partials (notably the responsive
 * header, mobile drawer, and module hooks) depend on. It is intentionally
 * narrow: only classes that DO appear in our templates but DO NOT exist in
 * combined.min.css.
 *
 * If you add new Tailwind utilities to a partial and they don't render,
 * verify with:
 *     grep -F '.your-class' themes/<theme>/assets/css/combined.min.css
 * and add the missing rule here.
 */

/* ---------- sizing ---------- */
/* The purged combined.min.css ships .w-32 / .h-32 (substring matches but
   different size!) but NOT bare .w-3 / .h-3. Without these, any svg with
   `class="w-3 h-3"` renders at default svg size (~300x150), which is what
   made the lang-switcher / nav dropdown chevrons huge. */
.w-3    { width: 0.75rem; }   /* 12px */
.h-3    { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }  /* 14px */
.h-3\.5 { height: 0.875rem; }
.w-auto { width: auto; }      /* logo: keep aspect ratio next to fixed h */

/* ---------- spacing: gap ---------- */
.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-3    { gap: 0.75rem; }

/* ---------- spacing: padding ---------- */
.px-2     { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-2\.5  { padding-left: 0.625rem;padding-right: 0.625rem; }
.py-3     { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.pb-4     { padding-bottom: 1rem; }
.pt-0     { padding-top: 0; }
.pl-6     { padding-left: 1.5rem; }
.pr-2     { padding-right: 0.5rem; }
.pb-2     { padding-bottom: 0.5rem; }

/* ---------- spacing: margin ---------- */
.m-0      { margin: 0; }
.-mr-1    { margin-right: -0.25rem; }

/* ---------- border radius ---------- */
.rounded-md { border-radius: 0.375rem; }

/* ---------- flex ---------- */
.shrink-0      { flex-shrink: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0       { min-width: 0; }
.inline-flex   { display: inline-flex; }
.flex-nowrap   { flex-wrap: nowrap; }
.w-full        { width: 100%; }

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

/* ---------- overflow ---------- */
.overflow-y-auto { overflow-y: auto; }

/* ---------- borders & subtle slate colors (header drawer / dropdowns) ---------- */
.border-slate-100 { border-color: rgb(241 245 249); }
.border-slate-200 { border-color: rgb(226 232 240); }
.text-slate-600   { color: rgb(71 85 105); }

/* ---------- arbitrary max-* ---------- */
.max-w-\[14rem\] { max-width: 14rem; }
.max-w-\[22rem\] { max-width: 22rem; }
.max-h-\[70vh\]  { max-height: 70vh; }

/* ---------- responsive: sm (>= 640px) ---------- */
@media (min-width: 640px) {
  .sm\:inline       { display: inline; }
  .sm\:inline-block { display: inline-block; }
  .sm\:gap-2        { gap: 0.5rem; }
  .sm\:gap-3        { gap: 0.75rem; }
}

/* ---------- responsive: lg (>= 1024px) ---------- */
@media (min-width: 1024px) {
  .lg\:inline { display: inline; }
}

/* ---------- responsive: xl (>= 1280px) ---------- */
@media (min-width: 1280px) {
  .xl\:inline       { display: inline; }
  .xl\:hidden       { display: none; }
  .xl\:gap-1        { gap: 0.25rem; }
  .xl\:px-3         { padding-left: 0.75rem; padding-right: 0.75rem; }
  .xl\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
 * Pre-existing partial utilities that the original hengjitai
 * bundle never purged. Added once so npm run theme:audit passes
 * and so future visual regressions surface immediately.
 * ============================================================ */

/* ---------- backgrounds / borders ---------- */
.bg-transparent { background-color: transparent; }
.border-0       { border-width: 0; }

/* ---------- transitions ---------- */
.duration-500  { transition-duration: 500ms; }

/* ---------- gradients (primary = rgb(22 45 82)) ---------- */
.from-primary\/90 {
  --tw-gradient-from: rgb(22 45 82 / 0.9);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(22 45 82 / 0));
}
.via-slate-900\/55 {
  --tw-gradient-stops: var(--tw-gradient-from), rgb(15 23 42 / 0.55),
                       var(--tw-gradient-to, rgb(15 23 42 / 0));
}
.via-white\/40 {
  --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.4),
                       var(--tw-gradient-to, rgb(255 255 255 / 0));
}

/* ---------- spacing / size ---------- */
.gap-10  { gap: 2.5rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-7    { margin-bottom: 1.75rem; }
.mt-20   { margin-top: 5rem; }
.pb-8    { padding-bottom: 2rem; }
.pt-14   { padding-top: 3.5rem; }
.px-7    { padding-left: 1.75rem; padding-right: 1.75rem; }
.max-w-none { max-width: none; }

/* ---------- text colors ---------- */
.text-slate-900 { color: rgb(15 23 42); }
.text-white\/85 { color: rgb(255 255 255 / 0.85); }

/* ---------- hover states ---------- */
.hover\:bg-white\/90:hover { background-color: rgb(255 255 255 / 0.9); }
.hover\:shadow-md:hover    { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
                                          0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* ---------- decorations ---------- */
.no-underline { text-decoration-line: none; }

/* ---------- custom button radius (theme-specific) ---------- */
.rounded-button { border-radius: 0.5rem; }

/* ---------- prose (typography placeholders ¡ª the theme uses these on
   the text-block partial but the original bundle never shipped the
   typography plugin). Minimal sensible defaults; if you need the full
   typography reset, install @tailwindcss/typography in the theme's
   own build pipeline. ---------- */
.prose       { max-width: 65ch; line-height: 1.7; }
.prose-slate { color: rgb(51 65 85); }

/* ---------- responsive supplements ---------- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-12    { padding-left: 3rem;  padding-right: 3rem; }
  .sm\:py-14    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-20    { padding-top: 5rem;   padding-bottom: 5rem; }
  .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\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cursor-zoom-in { cursor: zoom-in; }
.object-contain { object-fit: contain; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.bg-primary\/90 { background-color: rgb(22 45 82 / 0.9); }
.border-white\/80 { border-color: rgb(255 255 255 / 0.8); }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }
.product-catalog-section { border-top: 1px solid rgb(226 232 240); margin-top: 2rem; padding-top: 2.5rem; opacity: 0.95; }
.image-grid-photo { /* marker class for image-viewer binding */ }
.leading-snug { line-height: 1.375; }
.max-h-full { max-height: 100%; }
.max-w-full { max-width: 100%; }
.transition-shadow { transition-property: box-shadow; transition-duration: 150ms; }
@media (min-width: 640px) {
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
