/* Reference: saboresdeencuentro.com. Astra owns markup, menus and drawer state. */
@font-face { font-family: 'SDE Manrope'; src: url('fonts/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'SDE Fraunces'; src: url('fonts/fraunces-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'SDE Mono'; src: url('fonts/dm-mono-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --sde-shell-ink: #173c4d;
  --sde-shell-paper: #fcfaf4;
  --sde-shell-cream: #fff9eb;
  --sde-shell-muted: #bed1d2;
  --sde-shell-gold: #f4ce65;
  --sde-shell-coral: #d76b50;
  --sde-shell-copy: 'SDE Manrope', sans-serif;
  --sde-shell-display: 'SDE Fraunces', serif;
}

/* Scope the identity to the shell; chapter and recipe layouts are unchanged. */
:where(#masthead, #colophon, #ast-mobile-popup) { font-family: var(--sde-shell-copy); }
:where(#masthead, #colophon, #ast-mobile-popup) ::selection { background: var(--sde-shell-gold); color: var(--sde-shell-ink); }
:where(#masthead, #colophon, #ast-mobile-popup) a { text-underline-offset: 5px; }
:where(#masthead, #colophon, #ast-mobile-popup) a:focus-visible,
:where(#masthead, #colophon, #ast-mobile-popup) button:focus-visible { outline: 2px solid var(--sde-shell-coral); outline-offset: 4px; }

#masthead .ast-container { padding-inline: 5%; margin-inline: auto; }
#masthead .site-title { font-family: var(--sde-shell-display); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; white-space: nowrap; }
#masthead .site-branding { padding-block: 18px; }
#masthead .ast-builder-menu-1 .menu-link { font-family: var(--sde-shell-copy); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding-inline: clamp(9px, 1.05vw, 18px); color: var(--sde-shell-ink); }
#masthead .ast-builder-menu-1 .menu-link:hover,
#masthead .ast-builder-menu-1 .current-menu-item > .menu-link { color: #006477; text-decoration: underline; }
#masthead .ast-builder-menu-1 .sub-menu .menu-link { min-height: 44px; }
#masthead .ast-header-button-1 .ast-custom-button { border: 0; border-left: 1px solid #aababc; border-radius: 0; padding: 14px 0 14px 18px; margin-left: 18px; font-family: var(--sde-shell-copy); }
#masthead .ast-header-button-1 .ast-custom-button::after { content: '↗'; margin-left: 15px; color: var(--sde-shell-coral); font-size: 19px; }
#masthead .ast-mobile-menu-trigger-minimal { min-width: 44px; min-height: 44px; color: var(--sde-shell-ink); }

/* Keep Astra's accessible off-canvas behavior and native submenu controls. */
#ast-mobile-popup .ast-mobile-popup-inner { width: min(420px, 100%); background: var(--sde-shell-paper); }
#ast-mobile-popup .ast-mobile-popup-header { padding: 16px 20px 0; }
#ast-mobile-popup .menu-toggle-close { min-width: 44px; min-height: 44px; padding: 10px; }
#ast-mobile-popup .ast-mobile-popup-content { padding: 10px 28px 32px; }
#ast-mobile-popup .main-header-menu { background: transparent; }
#ast-mobile-popup .main-header-menu > .menu-item > .menu-link { font-family: var(--sde-shell-display); font-weight: 500; font-size: 27px; line-height: 1.2; min-height: 58px; padding: 15px 0; border-bottom: 1px solid #d8dfdd; color: var(--sde-shell-ink); }
#ast-mobile-popup .ast-header-button-1 { margin-top: 25px; }
#ast-mobile-popup .ast-custom-button { border-radius: 0; background: var(--sde-shell-ink); color: var(--sde-shell-cream); padding: 15px 24px; font: 700 13px var(--sde-shell-copy); }

#colophon .site-primary-footer-wrap { padding: 55px 7% 42px; }
#colophon .site-primary-footer-inner-wrap { column-gap: 32px; row-gap: 32px; padding-inline: 0; }
/* Only refine the selected five-column preset; other builder layouts stay native. */
#colophon .ast-builder-grid-row-5-equal > .ast-builder-grid-row-container-inner > .site-primary-footer-inner-wrap { grid-template-columns: 1.6fr .8fr .8fr .8fr 1.15fr; }
#colophon .widget { margin: 0; }
#colophon .widget-title { margin: 0 0 14px; color: var(--sde-shell-gold); font: 400 10px/1.5 'SDE Mono', monospace; letter-spacing: .07em; text-transform: uppercase; }
#colophon .widget_nav_menu a { display: inline-block; padding-block: 5px; color: var(--sde-shell-cream); font: 400 12px/1.5 var(--sde-shell-copy); }
#colophon .widget_nav_menu a:hover { color: var(--sde-shell-gold); text-decoration: underline; }
#colophon .widget_nav_menu li { margin: 0; }
#colophon .sde-wordmark { display: inline-block; color: var(--sde-shell-cream); font: 600 24px/1.15 var(--sde-shell-display); letter-spacing: -.04em; }
#colophon .sde-footer-brand p { max-width: 29ch; margin: 18px 0 0; color: var(--sde-shell-muted); font: 400 12px/1.7 var(--sde-shell-copy); }
#colophon .sde-footer-contact h2 { margin: 0 0 15px; color: var(--sde-shell-cream); font: 600 24px/1 var(--sde-shell-display); letter-spacing: -.035em; }
#colophon .sde-footer-contact a { display: flex; justify-content: space-between; min-height: 44px; align-items: center; gap: 20px; border-bottom: 1px solid #7c9ca5; color: var(--sde-shell-cream); font-size: 13px; }
#colophon .sde-footer-contact a:hover { color: var(--sde-shell-gold); }
#colophon .sde-footer-contact a span { color: var(--sde-shell-gold); font-size: 22px; }
#colophon .sde-footer-contact p { margin: 10px 0 0; color: var(--sde-shell-muted); font-size: 10px; overflow-wrap: anywhere; }
#colophon .site-below-footer-wrap { padding: 0 7% 20px; }
#colophon .site-below-footer-inner-wrap { border-top: 1px solid #3d5d6b; padding: 16px 0 0; }
#colophon .ast-footer-copyright { width: 100%; }
#colophon .sde-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font: 400 9px/1.6 'SDE Mono', monospace; letter-spacing: .04em; }
#colophon .sde-footer-meta span { text-transform: uppercase; }
#colophon .sde-footer-meta a { margin-left: auto; color: var(--sde-shell-cream); overflow-wrap: anywhere; }

@media (min-width: 922px) and (max-width: 1100px) {
  #masthead .ast-container { padding-inline: 24px; }
  #masthead .ast-builder-menu-1 .menu-link { padding-inline: 7px; font-size: 10px; }
  #masthead .site-title { font-size: 19px; }
  #masthead .ast-header-button-1 .ast-custom-button { margin-left: 8px; padding-left: 10px; }
}
@media (min-width: 922px) and (max-width: 980px) {
  #masthead .ast-builder-menu-1 .menu-link { padding-inline: 4px; }
  #masthead .ast-header-button-1 .ast-custom-button::after { margin-left: 8px; }
}
@media (max-width: 921px) {
  #masthead .ast-container { padding-inline: 24px; }
  #colophon .ast-builder-grid-row-5-equal > .ast-builder-grid-row-container-inner > .site-primary-footer-inner-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #colophon .site-footer-primary-section-1,
  #colophon .site-footer-primary-section-5 { grid-column: 1 / -1; }
  #colophon .sde-footer-contact { max-width: 380px; }
  #colophon .widget_nav_menu a { padding-block: 11px; }
}
@media (max-width: 480px) {
  #colophon .site-primary-footer-wrap { padding: 42px 24px 30px; }
  #colophon .site-primary-footer-inner-wrap { column-gap: 16px; }
  #colophon .widget-title { font-size: 9px; letter-spacing: 0; }
  #colophon .widget_nav_menu a { font-size: 11px; }
  #colophon .site-below-footer-wrap { padding-inline: 24px; }
  #colophon .sde-footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  #colophon .sde-footer-meta a { margin-left: 0; }
}
