/* Share pages (/share/<slug>) and the public eManifest search (/tools/emanifest-search).
   BorderConnect parity #73, 2026-11-25. Self-contained on purpose: a share
   page loads nothing from another site, so no web fonts and no icon CDN. */

.sl-page {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #f9fafb;
}
.sl-page *, .sl-page *::before, .sl-page *::after,
.sl-search *, .sl-search *::before, .sl-search *::after { box-sizing: border-box; }

.sl-top { background: #fff; border-bottom: 1px solid #e5e7eb; }
.sl-top-inner {
  max-width: 720px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; min-height: 64px;
}
.sl-top img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.sl-brand-name { font-weight: 700; font-size: 18px; color: #111827; }

.sl-main { max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; }
.sl-main h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; color: #111827; }
.sl-sub { color: #4b5563; margin: 0 0 18px; }
.sl-header-text {
  white-space: pre-line; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; color: #374151;
}

.sl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sl-tab {
  border: 1px solid #d1d5db; background: #fff; color: #374151;
  border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.sl-tab:hover { border-color: #047857; color: #047857; }
.sl-tab[aria-selected="true"] { background: #047857; border-color: #047857; color: #fff; }
.sl-tab:focus-visible, .sl-proof:focus-visible, .sl-box button:focus-visible {
  outline: 3px solid rgba(4, 120, 87, .35); outline-offset: 2px;
}

.sl-label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin: 0 0 6px; }
.sl-box {
  display: flex; background: #fff; border: 1px solid #d1d5db;
  border-radius: 10px; overflow: hidden;
}
.sl-box:focus-within { border-color: #047857; box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.sl-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: #111827;
  text-transform: uppercase;
}
.sl-box input::placeholder { text-transform: none; color: #6b7280; }
.sl-box button {
  border: 0; background: #047857; color: #fff; padding: 0 22px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.sl-box button:hover { background: #065f46; }
.sl-box button:disabled { opacity: .6; cursor: default; }

.sl-result { margin-top: 16px; }
.sl-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; }
.sl-card h2 { font-size: 15px; font-weight: 600; color: #4b5563; margin: 0 0 6px; overflow-wrap: anywhere; }
.sl-status {
  display: inline-block; font-weight: 700; font-size: 15px;
  border-radius: 6px; padding: 3px 10px; margin: 0 0 12px;
}
.sl-tone-success { background: #d1fae5; color: #065f46; }
.sl-tone-danger { background: #fee2e2; color: #991b1b; }
.sl-tone-warning { background: #fef3c7; color: #92400e; }
.sl-tone-info { background: #dbeafe; color: #1e40af; }
.sl-tone-muted { background: #f3f4f6; color: #374151; }
.sl-rows {
  margin: 0; display: grid; grid-template-columns: max-content 1fr;
  gap: 6px 16px; font-size: 15px;
}
.sl-rows dt { color: #4b5563; }
.sl-rows dd { margin: 0; color: #111827; overflow-wrap: anywhere; }
.sl-msg {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 16px; color: #374151;
}
.sl-msg-error { border-color: #fecaca; color: #991b1b; }
.sl-proof {
  margin-top: 14px; border: 1px solid #047857; background: #fff; color: #047857;
  border-radius: 8px; padding: 8px 16px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.sl-proof:hover { background: #f0fdf4; }
.sl-proof:disabled { opacity: .6; cursor: default; }

.sl-note { color: #4b5563; font-size: 13px; margin: 22px 0 0; }
.sl-foot { text-align: center; color: #6b7280; font-size: 13px; padding: 8px 16px 24px; }
.sl-foot a { color: #047857; }

@media (max-width: 480px) {
  .sl-main h1 { font-size: 22px; }
  .sl-rows { grid-template-columns: 1fr; gap: 2px; }
  .sl-rows dd { margin-bottom: 8px; }
}
