/* ============================================================
   Safety Sentinel — WordPress layer
   Everything the CMS renders that the static design system did
   not have to account for: editor content, forms that actually
   post, pagination, search, post cards and empty states.
   Loaded after site.css; deliberately small.
   ============================================================ */

/* ---- Editor / post content -------------------------------- */
/* site.css hides every list inside .wrap (the marketing pages use
   custom check-lists). Author-written content needs real lists back. */
.ss-prose ul,
.ss-prose ol { display: block; margin: 0 0 20px 22px; }
.ss-prose li { margin-bottom: 8px; color: var(--ink); }
.ss-prose > *:last-child { margin-bottom: 0; }
.ss-prose p { margin-bottom: 20px; color: var(--grey); font-size: 17px; }
.ss-prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; }
.ss-prose h3 { font-size: 22px; margin: 32px 0 12px; }
.ss-prose h4 { font-size: 18px; margin: 26px 0 10px; }
.ss-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ss-prose a:hover { color: var(--azure); }
.ss-prose img,
.ss-prose figure { border-radius: var(--radius); margin: 26px 0; }
.ss-prose blockquote {
  margin: 26px 0; padding: 18px 24px;
  background: var(--bg2); border-left: 3px solid var(--azure);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy); font-size: 18px;
}
.ss-prose code,
.ss-prose pre {
  background: var(--bg2); border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
}
.ss-prose code { padding: 2px 6px; }
.ss-prose pre { padding: 18px 20px; overflow-x: auto; margin: 24px 0; }
.ss-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.ss-prose th,
.ss-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.ss-prose th { background: var(--bg2); color: var(--navy); font-weight: 700; }
.ss-narrow { max-width: 780px; }

/* ---- Search results / generic listing ---------------------- */
.ss-results { display: flex; flex-direction: column; gap: 14px; }
.ss-result {
  display: block; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ss-result:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBDCEC; }
.ss-result h4 { font-size: 19px; margin-bottom: 6px; }
.ss-result p { color: var(--grey); font-size: 15px; margin-bottom: 10px; }
.ss-result .lm { color: var(--blue); font-weight: 600; font-size: 14px; }
.ss-list { display: block; margin: 0; padding: 0; list-style: none; }
.ss-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ss-list a { color: var(--blue); font-weight: 600; }

/* ---- Pagination ------------------------------------------- */
.ss-pagination { margin-top: 40px; }
.ss-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ss-pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  color: var(--navy); font-size: 15px; font-weight: 600; background: #fff;
}
.ss-pagination .page-numbers:hover { border-color: var(--azure); color: var(--blue); }
.ss-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Search ----------------------------------------------- */
.ss-searchbar { max-width: 520px; margin: 0 auto 34px; }
.ss-search { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-search input[type="search"] {
  flex: 1; min-width: 200px;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  padding: 12px 15px; font-family: var(--font); font-size: 15px; color: var(--ink);
}
.ss-search input[type="search"]:focus { outline: none; border-color: var(--azure); }

/* ---- Empty states ----------------------------------------- */
.ss-empty { text-align: center; color: var(--grey); font-size: 17px; padding: 30px 0; }

/* ---- Forms that post -------------------------------------- */
.ss-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ss-notice {
  background: #E6F7EF; border: 1px solid #B9E8D2; color: #14764c;
  border-radius: var(--radius-btn); padding: 12px 16px;
  font-size: 15px; margin-bottom: 18px;
}
.ss-notice--onbrand {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4);
  color: #fff; max-width: 460px; margin: 0 auto 16px;
}
.ss-newsletter { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.ss-newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: var(--radius-btn);
  padding: 13px 15px; font-family: var(--font); font-size: 15px;
}
.ss-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, .7); }
.ss-newsletter input[type="email"]:focus { outline: none; border-color: #fff; }

/* ---- Classes WordPress itself outputs ---------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip-path: none;
  z-index: 100000;
  background: #fff; color: var(--blue);
  padding: 12px 20px; border-radius: var(--radius-btn);
  font: 600 15px/1.4 var(--font);
  box-shadow: var(--shadow);
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--grey); margin-top: 8px; }

/* ---- Admin bar offset for the sticky nav ------------------- */
.admin-bar header.nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header.nav { top: 46px; } }
