/* Is This Link Safe
   Scoped to this page. Uses the site obsidian tokens from css/style.css. */

.ls-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4.5rem;
  color: var(--text);
}

.ls-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.ls-crumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.ls-crumb a:hover {
  color: var(--primary-soft);
}

.ls-hero {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.ls-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ls-hero h1,
.ls-block h2,
.ls-reading h3,
.ls-findings h3,
.ls-prose h2,
.ls-faq h2,
.ls-related h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-brand), Georgia, serif;
  font-weight: 600;
}

.ls-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.ls-hero p,
.ls-prose p,
.ls-explain,
.ls-heuristic,
.ls-quiet,
.ls-example-blurb,
.ls-finding p,
.ls-faq p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.ls-hero p {
  margin: 0;
}

.ls-block,
.ls-result,
.ls-figure,
.ls-related a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.ls-block {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.ls-block h2,
.ls-prose h2,
.ls-faq h2,
.ls-related h2 {
  font-size: 1.7rem;
}

.ls-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.ls-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.ls-form input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.ls-form button,
.ls-actions button,
.ls-example {
  font: inherit;
  cursor: pointer;
}

.ls-form button,
.ls-actions button {
  min-height: 52px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
}

.ls-actions button:last-child {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.ls-form button:hover,
.ls-actions button:hover,
.ls-example:hover {
  border-color: var(--primary-soft);
}

.ls-form input:focus,
.ls-form button:focus-visible,
.ls-actions button:focus-visible,
.ls-example:focus-visible,
.ls-crumb a:focus-visible,
.ls-related a:focus-visible,
.ls-prose a:focus-visible,
.ls-faq summary:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.ls-heuristic {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--primary-soft);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 0 12px 12px 0;
}

.ls-result {
  margin-top: 1rem;
  padding: 1rem;
}

.ls-result-empty {
  color: var(--text-muted);
}

.ls-result-empty p {
  margin: 0;
}

.ls-verdict {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.ls-verdict-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font), Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ls-result-ok .ls-verdict-badge {
  color: #bbf7d0;
  background: #052e16;
  border-color: #4ade80;
}

.ls-result-caution .ls-verdict-badge {
  color: #fde68a;
  background: #3a2a0a;
  border-color: #fbbf24;
}

.ls-result-danger .ls-verdict-badge {
  color: #fecaca;
  background: #3f1212;
  border-color: #f87171;
}

.ls-verdict-summary {
  color: var(--text);
  font-family: var(--font), Outfit, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.ls-reading h3,
.ls-findings h3 {
  font-size: 1.35rem;
}

.ls-bits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.8rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.ls-bit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.ls-bit-punct {
  padding-inline: 0.1rem;
  color: var(--text-faint);
  background: transparent;
}

.ls-bit-scheme,
.ls-bit-suffix,
.ls-bit-port {
  color: #e4e4e7;
  background: #27272a;
}

.ls-bit-subdomain,
.ls-bit-path,
.ls-bit-decoy {
  color: #fecaca;
  background: #3f1212;
}

.ls-bit-name,
.ls-bit-ip,
.ls-bit-at {
  color: #bbf7d0;
  background: #052e16;
}

.ls-real {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: baseline;
  margin: 0 0 0.45rem;
}

.ls-real-label {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ls-real strong {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.ls-explain {
  margin: 0;
}

.ls-finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.ls-finding {
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ls-finding-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.ls-finding h4 {
  margin: 0;
  font-size: 1.02rem;
}

.ls-finding p {
  margin: 0;
  font-size: 0.95rem;
}

.ls-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ls-finding-danger .ls-pill {
  color: #fecaca;
  background: #3f1212;
}

.ls-finding-caution .ls-pill {
  color: #fde68a;
  background: #3a2a0a;
}

.ls-finding-info .ls-pill {
  color: #e4e4e7;
  background: #27272a;
}

.ls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ls-copy-status {
  min-height: 1.4em;
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.ls-error {
  margin: 0;
  color: #fecaca;
  font-weight: 700;
}

.ls-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.ls-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.85rem;
  text-align: left;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top: 3px solid var(--border-strong);
}

.ls-example-ok {
  border-top-color: #4ade80;
}

.ls-example-caution {
  border-top-color: #fbbf24;
}

.ls-example-danger {
  border-top-color: #f87171;
}

.ls-example-kicker {
  font-weight: 800;
}

.ls-example-blurb,
.ls-example-url {
  font-size: 0.88rem;
  line-height: 1.4;
}

.ls-example-url {
  color: var(--text-faint);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  overflow-wrap: anywhere;
}

.ls-figure {
  margin: 1rem 0;
  padding: 1rem;
}

.ls-figure figcaption {
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.ls-figure p:last-child {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
}

.ls-prose,
.ls-faq,
.ls-related {
  margin-top: 1.5rem;
}

.ls-prose a,
.ls-related a {
  color: var(--primary-soft);
}

.ls-faq details {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.ls-faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ls-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.ls-related a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem;
  text-decoration: none;
  min-height: 44px;
}

.ls-related strong {
  color: var(--text);
}

.ls-related span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.ls-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .ls-page {
    padding-inline: 0.9rem;
  }

  .ls-form-row {
    grid-template-columns: 1fr;
  }

  .ls-form button,
  .ls-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-form button,
  .ls-example,
  .ls-actions button {
    transition: none;
  }
}

@media print {
  header,
  footer,
  .ls-form,
  .ls-examples,
  .ls-actions,
  .ls-crumb,
  .adsbygoogle,
  .cs-support-card {
    display: none !important;
  }

  .ls-page {
    max-width: none;
    padding: 0;
  }

  .ls-result,
  .ls-block,
  .ls-figure {
    break-inside: avoid;
  }
}
