/* SecureCoding site plugin: everything it adds or fixes. Loaded once, cached.
   Tokens follow the live site. Selectors start with "html body" where the inline
   Customizer CSS (printed later in <head>) would otherwise win. */
:root {
  --scs-ink: #222A44;
  --scs-ink-2: #3a4260;
  --scs-teal: #2F8988;
  --scs-teal-2: #246F72;
  --scs-coral: #E66F72;
  --scs-cream: #FBF7F0;
  --scs-card: #FFFDF8;
  --scs-line: #E8C9A8;
  --scs-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --scs-sans: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

/* ---------- Newsletter above the footer ---------- */
html body .scs-nl {
  background: var(--scs-cream);
  padding: 56px 20px 64px;
  border-top: 1px solid #efe3d2;
}
html body .scs-nl__in {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--scs-card);
  border: 1px solid var(--scs-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--scs-line);
  padding: 40px 44px;
}
html body .scs-nl__eyebrow {
  margin: 0 0 10px;
  font: 700 12px/16px var(--scs-sans);
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--scs-teal-2);
}
html body .scs-nl__title {
  margin: 0 0 10px;
  font: 700 30px/1.15 var(--scs-serif);
  color: var(--scs-ink);
  letter-spacing: -0.3px;
}
html body .scs-nl__text {
  margin: 0;
  font: 16px/1.6 var(--scs-sans);
  color: var(--scs-ink-2);
}
html body .scs-nl__box .wpcf7 { margin: 0; }
html body .scs-nl__box .footer-newsletter-wrapper,
html body .scs-nl__box .footer-newsletter-wrapper > p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
html body .scs-nl__box .footer-newsletter-wrapper br { display: none; }
html body .scs-nl__box .footer-newsletter-wrapper > p { width: 100%; }
html body .scs-nl__box .wpcf7-form-control-wrap[data-name="email"] { flex: 1 1 220px; display: block; }
html body .scs-nl__box input[type="email"] {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1.5px solid var(--scs-ink);
  border-radius: 999px;
  background: #fff;
  font: 16px var(--scs-sans);
  color: var(--scs-ink);
  box-shadow: none;
}
html body .scs-nl__box input[type="email"]:focus {
  outline: 3px solid rgba(47, 137, 136, .25);
  outline-offset: 1px;
  border-color: var(--scs-teal);
}
html body .scs-nl__box input[type="submit"] {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--scs-coral);
  color: #fff;
  font: 700 15px var(--scs-sans);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
html body .scs-nl__box input[type="submit"]:hover { background: #d95f62; }
html body .scs-nl__box input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
html body .scs-nl__box .wpcf7-acceptance,
html body .scs-nl__box .wpcf7-form-control-wrap[data-name^="acceptance"] {
  flex: 1 1 100%;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 4px 0 0;
  font: 13px/1.5 var(--scs-sans);
  color: var(--scs-ink-2);
}
html body .scs-nl__box .wpcf7-list-item { margin: 0; }
html body .scs-nl__box .wpcf7-list-item label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
html body .scs-nl__box .wpcf7-list-item input { margin-top: 3px; accent-color: var(--scs-teal); }
html body .scs-nl__box .wpcf7-spinner { position: absolute; }
html body .scs-nl__box .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font: 14px/1.4 var(--scs-sans);
}
html body .scs-nl__box .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
html body .scs-nl__fine {
  margin: 10px 0 0;
  font: 12px/1.4 var(--scs-sans);
  color: #8a8fa3;
}
@media (max-width: 860px) {
  html body .scs-nl { padding: 40px 16px 44px; }
  html body .scs-nl__in { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; }
  html body .scs-nl__title { font-size: 25px; }
}
@media (max-width: 420px) {
  html body .scs-nl__box input[type="submit"] { width: 100%; }
}

/* ---------- Mobile "On this page" ---------- */
html body .scs-mtoc {
  margin: 0 0 24px;
  background: var(--scs-card);
  border: 1px solid var(--scs-line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--scs-line);
  font-family: var(--scs-sans);
}
html body .scs-mtoc[hidden] { display: none; }
html body .scs-mtoc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font: 700 12px/16px var(--scs-sans);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--scs-teal-2);
}
html body .scs-mtoc summary::-webkit-details-marker { display: none; }
html body .scs-mtoc summary em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7392;
}
html body .scs-mtoc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--scs-ink);
  border-bottom: 2px solid var(--scs-ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
html body .scs-mtoc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
html body .scs-mtoc ol {
  margin: 0;
  padding: 4px 16px 14px 34px;
  border-top: 1px dashed #e3d6c3;
}
html body .scs-mtoc li { margin: 8px 0 !important; font: 15px/1.4 var(--scs-sans) !important; color: #6b7392 !important; }
html body .scs-mtoc a { color: var(--scs-ink) !important; font: inherit !important; text-decoration: none !important; }
html body .scs-mtoc a:hover { color: var(--scs-teal-2); text-decoration: underline; }
/* anchors land below the sticky header */
html body [id] { scroll-margin-top: 90px; }

/* ---------- Blog post: related articles ----------
   The theme row held 4 fixed 228px cards in a 720px column: the 4th was cut off on desktop
   and the row ran off the screen on phones. Now a 2-column list of compact cards
   (thumbnail left, title and date right), one column on phones. */
html body .recommended-posts .c-title { border-bottom: 0 !important; margin-bottom: 4px !important; }
html body .recommended-posts .container > .row:last-child {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body .recommended-posts .container > .row:last-child > .col-md-3 {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  column-gap: 14px !important;
  align-items: start !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding: 10px !important;
  min-height: 0 !important;
}
html body .recommended-posts .col-md-3 > .thumbnail {
  grid-row: 1 / span 2 !important;
  width: 112px !important;
  height: auto !important;
  margin: 0 !important;
}
html body .recommended-posts .col-md-3 > .thumbnail img {
  display: block !important;
  width: 112px !important;
  height: 76px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}
html body .recommended-posts .col-md-3 > h3 {
  margin: 2px 0 6px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}
html body .recommended-posts .col-md-3 > .metadata { margin: 0 !important; font-size: 12.5px !important; }
@media (max-width: 640px) {
  html body .recommended-posts .container > .row:last-child { grid-template-columns: 1fr !important; }
}

/* ---------- Blog post: title lines up with the breadcrumb on phones ---------- */
@media (max-width: 767px) {
  html body .article--single .article__head > .container { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- Home: count pill fits its text ---------- */
html body .sc-explore-card .sc-tag { display: inline-block !important; width: auto !important; max-width: 100%; align-self: flex-start !important; justify-self: start !important; }

/* ---------- One page width, lined up with the logo and the menu ----------
   The header is min(1180px, 100% - 48px) wide (16px side edge on phones). Templates used their own widths
   (blog 1080, posts 960, shortlists 1040, compares 1000, hubs 1400, text pages 760 centered, newsletter 1100),
   so content sat 70-230px inside the logo, or outside it on hubs. Now every template starts at the logo and
   ends at the "Get listed" button. Reading columns keep 760px at the left; "On this page" sits at the right.
   Old Customizer rules use long selectors with !important, so the class is repeated to outrank them. */
:root { --scs-edge: 24px; --scs-wrap: min(1180px, calc(100% - 48px)); }
@media (max-width: 767px) { :root { --scs-edge: 16px; --scs-wrap: calc(100% - 32px); } }

html body .sc-page.sc-blog.sc-blog.sc-blog.sc-blog,
html body .sc-hub .sc-wrap.sc-wrap.sc-wrap.sc-wrap,
html body article.sc-listicle.sc-listicle.sc-listicle.sc-listicle,
html body article.sc-compare.sc-compare.sc-compare.sc-compare,
html body .article--single .article__head.article__head.article__head.article__head,
html body .article--single .article__entry.article__entry.article__entry.article__entry,
html body .recommended-posts.recommended-posts.recommended-posts.recommended-posts,
html body.error404 .container.container.container.container,
html body.search .container.container.container.container,
html body .scs-nl__in.scs-nl__in.scs-nl__in.scs-nl__in {
  max-width: none !important;
  width: var(--scs-wrap) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
/* the newsletter box keeps its inner padding */
html body .scs-nl__in.scs-nl__in.scs-nl__in.scs-nl__in { padding: 40px 44px !important; }
@media (max-width: 860px) { html body .scs-nl__in.scs-nl__in.scs-nl__in.scs-nl__in { padding: 28px 22px !important; } }
html body .scs-nl.scs-nl.scs-nl.scs-nl { padding-left: 0 !important; padding-right: 0 !important; }

html body .article--single .article__head > .container.container.container.container,
html body .recommended-posts .container.container.container.container {
  max-width: none !important;
  width: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body .article--single .sc-wrap.sc-wrap.sc-wrap.sc-wrap { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* text pages (About, Contact, Privacy, Terms, Cookies): reading width kept, left edge at the logo */
html body .sc-site.sc-site.sc-site.sc-site {
  margin-left: max(var(--scs-edge), calc((100% - 1180px) / 2)) !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 992px) {
  html body article.sc-listicle.sc-listicle.sc-listicle.sc-listicle,
  html body article.sc-compare.sc-compare.sc-compare.sc-compare,
  html body .article--single .sc-wrap.sc-wrap.sc-wrap.sc-wrap {
    grid-template-columns: minmax(0, 760px) 280px !important;
    justify-content: space-between !important;
  }
}

/* small edge fixes found by the measuring pass */
@media (min-width: 992px) {
  html body article.sc-compare.sc-compare.sc-compare.sc-compare > .sc-toc { justify-self: stretch !important; width: auto !important; max-width: none !important; }
}
html body .sc-site.sc-site.sc-site.sc-site { max-width: min(760px, calc(100% - 2 * var(--scs-edge))) !important; box-sizing: border-box !important; }
html body.error404 .container.container.container.container .c-text,
html body.error404 .container.container.container.container .row,
html body.error404 .container.container.container.container [class*="col-"] { margin-left: 0 !important; padding-left: 0 !important; }
/* 404/search: a container inside a container fills its parent */
html body.error404 .container .container.container.container.container,
html body.search .container .container.container.container.container { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }

/* comparison tables: the Sep 2026 snippet "SC Compare fullwidth lock" sets width:max-content, so each
   cell's text ran on one line and the table grew to ~1,650px inside a scroll box, hiding most of it.
   Fit the column instead (still scrolls on phones below 640px). */
html body article.sc-compare.sc-compare.sc-compare table.sc-compare-table.sc-compare-table { width: 100% !important; max-width: none !important; }
/* blog index card grid: full page width like the header */
html body .sc-blog .sc-blog-grid.sc-blog-grid.sc-blog-grid.sc-blog-grid { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
