/* Site-only styles. Everything visual comes from the design system (tokens.css and mayora.css);
   this file holds the few layout helpers the screens use and the display switch in the footer. */
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.stack { display: grid; gap: 24px; }
.cap { color: var(--text-muted); font-size: 12px; line-height: 16px; font-weight: 500; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Display switch: light, dark, high contrast. Sits in the footer, on the ink band. */
.site-theme { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); flex-basis: 100%; margin-top: var(--space-4); }
.site-theme__label { margin-inline-end: var(--space-2); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--on-brand); }
.site-theme button {
  min-height: var(--target); padding: 0 var(--space-4);
  background: none; border: var(--border-thin) solid var(--on-ink-muted); border-radius: var(--radius-pill);
  color: var(--on-brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.site-theme button:hover { border-color: var(--on-brand); }
.site-theme button[aria-pressed="true"] { background: var(--on-brand); border-color: var(--on-brand); color: var(--ink-band); font-weight: 700; }
.site-theme button[aria-pressed="true"]::before { content: "✓ "; }
.myr-footer .site-theme button:focus-visible { outline-color: var(--focus-on-brand); }

/* Holding page: the Seal sits on its spot. */
.site-soon__media { display: grid; place-items: center; }
.site-soon__media .myr-spot { display: grid; place-items: center; aspect-ratio: 1; }
.site-soon__media .myr-seal { width: 62%; }

/* A filter status that takes focus after a search should not show a ring around plain text. */
[data-myr-filter-status]:focus { outline: none; }

/* A quiet maker's signature, shared across every page. */
.site-credit { max-width: var(--container); margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--sand-700); display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--on-ink-muted); }
.site-credit__seal { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid #8f7d65; border-radius: 50%; color: #d9c6a8; font-family: Georgia, serif; font-size: 12px; font-style: italic; letter-spacing: -1px; }
.site-credit p { margin: 0; font-size: 11px; line-height: 1.8; letter-spacing: .015em; }
.site-credit strong { color: var(--on-brand); font-weight: 600; }
.site-credit__intro { margin-right: 3px; }
.site-credit__divider { margin: 0 8px; color: #b4a58e; }
@media (max-width: 560px) { .site-credit { align-items: flex-start; justify-content: flex-start; gap: 10px; } .site-credit__seal { margin-top: 3px; } .site-credit__divider { display: none; } .site-credit__role { display: block; } }
[data-theme="contrast"] .site-credit__seal { border-color: currentColor; color: #fff; }

/* Let accented headings wrap without widening the mobile hero grid. */
@media (max-width: 767px) {
  .myr-pagehero { grid-template-columns: minmax(0, 1fr); }
  .myr-pagehero__text { min-width: 0; }
  .myr-smile { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

/* Keep the logo, search, and menu on one row in every display theme. */
@media (max-width: 560px) {
  .myr-header--glass .myr-navbar { column-gap: var(--space-2); }
  .myr-header--glass .myr-menubtn { margin-inline-start: 0; }
  .myr-header--glass .myr-wordmark img { height: 28px; }
  [data-theme="dark"] .myr-header--glass .myr-wordmark { padding-inline: var(--space-2); }
}
