/**
 * AzizWares Brand v2 — custom utilities
 *
 * This file REDEFINES the visual appearance of legacy utility classes
 * (.glass-light, .glass-dark, .gradient-mesh, .gradient-text, etc.)
 * WITHOUT renaming them — so the existing templates repaint in the
 * new brand with zero edits.
 *
 * Design intent (from brand guide):
 *   • No glassmorphism (replace with paper cards + hairlines)
 *   • No animated rainbow gradients (replace with solid teal + gold rule)
 *   • Cream body, deep-teal ink, gold ceremonial accents only
 *   • Restrained motion: 150–250ms ease; 2px lifts max
 */

/* ===========================
   Brand tokens (CSS custom props for non-Tailwind usage)
   =========================== */

:root {
  /* Brand surface + ink */
  --color-primary:   #035E55;   /* teal.deep */
  --color-secondary: #4A7A46;   /* sage */
  --color-accent:    #B68B3C;   /* gold */
  --color-ink:       #062A28;
  --color-cream:     #F6F1E6;
  --color-paper:     #FFFFFF;
  --color-line:      #E4DCC9;
  --color-muted:     #635E4F;

  /* Spacing & radii */
  --spacing-unit: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;

  /* Shadows (soft, warm) */
  --shadow-glass:    0 4px 18px -4px rgba(6, 42, 40, 0.14);
  --shadow-glass-sm: 0 2px 8px  -2px rgba(6, 42, 40, 0.10);
  --shadow-glass-lg: 0 16px 40px -8px rgba(6, 42, 40, 0.18);
  --shadow-glow:     0 4px 16px -2px rgba(3, 94, 85, 0.28);

  /* Motion (brand guide: restrained) */
  --transition-base: 200ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 320ms cubic-bezier(0.2, 0, 0, 1);
}

.dark {
  --color-primary:   #4FB4A4;
  --color-secondary: #83AE81;
  --color-accent:    #D9B968;
  --color-ink:       #EDE5D0;
  --color-cream:     #062A28;
  --color-paper:     #01302C;
  --color-line:      rgba(255, 255, 255, 0.08);
  --color-muted:     #9FA69A;

  /* Brand-SCALE tokens also have to flip. Only the semantic tokens above were being
     overridden, so every inline `color: var(--color-brand-primary-500)` etc. kept its
     light-mode dark teal and rendered dark-on-dark. Measured 26 contrast failures on the
     homepage alone from exactly these four tokens — the hero badge was 1.30:1, i.e. invisible.

     Why lightening primary-500 is safe even though it is used as a BACKGROUND 25 times as
     well as text 76 times: every background use pairs it with `color: var(--color-cream)`,
     and cream flips to #062A28 here — so those surfaces become light teal with dark text,
     which reads correctly. accent-500 is deliberately NOT overridden: gold passes on dark
     as text, and as a background it pairs with dark ink. It measured clean. */
  --color-brand-primary-500: #4FB4A4;
  --color-brand-primary-700: #8AD0C4;
  --color-brand-accent-600:  #D9B968;
  --color-brand-accent-700:  #C9A85C;
  --color-brand-accent-800:  #C9A85C;

  /* ink-soft is the single most-used text token after ink itself (48 call sites) and was never
     flipped — it stayed #39332A, i.e. dark-on-dark. It rendered at 1.0:1 (literally invisible)
     across the whole pricing page's tier feature lists. Text-only token, so safe to flip. */
  --color-ink-soft: #CFC6B0;

  /* NOT overridden deliberately, each verified by measurement:
     · accent-500 / accent-300 — gold reads on dark as text, and as a background it pairs with
       dark ink. Measured clean in both modes.
     · primary-900 — used 6x as a BACKGROUND and only 4x as text (on gold/light surfaces),
       so lightening it would break more than it fixes.
     · primary-200 — already a light teal. */
}

/* ===========================
   Glass utilities → paper cards (REDEFINED)
   Old templates use .glass-light / .glass-dark / .glass everywhere.
   We repurpose them as solid paper surfaces with hairline borders.
   =========================== */

.glass,
.glass-light {
  background: var(--color-paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-glass-sm);
}

.glass-dark {
  background: var(--color-brand-primary-800, #01302C);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-glass);
}

.dark .glass,
.dark .glass-light {
  background: #0E3A35;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.4);
}

/* Legacy .glass-effect from input.css */
.glass-effect {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===========================
   Gradient text → SOLID teal with gold underline
   =========================== */

.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--color-brand-primary-500, #035E55);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  animation: none;
  display: inline-block;
  padding-bottom: 0.08em;
  border-bottom: 3px solid var(--color-brand-accent-500, #B68B3C);
}

.dark .gradient-text {
  color: var(--color-brand-primary-200, #8AD0C4);
  border-bottom-color: var(--color-brand-accent-300, #D9B968);
}

.gradient-text-primary,
.gradient-text-secondary {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--color-brand-primary-500, #035E55);
  font-weight: 800;
}

.dark .gradient-text-primary,
.dark .gradient-text-secondary {
  color: var(--color-brand-primary-200, #8AD0C4);
}

/* ===========================
   Gradient backgrounds → solid brand colors
   (old templates use these on CTAs, footer blobs, final-CTA bands)
   =========================== */

.gradient-bg-primary {
  background: var(--color-brand-primary-500, #035E55);
}

.gradient-bg-secondary {
  background: var(--color-brand-secondary-500, #4A7A46);
}

.gradient-bg-accent {
  background: var(--color-brand-accent-500, #B68B3C);
}

/* The big final-CTA band was rainbow-animated. Replace with ink + gold rule. */
.gradient-bg-animated {
  background: var(--color-brand-primary-900, #062A28);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -20%, rgba(182, 139, 60, 0.20), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(3, 94, 85, 0.35), transparent 60%);
  animation: none;
}

/* Mesh gradient → quiet cream canvas with a single warm glow */
.gradient-mesh {
  background: var(--color-cream);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(3, 94, 85, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(182, 139, 60, 0.05) 0%, transparent 60%);
}

.dark .gradient-mesh {
  background: var(--color-brand-primary-900, #062A28);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(79, 180, 164, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(217, 185, 104, 0.08) 0%, transparent 60%);
}

/* ===========================
   Legacy gradient borders → solid teal border
   =========================== */

.gradient-border {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--color-brand-primary-500, #035E55);
}

.gradient-border::before { content: none; }

/* ===========================
   Brand primitives — NEW utilities the refreshed pages use
   =========================== */

/* Gold ceremonial rule (the signature mark from the brand guide) */
.az-rule-gold {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-brand-accent-500, #B68B3C);
  border: 0;
  vertical-align: middle;
}

.az-rule-gold-long {
  display: inline-block;
  width: 5rem;
  height: 2px;
  background: var(--color-brand-accent-500, #B68B3C);
  border: 0;
}

/* Eyebrow — small caps label sitting above titles */
.az-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-accent-700, #785A28);
}

html[dir="rtl"] .az-eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 700;
  color: var(--color-brand-accent-800, #59421E);
}

.dark .az-eyebrow {
  color: var(--color-brand-accent-300, #D9B968);
}

/* `html[dir="rtl"] .az-eyebrow` above has specificity (0,2,1) and therefore OUTRANKS
   `.dark .az-eyebrow` (0,2,0) — so on the Arabic side every eyebrow kept its light-mode
   dark gold (#59421E) in dark mode and measured 1.5:1. The bug existed only in Arabic,
   which is exactly the half of the site that matters most here. (0,3,1) settles it. */
html[dir="rtl"].dark .az-eyebrow {
  color: var(--color-brand-accent-300, #D9B968);
}

/* The logo tile is `background: primary-500` + `color: accent-300`. Once primary-500 flips
   to light teal in dark mode, light gold on light teal drops to 1.3:1 — so the letters need
   to go dark, the inverse of the light-mode treatment. */
.dark .az-logo-mark {
  color: var(--color-brand-primary-900, #062A28);
}

/* Same inversion for the CTA pill: it hardcodes `color: #F6F1E6` rather than using the cream
   token, so it could not follow cream when cream flips dark — leaving light-on-light at 2.2:1.
   Its :hover swaps the background to primary-700, which is also light in dark mode, so the
   hover state needs the dark ink too. */
.dark .az-cta-pill,
.dark .az-cta-pill:hover {
  color: var(--color-brand-primary-900, #062A28);
}

/* Diamond bullet — the gold diamond from the brand guide */
.az-diamond {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-brand-accent-500, #B68B3C);
  transform: rotate(45deg);
}

/* Paper card — explicit use when you want full-strength paper */
.az-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.az-card:hover {
  border-color: var(--color-brand-accent-500, #B68B3C);
  box-shadow: var(--shadow-glass);
  transform: translateY(-2px);
}

.dark .az-card {
  background: #0E3A35;
  border-color: rgba(255, 255, 255, 0.07);
}

/* Monogram — generated imagery for apps/services without a photo */
.az-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-brand-primary-500, #035E55);
  color: var(--color-brand-accent-300, #D9B968);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}

.az-monogram::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(182, 139, 60, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(6, 42, 40, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.az-monogram > span {
  position: relative;
  z-index: 1;
}

/* Gold-ruled section heading */
.az-section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-ink);
}

.dark .az-section-heading {
  color: #EDE5D0;
}

/* ===========================
   Card hover effects (REDEFINED — softer, no 8px jumps)
   =========================== */

.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass);
  border-color: var(--color-brand-accent-500, #B68B3C);
}

.card-tilt { transition: transform var(--transition-slow); }
.card-tilt:hover { transform: translateY(-2px); }  /* no 3D tilt */

/* ===========================
   Scrollbars (brand-tinted, thinner)
   =========================== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(6, 42, 40, 0.05); }
::-webkit-scrollbar-thumb {
  background: rgba(3, 94, 85, 0.3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(3, 94, 85, 0.5); }

/* ===========================
   Focus, a11y, print (from original — preserved)
   =========================== */

*:focus-visible {
  outline: 2px solid var(--color-brand-accent-500, #B68B3C);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .no-print { display: none !important; }
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ===========================
   Smooth scroll
   =========================== */
html { scroll-behavior: smooth; }

/* ===========================
   Skeleton (cream-tinted)
   =========================== */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(228, 220, 201, 0.4) 25%,
    rgba(228, 220, 201, 0.7) 50%,
    rgba(228, 220, 201, 0.4) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.spinner {
  border: 3px solid rgba(3, 94, 85, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-brand-primary-500, #035E55);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   Utility atoms (preserved from original)
   =========================== */

.no-select {
  -webkit-user-select: none; -moz-user-select: none;
  -ms-user-select: none; user-select: none;
}

.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.aspect-auto    { aspect-ratio: auto; }
.aspect-square  { aspect-ratio: 1 / 1; }
.aspect-video   { aspect-ratio: 16 / 9; }
.aspect-4-3     { aspect-ratio: 4 / 3; }
.aspect-21-9    { aspect-ratio: 21 / 9; }

.truncate-2-lines {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.truncate-3-lines {
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===========================
   Buttons — softer, no glow blast
   =========================== */

.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn-ripple:active::after { width: 280px; height: 280px; opacity: 0; }

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple-animation 0.5s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to { transform: scale(2.5); opacity: 0; }
}

/* Magnetic button — tempered to 1.02 scale */
.btn-magnetic {
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-magnetic:hover { transform: translateY(-1px); }
.btn-magnetic:active { transform: translateY(0) scale(0.98); }

/* ===========================
   Forms
   =========================== */

.float-label-container { position: relative; }
.float-label {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  transition: all 0.25s ease;
  pointer-events: none;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.float-input:focus + .float-label,
.float-input:not(:placeholder-shown) + .float-label {
  top: 0;
  font-size: 0.6875rem;
  padding: 0 0.25rem;
  background: inherit;
  color: var(--color-brand-primary-500, #035E55);
}

.focus-ring {
  @apply focus:outline-none focus:ring-2 focus:ring-brand-accent-500 focus:ring-offset-2 dark:focus:ring-offset-slate-900;
  transition: box-shadow 0.2s ease;
}

/* ===========================
   Animations (preserved but dampened)
   =========================== */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80%      { transform: translateX( 4px); }
}
.shake { animation: shake 0.4s ease-in-out; }

@keyframes checkmark { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
.checkmark-animate {
  stroke-dasharray: 100;
  animation: checkmark 0.5s ease-in-out forwards;
}

@keyframes bounce-in {
  0%   { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1);    }
}
.bounce-in { animation: bounce-in 0.4s ease-out; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }

/* Pulse glow — MUCH quieter */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 139, 60, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(182, 139, 60, 0); }
}
.pulse-glow { animation: pulse-glow 2.4s infinite; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0);   }
  30%           { transform: translateY(-8px); }
}
.typing-indicator span {
  display: inline-block;
  width: 7px; height: 7px; margin: 0 2px;
  background: currentColor;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Floating animation (used by footer decorative blobs) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.animate-float { animation: float 8s ease-in-out infinite; }

/* ===========================
   Progress bars — solid teal (no shimmer rainbow)
   =========================== */

.progress-bar {
  position: relative;
  height: 4px;
  background: var(--color-line);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-brand-primary-500, #035E55);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--color-brand-accent-500, #B68B3C);
  z-index: 100;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* ===========================
   Tooltip (ink bg with gold border)
   =========================== */

.tooltip { position: relative; }
.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: var(--color-ink);
  color: #F6F1E6;
  font-size: 0.8125rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border-bottom: 2px solid var(--color-brand-accent-500, #B68B3C);
}
.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--color-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ===========================
   Badge wiggle (preserved)
   =========================== */

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}
.badge-wiggle:hover { animation: wiggle 0.3s ease-in-out; }

/* ===========================
   Scroll-reveal classes (used by animations.js — preserved)
   =========================== */

.js-will-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.js-will-animate.js-animated {
  opacity: 1;
  transform: translateY(0);
}

.js-stagger-child {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.js-stagger-child.js-animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Prose (blog) — brand-tinted
   =========================== */

.prose {
  color: var(--color-ink);
  font-family: var(--font-sans);
}
.dark .prose { color: #EDE5D0; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4 { color: #EDE5D0; }

.prose a {
  color: var(--color-brand-primary-500, #035E55);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-accent-500, #B68B3C);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.prose a:hover {
  color: var(--color-brand-primary-700, #023F3A);
  text-decoration-color: var(--color-brand-primary-500, #035E55);
}
.dark .prose a { color: var(--color-brand-primary-200, #8AD0C4); }

.prose blockquote {
  border-inline-start: 3px solid var(--color-brand-accent-500, #B68B3C);
  padding-inline-start: 1.25rem;
  font-style: normal;
  color: var(--color-muted);
}

.prose pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  background: var(--color-brand-primary-900, #062A28);
  color: #EDE5D0;
}

.prose pre code {
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0;
  background: none;
  border-radius: 0;
}

.prose code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  background: rgba(3, 94, 85, 0.08);
  color: var(--color-brand-primary-700, #023F3A);
  word-break: break-word;
  font-family: var(--font-mono);
}
.dark .prose code {
  background: rgba(255,255,255,0.06);
  color: var(--color-brand-primary-200, #8AD0C4);
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  font-size: 0.9375rem;
  border-collapse: collapse;
}

.prose th {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-brand-accent-500, #B68B3C);
  padding: 0.5rem 0.75rem;
  text-align: start;
}

.prose td {
  border-bottom: 1px solid var(--color-line);
  padding: 0.5rem 0.75rem;
}

.prose .highlight {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 1.5em 0;
}
.prose .highlight pre { margin: 0; }

@media (max-width: 640px) {
  .prose pre {
    font-size: 0.75rem;
    padding: 0.75rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
  .prose table { font-size: 0.8125rem; }
}

/* ===========================
   Account-surface utilities (Brand v2 account pages)
   Shared by /account/* templates after CS-080 glassmorphism removal.
   All pairings WCAG-AA verified on cream (#F6F1E6) + paper (#FFFFFF).
   =========================== */

/* Status pills — pastel tint + ink text for AA contrast on cream/paper */
.az-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.az-pill--success { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.az-pill--danger  { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.az-pill--warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.az-pill--info    { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.az-pill--neutral { background: #F3F4F6; color: #374151; border-color: #E5E7EB; }
.az-pill--brand   { background: rgba(3,94,85,0.08); color: var(--color-brand-primary-700, #023F3A); border-color: rgba(3,94,85,0.18); }
.az-pill--accent  { background: rgba(182,139,60,0.10); color: var(--color-brand-accent-700, #785A28); border-color: rgba(182,139,60,0.22); }

/* Flat ink action link inside table cells */
.az-link-action {
  color: var(--color-brand-primary-600, #024E47);
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--transition-base);
}
.az-link-action:hover {
  color: var(--color-brand-primary-700, #023F3A);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-brand-accent-500, #B68B3C);
}

/* Tonal danger action link (revoke/destructive) */
.az-link-danger {
  color: #B91C1C;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--transition-base);
}
.az-link-danger:hover {
  color: #7F1D1D;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Table chrome — hairline rows on paper */
.az-table-body > tr + tr,
.az-table-body > tr {
  border-top: 1px solid var(--color-line, #E4DCC9);
}
.az-table-body > tr:first-child { border-top: 0; }
.az-table-row { transition: background var(--transition-base); }
.az-table-row:hover { background: rgba(3,94,85,0.03); }

/* Primary CTA — solid teal, no rainbow gradient */
.az-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-brand-primary-500, #035E55);
  color: var(--color-cream, #F6F1E6);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-brand-primary-600, #024E47);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.az-btn-primary:hover {
  background: var(--color-brand-primary-600, #024E47);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Secondary CTA — outlined teal on cream */
.az-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-brand-primary-600, #024E47);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-brand-primary-500, #035E55);
  transition: background var(--transition-base), color var(--transition-base);
}
.az-btn-secondary:hover {
  background: rgba(3,94,85,0.06);
  color: var(--color-brand-primary-700, #023F3A);
}

/* Form fields on paper */
.az-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-paper, #FFFFFF);
  border: 1px solid var(--color-line, #E4DCC9);
  border-radius: var(--radius-md);
  color: var(--color-ink, #062A28);
  font-size: 0.9375rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.az-input::placeholder { color: #9B9684; }
.az-input:focus {
  outline: none;
  border-color: var(--color-brand-primary-500, #035E55);
  box-shadow: 0 0 0 3px rgba(3,94,85,0.12);
}
.az-input:disabled,
.az-input[readonly] {
  background: var(--color-cream, #F6F1E6);
  color: var(--color-muted, #635E4F);
  cursor: not-allowed;
}
.az-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink, #062A28);
  margin-bottom: 0.5rem;
}

/* Flash banners — cream-friendly tints */
.az-flash {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: 1px solid transparent;
  margin-bottom: 1.5rem;
}
.az-flash--success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.az-flash--danger  { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.az-flash--warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.az-flash--info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.az-flash code {
  background: rgba(6,42,40,0.06);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
}

/* Brand-primary monogram avatar (used on profile pages) */
.az-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-primary-500, #035E55);
  color: var(--color-brand-accent-300, #D9B968);
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 9999px;
}

/* Inset card — secondary surface inside another az-card */
.az-card--inset {
  background: var(--color-cream, #F6F1E6);
  border: 1px solid var(--color-line, #E4DCC9);
  box-shadow: none;
}

/* Update/reply bubble (project + ticket detail) */
.az-bubble {
  background: rgba(3,94,85,0.04);
  border: 1px solid rgba(3,94,85,0.12);
  border-radius: 16px 16px 16px 4px;
  padding: 1rem 1.25rem;
}

/* Progress bar (project pages) */
.az-progress {
  height: 10px;
  border-radius: 8px;
  background: rgba(3,94,85,0.08);
  overflow: hidden;
}
.az-progress > .az-progress__fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--color-brand-primary-500, #035E55), #0D8E7F);
  transition: width 0.6s ease;
}

/* Milestone timeline dots */
.az-timeline-line {
  position: absolute;
  inset-inline-start: 6px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--color-line, #E4DCC9);
}
.az-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.az-timeline-dot.pending { border-color: #9CA3AF; background: transparent; }
.az-timeline-dot.active  { border-color: var(--color-brand-primary-500, #035E55); background: var(--color-brand-primary-500, #035E55); box-shadow: 0 0 0 4px rgba(3,94,85,0.15); }
.az-timeline-dot.done    { border-color: #0D8E7F; background: #0D8E7F; }

/* ===========================
   CS-089 — extracted inline blocks
   (formerly inline <style> blocks in base.html / partials / account templates)
   =========================== */

/* base.html — Alpine x-cloak + data-animate fallback (was inline <style> + <noscript>) */
[x-cloak] { display: none !important; }
@keyframes forceVisible { to { opacity: 1; transform: none; } }
[data-animate], [data-stagger] > * {
    animation: forceVisible 0s 2s forwards;
}
[data-animate].js-will-animate,
[data-stagger] > .js-stagger-child {
    animation: none; opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].js-animated,
[data-stagger] > .js-stagger-child.js-animated {
    opacity: 1 !important; transform: none !important;
}
/* noscript fallback — disable animations entirely when JS is off.
   Migrated out of <noscript><style>...</style></noscript> in base.html;
   the .no-js class is set on <html> at the top of the document body when
   JS is disabled (or is absent when JS runs). Public scripts only need
   it as a safety net for the [data-animate] hidden state. */
html.no-js [data-animate],
html.no-js [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* partials/header.html — Brand v2 chrome (mobile menu, dropdowns, logo lockup) */
#mobile-menu { display: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; opacity: 0; }
#mobile-menu.open { display: block; max-height: 85vh; opacity: 1; overflow-y: auto; }
#mobile-hamburger .icon-open, #mobile-hamburger.active .icon-close { display: block; }
#mobile-hamburger .icon-close, #mobile-hamburger.active .icon-open { display: none; }

/* Project detail hero tile — the aspect box the icon/monogram sits in. */
.az-project-hero { aspect-ratio: 16 / 7; }

/* Floating WhatsApp button — see layouts/partials/whatsapp-float.html.
   56px so it clears the 44px minimum touch target comfortably and reads as the primary
   contact affordance (back-to-top is 44px). z-index sits under the fixed header (z-50). */
.az-whatsapp-float {
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    color: #FFFFFF;
    z-index: 40;
    box-shadow: 0 6px 20px -4px rgba(6, 42, 40, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.az-whatsapp-float:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 28px -4px rgba(6, 42, 40, 0.5);
}
.az-whatsapp-float:focus-visible {
    outline: 3px solid var(--color-brand-accent-500, #B68B3C);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .az-whatsapp-float { transition: none; }
    .az-whatsapp-float:hover { transform: none; }
}
/* Small phones: shrink slightly and tuck in so it doesn't crowd body content. */
@media (max-width: 400px) {
    .az-whatsapp-float { width: 3rem; height: 3rem; inset-block-end: 1rem; left: 1rem; }
}

/* NOTE: /sme/ once needed shims for six undefined classes (hero-gradient, download-btn,
   glow-emerald, app-mockup, floating, pricing-card) that its legacy CMS body relied on.
   Those shims are gone because the legacy body itself is gone: layouts/_default/sme.html
   already renders a complete brand-v2 page, and the CMS body was a duplicate appended
   below it. Do not re-add these classes — if /sme/ needs new styling, it belongs in the
   layout using brand tokens. */

.az-nav-item { position: relative; }
.az-nav-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 16rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 60;
    pointer-events: none;
}
/* .az-nav-open is set by header-mobile-nav.js on click/Enter/Space. Hover alone left the
   desktop nav unusable on touch devices ≥lg (no hover, and Safari doesn't focus a <button>
   on tap). Keep all three selectors: hover for mice, focus-within for keyboard tabbing,
   .az-nav-open for taps and explicit activation. */
.az-nav-item:hover > .az-nav-panel,
.az-nav-item:focus-within > .az-nav-panel,
.az-nav-item.az-nav-open > .az-nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
    pointer-events: auto;
}
.az-nav-item > button .az-chevron { transition: transform 0.18s ease; }
.az-nav-item:hover > button .az-chevron,
.az-nav-item:focus-within > button .az-chevron,
.az-nav-item.az-nav-open > button .az-chevron { transform: rotate(180deg); }

.az-mobile-group { border-top: 1px solid var(--color-line); }
.az-mobile-group:first-child { border-top: 0; }
.az-mobile-group > .az-mobile-panel {
    display: none;
    padding-inline-start: 1rem;
    margin-top: 0.25rem;
}
.az-mobile-group.open > .az-mobile-panel { display: block; }
.az-mobile-group > button .az-mobile-chevron { transition: transform 0.18s ease; }
.az-mobile-group.open > button .az-mobile-chevron { transform: rotate(180deg); }

.az-header {
  background-color: rgba(246, 241, 230, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.az-header::after {
  content: '';
  position: absolute;
  inset-inline-start: 2rem;
  inset-inline-end: 2rem;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-brand-accent-500) 30%, var(--color-brand-accent-500) 70%, transparent 100%);
  opacity: 0.55;
}
.dark .az-header {
  background-color: rgba(6, 42, 40, 0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}

.az-nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: color 180ms ease, background 180ms ease;
}
.az-nav-link:hover { color: var(--color-brand-accent-700, #785A28); background: rgba(182, 139, 60, 0.08); }
.dark .az-nav-link { color: #EDE5D0; }
.dark .az-nav-link:hover { color: var(--color-brand-accent-300, #D9B968); background: rgba(217, 185, 104, 0.10); }

.az-nav-panel-inner {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-glass);
  border-radius: 0.875rem;
  padding: 0.5rem;
}
.dark .az-nav-panel-inner {
  background: #0E3A35;
  border-color: rgba(255,255,255,0.07);
}

.az-nav-link-item {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-ink);
  transition: background 160ms ease, color 160ms ease;
}
.az-nav-link-item:hover {
  background: var(--color-cream);
  color: var(--color-brand-primary-600, #024E47);
}
.dark .az-nav-link-item { color: #EDE5D0; }
.dark .az-nav-link-item:hover { background: rgba(255,255,255,0.04); color: var(--color-brand-primary-200, #8AD0C4); }

.az-cta-pill {
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  background: var(--color-brand-primary-500, #035E55);
  color: #F6F1E6;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-glass-sm);
  transition: background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.az-cta-pill:hover {
  background: var(--color-brand-primary-700, #023F3A);
  transform: translateY(-1px);
}

.az-icon-btn {
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
  transition: border-color 180ms ease, color 180ms ease;
}
.az-icon-btn:hover {
  border-color: var(--color-brand-accent-500, #B68B3C);
  color: var(--color-brand-accent-700, #785A28);
}
.dark .az-icon-btn {
  background: #0E3A35;
  border-color: rgba(255,255,255,0.08);
  color: #EDE5D0;
}
.dark .az-icon-btn:hover {
  border-color: var(--color-brand-accent-300, #D9B968);
  color: var(--color-brand-accent-300, #D9B968);
}

.az-lang-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: background 180ms ease, border-color 180ms ease;
}
.az-lang-pill:hover {
  background: var(--color-paper);
  border-color: var(--color-brand-accent-500, #B68B3C);
}
.dark .az-lang-pill { color: #EDE5D0; border-color: rgba(255,255,255,0.1); }
.dark .az-lang-pill:hover { background: rgba(255,255,255,0.05); }

.az-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.az-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--color-brand-primary-500);
  color: var(--color-brand-accent-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(182,139,60,0.2);
}
.az-logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--color-ink);
  line-height: 1;
}
.az-logo-word em {
  font-style: normal;
  color: var(--color-brand-accent-600);
}
.dark .az-logo-word { color: #EDE5D0; }
.dark .az-logo-word em { color: var(--color-brand-accent-300); }

/* partials/footer.html — footer link + social icon hover */
.footer-link { transition: color 200ms ease; }
.footer-link:hover { color: var(--color-brand-accent-500, #B68B3C) !important; }
.footer-link:hover .az-diamond { opacity: 1; }
.social-icon:hover { color: var(--color-brand-accent-500, #B68B3C) !important; border-color: var(--color-brand-accent-500, #B68B3C) !important; }

/* partials/account_sidebar.html — account nav rail */
.az-acct-nav a, .az-acct-nav button {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink, #062A28);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  border-inline-start: 2px solid transparent;
  text-align: start;
}
.az-acct-nav a:hover, .az-acct-nav button:hover {
  background: var(--color-cream, #F6F1E6);
  color: var(--color-brand-primary-600, #024E47);
}
.az-acct-nav a.is-active {
  background: rgba(3,94,85,0.06);
  color: var(--color-brand-primary-700, #023F3A);
  border-inline-start-color: var(--color-brand-accent-500, #B68B3C);
  font-weight: 700;
}
.az-acct-nav svg { flex-shrink: 0; }
.az-acct-nav .az-logout {
  color: #B23A3A;
  width: 100%;
}
.az-acct-nav .az-logout:hover {
  background: rgba(178, 58, 58, 0.08);
  color: #8F2C2C;
}
.dark .az-acct-nav a, .dark .az-acct-nav button { color: #EDE5D0; }
.dark .az-acct-nav a:hover, .dark .az-acct-nav button:hover {
  background: rgba(255,255,255,0.04);
  color: var(--color-brand-primary-200, #8AD0C4);
}
.dark .az-acct-nav a.is-active {
  background: rgba(79,180,164,0.10);
  color: var(--color-brand-primary-200, #8AD0C4);
}

/* account/{login,register,password_reset,password_change}.html — auth input */
.auth-input {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid rgba(3,94,85,0.2); border-radius: 0.75rem;
    background: #fff; color: #1a1714; font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    outline: none; border-color: #035E55;
    box-shadow: 0 0 0 3px rgba(3,94,85,0.1);
}
.auth-input::placeholder { color: #9ca3af; }

/* CS-117: hover utilities replacing inline onmouseover/onmouseout JS so the
   nonce-only CSP doesn't have to allow inline event handlers. Applied across
   account/{login,register,password_*} and sitecontent/service_detail.html. */
.auth-btn-primary {
    background: #035E55; color: #F6F1E6;
    box-shadow: none; transform: none;
}
.auth-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(3,94,85,0.3);
    transform: translateY(-1px);
}
.auth-google-link {
    background: #fff; transition: background 0.15s;
}
.auth-google-link:hover { background: rgba(3,94,85,0.03); }
.auth-verify-resend {
    background: rgba(3,94,85,0.06); transition: background 0.15s;
}
.auth-verify-resend:hover { background: rgba(3,94,85,0.12); }
.az-link-muted-hover-teal {
    color: var(--color-muted, #635E4F);
    transition: color 0.2s;
}
.az-link-muted-hover-teal:hover {
    color: var(--color-brand-primary-500, #035E55);
}
/* partials/footer.html newsletter input focus border-color via focus state. */
.az-footer-input {
    transition: border-color 0.2s;
}
.az-footer-input:focus {
    border-color: var(--color-brand-accent-500, #B68B3C);
    outline: none;
}

/* account/dashboard.html — dashboard progress + cards + CTAs */
.dash-progress-bar { height: 10px; border-radius: 8px; background: rgba(3,94,85,0.08); overflow: hidden; }
.dash-progress-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #035E55, #0D8E7F); transition: width 0.6s ease; }
.dash-update-bubble { background: rgba(3,94,85,0.04); border: 1px solid rgba(3,94,85,0.12); border-radius: 16px 16px 16px 4px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.dash-milestone-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; flex-shrink: 0; }
.dash-milestone-dot.pending { border-color: #9ca3af; background: transparent; }
.dash-milestone-dot.active { border-color: #035E55; background: #035E55; }
.dash-milestone-dot.done { border-color: #0D8E7F; background: #0D8E7F; }
.dash-bar { height: 24px; border-radius: 6px; background: rgba(3,94,85,0.15); min-width: 30px; display: flex; align-items: center; padding: 0 8px; font-size: 0.7rem; color: #fff; font-weight: 600; transition: width 0.4s; }
.dash-cta { display: inline-flex; align-items: center; gap: 8px; padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.dash-cta.primary { background: #035E55; color: #F6F1E6; }
.dash-cta.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(3,94,85,0.3); }
.dash-cta.secondary { background: rgba(3,94,85,0.06); border: 1px solid rgba(3,94,85,0.15); color: #035E55; }
.dash-cta.secondary:hover { background: rgba(3,94,85,0.10); border-color: rgba(3,94,85,0.25); }
.dash-card { background: #fff; border: 1px solid rgba(3,94,85,0.12); border-radius: 1.25rem; }

/* account/store_new.html — store create form */
.store-form-input {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid rgba(3,94,85,0.2); border-radius: 0.75rem;
    background: #fff; color: #1a1714; font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.store-form-input:focus {
    outline: none; border-color: #035E55;
    box-shadow: 0 0 0 3px rgba(3,94,85,0.1);
}
.store-slug-wrapper {
    display: flex; align-items: center; border: 1px solid rgba(3,94,85,0.2);
    border-radius: 0.75rem; overflow: hidden; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.store-slug-wrapper:focus-within {
    border-color: #035E55;
    box-shadow: 0 0 0 3px rgba(3,94,85,0.1);
}
.store-slug-wrapper input {
    flex: 1; padding: 0.75rem 1rem; border: none; outline: none;
    background: transparent; color: #1a1714; font-size: 0.9375rem;
    font-family: monospace;
}
.store-slug-suffix {
    padding: 0.75rem 1rem; background: rgba(3,94,85,0.04);
    color: #635E4F; font-size: 0.875rem; white-space: nowrap;
    border-inline-start: 1px solid rgba(3,94,85,0.12);
}

/* ===========================
   M3 — WCAG 2.5.5 minimum touch target (44×44 CSS px)
   Applied on all viewport widths; visually unobtrusive via
   transparent padding so layout is not disrupted.
   =========================== */

/* Social icon buttons in footer: w-9/h-9 = 36px → 44px minimum */
.social-icon {
    min-width: 44px;
    min-height: 44px;
}

/* Footer quick-link items: inline <a> with small text height → 44px minimum
   via transparent block padding so list spacing is preserved */
@media (max-width: 768px) {
    .footer-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}
