@font-face {
  font-family: "Cooper Black";
  src: url("../fonts/Cooper%20Black.TTF") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Black.ttf") format("truetype");
  font-display: swap;
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Light.ttf") format("truetype");
  font-display: swap;
  font-weight: 300;
  font-style: normal;
}

:root {
  --gomes-blue: #0c2c75;
  --gomes-blue-dark: #0c2c75;
  --gomes-orange: #ed331d;
  --gomes-orange-dark: #ed331d;
  --gomes-ink: #172743;
  --gomes-muted: #4c5a75;
  --gomes-light: #f4eaff;
  --gomes-surface: #f4eaff;
  --gomes-surface-strong: #fff;
  --gomes-bg: #0c2c75;
  /* Status and action accents stay within the supplied brand palette. */
  /* Status indicators intentionally use conventional green/red semantics so
     the store state is recognizable at a glance. */
  --gomes-success: #2eaa62;
  --gomes-danger: #ed331d;
  --gomes-border: rgba(12,44,117, .14);
  --gomes-shadow-sm: 0 2px 10px rgba(12,44,117, .09);
  --gomes-shadow: 0 12px 32px rgba(12,44,117, .13);
  --gomes-radius-sm: .6rem;
  --gomes-radius: 1rem;
  --gomes-radius-lg: 1.5rem;
  --gomes-max-width: 72rem;
  --gomes-focus: 0 0 0 3px rgba(237,51,29, .35);
  color-scheme: light;
}

/* Keep native `hidden` controls out of the layout even when a component
   class (such as .btn) sets an explicit display value. */
*[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--gomes-light);
  background:
    radial-gradient(circle at 12% -8%, rgba(237,51,29, .22), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(244,234,255, .14), transparent 38rem),
    var(--gomes-bg);
  font-family: "Lato", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--gomes-ink);
  background: var(--gomes-orange);
  border-radius: var(--gomes-radius-sm);
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: none;
  box-shadow: var(--gomes-focus);
}

.container {
  width: min(100% - 2rem, var(--gomes-max-width));
  margin-inline: auto;
}

.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding-block: 1.25rem 3rem; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(12,44,117, .96);
  border-bottom: 1px solid rgba(244,234,255, .2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: var(--gomes-light);
  text-decoration: none;
}
.brand img { display: block; width: auto; height: 2.15rem; object-fit: contain; }
.brand img.brand-mark { width: 3.25rem; height: 3.25rem; flex: 0 0 auto; }
.brand-wordmark { font-family: "Cooper Black", Georgia, serif; font-size: 1.15rem; line-height: 1.05; }
.brand-wordmark small { display: block; margin-top: .25rem; font-family: "Lato", sans-serif; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.header-status {
  margin-left: .05rem;
  padding: .35rem .54rem;
  color: #fff;
  background: rgba(244,234,255,.14);
  border-color: rgba(244,234,255,.34);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  font-size: clamp(.62rem, 1.8vw, .76rem);
  letter-spacing: .01em;
  white-space: nowrap;
}
.header-status[data-status="open"] { color: #fff; background: rgba(46,170,98,.2); border-color: rgba(138,236,170,.66); }
.header-status[data-status="closed"] { color: #fff; background: rgba(237,51,29,.2); border-color: rgba(255,166,166,.64); }
.header-status::before { display: block; width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: var(--gomes-muted); }
.header-status[data-status="open"]::before { background: var(--gomes-success); box-shadow: 0 0 0 .24rem rgba(46,170,98,.2); }
.header-status[data-status="closed"]::before { background: var(--gomes-danger); box-shadow: 0 0 0 .24rem rgba(237,51,29,.18); }

.site-nav { display: none; align-items: center; gap: .25rem; }
.site-nav a { padding: .6rem .8rem; border-radius: .65rem; color: var(--gomes-light); font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--gomes-orange); background: rgba(237,51,29, .08); }
.menu-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--gomes-light); background: transparent; border: 0; border-radius: .6rem; }
.menu-toggle svg { width: 1.45rem; height: 1.45rem; }
.mobile-menu { display: none; padding: .5rem 0 1rem; border-top: 1px solid rgba(244,234,255, .2); }
.mobile-menu.is-open { display: grid; gap: .25rem; }
.mobile-menu a { display: block; padding: .8rem .4rem; color: var(--gomes-light); font-weight: 700; text-decoration: none; border-radius: .6rem; }
.mobile-menu a:hover { background: rgba(244,234,255, .12); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .7rem;
  color: var(--gomes-orange-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.display-title { max-width: 18ch; margin: 0; color: var(--gomes-light); font-family: "Cooper Black", Georgia, serif; font-size: clamp(2rem, 8vw, 4rem); line-height: 1.02; }
.section-title { margin: 0; color: var(--gomes-light); font-family: "Cooper Black", Georgia, serif; font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.1; }
.lead { max-width: 58ch; margin: 1rem 0 0; color: var(--gomes-light); font-size: 1.07rem; }

.hero { display: grid; gap: 1.75rem; align-items: center; padding-block: 1.75rem 2.5rem; }
.hero-copy { order: 2; }
/* The logo already carries its own rounded blue mark. Keep the hero canvas open so
   a second pale frame does not compete with the brand or the blue page background. */
.hero-art { order: 1; display: grid; place-items: center; padding: .5rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-art img { width: min(100%, 23rem); max-height: 13rem; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(4,12,57,.28)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  gap: .5rem;
  padding: .68rem 1rem;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(.995); }
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn-primary { color: var(--gomes-blue); background: var(--gomes-light); box-shadow: 0 5px 14px rgba(12,44,117,.28); }
.btn-primary:hover { color: var(--gomes-blue); background: var(--gomes-light); border-color: transparent; box-shadow: 0 11px 24px rgba(12,44,117,.32), 0 0 0 3px rgba(244,234,255,.22); }
.btn-accent { color: var(--gomes-ink); background: var(--gomes-orange); box-shadow: 0 5px 14px rgba(237,51,29,.24); }
.btn-accent:hover { color: var(--gomes-ink); background: var(--gomes-orange); border-color: transparent; box-shadow: 0 11px 24px rgba(237,51,29,.34), 0 0 0 3px rgba(237,51,29,.18); }
.btn-outline { color: var(--gomes-blue); background: rgba(244,234,255,.9); border-color: rgba(244,234,255,.8); }
.btn-outline:hover { color: var(--gomes-ink); background: var(--gomes-orange); border-color: var(--gomes-orange); }
.btn-muted { color: var(--gomes-ink); background: rgba(56,56,56,.08); }
.btn-danger { color: #fff; background: var(--gomes-danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 2.35rem; padding: .5rem .75rem; font-size: .88rem; }
.consent-banner { position: fixed; z-index: 30; right: .8rem; bottom: .8rem; left: .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; color: var(--gomes-ink); background: var(--gomes-light); border: 1px solid rgba(12,44,117,.22); border-radius: .8rem; box-shadow: 0 12px 35px rgba(12,44,117,.32); }
.consent-banner p { margin: .2rem 0 0; color: var(--gomes-muted); font-size: .78rem; }
.consent-actions { display: flex; flex: 0 0 auto; gap: .4rem; }

.status-pill { display: inline-flex; align-items: center; gap: .48rem; width: fit-content; padding: .42rem .72rem; color: var(--gomes-ink); background: rgba(244,234,255,.94); border: 1px solid rgba(244,234,255,.8); border-radius: 999px; font-size: .86rem; font-weight: 900; }
.status-pill::before { width: .58rem; height: .58rem; content: ""; border-radius: 50%; background: var(--gomes-muted); }
.status-pill[data-status="open"], .status-open { color: var(--gomes-blue); background: var(--gomes-light); border-color: rgba(244,234,255,.8); }
.status-pill[data-status="open"]::before, .status-open::before { background: var(--gomes-success); box-shadow: 0 0 0 .25rem rgba(46,170,98,.2); }
.status-pill[data-status="closed"], .status-closed { color: var(--gomes-ink); background: var(--gomes-light); border-color: rgba(244,234,255,.8); }
.status-pill[data-status="closed"]::before, .status-closed::before { background: var(--gomes-danger); }

.action-section { padding-block: 1rem 2.5rem; }
.action-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.1rem; }
.action-card { display: flex; align-items: center; gap: .85rem; min-height: 4.2rem; padding: .85rem; color: var(--gomes-ink); background: rgba(244,234,255,.96); border: 1px solid rgba(244,234,255,.8); border-radius: var(--gomes-radius); box-shadow: var(--gomes-shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.action-card:hover { transform: translateY(-2px); border-color: var(--gomes-orange); box-shadow: 0 12px 32px rgba(237,51,29,.25); }
.action-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; color: #fff; background: var(--gomes-blue); border-radius: .78rem; }
.action-card.accent .action-icon { background: var(--gomes-orange); }
.action-card.success .action-icon { background: var(--gomes-success); }
.action-icon svg { width: 1.35rem; height: 1.35rem; }
.action-copy { min-width: 0; }
.action-copy strong { display: block; color: var(--gomes-blue); font-size: 1rem; }
.action-copy span { display: block; margin-top: .12rem; color: var(--gomes-muted); font-size: .82rem; }
.action-arrow { margin-left: auto; color: var(--gomes-blue); font-size: 1.2rem; }

.info-grid { display: grid; gap: 1rem; padding-block: 0 2.25rem; }
.surface-card { padding: 1.1rem; color: var(--gomes-ink); background: rgba(244,234,255,.96); border: 1px solid rgba(244,234,255,.8); border-radius: var(--gomes-radius); box-shadow: var(--gomes-shadow-sm); }
.surface-card .section-title { color: var(--gomes-blue); }
.surface-card h2, .surface-card h3 { margin: 0; color: var(--gomes-blue); }
.surface-card p { margin: .65rem 0 0; color: var(--gomes-muted); }
.address-link { display: inline-flex; align-items: flex-start; gap: .55rem; margin-top: .75rem; color: var(--gomes-blue); font-weight: 700; text-decoration: none; }
.address-link svg { width: 1.2rem; flex: 0 0 auto; margin-top: .1rem; }
.hours-list { display: grid; gap: .2rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .1rem; border-bottom: 1px dashed rgba(12,44,117,.13); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-weight: 700; }
.hours-list .time { color: var(--gomes-muted); text-align: right; }

.site-footer { padding-block: 1.4rem 1.7rem; color: var(--gomes-ink); background: #fff; border-top: 1px solid rgba(12,44,117,.14); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.footer-inner p { margin: 0; font-size: .82rem; opacity: .86; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.footer-links a { color: var(--gomes-blue); font-size: .82rem; text-decoration: none; opacity: .9; }
.footer-links a:hover { opacity: 1; color: var(--gomes-orange); text-decoration: underline; }

/* Encarte viewer: the same blue canvas keeps the flyer and the brand in one visual system. */
.viewer-page { color: var(--gomes-light); background: var(--gomes-blue); }
.viewer-page .site-header { position: relative; background: rgba(12,44,117,.97); border-bottom-color: rgba(244,234,255,.2); }
.viewer-page .brand, .viewer-page .menu-toggle, .viewer-page .site-nav a { color: var(--gomes-light); }
.viewer-page .brand-wordmark { color: var(--gomes-light); }
.viewer-wrap { width: min(100%, 100rem); margin-inline: auto; }
.viewer-toolbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: .5rem; min-height: 3.7rem; padding: .55rem .75rem; color: var(--gomes-light); background: rgba(12,44,117,.97); border-bottom: 1px solid rgba(244,234,255,.2); backdrop-filter: blur(12px); }
.viewer-toolbar .toolbar-title { margin-right: auto; min-width: 0; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-toolbar .page-count { color: rgba(244,234,255,.78); font-size: .86rem; }
.viewer-toolbar .btn { min-height: 2.4rem; padding: .5rem .66rem; color: var(--gomes-light); background: rgba(244,234,255,.1); border-color: rgba(244,234,255,.24); }
.viewer-toolbar .btn:hover { color: var(--gomes-ink); background: var(--gomes-light); }
.viewer-toolbar .btn.accent { color: var(--gomes-ink); background: var(--gomes-orange); border-color: var(--gomes-orange); }
.viewer-toolbar-actions { display: flex; align-items: center; gap: .5rem; }
.viewer-primary-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title count back" "actions actions actions"; gap: .45rem .65rem; }
.viewer-primary-toolbar .toolbar-title { grid-area: title; }
.viewer-primary-toolbar .page-count { grid-area: count; }
.viewer-primary-toolbar .toolbar-back { grid-area: back; min-width: 2.75rem; padding: .5rem; }
.viewer-primary-toolbar .viewer-toolbar-actions { grid-area: actions; }
.viewer-primary-toolbar .viewer-toolbar-actions .btn { flex: 1 1 0; min-width: 0; min-height: 2.75rem; padding: .65rem .5rem; font-size: .88rem; white-space: nowrap; }
.viewer-primary-toolbar .toolbar-label { display: inline; }
.viewer-controls { position: static; flex-wrap: wrap; justify-content: center; }
.viewer-main { position: relative; display: grid; min-height: calc(100dvh - 7.1rem); place-items: center; padding: .75rem .75rem 5.2rem; overflow: hidden; }
.viewer-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: min(74dvh, 62rem); overflow: hidden; touch-action: none; }
.viewer-image-wrap { display: grid; place-items: center; max-width: 100%; max-height: min(76dvh, 70rem); transform: translate3d(0,0,0) scale(1); transform-origin: center center; transition: transform .18s ease; will-change: transform; }
.viewer-image-wrap.is-panning { transition: none; }
.viewer-image { display: block; width: auto; max-width: 100%; max-height: min(76dvh, 70rem); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer-empty { max-width: 28rem; padding: 2rem 1rem; color: rgba(244,234,255,.88); text-align: center; }
.viewer-empty h1 { margin: 0 0 .4rem; color: var(--gomes-light); font-family: "Cooper Black", Georgia, serif; font-size: 1.8rem; }
.viewer-empty p { margin: 0; }
.viewer-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 2.75rem; height: 3.6rem; color: var(--gomes-light); background: rgba(56,56,56,.72); border: 1px solid rgba(244,234,255,.42); border-radius: .7rem; transform: translateY(-50%); }
.viewer-nav:hover { color: var(--gomes-ink); background: var(--gomes-orange); border-color: var(--gomes-orange); }
.viewer-nav.prev { left: .55rem; }
.viewer-nav.next { right: .55rem; }
.viewer-nav svg { width: 1.5rem; height: 1.5rem; }
.viewer-bottom { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; padding: .55rem .65rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(12,44,117,.98); border-top: 1px solid rgba(244,234,255,.2); }
.thumbs { display: flex; gap: .5rem; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.thumb { position: relative; flex: 0 0 auto; width: 3.5rem; height: 4.6rem; padding: 0; overflow: hidden; background: var(--gomes-ink); border: 2px solid transparent; border-radius: .42rem; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--gomes-orange); box-shadow: 0 0 0 2px rgba(237,51,29,.28); }
.thumb-index { position: absolute; right: .18rem; bottom: .12rem; min-width: 1.1rem; padding: .05rem .2rem; color: var(--gomes-light); background: rgba(12,44,117,.88); border-radius: .25rem; font-size: .68rem; }
.viewer-hint { display: none; color: rgba(244,234,255,.7); font-size: .76rem; text-align: center; }
[data-encarte-viewer].is-fullscreen-fallback { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--gomes-blue); }
[data-encarte-viewer].is-fullscreen-fallback .viewer-main { flex: 1; min-height: 0; }

/* The viewer is a bounded flex column: the image uses the space left after
   the top actions, controls, and thumbnail rail. This keeps controls above
   the rail on every viewport and prevents the rail from covering the page. */
.viewer-page .site-footer { display: none; }
.viewer-page .viewer-wrap { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.viewer-page .viewer-primary-toolbar { flex: 0 0 auto; }
.viewer-page .viewer-main { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-height: 0; padding: .35rem .75rem; overflow: hidden; }
.viewer-page .viewer-stage { flex: 1 1 0; width: 100%; min-height: 0; height: auto; }
.viewer-page .viewer-image-wrap { max-width: 100%; max-height: 100%; }
.viewer-page .viewer-image { max-width: 100%; max-height: 100%; }
.viewer-page .viewer-controls { position: static; z-index: auto; flex: 0 0 auto; }
.viewer-page .viewer-bottom { position: static; z-index: auto; right: auto; bottom: auto; left: auto; width: 100%; flex: 0 0 auto; transform: none; }
/* Bound the viewer to the viewport so a portrait sheet cannot restore its
   intrinsic height and push the controls/thumbnail rail below the fold. */
.viewer-page .site-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.viewer-page .viewer-wrap { height: 100%; max-height: 100%; overflow: hidden; }
.viewer-page .viewer-stage { position: relative; height: 100%; max-height: 100%; overflow: hidden; }
.viewer-page .viewer-image-wrap { position: absolute; inset: 0; width: auto; height: auto; max-width: none; max-height: none; min-width: 0; min-height: 0; }
.viewer-page .viewer-image { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 19.5rem); object-fit: contain; }
.viewer-page .viewer-bottom { overflow: hidden; }

@media (max-width: 51.99rem) {
  /* Reserve the compact header, action bar, controls and thumbnails before
     scaling the portrait sheet on a phone. */
  .viewer-page .viewer-image { max-height: calc(100dvh - 21rem); }
}

/* Admin — blue foundation with light surfaces for a focused editing workspace. */
.admin-page { color: var(--gomes-ink); background: radial-gradient(circle at 96% -12%, rgba(237,51,29,.2), transparent 30rem), var(--gomes-blue); }
.admin-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.admin-sidebar { display: none; color: #fff; background: var(--gomes-ink); }
.admin-brand { display: flex; align-items: center; gap: .65rem; padding: 1.15rem 1.1rem; color: #fff; text-decoration: none; }
.admin-brand img { width: auto; height: 2.45rem; }
.admin-brand span { font-family: "Cooper Black", Georgia, serif; font-size: 1rem; line-height: 1; }
.admin-nav { display: grid; gap: .2rem; padding: .65rem; }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem; color: rgba(255,255,255,.82); border-radius: .58rem; font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.admin-nav svg { width: 1.1rem; height: 1.1rem; }
.admin-content { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 4.2rem; gap: .8rem; padding: .7rem 1rem; background: var(--gomes-light); border-bottom: 1px solid rgba(244,234,255,.45); }
.admin-topbar h1 { margin: 0; color: var(--gomes-blue); font-size: 1.3rem; }
.admin-top-actions { display: flex; align-items: center; gap: .45rem; }
.admin-page .admin-topbar .btn-outline,
.admin-page .admin-card .btn-outline { color: var(--gomes-blue); background: transparent; border-color: rgba(12,44,117,.28); }
.admin-page .admin-topbar .btn-outline:hover,
.admin-page .admin-card .btn-outline:hover { color: #fff; background: var(--gomes-blue); border-color: var(--gomes-blue); }
.admin-main { width: min(100% - 2rem, 77rem); margin-inline: auto; padding-block: 1.2rem 2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.stat-card { padding: .85rem; background: var(--gomes-light); border: 1px solid rgba(244,234,255,.72); border-radius: .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.stat-card .label { display: block; color: var(--gomes-muted); font-size: .76rem; font-weight: 700; }
.stat-card .value { display: block; margin-top: .15rem; color: var(--gomes-blue); font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.metric-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .7rem; }
.metric-period { display: grid; gap: .1rem; padding: .7rem .75rem; color: var(--gomes-ink); background: var(--gomes-light); border: 1px solid rgba(244,234,255,.72); border-radius: .7rem; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.metric-period span, .metric-period small { color: var(--gomes-ink); font-size: .72rem; font-weight: 700; }
.metric-period strong { color: var(--gomes-blue); font-size: 1.25rem; line-height: 1.1; }
.admin-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.admin-card { padding: 1rem; background: var(--gomes-light); border: 1px solid rgba(244,234,255,.72); border-radius: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.admin-card h2 { margin: 0; color: var(--gomes-blue); font-size: 1.15rem; }
.admin-card p { margin: .35rem 0 0; color: var(--gomes-muted); font-size: .9rem; }
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.page-card { min-width: 0; overflow: hidden; background: #fbfbfd; border: 1px solid #e5e6ee; border-radius: .7rem; }
.page-card.is-dragging { opacity: .45; }
.page-card-image { aspect-ratio: 4 / 5; background: #e5e6ee; }
.page-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-card-body { display: grid; gap: .25rem; padding: .65rem; }
.page-card-body strong { color: var(--gomes-blue); font-size: .9rem; }
.page-card-body > span { overflow: hidden; color: var(--gomes-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.page-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.page-card-actions .btn { min-height: 2rem; padding: .35rem .45rem; font-size: .72rem; }
.steps { display: grid; gap: .65rem; margin: 1rem 0; padding-left: 1.35rem; color: var(--gomes-muted); font-size: .88rem; }
.admin-shortcuts { display: grid; gap: .5rem; margin-top: 1rem; }
.metric-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.metric-chip { display: inline-flex; align-items: baseline; gap: .3rem; padding: .5rem .65rem; color: var(--gomes-blue); background: rgba(12,44,117,.07); border-radius: .55rem; font-size: .78rem; }
.metric-chip strong { font-size: 1rem; }
.metric-chart { display: grid; gap: .38rem; margin: 1rem 0; }
.metric-bar-row { display: grid; grid-template-columns: 4.8rem 1fr 3rem; align-items: center; gap: .55rem; font-size: .72rem; }
.metric-bar-row > span { color: var(--gomes-muted); }
.metric-bar { height: .55rem; overflow: hidden; background: #ececf2; border-radius: 99px; }
.metric-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--gomes-blue),var(--gomes-orange)); border-radius: inherit; }
.metric-bar-row strong { color: var(--gomes-blue); text-align: right; }
.form-grid { display: grid; gap: .8rem; margin-top: 1rem; }
.form-group { display: grid; gap: .32rem; }
.form-group label { color: var(--gomes-ink); font-size: .86rem; font-weight: 900; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 2.75rem; padding: .62rem .72rem; color: var(--gomes-ink); background: #fff; border: 1px solid #d7d9e2; border-radius: .55rem; }
.form-group textarea { min-height: 6rem; resize: vertical; }
.form-help { color: var(--gomes-muted); font-size: .76rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.dropzone { display: grid; place-items: center; min-height: 10rem; padding: 1.5rem 1rem; color: var(--gomes-blue); background: rgba(12,44,117,.035); border: 2px dashed rgba(12,44,117,.28); border-radius: .8rem; text-align: center; transition: background .2s ease, border-color .2s ease; }
.dropzone.is-dragover { background: rgba(237,51,29,.08); border-color: var(--gomes-orange); }
.dropzone strong { display: block; font-size: 1rem; }
.dropzone span { display: block; margin-top: .25rem; color: var(--gomes-muted); font-size: .82rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-list { display: grid; gap: .55rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.file-item { display: flex; align-items: center; gap: .6rem; padding: .55rem; background: #fbfbfd; border: 1px solid #e5e6ee; border-radius: .55rem; }
.file-item[draggable="true"] { cursor: grab; }
.file-item.is-dragging { opacity: .45; }
.file-item-thumb { width: 2.8rem; height: 3.4rem; flex: 0 0 auto; object-fit: cover; border-radius: .3rem; background: #e5e6ee; }
.file-item-name { min-width: 0; color: var(--gomes-ink); font-size: .84rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-meta { display: block; color: var(--gomes-muted); font-size: .72rem; font-weight: 400; }
.file-item-remove { margin-left: auto; color: var(--gomes-danger); background: transparent; border: 0; font-size: .82rem; font-weight: 900; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td { padding: .65rem .55rem; border-bottom: 1px solid #e5e6ee; text-align: left; white-space: nowrap; }
.data-table th { color: var(--gomes-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.notice { padding: .75rem .85rem; color: var(--gomes-blue); background: rgba(12,44,117,.07); border-left: 3px solid var(--gomes-blue); border-radius: .35rem; font-size: .86rem; }
.notice.success { color: var(--gomes-blue); background: rgba(12,44,117,.08); border-left-color: var(--gomes-blue); }
.notice.error { color: var(--gomes-orange); background: rgba(237,51,29,.08); border-left-color: var(--gomes-orange); }

@media (max-width: 26rem) {
  .viewer-toolbar { gap: .3rem; padding-inline: .45rem; }
  .viewer-controls .toolbar-label { display: none; }
  .viewer-toolbar .btn { min-width: 2.35rem; padding-inline: .5rem; justify-content: center; }
  .viewer-toolbar .page-count { font-size: .76rem; }
  .viewer-controls { gap: .35rem; }
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

@media (min-width: 36rem) {
  .container { width: min(100% - 3rem, var(--gomes-max-width)); }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-main { padding-inline: 1.5rem; }
  .viewer-primary-toolbar { display: flex; gap: .65rem; }
  .viewer-primary-toolbar .viewer-toolbar-actions .btn { flex: 0 0 auto; padding-inline: .8rem; }
  .thumb { width: 4rem; height: 5.25rem; }
  .admin-main { width: min(100% - 3rem, 77rem); }
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 52rem) {
  .brand img { height: 3.1rem; }
  .brand img.brand-mark { width: 3.5rem; height: 3.5rem; }
  .menu-toggle { display: none; }
  .site-nav { display: flex; }
  .mobile-menu { display: none !important; }
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr); gap: 3rem; padding-block: 3.5rem 4.5rem; }
  .hero-copy { order: 1; }
  .hero-art { order: 2; padding: .75rem; }
  .action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .action-card { display: grid; align-content: start; min-height: 10.5rem; }
  .action-arrow { display: none; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .surface-card { padding: 1.4rem; }
  .admin-shell { grid-template-columns: 15rem minmax(0, 1fr); }
  .admin-sidebar { display: block; }
  .admin-topbar { padding-inline: 1.5rem; }
  .admin-main { padding-block: 1.5rem 3rem; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
  .admin-grid.cols-2 { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); }
  .page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 72rem) {
  .viewer-main { padding-inline: 3rem; }
  .viewer-nav.prev { left: 1.2rem; }
  .viewer-nav.next { right: 1.2rem; }
  .viewer-bottom { right: 50%; left: 50%; width: min(100% - 6rem, 80rem); transform: translateX(-50%); border-right: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
  .thumb { width: 4.25rem; height: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


