/* ═══════════════════════════════════════════════════════════════════════════════
   AcmeSkin — main bundle  (matches localhost:3000 ACMEv4 mock)
   Generated from ACMEv4 globals.css + section components.
   Tokens are pixel-equivalent to the mock's oklch values.
   Class prefix: .acme-* and (per section) .acme-{section}.
   ═════════════════════════════════════════════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap");


/* ─── Reset (Bootstrap-safe scoped) ─────────────────────────────────────── */
.acme-theme,
.acme-theme *,
.acme-theme *::before,
.acme-theme *::after { box-sizing: border-box; }
.acme-theme img, .acme-theme svg { max-width: 100%; height: auto; }
.acme-theme button { cursor: pointer; }
.acme-theme ul, .acme-theme ol { list-style: none; padding: 0; margin: 0; }
.acme-theme a { color: inherit; text-decoration: none; }

/* ─── Design tokens ─────────────────────────────────────────────────────── */
/* Tokens at :root (not on .acme-theme) so body.preset-* can override them
   via cascade. Same fix pattern as .am in AcmeMega.css — putting tokens on
   a wrapper element shadows ancestor (body) overrides for descendants of
   that wrapper. Mock-preset cross-namespace mapping in AcmeMega.css then
   sets body.preset-* { --acme-primary: var(--am-primary) }, which now
   correctly cascades into .acme-theme descendants like the footer's
   Subscribe button. */
:root {
  --acme-bg: #faf8f5;
  --acme-fg: #0f0a09;
  --acme-card: #ffffff;
  --acme-popover: #ffffff;
  --acme-muted: #ecebe7;
  --acme-muted-fg: #5b5352;
  --acme-primary: #df0000;
  --acme-primary-fg: #ffffff;
  --acme-secondary: #f3f2ee;
  --acme-secondary-fg: #0f0a09;
  --acme-accent: #df0000;
  --acme-border: #dfdeda;
  --acme-input: #dfdeda;
  --acme-ring: #df0000;
  --acme-radius: 0.5rem;
  --acme-radius-md: 0.625rem;
  --acme-radius-lg: 1rem;
  --acme-radius-xl: 1.5rem;
  --acme-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --acme-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --acme-shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --acme-shadow-xl: 0 24px 48px rgba(0,0,0,0.18);
  --acme-trans: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.acme-theme {
  font-family: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--acme-fg);
  background: var(--acme-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Container + utilities ─────────────────────────────────────────────── */
.acme-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.acme-container *,
.acme-container *::before,
.acme-container *::after { box-sizing: border-box; }
@media (min-width: 768px) { .acme-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .acme-container { padding-left: 2rem; padding-right: 2rem; } }

.acme-text-center { text-align: center; }
.acme-text-balance { text-wrap: balance; }
.acme-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acme-truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.acme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  height: 44px;
  border-radius: var(--acme-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--acme-trans), color var(--acme-trans), transform var(--acme-trans), box-shadow var(--acme-trans);
  border: 1px solid transparent;
  white-space: nowrap;
}
.acme-btn:hover { transform: translateY(-1px); }
.acme-btn-lg { height: 52px; padding: 0 1.5rem; font-size: 1rem; }
.acme-btn-primary { background: var(--acme-primary); color: var(--acme-primary-fg); }
.acme-btn-primary:hover { background: #b40000; box-shadow: var(--acme-shadow-md); }
.acme-btn-outline { background: transparent; color: var(--acme-fg); border-color: var(--acme-border); }
.acme-btn-outline:hover { background: var(--acme-muted); border-color: var(--acme-muted-fg); }
.acme-btn-ghost { background: transparent; color: var(--acme-fg); }
.acme-btn-ghost:hover { background: var(--acme-muted); }
.acme-btn-on-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.acme-btn-on-dark:hover { background: rgba(255,255,255,0.1); }

/* ─── Inputs ────────────────────────────────────────────────────────────── */
.acme-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-input);
  border-radius: var(--acme-radius);
  color: var(--acme-fg);
  transition: border-color var(--acme-trans), box-shadow var(--acme-trans);
}
.acme-input:focus { outline: none; border-color: var(--acme-ring); box-shadow: 0 0 0 3px var(--am-primary-12); }
.acme-input::placeholder { color: var(--acme-muted-fg); }
.acme-input-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.acme-input-dark::placeholder { color: rgba(255,255,255,0.5); }
.acme-input-dark:focus { box-shadow: 0 0 0 3px var(--am-primary-40); }

/* ─── Badge ─────────────────────────────────────────────────────────────── */
.acme-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--acme-muted);
  color: var(--acme-fg);
}
.acme-badge-primary { background: var(--acme-primary); color: var(--acme-primary-fg); }
.acme-badge-outline { background: transparent; border: 1px solid var(--acme-border); }

/* ─── Pane defaults ─────────────────────────────────────────────────────── */
.acme-main { background: var(--acme-bg); min-height: 50vh; }
.acme-pane:empty { display: none; }
.acme-pane-hero:empty + .acme-pane:empty { display: none; }

/* ─── Eyebrow bar (skin-rendered, hosts DNN Login/User/ControlPanel) ────── */
.acme-eyebrow { position: sticky; top: 0; z-index: 60; background: var(--acme-fg); color: var(--acme-bg); font-size: 0.75rem; }
.acme-eyebrow-inner { max-width: 1280px; margin: 0 auto; padding: 0.5rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acme-eyebrow-left { display: inline-flex; align-items: center; gap: 1.25rem; }
.acme-eyebrow-contact { display: inline-flex; align-items: center; gap: 0.375rem; }
.acme-eyebrow-contact svg { flex-shrink: 0; }
.acme-eyebrow-nav { display: inline-flex; align-items: center; gap: 0.875rem; }
@media (max-width: 720px) { .acme-eyebrow-nav { display: none; } }
/* Admin-controlled on/off — set by JS reading utilityBar.enabled */
body.acme-utility-bar-off .acme-eyebrow { display: none !important; }
/* Legacy chat pill from interactive-spa footer variant: removed 2026-05-26.
   Existing portals may still have DB-stored snapshots containing the anchor,
   so kill the floating pill globally here so no portal re-renders it. */
.acme-footer-interactive-spa .afi-chat,
.afi-chat { display: none !important; }
.acme-eyebrow-cell { display: inline-flex; align-items: center; gap: 0.375rem; }
.acme-eyebrow-cell svg { width: 12px; height: 12px; flex-shrink: 0; }
.acme-eyebrow-hours { display: none; }
@media (min-width: 640px) { .acme-eyebrow-hours { display: inline-flex; } }
.acme-eyebrow-right { display: inline-flex; align-items: center; gap: 0.875rem; }
/* Use direct hex (not var()) — DNN's high-specificity link rules can otherwise win */
.acme-eyebrow .acme-eyebrow-link,
.acme-eyebrow .acme-eyebrow-auth a,
.acme-eyebrow .acme-eyebrow-auth span {
  color: #faf8f5 !important;
  opacity: 0.85;
  transition: opacity 200ms ease, color 200ms ease;
  font-size: 0.75rem !important;
  text-decoration: none !important;
}
.acme-eyebrow .acme-eyebrow-link:hover,
.acme-eyebrow .acme-eyebrow-auth a:hover { opacity: 1; color: var(--acme-primary) !important; }
.acme-eyebrow-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.acme-eyebrow-auth { display: inline-flex; align-items: center; gap: 0.5rem; }
.acme-eyebrow-cell { color: #faf8f5; }
/* DNN ControlPanel — its own bar is fine; just make it inline-friendly */
.acme-eyebrow-admin { display: inline-flex; align-items: center; gap: 0.5rem; }
.acme-eyebrow-devtools { display: none; align-items: center; gap: 0.625rem; margin-left: 0.125rem; }
.acme-eyebrow-pill,
.acme-eyebrow-mode,
.acme-eyebrow-style { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.72); }
.acme-eyebrow-pill { justify-content: center; width: 28px; height: 28px; transition: background var(--acme-trans), color var(--acme-trans); }
.acme-eyebrow-pill:hover { background: rgba(255,255,255,0.18); color: #ffffff; }
.acme-eyebrow-mode { gap: 2px; padding: 2px; }
.acme-eyebrow-mode-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; border-radius: 999px; }
.acme-eyebrow-mode-btn.is-active { background: #faf8f5; color: #0f0a09; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.acme-eyebrow-style { gap: 0; padding: 2px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px; font-weight: 700; }
.acme-eyebrow-style span { padding: 5px 10px; border-radius: 999px; color: rgba(255,255,255,0.58); line-height: 1; }
.acme-eyebrow-style span.is-active { background: #faf8f5; color: #0f0a09; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.acme-eyebrow-color { width: 12px; height: 12px; border-radius: 999px; background: var(--acme-primary); box-shadow: 0 0 0 1px rgba(255,255,255,0.32); }
@media (min-width: 1180px) { .acme-eyebrow-devtools { display: inline-flex; } }
.acme-eyebrow-admin .ControlPanelTabs, .acme-eyebrow-admin .ControlBar { font-size: 0.7rem; }
/* Admin-only "Edit menu" pill: visible white-on-red so it stands out as a
   call-to-action. Hidden for anonymous visitors via <asp:LoginView>. */
.acme-eyebrow .acme-edit-menu-link[hidden] { display: none !important; }
.acme-eyebrow .acme-edit-menu-link:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  z-index: 1000002;
  pointer-events: auto !important;
  padding: 3px 10px !important;
  background: var(--acme-primary) !important;
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: background 200ms ease, transform 200ms ease;
}
.acme-eyebrow .acme-edit-menu-link:hover { background: #b40000 !important; color: #ffffff !important; transform: translateY(-1px); }
.acme-eyebrow .acme-edit-menu-link svg { stroke: #ffffff; }
body.acme-builder-open .acme-eyebrow .acme-edit-menu-link:not([hidden]) {
  visibility: hidden;
  pointer-events: none !important;
}

/* PersonaBar handling: anonymous pages stay flush, but authenticated DNN
   pages keep DNN's standard .personabar-visible body offset. */
body[class*="acme-mb-"]:not(.personabar-visible):not(.acme-personabar-visible),
body:has(.acme-theme):not(.personabar-visible):not(.acme-personabar-visible),
body:has(.acme-eyebrow):not(.personabar-visible):not(.acme-personabar-visible) {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.personabar-visible .acme-theme,
body.acme-personabar-visible .acme-theme {
  margin-left: 0;
  width: 100%;
  overflow-x: clip;
}

/* Wider container on ultra-wide screens so content doesn't feel
   marooned in the middle of empty space. */
@media (min-width: 1700px) {
  .acme-eyebrow-inner,
  .am-header-inner { max-width: 1440px; }
  .acme-container { max-width: 1440px; }
}
@media (max-width: 640px) {
  .acme-eyebrow-inner { padding: 0.375rem 0.75rem; font-size: 0.7rem; }
  .acme-eyebrow-right > .acme-eyebrow-link:not(:nth-last-child(-n+2)) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION  (matches components/hero-section.tsx — dark gradient + image grid)
   Use class .acme-hero on the outermost section
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0a09 0%, #1a1411 50%, #0f0a09 100%);
  color: #fff;
  padding: 5rem 0;
}
@media (min-width: 768px) { .acme-hero { padding: 8rem 0; } }
.acme-hero::before {
  content: "";
  position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.acme-hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 1024px) { .acme-hero-inner { grid-template-columns: 1fr 1fr; padding: 0 2rem; } }

.acme-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--am-primary-20);
  color: var(--acme-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.acme-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) { .acme-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .acme-hero-title { font-size: 3.75rem; } }
.acme-hero-title .acme-hero-accent { display: block; color: var(--acme-primary); margin-top: 0.5rem; }
.acme-hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.acme-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.acme-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.acme-hero-stat-num { font-size: 2rem; font-weight: 700; line-height: 1; }
@media (min-width: 768px) { .acme-hero-stat-num { font-size: 2.25rem; } }
.acme-hero-stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.acme-hero-images { display: none; position: relative; }
@media (min-width: 1024px) { .acme-hero-images { display: block; } }
.acme-hero-images-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.acme-hero-images-col { display: flex; flex-direction: column; gap: 1rem; }
.acme-hero-images-col:nth-child(2) { padding-top: 2rem; }
.acme-hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--acme-shadow-xl);
}
.acme-hero-image-43 { aspect-ratio: 4 / 3; }
.acme-hero-image-1 { aspect-ratio: 1 / 1; }
.acme-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.acme-hero-floating {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--acme-card);
  color: var(--acme-fg);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--acme-shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.acme-hero-floating-avatars { display: flex; }
.acme-hero-floating-avatars img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--acme-card);
  object-fit: cover;
  margin-left: -8px;
}
.acme-hero-floating-avatars img:first-child { margin-left: 0; }
.acme-hero-floating strong { display: block; font-size: 0.875rem; font-weight: 600; }
.acme-hero-floating small { display: block; font-size: 0.75rem; color: var(--acme-muted-fg); }

/* ═══════════════════════════════════════════════════════════════════════════
   PARTNERS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-partners {
  padding: 3rem 0;
  border-top: 1px solid var(--acme-border);
  border-bottom: 1px solid var(--acme-border);
  background: rgba(241, 238, 234, 0.4);
}
@media (min-width: 768px) { .acme-partners { padding: 4rem 0; } }
.acme-partners-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acme-muted-fg);
  margin: 0 0 2rem;
}
.acme-partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) { .acme-partners-grid { gap: 3rem; } }
@media (min-width: 1024px) { .acme-partners-grid { gap: 4rem; } }
.acme-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--acme-muted-fg);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--acme-trans), opacity var(--acme-trans);
}
.acme-partner:hover { filter: grayscale(0%); opacity: 1; }
.acme-partner-mark {
  display: inline-block;
  width: 32px; height: 32px;
  background: rgba(107, 98, 88, 0.2);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-about { padding: 4rem 0; }
@media (min-width: 768px) { .acme-about { padding: 6rem 0; } }
.acme-about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .acme-about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.acme-about-image-wrap { position: relative; }
.acme-about-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--acme-shadow-xl);
}
.acme-about-image img { width: 100%; height: 100%; object-fit: cover; }
.acme-about-stat-card {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--acme-primary);
  color: var(--acme-primary-fg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--acme-shadow-xl);
}
@media (min-width: 768px) { .acme-about-stat-card { right: -2rem; } }
.acme-about-stat-card .num { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.acme-about-stat-card .lbl { font-size: 0.875rem; opacity: 0.9; }
.acme-about-deco {
  position: absolute;
  top: -1rem; left: -1rem;
  width: 6rem; height: 6rem;
  border-radius: 1rem;
  background: var(--am-primary-10);
  z-index: -1;
}

.acme-about-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-about-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 768px) { .acme-about-title { font-size: 2.25rem; } }
.acme-about-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--acme-muted-fg);
}
.acme-about-body { margin-top: 1rem; color: var(--acme-muted-fg); }
.acme-about-milestones { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.acme-about-milestone { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; }
.acme-about-milestone .acme-i-check { color: var(--acme-primary); flex-shrink: 0; }
.acme-about-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Values */
.acme-values { margin-top: 5rem; }
@media (min-width: 768px) { .acme-values { margin-top: 7rem; } }
.acme-values-header { text-align: center; margin-bottom: 3rem; }
.acme-values-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-values-title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
@media (min-width: 768px) { .acme-values-title { font-size: 1.875rem; } }
.acme-values-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .acme-values-grid { grid-template-columns: repeat(3, 1fr); } }
.acme-value {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
  box-shadow: var(--acme-shadow-sm);
  transition: box-shadow var(--acme-trans), border-color var(--acme-trans);
}
.acme-value:hover { box-shadow: var(--acme-shadow-lg); border-color: var(--am-primary-20); }
.acme-value-icon {
  margin: 0 auto 1rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--am-primary-10);
  color: var(--acme-primary);
  transition: background var(--acme-trans), color var(--acme-trans);
}
.acme-value:hover .acme-value-icon { background: var(--acme-primary); color: var(--acme-primary-fg); }
.acme-value-title { font-size: 1.125rem; font-weight: 600; }
.acme-value-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--acme-muted-fg); }

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-services {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--acme-bg) 0%, rgba(241, 238, 234, 0.3) 100%);
}
@media (min-width: 768px) { .acme-services { padding: 6rem 0; } }
.acme-services-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .acme-services-header { margin-bottom: 4rem; } }
.acme-services-eyebrow {
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-services-title {
  margin-top: 0.5rem;
  font-size: 1.875rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 768px) { .acme-services-title { font-size: 2.25rem; } }
.acme-services-desc {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: var(--acme-muted-fg);
}
.acme-services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .acme-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acme-services-grid { grid-template-columns: repeat(3, 1fr); } }
.acme-service {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
  box-shadow: var(--acme-shadow-sm);
  transition: box-shadow var(--acme-trans), border-color var(--acme-trans);
}
.acme-service:hover { box-shadow: var(--acme-shadow-xl); border-color: var(--am-primary-20); }
.acme-service-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: transform var(--acme-trans);
}
.acme-service:hover .acme-service-icon { transform: scale(1.1); }
.acme-service-icon-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.acme-service-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
.acme-service-icon-purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.acme-service-icon-orange { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.acme-service-icon-pink { background: rgba(236, 72, 153, 0.1); color: #db2777; }
.acme-service-icon-red { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.acme-service-title {
  font-size: 1.125rem; font-weight: 600;
  transition: color var(--acme-trans);
}
.acme-service:hover .acme-service-title { color: var(--acme-primary); }
.acme-service-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--acme-muted-fg); }
.acme-service-cta {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--acme-primary);
  opacity: 0;
  transition: opacity var(--acme-trans);
}
.acme-service:hover .acme-service-cta { opacity: 1; }
.acme-service-corner {
  position: absolute;
  bottom: -0.5rem; right: -0.5rem;
  width: 4rem; height: 4rem;
  border-top-left-radius: 1rem;
  background: var(--am-primary-05);
  transition: background var(--acme-trans);
}
.acme-service:hover .acme-service-corner { background: var(--am-primary-10); }
.acme-services-cta { margin-top: 3rem; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   NEWS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-news {
  padding: 4rem 0;
  background: rgba(241, 238, 234, 0.3);
}
@media (min-width: 768px) { .acme-news { padding: 6rem 0; } }
.acme-news-header {
  display: flex; flex-direction: column;
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .acme-news-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.acme-news-eyebrow {
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-news-title {
  margin-top: 0.5rem;
  font-size: 1.875rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em;
}
@media (min-width: 768px) { .acme-news-title { font-size: 2.25rem; } }
.acme-news-desc { margin-top: 0.75rem; max-width: 36rem; color: var(--acme-muted-fg); }
.acme-news-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .acme-news-grid { grid-template-columns: 7fr 5fr; } }

.acme-news-featured {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--acme-card);
  box-shadow: var(--acme-shadow-md);
  transition: box-shadow var(--acme-trans);
}
.acme-news-featured:hover { box-shadow: var(--acme-shadow-xl); }
.acme-news-featured-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.acme-news-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.acme-news-featured:hover .acme-news-featured-image img { transform: scale(1.05); }
.acme-news-featured-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.8), rgba(26,22,18,0.2) 60%, transparent);
}
.acme-news-featured .acme-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
}
.acme-news-featured-text {
  position: absolute; inset: 0;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.acme-news-featured-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.acme-news-featured-meta .acme-i { width: 16px; height: 16px; }
.acme-news-featured-h3 {
  font-size: 1.5rem; font-weight: 700;
  text-wrap: balance;
  margin-bottom: 0.5rem;
  transition: color var(--acme-trans);
}
.acme-news-featured:hover .acme-news-featured-h3 { color: var(--acme-primary); }
.acme-news-featured-excerpt { color: rgba(255,255,255,0.8); }
.acme-news-featured-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--acme-primary);
}

.acme-news-list { display: flex; flex-direction: column; gap: 1rem; }
.acme-news-card {
  display: flex; gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--acme-card);
  box-shadow: var(--acme-shadow-sm);
  transition: box-shadow var(--acme-trans), background var(--acme-trans);
}
.acme-news-card:hover { box-shadow: var(--acme-shadow-md); background: rgba(241,238,234,0.5); }
.acme-news-card-image {
  width: 96px; height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}
.acme-news-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms ease;
}
.acme-news-card:hover .acme-news-card-image img { transform: scale(1.1); }
.acme-news-card-body { flex: 1; min-width: 0; }
.acme-news-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem; color: var(--acme-muted-fg);
}
.acme-news-card-meta .acme-badge {
  font-size: 0.625rem; padding: 0 0.5rem;
}
.acme-news-card-h4 {
  font-size: 0.95rem; font-weight: 600;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--acme-trans);
}
.acme-news-card:hover .acme-news-card-h4 { color: var(--acme-primary); }
.acme-news-card-excerpt {
  margin-top: 0.25rem; font-size: 0.875rem; color: var(--acme-muted-fg);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.acme-news-trending {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
  box-shadow: var(--acme-shadow-sm);
}
.acme-news-trending h4 {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem; font-weight: 600;
}
.acme-news-trending-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acme-news-trending-tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--acme-muted);
  font-size: 0.875rem; font-weight: 500;
  transition: background var(--acme-trans), color var(--acme-trans);
}
.acme-news-trending-tag:hover { background: var(--acme-primary); color: var(--acme-primary-fg); }
.acme-news-trending-tag span {
  background: rgba(255,255,255,0.8);
  color: var(--acme-fg);
  padding: 0.0625rem 0.375rem;
  border-radius: 999px;
  font-size: 0.7rem;
}
.acme-news-trending-tag:hover span { background: rgba(255,255,255,0.85); }

/* ═══════════════════════════════════════════════════════════════════════════
   EVENTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-events { padding: 4rem 0; }
@media (min-width: 768px) { .acme-events { padding: 6rem 0; } }
.acme-events-header {
  display: flex; flex-direction: column;
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .acme-events-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.acme-events-eyebrow {
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-events-title {
  margin-top: 0.5rem;
  font-size: 1.875rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em;
}
@media (min-width: 768px) { .acme-events-title { font-size: 2.25rem; } }
.acme-events-desc { margin-top: 0.75rem; max-width: 36rem; color: var(--acme-muted-fg); }
.acme-events-grid { display: grid; gap: 2rem; }
.acme-events-grid > * { min-width: 0; }
@media (min-width: 1024px) { .acme-events-grid { grid-template-columns: 1fr 1fr; } }

.acme-event-featured {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--acme-card);
  box-shadow: var(--acme-shadow-md);
  transition: box-shadow var(--acme-trans);
}
@media (min-width: 1024px) { .acme-event-featured { grid-row: span 2; height: 100%; } }
.acme-event-featured:hover { box-shadow: var(--acme-shadow-xl); }
.acme-event-featured-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
@media (min-width: 1024px) { .acme-event-featured-image { aspect-ratio: auto; height: 100%; } }
.acme-event-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.acme-event-featured:hover .acme-event-featured-image img { transform: scale(1.05); }
.acme-event-featured-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.95), rgba(26,22,18,0.5), transparent);
}
.acme-event-badges {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: flex; gap: 0.5rem;
}
.acme-event-text {
  position: absolute; inset: 0;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.acme-event-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}
.acme-event-h3 {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color var(--acme-trans);
}
@media (min-width: 1024px) { .acme-event-h3 { font-size: 1.875rem; } }
.acme-event-featured:hover .acme-event-h3 { color: var(--acme-primary); }
.acme-event-desc { color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.acme-event-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem;
}
.acme-event-bottom .acme-i { width: 16px; height: 16px; }
.acme-event-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--acme-primary); }

.acme-events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.acme-event-card {
  display: flex; gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
  box-shadow: var(--acme-shadow-sm);
  transition: box-shadow var(--acme-trans), border-color var(--acme-trans);
}
.acme-event-card:hover { box-shadow: var(--acme-shadow-md); border-color: var(--am-primary-20); }
.acme-event-card-image {
  position: relative;
  width: 144px; height: 112px; flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}
.acme-event-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms ease;
}
.acme-event-card:hover .acme-event-card-image img { transform: scale(1.1); }
.acme-event-card-image .acme-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  font-size: 0.625rem;
}
.acme-event-card-body { flex: 1; min-width: 0; }
.acme-event-card-meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: var(--acme-muted-fg);
  margin-bottom: 0.25rem;
}
.acme-event-card-h4 {
  font-size: 0.95rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--acme-trans);
}
.acme-event-card:hover .acme-event-card-h4 { color: var(--acme-primary); }
.acme-event-card-desc {
  margin-top: 0.25rem; font-size: 0.875rem; color: var(--acme-muted-fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acme-event-card-loc {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--acme-muted-fg);
}
@media (max-width: 480px) {
  .acme-event-card { flex-direction: column; }
  .acme-event-card-image { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .acme-event-card-meta { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER  (rendered by partials/_footer.ascx)
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-footer {
  background: var(--acme-fg);
  color: var(--acme-bg);
}
.acme-footer-newsletter { border-bottom: 1px solid rgba(251, 250, 249, 0.1); }
/* Switched from grid to flex so input + button render inline even when the
   admin's saved HTML drops the <form> wrapper (common via the pencil-edit
   modal). Title block takes ~50%, input fills remaining, button stays
   inline. Mobile wraps naturally. */
.acme-footer-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
}
.acme-footer-newsletter-inner > *:first-child { flex: 1 1 280px; min-width: 0; }
.acme-footer-newsletter-inner > .acme-footer-newsletter-form { display: flex; gap: 0.75rem; flex: 1 1 320px; min-width: 0; }
.acme-footer-newsletter-inner > input.acme-input { flex: 1 1 240px; min-width: 0; }
.acme-footer-newsletter-inner > button.acme-btn { flex: 0 0 auto; }
@media (max-width: 767px) {
  .acme-footer-newsletter-inner > *:first-child { flex: 1 1 100%; }
  .acme-footer-newsletter-inner > input.acme-input { flex: 1 1 100%; }
  .acme-footer-newsletter-inner > button.acme-btn { flex: 1 1 100%; }
}
.acme-footer-newsletter-title { font-size: 1.5rem; font-weight: 700; }
.acme-footer-newsletter-desc { margin-top: 0.5rem; color: rgba(251, 250, 249, 0.7); }
.acme-footer-newsletter-form { display: flex; gap: 0.75rem; }
.acme-footer-newsletter-form .acme-input { flex: 1; }

.acme-footer-main { padding: 3rem 0; }
@media (min-width: 768px) { .acme-footer-main { padding: 4rem 0; } }
.acme-footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .acme-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .acme-footer-grid { grid-template-columns: repeat(6, 1fr); } }
.acme-footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .acme-footer-brand { grid-column: span 3; } }
@media (min-width: 1024px) { .acme-footer-brand { grid-column: span 2; } }

.acme-footer-logo { display: inline-flex; align-items: baseline; gap: 0.25rem; margin-bottom: 1rem; }
.acme-footer-logo-mark { font-size: 1.5rem; font-weight: 700; color: var(--acme-bg); }
.acme-footer-logo-corp { font-size: 1.5rem; font-weight: 300; color: rgba(251, 250, 249, 0.6); }
.acme-footer-tagline { font-size: 0.875rem; color: rgba(251, 250, 249, 0.7); max-width: 20rem; }
.acme-footer-contacts { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.acme-footer-contacts li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; color: rgba(251, 250, 249, 0.7);
}
.acme-footer-contacts .acme-i { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }

.acme-footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--acme-bg); }
.acme-footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.acme-footer-col a {
  font-size: 0.875rem;
  color: rgba(251, 250, 249, 0.7);
  transition: color var(--acme-trans);
}
.acme-footer-col a:hover { color: var(--acme-primary); }

.acme-footer-bottom {
  border-top: 1px solid rgba(251, 250, 249, 0.1);
  padding: 1.5rem 0;
}
.acme-footer-bottom-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .acme-footer-bottom-inner { flex-direction: row; } }
.acme-footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-size: 0.875rem; color: rgba(251, 250, 249, 0.6);
}
.acme-footer-meta a:hover { color: var(--acme-primary); }
.acme-footer-social { display: flex; align-items: center; gap: 1rem; }
.acme-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: rgba(251, 250, 249, 0.6);
  transition: color var(--acme-trans);
}
.acme-footer-social a:hover { color: var(--acme-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC TEMPLATES (about/services/news/events/shop/careers/contact)
   ═══════════════════════════════════════════════════════════════════════════ */
.acme-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0a09 0%, #1a1411 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}
.acme-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--am-primary-20);
  color: var(--acme-primary);
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.acme-page-hero-title {
  font-size: 2.25rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 768px) { .acme-page-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .acme-page-hero-title { font-size: 3.75rem; } }
.acme-page-hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 48rem;
}

/* Cards for shop/news/events listing pages */
.acme-card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .acme-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acme-card-grid { grid-template-columns: repeat(3, 1fr); } }
.acme-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .acme-card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.acme-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
  box-shadow: var(--acme-shadow-sm);
  transition: box-shadow var(--acme-trans), border-color var(--acme-trans), transform var(--acme-trans);
}
.acme-card:hover { box-shadow: var(--acme-shadow-xl); border-color: var(--am-primary-20); transform: translateY(-2px); }
.acme-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--acme-muted);
}
.acme-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.acme-card:hover .acme-card-image img { transform: scale(1.05); }
.acme-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.acme-card-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--acme-primary);
}
.acme-card-title {
  font-size: 1.125rem; font-weight: 600;
  line-height: 1.3;
}
.acme-card-desc { font-size: 0.875rem; color: var(--acme-muted-fg); flex: 1; }
.acme-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.acme-card-price { font-size: 1.25rem; font-weight: 700; color: var(--acme-fg); }
.acme-card-price-old { font-size: 0.875rem; color: var(--acme-muted-fg); text-decoration: line-through; margin-right: 0.5rem; }

.acme-section { padding: 4rem 0; }
.acme-section-tight { padding: 2.5rem 0; }
@media (min-width: 768px) { .acme-section { padding: 5rem 0; } }
.acme-section-header { text-align: center; margin-bottom: 2.5rem; }
.acme-section-eyebrow {
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--acme-primary);
}
.acme-section-title {
  margin-top: 0.5rem;
  font-size: 1.875rem; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15;
}
@media (min-width: 768px) { .acme-section-title { font-size: 2.25rem; } }
.acme-section-desc {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: var(--acme-muted-fg);
}

.acme-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .acme-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.acme-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--acme-card);
  border: 1px solid var(--acme-border);
}
.acme-stat-num {
  font-size: 2.25rem; font-weight: 700;
  color: var(--acme-primary);
  line-height: 1;
}
.acme-stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--acme-muted-fg); }

/* Form */
.acme-form { display: flex; flex-direction: column; gap: 1.25rem; }
.acme-form-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { .acme-form-row { grid-template-columns: 1fr 1fr; } }
.acme-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
}
.acme-textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 0.75rem 1rem;
  font: inherit;
  background: var(--acme-card);
  border: 1px solid var(--acme-input);
  border-radius: var(--acme-radius);
  color: var(--acme-fg);
  resize: vertical;
}
.acme-textarea:focus { outline: none; border-color: var(--acme-ring); box-shadow: 0 0 0 3px var(--am-primary-12); }

/* Generic icon (SVG inline; class hooks just pad the inline-block to a square) */
.acme-i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }

/* ─── DNN edit-mode helpers ─────────────────────────────────────────────── */
.acme-dnn-admin { position: relative; z-index: 9000; }
.dnnSortableContainer { background: var(--am-primary-05); }
.dnnSortableItem { background: rgba(255,255,255,0.6); padding: 0.25rem; border: 1px dashed var(--am-primary-30); border-radius: 4px; }

/* DNN auth pages keep the standard DNN controls, but center the module in the ACME skin. */
body:has(.dnnLogin) .acme-pane-content.acme-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
body:has(.dnnLogin) .DnnModule,
body:has(.dnnLogin) #dnn_ctr_ModuleContent,
body:has(.dnnLogin) .LoginPanel,
body:has(.dnnLogin) .dnnForm.dnnLogin,
body:has(.dnnLogin) .dnnForm.dnnLoginService {
  width: 100% !important;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
body:has(.dnnLogin) .dnnFormItem {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  align-items: center;
  gap: .75rem 1rem;
}
body:has(.dnnLogin) .dnnFormItem input[type="text"],
body:has(.dnnLogin) .dnnFormItem input[type="password"] {
  width: 100% !important;
  min-height: 40px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  padding: 0 .75rem;
}
body:has(.dnnLogin) .dnnActions {
  margin-left: 140px;
}
@media (max-width: 640px) {
  body:has(.dnnLogin) .dnnFormItem {
    grid-template-columns: 1fr;
  }
  body:has(.dnnLogin) .dnnActions {
    margin-left: 0;
  }
}

/* Oqtane-style flexible pane rows for DNN. Empty panes stay invisible outside edit mode. */
.acme-pane-layout { display: block; }
.acme-pane-row { display: grid; gap: 1.5rem; }
.acme-pane-row:empty { display: none; }
.acme-pane-row-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acme-pane-row-third { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acme-pane-row-quarter { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.acme-pane-col:empty { display: none; }
body.dnnEditState .acme-pane-layout,
body.dnnEditState .acme-pane-row,
body.dnnEditState .acme-pane-col:empty { display: grid; }
body.dnnEditState .acme-pane-col:empty {
  min-height: 72px;
  border: 1px dashed var(--am-primary-30);
  border-radius: 8px;
  background: var(--am-primary-05);
}
@media (max-width: 768px) {
  .acme-pane-row-half,
  .acme-pane-row-third,
  .acme-pane-row-quarter { grid-template-columns: 1fr; }
}

/* DNN login page polish. Keep native controls but align them as a clean card. */
body:has(.dnnLogin) .acme-main {
  min-height: calc(100vh - 160px);
  background: #faf8f5;
}
body:has(.dnnLogin) .acme-pane-content.acme-container {
  max-width: 720px;
  padding: 4.5rem 1.5rem 5rem;
}
body:has(.dnnLogin) .DnnModule,
body:has(.dnnLogin) #dnn_ctr_ModuleContent,
body:has(.dnnLogin) .LoginPanel,
body:has(.dnnLogin) .dnnForm.dnnLogin,
body:has(.dnnLogin) .dnnForm.dnnLoginService {
  max-width: 560px;
}
body:has(.dnnLogin) .LoginPanel,
body:has(.dnnLogin) .dnnForm.dnnLogin,
body:has(.dnnLogin) .dnnForm.dnnLoginService {
  padding: 2rem;
  border: 1px solid rgba(16, 16, 16, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(16, 16, 16, .08);
}
body:has(.dnnLogin) .dnnFormItem {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: .85rem 1rem;
  margin: 0 0 1rem;
}
body:has(.dnnLogin) .dnnFormItem > label,
body:has(.dnnLogin) .dnnFormLabel,
body:has(.dnnLogin) .dnnLabel {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 650;
  color: #1f1f1f;
  text-align: right;
}
body:has(.dnnLogin) .dnnFormItem input[type="text"],
body:has(.dnnLogin) .dnnFormItem input[type="password"] {
  min-height: 42px;
  border-radius: 8px;
}
body:has(.dnnLogin) .dnnActions {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 0 !important;
  padding: 0 !important;
}
body:has(.dnnLogin) .dnnActions li { margin: 0 !important; list-style: none; }
body:has(.dnnLogin) .dnnPrimaryAction,
body:has(.dnnLogin) .dnnSecondaryAction {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body:has(.dnnLogin) .dnnPrimaryAction {
  border-color: var(--acme-primary) !important;
  background: var(--acme-primary) !important;
  color: #fff !important;
}
body:has(.dnnLogin) .dnnSecondaryAction {
  border: 1px solid #ddd7ce !important;
  background: #fff !important;
  color: #101010 !important;
}
@media (max-width: 640px) {
  body:has(.dnnLogin) .dnnFormItem {
    grid-template-columns: 1fr;
  }
  body:has(.dnnLogin) .dnnFormItem > label,
  body:has(.dnnLogin) .dnnFormLabel,
  body:has(.dnnLogin) .dnnLabel {
    text-align: left;
  }
}

/* Final auth normalization: DNN nests LoginPanel and dnnLoginService inside
   dnnLogin, so only the outer form should look like a card. */
body:has(.dnnLogin) .DnnModule,
body:has(.dnnLogin) #dnn_ctr_ModuleContent,
body:has(.dnnLogin) .LoginPanel,
body:has(.dnnLogin) .dnnForm.dnnLoginService {
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:has(.dnnLogin) .dnnForm.dnnLogin {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 2.25rem !important;
  border: 1px solid rgba(16, 16, 16, .12) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(16, 16, 16, .08) !important;
}
body:has(.dnnLogin) .dnnFormItem:has(.dnnPrimaryAction),
body:has(.dnnLogin) .dnnFormItem:has(.dnnLoginActions),
body:has(.dnnLogin) .dnnFormItem:has(.dnnActions) {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}
body:has(.dnnLogin) .dnnFormItem:has(.dnnPrimaryAction) > .dnnFormLabel,
body:has(.dnnLogin) .dnnFormItem:has(.dnnLoginActions) > .dnnFormLabel,
body:has(.dnnLogin) .dnnFormItem:has(.dnnActions) > .dnnFormLabel {
  display: none !important;
}
body:has(.dnnLogin) .dnnLoginActions,
body:has(.dnnLogin) .dnnActions {
  width: auto !important;
  margin: 0 !important;
}
body:has(.dnnLogin) .dnnPrimaryAction,
body:has(.dnnLogin) .dnnSecondaryAction {
  min-width: 164px !important;
  white-space: nowrap;
}
