/* ============================================================
   Steam Finder — field-instrument theme
   Blueprint-navy canvas, copper accent, Space Grotesk for UI +
   IBM Plex Mono for every calculated/ID readout.

   All box-model spacing uses logical properties so the existing
   dir="rtl" locales (he/ar/fa/ur) mirror correctly.
   ============================================================ */

:root {
  /* -- surfaces -- */
  --ink:        #0a1120;
  --panel:      #101a2c;
  --panel-2:    #0c1626;
  --inset:      #0a1424;
  --line:       #1e2c44;
  --line-soft:  #25385a;
  --grid-line:  rgba(96, 150, 214, 0.07);

  /* -- text -- */
  --paper:      #eaf0f8;
  --muted:      #8b98b0;
  --muted-2:    #5c6a84;

  /* -- accent: copper (primary / interactive) -- */
  --copper:        #d38a4d;
  --copper-strong: #e6a165;
  --copper-ink:    #2a1305;
  --copper-wash:   rgba(211, 138, 77, 0.12);

  /* -- accent: cyan (secondary / links) -- */
  --cyan:      #4fd2c6;
  --cyan-wash: rgba(79, 210, 198, 0.1);

  /* -- semantic -- */
  --danger:      #ef5f5f;
  --danger-wash: rgba(239, 95, 95, 0.12);
  --amber:       #eab35a;
  --amber-wash:  rgba(234, 179, 90, 0.12);
  --success:     #3ed399;
  --success-wash:rgba(62, 211, 153, 0.12);

  /* -- type -- */
  --font-ui:   'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* -- geometry -- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --nav-h: 52px;

  --nav-bg:      rgba(10, 17, 32, 0.86);
  --hover-line:  #2a3a56;
  --btn-hover-bg: #142033;
  --shadow-card: 0 16px 44px -20px rgba(0, 0, 0, 0.65);
}

/* Light mode: keep the instrument identity, just lift the surfaces.
   Toggled via <html data-theme="light">, set before first paint. */
[data-theme="light"] {
  --ink:       #eef1f6;
  --panel:     #ffffff;
  --panel-2:   #f4f6fa;
  --inset:     #eef1f7;
  --line:      #d7dee9;
  --line-soft: #e2e8f1;
  --grid-line: rgba(51, 90, 148, 0.06);

  --paper:     #121a29;
  --muted:     #55627a;
  --muted-2:   #6f7b92;

  --copper-wash: rgba(211, 138, 77, 0.14);

  --nav-bg:      rgba(255, 255, 255, 0.86);
  --hover-line:  #c2ccdb;
  --btn-hover-bg: #e9eef5;
  --shadow-card: 0 8px 32px -10px rgba(16, 30, 55, 0.16);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  color-scheme: dark;
}
html[data-theme="light"] {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink);
  /* blueprint grid, fixed so it frames the whole page */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, p {
  font-family: var(--font-ui);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  color: var(--copper-strong);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--copper-wash);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Icons                                                                   */
/* ---------------------------------------------------------------------- */

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-lg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------- */
/* Top navigation                                                          */
/* ---------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1rem;
  max-width: var(--container);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--paper);
  text-decoration: none;
  margin-inline-end: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--copper-strong);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  /* fallback tile in case BRAND_LOGO_URL / brand-mark.svg fails to load */
  background: linear-gradient(155deg, var(--copper), #a85f28);
}
.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

/* theme toggle — square control, no border radius */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--copper);
  border-color: var(--copper);
}
.theme-toggle .icon {
  width: 15px;
  height: 15px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------------------------------------------------------------------- */
/* Page shell                                                              */
/* ---------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem 1.1rem 2.25rem;
}

.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Panels                                                                  */
/* ---------------------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.panel + .panel {
  margin-top: 0.85rem;
}
/* inside a gapped flex column the gap already spaces these out */
.results-col > .panel + .panel {
  margin-top: 0;
}

.badge-list {
  display: grid;
  gap: 0.4rem;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.panel-title h2 {
  font-size: 0.98rem;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.panel-title h2 .icon {
  color: var(--copper);
  width: 15px;
  height: 15px;
}

/* readout panel — instrument display with corner drafting brackets */
.readout-panel {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
}
.readout-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  pointer-events: none;
}
.readout-panel > * {
  position: relative;
}

/* ---------------------------------------------------------------------- */
/* Alerts / flash messages                                                 */
/* ---------------------------------------------------------------------- */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.flash .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.flash-msg { flex: 1 1 auto; }
.flash.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.flash-error {
  background: var(--danger-wash);
  border-color: rgba(239, 95, 95, 0.35);
  color: #ffb3b3;
}
.flash-success {
  background: var(--success-wash);
  border-color: rgba(62, 211, 153, 0.35);
  color: #a8f2d6;
}
[data-theme="light"] .flash-error { color: #a92b2b; }
[data-theme="light"] .flash-success { color: #10714c; }

.flash-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.flash-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .flash-close:hover { background: rgba(0, 0, 0, 0.05); }

/* the landing support banner */
.support-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 210, 198, 0.3);
  background: var(--cyan-wash);
  color: #b6f0ea;
}
[data-theme="light"] .support-banner { color: #0d6a63; }
.support-banner .icon-lg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.support-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: inherit;
}
.support-text {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- */
/* Search field                                                            */
/* ---------------------------------------------------------------------- */

.field {
  margin-bottom: 0.95rem;
}
.field:last-child { margin-bottom: 0; }

.field label,
.search-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.search-field {
  display: flex;
  gap: 0.5rem;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.search-icon {
  position: absolute;
  inset-inline-start: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
  z-index: 1;
  display: inline-flex;
}
.search-icon .icon {
  width: 15px;
  height: 15px;
}

.search-input {
  width: 100%;
  min-width: 0;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem 0.55rem 2.05rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[dir="rtl"] .search-input {
  padding: 0.55rem 2.05rem 0.55rem 0.7rem;
}
.search-input::placeholder {
  color: var(--muted-2);
  opacity: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.search-input:hover { border-color: var(--hover-line); }
.search-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-wash);
}
.search-input:focus-visible {
  outline: none;
}

.field-note {
  font-size: 0.73rem;
  color: var(--muted-2);
  margin-top: 0.28rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}
.btn:hover {
  border-color: var(--hover-line);
  background: var(--btn-hover-bg);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--copper-ink);
}
.btn-primary:hover {
  background: var(--copper-strong);
  border-color: var(--copper-strong);
  color: var(--copper-ink);
}

.btn-ghost {
  background: transparent;
}

.search-submit {
  flex-shrink: 0;
  padding-inline: 1.1rem;
}

/* ---------------------------------------------------------------------- */
/* Badges                                                                  */
/* ---------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.is-online,
.badge-good {
  color: var(--success);
  background: var(--success-wash);
  border-color: rgba(62, 211, 153, 0.35);
}
.is-online .status-dot {
  animation: pulse 2.2s ease-out infinite;
}
.is-offline {
  color: var(--muted);
  background: rgba(139, 152, 176, 0.12);
  border-color: rgba(139, 152, 176, 0.3);
}
.is-busy,
.badge-bad {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(239, 95, 95, 0.35);
}
.is-away,
.badge-warn {
  color: var(--amber);
  background: var(--amber-wash);
  border-color: rgba(234, 179, 90, 0.35);
}
[data-theme="light"] .is-online,
[data-theme="light"] .badge-good { color: #10714c; }
[data-theme="light"] .is-busy,
[data-theme="light"] .badge-bad { color: #a92b2b; }
[data-theme="light"] .is-away,
[data-theme="light"] .badge-warn { color: #8a5b06; }
[data-theme="light"] .is-offline { color: var(--muted); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(62, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 211, 153, 0); }
}

/* badge-style value row (profile state, safety) */
.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--inset);
}
.badge-row-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- */
/* Readouts (the "instrument display")                                      */
/* ---------------------------------------------------------------------- */

.readout-grid {
  display: grid;
  gap: 0.4rem;
}

.readout {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.42rem 0.7rem;
}
.readout .r-label {
  font-size: 0.71rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
  line-height: 1.35;
}
.readout .r-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------- */
/* Profile header                                                          */
/* ---------------------------------------------------------------------- */

.profile-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.avatar-link {
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius-md);
}
.avatar-link:hover { text-decoration: none; }

.avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.avatar-link:hover .avatar {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.profile-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-name-link {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-name-link:hover {
  color: var(--copper-strong);
  text-decoration: none;
}
.profile-name-link .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.profile-realname {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Results layout                                                          */
/* ---------------------------------------------------------------------- */

.results-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.results-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* ---------------------------------------------------------------------- */
/* Copy rows (readout + copy control)                                       */
/* ---------------------------------------------------------------------- */

.copy-row {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.copy-row:hover {
  border-color: var(--hover-line);
}
.copy-row.is-copied {
  border-color: var(--success);
  background: linear-gradient(180deg, var(--success-wash), var(--inset) 70%);
}

.copy-row-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.copy-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-empty {
  flex: 1 1 auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.98rem;
}

.copy-link,
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 26px;
  padding-inline: 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.copy-link:hover,
.copy-btn:hover {
  color: var(--copper);
  border-color: var(--copper);
  background: var(--copper-wash);
}
.copy-link .icon,
.copy-btn .icon {
  width: 14px;
  height: 14px;
}

.copy-btn .icon-check,
.copy-btn .copy-btn-text {
  display: none;
}
.copy-btn.is-copied {
  color: var(--success);
  border-color: var(--success);
  background: var(--success-wash);
}
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: inline-block; }
.copy-btn.is-copied .copy-btn-text { display: inline-block; }
.copy-btn-text {
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Landing (welcome)                                                       */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 0.25rem 0 0;
}
.hero .kicker {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.hero h1 {
  font-size: 1.75rem;
  color: #fff;
  max-width: 20ch;
}
[data-theme="light"] .hero h1 { color: #0a1120; }
.hero p {
  color: var(--muted);
  margin-top: 0.55rem;
  max-width: 58ch;
  font-size: 0.9rem;
}

.landing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.landing-card-head {
  margin-bottom: 0.7rem;
}
.landing-card-head h2 {
  font-size: 0.98rem;
  color: var(--paper);
  margin-bottom: 0.25rem;
}
.landing-card-head p {
  color: var(--muted);
  font-size: 0.82rem;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--copper-strong);
  background: var(--copper-wash);
  border: 1px solid rgba(211, 138, 77, 0.28);
}
[data-theme="light"] .chip { color: #9a5a22; }

.chip-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--inset);
  border: 1px solid var(--line);
}
.chip-field .icon {
  color: var(--success);
  width: 13px;
  height: 13px;
}

/* ---------------------------------------------------------------------- */
/* Toast                                                                   */
/* ---------------------------------------------------------------------- */

.toast-host {
  position: fixed;
  inset-inline-start: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
[dir="rtl"] .toast-host { transform: translateX(50%); }

.toast {
  background: var(--panel);
  border: 1px solid var(--copper);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem 1.1rem;
  color: var(--muted-2);
  font-size: 0.76rem;
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-inner a:hover { color: var(--copper); }
.footer-inner .icon {
  width: 14px;
  height: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* ---------------------------------------------------------------------- */
/* Error pages (resources/views/errors/*)                                  */
/* ---------------------------------------------------------------------- */

.mono { font-family: var(--font-mono); }

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
  .results-grid,
  .landing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.6rem; }
}

@media (max-width: 720px) {
  .shell { padding: 1.25rem 1rem 2.5rem; }

  .search-field { flex-direction: column; }
  .search-submit {
    width: 100%;
    padding-block: 0.65rem;
  }

  .profile-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .profile-title-row { justify-content: center; }
  .profile-actions { justify-content: center; }
  .profile-name { font-size: 1.2rem; }

  .panel,
  .readout-panel { padding: 0.85rem; }
  .readout-panel::before { inset: 7px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Print                                                                   */
/* ---------------------------------------------------------------------- */

@media print {
  .site-nav, .site-footer, .search-panel, .toast-host, .copy-btn, .copy-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .panel, .readout-panel, .readout {
    border-color: #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
}
