/* Main-site redesign 2026-11-19: cross-links, status strip, 390px overflow fixes. */

/* About is hidden on the phone nav so Academy can fit (approved). */
@media (max-width: 720px) {
  .nav li.hide-narrow { display: none; }
  .nav { font-size: 12px; }
  .nav a { white-space: nowrap; padding: 0 3px; }
}

/* Learn the basics card */
.learn-basics-card { margin-top: 0; }
.learn-basics-body { display: block; padding: 18px 20px 22px; max-width: 40rem; }
.learn-basics-body p { margin: 0 0 .75rem; font-size: 15px; color: var(--ink); line-height: 1.55; }
.learn-basics-body p:last-child { margin-bottom: 0; }
.learn-basics-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: 14px;
  border-radius: 2px; letter-spacing: -.01em;
}
.learn-basics-btn:hover { background: var(--forest); color: var(--on-forest); }

/* Learn how this works — Threat Watch section heads */
.sec-head { align-items: center; }
.learn-how {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; letter-spacing: -.01em;
  color: var(--forest); text-decoration: none;
  border: 1px solid var(--rule); background: var(--surface);
  border-radius: 999px; padding: 0 12px; min-height: 36px; white-space: nowrap;
}
:root[data-theme=dark] .learn-how, html[data-theme=dark] .learn-how { color: var(--accent); }
.learn-how:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.learn-how .arr { font-size: 13px; }
@media (max-width: 700px) {
  .sec-head .learn-how { min-height: 40px; white-space: normal; }
}

/* Shared footer */
footer.sb-shared { border-top: 1px solid var(--rule); background: var(--bg, transparent); color: var(--ink); padding: 1.75rem 0 1.25rem; font-size: .9rem; }
.sb-shared .sb-shared-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: flex-start; justify-content: space-between; max-width: 68rem; margin: 0 auto; padding: 0 max(1.25rem, env(safe-area-inset-left)); }
.sb-shared-brand { display: flex; align-items: center; gap: .7rem; min-width: 12rem; }
.sb-shared-brand img { width: 22px; height: 22px; flex: none; }
.sb-shared-brand .wordmark { font-weight: 600; letter-spacing: -.02em; font-size: .95rem; color: var(--ink); }
.sb-shared-tag { color: var(--muted); font-size: .75rem; margin-top: .15rem; letter-spacing: .01em; max-width: 22rem; }
.sb-shared-links { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; align-items: center; }
.sb-shared-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .85rem; display: inline-flex; align-items: center; min-height: 44px; }
.sb-shared-links a:hover { color: var(--accent, #1F5F4A); text-decoration: underline; text-underline-offset: 3px; }
.sb-shared-meta { color: var(--muted); font-size: .8rem; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; text-align: right; }
.sb-shared-meta a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.sb-shared-meta a:hover { color: var(--accent, #1F5F4A); }
.sb-shared-ops { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding-top: .3rem; border-top: 1px solid var(--rule); margin-top: .3rem; }
.sb-shared-ops a { color: var(--muted); text-decoration: none; font-size: .75rem; display: inline-flex; align-items: center; min-height: 36px; }
.sb-shared-ops a:hover { color: var(--ink); }
.footer-beta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--terra); color: var(--terra-text); padding: 1px 5px; line-height: 1.2; }
@media (max-width: 600px) {
  .sb-shared-meta { align-items: flex-start; text-align: left; }
  .sb-shared-inner { flex-direction: column; gap: .6rem; }
}

/* Status strip (static, clickable; numbers injected at build time) */
.sb-strip {
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt, var(--bg));
  min-height: 44px; padding: 0;
  font-size: 12px; color: var(--ink);
}
.sb-strip-label {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: .2rem 0 .2rem max(1.25rem, env(safe-area-inset-left));
}
.sb-strip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--forest); flex: none;
  box-shadow: 0 0 0 3px rgba(31,95,74,.18);
}
:root[data-theme=dark] .sb-strip-dot, html[data-theme=dark] .sb-strip-dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(59,168,143,.22); }
.sb-strip-track { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.sb-strip-track::-webkit-scrollbar { height: 0; }
.sb-strip-items { display: flex; align-items: stretch; min-width: min-content; list-style: none; margin: 0; padding: 0; }
.sb-strip-items li { display: flex; align-items: stretch; border-left: 1px solid var(--rule); }
.sb-strip-items a {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  text-decoration: none; color: inherit; padding: .45rem .95rem; min-height: 44px; white-space: nowrap;
}
.sb-strip-items a:hover { background: var(--surface); color: var(--accent); }
.sb-strip-k { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-strip-v { font-size: 13px; font-weight: 550; letter-spacing: -.01em; color: var(--ink); }
.sb-strip-items a.is-new .sb-strip-v { color: var(--terra-text); }
@media (max-width: 720px) {
  .sb-strip { gap: .5rem; }
  .sb-strip-label span:not(.sb-strip-dot) { display: none; }
  .sb-strip-items a { padding: .4rem .8rem; }
}

/* Threat Watch 390px overflow / clipped vendor names */
@media (max-width: 760px) {
  .kev-list .vp { white-space: normal; overflow: visible; text-overflow: unset; }
  .bp li, [id^="tw-bp-"] { overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; box-sizing: border-box; }
}
