/* Shared Aipan brand component. Full-page demo styles live in preview.css. */
.aipan-footer {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  aspect-ratio: 1;
  container-type: inline-size;
  color: var(--color-footer-text-footer);
}
.aipan-footer-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aipan-footer-art img, .aipan-footer-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aipan-footer-art canvas { opacity: 0; transition: opacity .6s ease; }
.aipan-footer-art img { transition: opacity .6s ease; }
.aipan-footer[data-ready="true"]:not([data-state="fallback"]) canvas { opacity: 1; }
.aipan-footer[data-ready="true"]:not([data-state="fallback"]) img { opacity: 0; }
.aipan-footer-copy {
  position: absolute;
  inset: 50% 16% auto;
  transform: translateY(-35%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.aipan-footer .aipan-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.8cqi;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font: 650 clamp(24px, 7.2cqi, 40px)/1 var(--font-heading, sans-serif);
  letter-spacing: -.38cqi;
}
.aipan-footer-mark { width: 7.6cqi; height: 8cqi; flex: none; }
.aipan-footer-dot { color: var(--color-footer-text-brand-word); }
.aipan-footer-brand:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; border-radius: 2px; }
.aipan-footer p.aipan-footer-tagline { margin: 4.9cqi 0 0; font: 400 clamp(12px, 3.05cqi, 17px)/1.6 var(--font-body, sans-serif); white-space: nowrap; color: var(--color-footer-text-footer-location-2); }
.aipan-footer p.aipan-footer-hindi { margin: 1cqi 0 0; font: 400 clamp(14px, 3.6cqi, 20px)/1.8 var(--font-hindi, serif); color: var(--color-footer-text-footer-location-2); }
/* The full-size diamond sets the middle row's height. */
.local-theme .footer { padding-top: 34px; }
.local-theme .footer-top {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 32px;
  padding-block: 30px;
}
.local-theme .footer-top .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: 1px; }
.local-theme .footer-top h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.local-theme .footer-top h2 > .hindi { font-size: 1.1em; line-height: 1.1; }
.local-theme .footer-invite { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 20px; margin: 0; padding: 0; }
.local-theme .footer-invite > p { margin: 0; font-size: 13px; line-height: 1.65; }
.local-theme .footer-invite .button { min-height: 48px; padding: 12px 18px; font-size: 13px; }
.local-theme .footer-host-contact { justify-content: center; gap: 0 8px; margin-top: 4px; }
.local-theme .footer-host-contact > span { font-size: 11px; }
.local-theme .footer-host-contact > a { min-height: 28px; padding-block: 4px; gap: 6px; font-size: 12px; }
.local-theme .footer-host-contact .icon { width: 14px; height: 14px; }
.local-theme .footer-main { grid-template-columns: minmax(400px, 1.65fr) repeat(3, minmax(0, 1fr)); align-items: start; gap: 45px; padding-block: 16px; }
.local-theme .footer-brand { display: flex; justify-content: center; align-items: center; margin: 0; }
.footer-brand > .aipan-footer { margin-block: -16px; }
/* Offset the headings to the visible upper tip, inside the artwork's soft margin. */
.local-theme .footer-nav-group { padding-top: 16px; }
.local-theme .footer-nav-group summary { min-height: 0; margin-bottom: 16px; padding: 0; font-size: 18px; cursor: default; }
.local-theme .footer-nav-group summary .icon { display: none; }
.local-theme .footer-nav-links { display: grid; gap: 10px; }
.local-theme .footer-nav-links a { min-height: 0; padding: 0; font-size: 16px; line-height: 1.6; }
.local-theme .footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); align-items: center; gap: 8px 24px; min-height: 40px; padding-block: 10px; border-top: 1px solid var(--color-border-business-details); font-size: 12px; line-height: 1.6; }
.local-theme .footer-bottom > span { margin: 0; }
.local-theme .footer-preview { text-align: right; }
.footer-designer { position: relative; display: inline-block; }
.footer-designer-name { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-designer-name:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.footer-designer-phone { position: absolute; right: 0; bottom: 100%; z-index: 2; padding: 8px 12px; border: 1px solid var(--color-border-footer-nav-group); background: var(--color-footer-background); color: var(--color-footer-text-footer); white-space: nowrap; visibility: hidden; opacity: 0; }
.footer-designer:hover .footer-designer-phone, .footer-designer:focus-within .footer-designer-phone { visibility: visible; opacity: 1; }
.local-theme .business-registrations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: inherit; line-height: inherit; }
.local-theme .business-registrations > div { display: flex; align-items: baseline; gap: 4px; }
.local-theme .business-registrations > div + div::before { content: '·'; margin-right: 4px; }
.local-theme .business-registrations dt { font-weight: 400; color: inherit; }
.local-theme .business-registrations dd { margin: 0; }
@media (max-width: 1250px) {
  .local-theme .footer-invite { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: end; }
  .local-theme .footer-bottom { grid-template-columns: max-content minmax(0, 1fr); }
  .local-theme .business-registrations { justify-content: flex-end; }
  .local-theme .footer-preview { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .local-theme .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-bottom: 24px; }
  .local-theme .footer-brand { grid-column: 1 / -1; }
  .footer-brand > .aipan-footer { max-width: 440px; }
  .local-theme .footer-nav-group { padding-top: 0; }
}
@media (max-width: 700px) {
  .local-theme .footer-top { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px; }
  .local-theme .footer-top h2 { font-size: 28px; gap: 4px 10px; }
  .local-theme .footer-top .eyebrow { font-size: 9px; letter-spacing: .6px; }
  .local-theme .footer-invite { justify-items: start; }
  .local-theme .footer-invite-actions { width: 100%; }
  .local-theme .footer-invite .button { width: 100%; }
  .local-theme .footer-host-contact > a { min-height: 44px; }
  .local-theme .footer-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 16px; }
  .local-theme .footer-brand { margin-bottom: 16px; }
  .local-theme .footer-nav-group summary { min-height: 52px; margin: 0; padding-block: 12px; cursor: pointer; }
  .local-theme .footer-nav-group summary .icon { display: block; }
  .local-theme .footer-nav-links { gap: 0; padding-bottom: 12px; }
  .local-theme .footer-nav-links a { min-height: 44px; padding-block: 8px; }
  .local-theme .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .local-theme .business-registrations { justify-content: flex-start; }
  .local-theme .footer-preview { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .aipan-footer-art :is(canvas, img) { transition: none; } }
