/* Shared by all pages: the top nav and the shop icon tile. Colors come from each page's :root tokens. */

/* Shop icon: identical container for every shop (favicons vary wildly); monogram when missing. */
.icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--raised, var(--surface)); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--text); }
.icon img { width: 100%; height: 100%; object-fit: contain; }

/* Nav: "myLocal (home) by [OmniVault pill]" · Search / Events / For shops · "Viewing as {shop}" on personal links. Not sticky:
   the dashboard banner and the search page's side panel already are. */
.topnav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding: 12px var(--gutter); border-bottom: 1px solid var(--border); }
/* Both links glow the page's cyan on hover/focus: text-shadow for the name, drop-shadow so the pill's glow follows its shape. */
.wordmark { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); font-size: 14px; }
.wordmark a { transition: color 0.15s, text-shadow 0.15s, filter 0.15s; }
.wordmark .home { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.wordmark .home:hover, .wordmark .home:focus-visible { color: var(--cyan); text-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 70%, transparent); }
.wordmark .ov { display: flex; border-radius: 6px; }
.wordmark .ov img { display: block; height: 22px; width: auto; }
.wordmark .ov:hover, .wordmark .ov:focus-visible { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 80%, transparent)); }
.topnav nav { display: flex; gap: 24px; }
.topnav nav a { color: var(--cyan); text-decoration: none; font-size: 15px; padding: 8px 0; }
.topnav nav a:hover { text-decoration: underline; }
.topnav nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px var(--cyan); text-decoration: none; }
.viewing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.viewing b { color: var(--text); }
.viewing .icon { flex-basis: 24px; width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.viewing i { font-style: normal; }
.viewing .p { display: none; }

/* Phones: wordmark + shop icon on row 1, links on row 2. */
@media (max-width: 479px) {
  .viewing .label { display: none; }
  .topnav nav { order: 3; width: 100%; }
}

/* Paper: identity stays, links go; "Viewing as" reads "Prepared for". */
@media print {
  .topnav { padding: 0 0 8pt; }
  .topnav nav { display: none; }
  .viewing .v { display: none; }
  .viewing .p { display: inline; }
}

/* Footer: parent-site pattern (omnivault.cards). Link underlined so it isn't distinguished by color alone. */
.sitefoot { margin-top: 48px; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; text-align: center; }
.sitefoot p { margin: 0 auto 6px; max-width: 70ch; }
.sitefoot p:first-child { max-width: none; }
.sitefoot .nowrap { white-space: nowrap; }
.sitefoot .fine { font-size: 13px; margin-bottom: 0; }
.sitefoot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sitefoot a:hover { color: var(--cyan); }
@media print { .sitefoot { display: none; } }

/* Cookie consent (ui.js): bottom card until the visitor picks. Never on paper. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); color: var(--text); font-size: 14px; }
.consent p { flex: 1 1 220px; margin: 0; }
.consent div { display: flex; gap: 8px; }
.consent button { height: 40px; padding: 0 16px; border: 1px solid var(--cyan); border-radius: 10px; background: var(--cyan); color: var(--bg); font: 700 14px 'Nimbus', sans-serif; cursor: pointer; }
.consent .decline { border-color: var(--border); background: transparent; color: var(--text); }
@media print { .consent { display: none; } }
