/* Token-based compact interpretation of the requested Spectrum UI footer. */
html[data-theme] #site-footer.fargah-footer--compact { color: var(--foreground); }
html[data-theme] #site-footer.fargah-footer--compact h2 { color: var(--foreground); }
html[data-theme] #site-footer.fargah-footer--compact a:not(.btn-fargah) { color: var(--muted-foreground); }
html[data-theme] #site-footer.fargah-footer--compact a:not(.btn-fargah):is(:hover, :focus-visible) { color: var(--atelier-gold); }
html[data-theme] #site-footer.fargah-footer--compact .footer-compact__credit a,
html[data-theme] #site-footer.fargah-footer--compact .footer-compact__social a { color: var(--foreground); }
#site-footer.fargah-footer--compact {
  background: var(--background, var(--bg-primary));
  color: var(--foreground, var(--text-primary));
  border-top: 1px solid var(--border, var(--border-default));
  padding: 0;
  overflow: clip;
}
#site-footer.fargah-footer--compact .footer-compact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.5vw, 56px);
  padding-block: 52px 42px;
}
#site-footer.fargah-footer--compact .footer-compact__grid > * { min-width: 0; }
#site-footer.fargah-footer--compact a {
  color: var(--muted-foreground, var(--text-secondary));
  text-decoration: none;
  transition: color .2s ease;
}
#site-footer.fargah-footer--compact a:is(:hover, :focus-visible) { color: var(--primary, var(--accent-gold)); }
#site-footer.fargah-footer--compact a:focus-visible, #site-footer.fargah-footer--compact summary:focus-visible { outline: 2px solid var(--primary, var(--accent-gold)); outline-offset: 5px; border-radius: 3px; }
#site-footer.fargah-footer--compact .footer-compact__logo { display: inline-flex; max-width: 248px; }
#site-footer.fargah-footer--compact .footer-compact__logo img { width: 100%; height: auto; max-height: 64px; object-fit: contain; }
#site-footer.fargah-footer--compact .footer-compact__tagline { color: var(--muted-foreground, var(--text-secondary)); font-size: 13px; line-height: 1.95; max-width: 31ch; margin: 18px 0 20px; white-space: normal; }
#site-footer.fargah-footer--compact .footer-compact__social { display: flex; flex-wrap: wrap; gap: 8px; }
#site-footer.fargah-footer--compact .footer-compact__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border, var(--border-default)); border-radius: 50%; background: var(--card, var(--bg-surface)); color: var(--foreground, var(--text-primary)); }
#site-footer.fargah-footer--compact .footer-compact__social svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#site-footer.fargah-footer--compact h2 { color: var(--foreground, var(--text-primary)); font-size: 14px; font-weight: 750; line-height: 1.8; margin: 0 0 17px; padding: 0; border: 0; }
#site-footer.fargah-footer--compact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#site-footer.fargah-footer--compact .footer-compact__group li a { display: inline-block; min-height: 30px; padding-block: 4px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#site-footer.fargah-footer--compact .footer-compact__contacts ul { gap: 16px; }
#site-footer.fargah-footer--compact .footer-compact__contacts li { display: grid; gap: 4px; }
#site-footer.fargah-footer--compact .footer-compact__contacts li > span { color: var(--foreground, var(--text-primary)); font-size: 12px; font-weight: 650; line-height: 1.8; }
#site-footer.fargah-footer--compact .footer-compact__contacts small { color: var(--muted-foreground, var(--text-secondary)); font-size: 9px; font-weight: 400; margin-inline-start: 5px; }
#site-footer.fargah-footer--compact .footer-compact__contacts a { display: inline-flex; width: fit-content; min-height: 30px; align-items: center; font-size: 12px; }
#site-footer.fargah-footer--compact .footer-compact__mobile { display: none; }
#site-footer.fargah-footer--compact .footer-compact__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 10px; border-top: 1px solid var(--border, var(--border-default)); padding-block: 22px 28px; }
#site-footer.fargah-footer--compact .footer-compact__bottom p { margin: 0; color: var(--muted-foreground, var(--text-secondary)); font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
#site-footer.fargah-footer--compact .footer-compact__legal { grid-column: 1 / -1; order: 2; max-width: 110ch; }
#site-footer.fargah-footer--compact .footer-compact__credit { text-align: end; }
#site-footer.fargah-footer--compact .footer-compact__credit a { color: var(--foreground, var(--text-primary)); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) {
  #site-footer.fargah-footer--compact .footer-compact__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  #site-footer.fargah-footer--compact .footer-compact__brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
  #site-footer.fargah-footer--compact .footer-compact__tagline { grid-column: 1; max-width: 60ch; margin-block: 8px 0; }
  #site-footer.fargah-footer--compact .footer-compact__social { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 600px) {
  #site-footer.fargah-footer--compact .footer-compact__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 30px 22px; }
  #site-footer.fargah-footer--compact .footer-compact__brand { grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
  #site-footer.fargah-footer--compact .footer-compact__logo { max-width: 205px; }
  #site-footer.fargah-footer--compact .footer-compact__tagline { font-size: 12px; line-height: 1.8; margin-block: 10px 14px; max-width: 48ch; }
  #site-footer.fargah-footer--compact .footer-compact__social { grid-column: 1; grid-row: auto; gap: 8px; }
  #site-footer.fargah-footer--compact .footer-compact__social a { width: 44px; height: 44px; }
  #site-footer.fargah-footer--compact .footer-compact__desktop { display: none; }
  #site-footer.fargah-footer--compact .footer-compact__mobile { display: block; border-block-start: 1px solid var(--border, var(--border-default)); }
  #site-footer.fargah-footer--compact summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 16px; cursor: pointer; list-style: none; color: var(--foreground, var(--text-primary)); font-size: 13px; font-weight: 650; }
  #site-footer.fargah-footer--compact summary::-webkit-details-marker { display: none; }
  #site-footer.fargah-footer--compact summary span { font-size: 20px; font-weight: 400; color: var(--muted-foreground, var(--text-secondary)); transition: transform .2s; }
  #site-footer.fargah-footer--compact details[open] summary span { transform: rotate(45deg); }
  #site-footer.fargah-footer--compact .footer-compact__mobile ul { padding-block: 0 14px; }
  #site-footer.fargah-footer--compact .footer-compact__group li a { min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; }
  #site-footer.fargah-footer--compact .footer-compact__contacts { border-top: 1px solid var(--border, var(--border-default)); padding-top: 18px; }
  #site-footer.fargah-footer--compact .footer-compact__contacts h2 { margin-bottom: 12px; font-size: 13px; }
  #site-footer.fargah-footer--compact .footer-compact__contacts ul { gap: 3px; }
  #site-footer.fargah-footer--compact .footer-compact__contacts li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 15px; min-height: 38px; }
  #site-footer.fargah-footer--compact .footer-compact__contacts li > span, #site-footer.fargah-footer--compact .footer-compact__contacts a { font-size: 12px; }
  #site-footer.fargah-footer--compact .footer-compact__bottom { grid-template-columns: minmax(0, 1fr); padding-block: 18px 24px; gap: 9px; }
  #site-footer.fargah-footer--compact .footer-compact__credit { text-align: start; }
  #site-footer.fargah-footer--compact .footer-compact__bottom p { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #site-footer.fargah-footer--compact *, #site-footer.fargah-footer--compact *::before, #site-footer.fargah-footer--compact *::after { transition: none; }
}
