/* ==========================================================================
   SUPPLEMENTVISTA — EDITORIAL COMPONENTS

   Everything specific to a supplement publication: article feeds, health
   category cards, the affiliate disclosure, the review verdict box, the
   author box and the FAQ accordion. Plus the header search field and the
   wide Health dropdown.

   Loaded last, after sv-components.css, so these rules win cleanly.
   ========================================================================== */

/* ------------------------------------------------------------------
   Header search
   ------------------------------------------------------------------ */

.sv-search {
  display: flex;
  align-items: center;
  gap: var(--sv-space-1);
  background: var(--sv-bg-soft);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-pill);
  padding: 2px 2px 2px var(--sv-space-3);
  transition: border-color var(--sv-speed) var(--sv-ease);
}

.sv-search:focus-within {
  border-color: var(--sv-teal);
}

.sv-search__field {
  border: 0;
  background: transparent;
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  color: var(--sv-text);
  width: 9.5rem;
  min-width: 0;
  padding: var(--sv-space-2) 0;
}

.sv-search__field:focus {
  outline: none;
}

.sv-search__field::placeholder {
  color: var(--sv-text-muted);
}

.sv-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: var(--sv-radius-sm);
  background: var(--sv-teal);
  color: var(--sv-white);
  cursor: pointer;
  transition: background var(--sv-speed) var(--sv-ease);
}

.sv-search__submit:hover,
.sv-search__submit:focus-visible {
  background: var(--sv-teal-dark);
}

.sv-drawer__search {
  display: flex;
  align-items: center;
  gap: var(--sv-space-1);
  margin: 0 var(--sv-space-5) var(--sv-space-4);
  background: var(--sv-bg-soft);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-pill);
  padding: 2px 2px 2px var(--sv-space-3);
}

.sv-drawer__search .sv-search__field {
  flex: 1;
  width: auto;
}

/* ------------------------------------------------------------------
   The Health dropdown holds 13 items, so it runs in two columns
   ------------------------------------------------------------------ */

@media (min-width: 1024px) {
  .sv-dropdown--wide {
    width: max-content;
    max-width: min(720px, calc(100vw - 48px));
  }

  .sv-dropdown--wide .sv-dropdown__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px var(--sv-space-2);
  }
}

/* ------------------------------------------------------------------
   Shared grids for the editorial components
   ------------------------------------------------------------------ */

.sv-postgrid,
.sv-catgrid {
  display: grid;
  gap: var(--sv-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .sv-postgrid--2, .sv-postgrid--3, .sv-postgrid--4,
  .sv-catgrid--2, .sv-catgrid--3, .sv-catgrid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sv-postgrid--3, .sv-catgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-postgrid--4, .sv-catgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sv-feed,
.sv-categories {
  margin: var(--sv-space-12) 0;
}

.sv-feed__heading,
.sv-categories__heading {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-h2);
  line-height: var(--sv-lh-snug);
  color: var(--sv-ink);
  margin: 0 0 var(--sv-space-6);
}

/* ------------------------------------------------------------------
   Article cards
   ------------------------------------------------------------------ */

.sv-post-card {
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  overflow: hidden;
  transition: border-color var(--sv-speed) var(--sv-ease),
              box-shadow var(--sv-speed) var(--sv-ease);
}

.sv-post-card:hover,
.sv-post-card:focus-within {
  border-color: var(--sv-teal-soft);
  box-shadow: var(--sv-shadow);
}

.sv-post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sv-post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--sv-bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-post-card__placeholder {
  font-family: var(--sv-font-heading);
  font-size: 2rem;
  font-weight: var(--sv-weight-bold);
  color: var(--sv-teal);
}

.sv-post-card__body {
  padding: var(--sv-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--sv-space-2);
  flex: 1;
}

.sv-post-card__title {
  font-family: var(--sv-font-heading);
  font-size: 1.125rem;
  line-height: var(--sv-lh-snug);
  font-weight: var(--sv-weight-semi);
  color: var(--sv-ink);
  margin: 0;
}

.sv-post-card__link:hover .sv-post-card__title {
  color: var(--sv-teal);
}

.sv-post-card__excerpt {
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
  margin: 0;
}

.sv-post-card__meta {
  font-size: var(--sv-tiny);
  color: var(--sv-text-muted);
  margin-top: auto;
  padding-top: var(--sv-space-2);
}

/* ------------------------------------------------------------------
   Health category cards
   ------------------------------------------------------------------ */

.sv-cat {
  display: flex;
  gap: var(--sv-space-4);
  align-items: flex-start;
  padding: var(--sv-space-5);
  background: var(--sv-bg-teal);
  border: 1px solid transparent;
  border-radius: var(--sv-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--sv-speed) var(--sv-ease),
              background var(--sv-speed) var(--sv-ease);
}

.sv-cat:hover,
.sv-cat:focus-visible {
  border-color: var(--sv-teal);
  background: var(--sv-white);
}

.sv-cat__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sv-teal);
  color: var(--sv-white);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-bold);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-cat__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-cat__name {
  display: block;
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  font-size: 1.0625rem;
  color: var(--sv-ink);
  margin-bottom: var(--sv-space-1);
}

.sv-cat:hover .sv-cat__name {
  color: var(--sv-teal-dark);
}

.sv-cat__desc {
  display: block;
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

/* ------------------------------------------------------------------
   Affiliate disclosure
   ------------------------------------------------------------------ */

.sv-disclosure {
  background: var(--sv-bg-soft);
  border-left: 4px solid var(--sv-teal);
  border-radius: 0 var(--sv-radius) var(--sv-radius) 0;
  padding: var(--sv-space-5);
  margin: var(--sv-space-8) 0;
}

.sv-disclosure__text {
  margin: 0;
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-disclosure__label {
  display: block;
  font-family: var(--sv-font-heading);
  font-size: var(--sv-tiny);
  letter-spacing: var(--sv-track-wide);
  text-transform: uppercase;
  color: var(--sv-teal-dark);
  margin-bottom: var(--sv-space-1);
}

.sv-disclosure__link {
  color: var(--sv-link);
  white-space: nowrap;
}

.sv-disclosure__link:hover {
  color: var(--sv-link-hover);
}

/* ------------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------------ */

.sv-toc {
  background: var(--sv-bg-soft);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: var(--sv-space-5) var(--sv-space-6);
  margin: var(--sv-space-8) 0;
}

.sv-toc__title {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-small);
  font-weight: var(--sv-weight-semi);
  letter-spacing: var(--sv-track-wide);
  text-transform: uppercase;
  color: var(--sv-teal-dark);
  margin: 0 0 var(--sv-space-3);
}

.sv-toc__list {
  margin: 0;
  padding-left: 1.25em;
}

/* Button variant. The chips wrap onto as many rows as they need, so a
   long review still fits without a scrollbar, and each one is a full
   tap target on a phone. */

.sv-toc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sv-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-toc__chip-item {
  margin: 0;
  padding: 0;
}

.sv-toc--buttons .sv-toc__chip {
  text-decoration: none;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .sv-toc__chips {
    gap: var(--sv-space-2);
  }

  .sv-toc--buttons .sv-toc__chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.sv-toc__item {
  margin: 0 0 var(--sv-space-2);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
}

.sv-toc__item:last-child {
  margin-bottom: 0;
}

.sv-toc__link {
  color: var(--sv-link);
  text-decoration: none;
}

.sv-toc__link:hover,
.sv-toc__link:focus-visible {
  color: var(--sv-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The header is fixed, so an anchor jump would otherwise land with the
   heading hidden underneath it. Offset every target by the header's
   height plus a little breathing room. */
.single-post .entry-content h2[id] {
  scroll-margin-top: calc(var(--sv-header-height, 84px) + 16px);
}

.admin-bar .single-post .entry-content h2[id] {
  scroll-margin-top: calc(var(--sv-header-height, 84px) + 48px);
}

/* Compact variant.
   Sits above the first affiliate link, where the FTC wants the
   disclosure. It has to be noticeable and readable, so it is not
   greyed out into invisibility — just quiet enough not to interrupt
   the read. Overrides the box styling of the base class. */

.sv-disclosure--compact {
  background: none;
  border-left: 0;
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  border-radius: 0;
  padding: var(--sv-space-3) 0;
  margin: var(--sv-space-6) 0;
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text-muted);
}

.sv-disclosure--compact .sv-disclosure__link {
  margin-left: 0.35em;
  color: var(--sv-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sv-disclosure--compact .sv-disclosure__link:hover {
  color: var(--sv-link-hover);
}

/* ------------------------------------------------------------------
   Review verdict box
   ------------------------------------------------------------------ */

.sv-verdict {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  padding: var(--sv-space-6);
  margin: var(--sv-space-12) 0;
  background: var(--sv-white);
}

.sv-verdict__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sv-space-4);
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--sv-border);
  padding-bottom: var(--sv-space-4);
  margin-bottom: var(--sv-space-5);
}

.sv-verdict__heading {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-h3);
  color: var(--sv-ink);
  margin: 0;
}

.sv-verdict__product {
  display: block;
  font-size: 1rem;
  font-weight: var(--sv-weight-medium);
  color: var(--sv-text-muted);
}

.sv-verdict__rating {
  margin: 0;
  font-family: var(--sv-font-heading);
  color: var(--sv-teal);
}

.sv-verdict__score {
  font-size: 1.75rem;
  font-weight: var(--sv-weight-bold);
}

.sv-verdict__outof {
  font-size: var(--sv-small);
  color: var(--sv-text-muted);
  margin-left: var(--sv-space-1);
}

.sv-verdict__summary {
  font-family: var(--sv-font-body);
  color: var(--sv-text);
}

.sv-verdict__summary p:last-child {
  margin-bottom: 0;
}

.sv-verdict__columns {
  display: grid;
  gap: var(--sv-space-5);
  margin-top: var(--sv-space-5);
}

@media (min-width: 700px) {
  .sv-verdict__columns { grid-template-columns: 1fr 1fr; }
}

.sv-verdict__col {
  background: var(--sv-bg-soft);
  border-radius: var(--sv-radius);
  padding: var(--sv-space-5);
}

.sv-verdict__col-title {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-small);
  text-transform: uppercase;
  letter-spacing: var(--sv-track-wide);
  margin: 0 0 var(--sv-space-2);
  color: var(--sv-ink);
}

.sv-verdict__col--pros .sv-verdict__col-title { color: var(--sv-teal-dark); }

.sv-verdict__list {
  margin: 0;
  padding-left: 1.1rem;
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-verdict__list li + li { margin-top: var(--sv-space-1); }

/* ------------------------------------------------------------------
   Author box
   ------------------------------------------------------------------ */

.sv-author {
  display: flex;
  gap: var(--sv-space-5);
  align-items: flex-start;
  background: var(--sv-bg-soft);
  border-radius: var(--sv-radius-lg);
  padding: var(--sv-space-6);
  margin: var(--sv-space-12) 0;
}

.sv-author__media { flex: 0 0 96px; }

.sv-author__img,
.sv-author__placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.sv-author__placeholder {
  background: var(--sv-teal);
  color: var(--sv-white);
  font-family: var(--sv-font-heading);
  font-size: 2rem;
  font-weight: var(--sv-weight-bold);
}

.sv-author__eyebrow {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-tiny);
  letter-spacing: var(--sv-track-wide);
  text-transform: uppercase;
  color: var(--sv-text-muted);
  margin: 0 0 var(--sv-space-1);
}

.sv-author__name {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-h4);
  margin: 0 0 var(--sv-space-1);
  color: var(--sv-ink);
}

.sv-author__name a { color: inherit; text-decoration: none; }
.sv-author__name a:hover { color: var(--sv-teal); }

.sv-author__creds {
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  color: var(--sv-teal-dark);
  margin: 0 0 var(--sv-space-2);
}

.sv-author__bio {
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
  margin: 0;
}

@media (max-width: 600px) {
  .sv-author { flex-direction: column; }
}

/* ------------------------------------------------------------------
   FAQ accordion

   Built from <details> and <summary>, so it works with JavaScript off.
   ------------------------------------------------------------------ */

.sv-qa { margin: var(--sv-space-12) 0; }

.sv-qa__heading {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-h2);
  color: var(--sv-ink);
  margin: 0 0 var(--sv-space-5);
}

.sv-qa__item {
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  margin-bottom: var(--sv-space-2);
  background: var(--sv-white);
}

.sv-qa__item[open] { border-color: var(--sv-teal-soft); }

.sv-qa__q {
  cursor: pointer;
  padding: var(--sv-space-5);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  font-size: 1rem;
  color: var(--sv-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sv-space-4);
}

.sv-qa__q::-webkit-details-marker { display: none; }

.sv-qa__q::after {
  content: "+";
  color: var(--sv-teal);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.sv-qa__item[open] .sv-qa__q::after { content: "\2212"; }

.sv-qa__q:hover { color: var(--sv-teal-dark); }

.sv-qa__a {
  padding: 0 var(--sv-space-5) var(--sv-space-5);
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-qa__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Footer additions
   ------------------------------------------------------------------ */

.sv-footer__notice {
  margin: var(--sv-space-5) 0 0;
  padding-top: var(--sv-space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--sv-font-body);
  font-size: var(--sv-tiny);
  line-height: var(--sv-lh-body);
  color: var(--sv-text-on-dark-mu);
}

.sv-footer__links a,
.sv-footer__legal a,
.sv-footer__contact a {
  color: var(--sv-footer-link);
}

.sv-footer__links a:hover,
.sv-footer__legal a:hover,
.sv-footer__contact a:hover {
  color: var(--sv-white);
}

/* ------------------------------------------------------------------
   Editor-only notice. Visitors never see this.
   ------------------------------------------------------------------ */

.sv-editor-notice {
  border: 1px dashed var(--sv-teal-soft);
  background: var(--sv-bg-teal);
  color: var(--sv-teal-dark);
  border-radius: var(--sv-radius);
  padding: var(--sv-space-5);
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
}

/* ==========================================================================
   HEADER COLOUR

   The brief originally specified a white header. This gives it colour while
   keeping the approved logo legible: the wordmark is dark and the checkmark
   is teal, so the background has to stay light. Charcoal or teal behind it
   would need a white version of the logo, which does not exist.

   Light Teal (#E6F2F1) is already in your palette — the same tone used on
   the category cards — so the header reads as part of the brand rather than
   as a new colour. Contrast of charcoal navigation text on it is 11.9:1.

   To go back to plain white, change one line: the background below.
   ========================================================================== */

.sv-header {
  background: var(--sv-bg-teal);
  border-bottom: 1px solid var(--sv-border);
}

/* A thin brand bar across the very top. This is where the saturated teal
   lives, rather than behind the logo. */
.sv-header::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--sv-gradient-accent);
}

.sv-nav__link {
  color: var(--sv-charcoal);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-medium);
  position: relative;
}

.sv-nav__link:hover,
.sv-nav__item.is-active > .sv-nav__link {
  color: var(--sv-teal-dark);
}

/* The active section is underlined as well as recoloured, so it is not
   signalled by colour alone. */
.sv-nav__item.is-active > .sv-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--sv-teal);
  border-radius: 2px;
}

/* White field on the tinted bar, so search still reads as an input. */
.sv-header .sv-search {
  background: var(--sv-white);
  border-color: var(--sv-border);
}

.sv-burger {
  color: var(--sv-charcoal);
}

/* The dropdown panel stays white, so thirteen items remain easy to scan. */
.sv-dropdown {
  background: var(--sv-white);
}

/* ==========================================================================
   v1.2 — DESIGN REFRESH

   Three fixes and one upgrade:
     1. Links inside components no longer inherit Astra's underline.
     2. Category cards use real icons in a tinted tile, not a letter badge.
     3. Cards lift slightly on hover, so the grid feels interactive.
     4. A hero panel, so the top of a page is not a blank white strip.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. No underlines on anything that is a card, button or nav item

   Astra underlines links inside page content, which is right for a
   paragraph and wrong for a card. Text inside these stays undecorated
   whatever Astra does; ordinary links in your writing are untouched.
   ------------------------------------------------------------------ */

.sv-btn,
.sv-cat,
.sv-cat *,
.sv-post-card__link,
.sv-post-card__link *,
.sv-nav__link,
.sv-dropdown__link,
.sv-dropdown__link *,
.sv-drawer__link,
.sv-drawer__sublink,
.sv-footer__links a,
.sv-footer__legal a,
.sv-footer__contact a,
.sv-social__link,
.sv-author__name a,
.sv-header__brand {
  text-decoration: none;
}

/* Keep the underline where it belongs: links inside written copy. */
.sv-disclosure__link,
.sv-qa__a a,
.sv-verdict__summary a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------------
   2 + 3. Category cards
   ------------------------------------------------------------------ */

.sv-cat {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: var(--sv-space-4);
  align-items: start;
  padding: var(--sv-space-5) var(--sv-space-5) var(--sv-space-5) var(--sv-space-5);
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius-lg);
  transition: transform var(--sv-speed) var(--sv-ease),
              border-color var(--sv-speed) var(--sv-ease),
              box-shadow var(--sv-speed) var(--sv-ease);
}

.sv-cat:hover,
.sv-cat:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sv-teal);
  box-shadow: 0 10px 30px rgba(38, 50, 56, 0.08);
  background: var(--sv-white);
}

/* The icon tile: a soft teal square, not a solid circle with a letter. */
.sv-cat__icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--sv-radius);
  background: var(--sv-bg-teal);
  color: var(--sv-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sv-speed) var(--sv-ease),
              color var(--sv-speed) var(--sv-ease);
}

.sv-cat:hover .sv-cat__icon {
  background: var(--sv-teal);
  color: var(--sv-white);
}

.sv-cat__icon svg { display: block; }

.sv-cat__name {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sv-cat__desc {
  font-size: 0.9rem;
  color: var(--sv-text-muted);
}

/* A quiet arrow that steps right on hover. */
.sv-cat__go {
  color: var(--sv-border);
  display: inline-flex;
  align-items: center;
  margin-top: 11px;
  transition: color var(--sv-speed) var(--sv-ease),
              transform var(--sv-speed) var(--sv-ease);
}

.sv-cat:hover .sv-cat__go {
  color: var(--sv-teal);
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Article cards get the same lift
   ------------------------------------------------------------------ */

.sv-post-card {
  transition: transform var(--sv-speed) var(--sv-ease),
              border-color var(--sv-speed) var(--sv-ease),
              box-shadow var(--sv-speed) var(--sv-ease);
}

.sv-post-card:hover,
.sv-post-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--sv-teal);
  box-shadow: 0 10px 30px rgba(38, 50, 56, 0.08);
}

/* ------------------------------------------------------------------
   Section headings get a short brand rule above them
   ------------------------------------------------------------------ */

.sv-feed__heading,
.sv-categories__heading,
.sv-qa__heading {
  position: relative;
  padding-top: var(--sv-space-4);
}

.sv-feed__heading::before,
.sv-categories__heading::before,
.sv-qa__heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--sv-gradient-accent);
}

/* ------------------------------------------------------------------
   4. Hero panel

   Deliberately a contained panel rather than a full-bleed band: a
   100vw band inside a themed container causes horizontal scrolling on
   any browser that shows a classic scrollbar.
   ------------------------------------------------------------------ */

.sv-hero-band {
  background: linear-gradient(135deg, var(--sv-bg-teal) 0%, var(--sv-bg-soft) 100%);
  border: 1px solid var(--sv-border);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  margin-block: var(--sv-space-6) var(--sv-space-10);
}

.sv-hero-band h1 {
  margin-top: 0;
  max-width: 18ch;
}

.sv-hero-band .sv-lead {
  max-width: 62ch;
}

.sv-hero-band .sv-btn-row {
  margin-top: var(--sv-space-6);
}

/* Buttons: solid teal, flat, no underline, clear hover. */
.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
}

@media (max-width: 600px) {
  .sv-cat { grid-template-columns: 40px 1fr; }
  .sv-cat__go { display: none; }
}

/* ==========================================================================
   v1.3 — THEME CONFLICT FIXES
   ========================================================================== */

/* ------------------------------------------------------------------
   Search button

   Astra styles every <button> with padding: 20px 40px. With
   box-sizing: border-box that padding alone forces an 80x40 box and
   leaves a zero-width content area, which collapsed the magnifier
   icon to 0x0 — a teal rectangle with nothing in it.

   Two class names deep so this beats Astra's own rule.
   ------------------------------------------------------------------ */

.sv-header .sv-search__submit,
.sv-drawer__search .sv-search__submit {
  padding: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 10px;
  line-height: 1;
}

.sv-header .sv-search__field,
.sv-drawer__search .sv-search__field {
  height: 40px;
  padding-block: 0;
}

.sv-header .sv-search,
.sv-drawer__search {
  padding: 3px 3px 3px var(--sv-space-4);
  border-radius: 12px;
}

/* ------------------------------------------------------------------
   Admin bar

   For logged-in users WordPress pins a 32px bar to the top of the
   window. A sticky header with top: 0 slides underneath it. Visitors
   never see this, but you do, on every page.
   ------------------------------------------------------------------ */

.admin-bar .sv-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .sv-header {
    top: 46px;
  }
}

/* ------------------------------------------------------------------
   Wider layout

   The container token now matches the Astra setting, so the header,
   the footer and the page content line up at the same width instead
   of the header being 120px narrower than it looks.
   ------------------------------------------------------------------ */

.sv-hero-band h1 {
  max-width: 20ch;
}

/* ==========================================================================
   CONTACT PAGE

   Information on the left, form on the right, stacking on narrow screens.
   The second half of this block restyles Fluent Forms so the form looks
   like part of the site rather than a plugin dropped into it — its default
   submit button is bright blue, which fights the brand.
   ========================================================================== */

.sv-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sv-space-8);
  margin-block: var(--sv-space-10) var(--sv-space-12);
  align-items: start;
}

@media (min-width: 900px) {
  .sv-contact {
    grid-template-columns: 1fr 1fr;
    gap: var(--sv-space-12);
  }
}

@media (min-width: 1100px) {
  .sv-contact {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ---------------- Left column ---------------- */

.sv-contact__intro {
  margin-top: 0;
}

.sv-contact__topics {
  list-style: none;
  margin: 0 0 var(--sv-space-8);
  padding: 0;
  display: grid;
  gap: var(--sv-space-5);
}

.sv-contact__topic {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sv-space-4);
  align-items: start;
}

.sv-contact__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--sv-radius);
  background: var(--sv-bg-teal);
  color: var(--sv-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sv-contact__topic-title {
  display: block;
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  font-size: 1.0625rem;
  color: var(--sv-ink);
  margin-bottom: 2px;
}

.sv-contact__topic-text {
  display: block;
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-contact__limits {
  background: var(--sv-bg-soft);
  border-left: 4px solid var(--sv-border);
  border-radius: 0 var(--sv-radius) var(--sv-radius) 0;
  padding: var(--sv-space-5);
  margin-bottom: var(--sv-space-6);
}

.sv-contact__limits-title {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-small);
  text-transform: uppercase;
  letter-spacing: var(--sv-track-wide);
  color: var(--sv-text-muted);
  margin: 0 0 var(--sv-space-3);
  padding-top: 0;
}

.sv-contact__limits-title::before { content: none; }

.sv-contact__limits ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-contact__limits li + li { margin-top: var(--sv-space-2); }

.sv-contact__email {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sv-space-4);
  align-items: center;
}

.sv-contact__email-note {
  display: block;
  font-size: var(--sv-tiny);
  color: var(--sv-text-muted);
}

.sv-contact__email a {
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  color: var(--sv-teal);
  text-decoration: none;
}

.sv-contact__email a:hover { color: var(--sv-teal-dark); }

/* ---------------- Right column: the form panel ---------------- */

.sv-contact__panel {
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--sv-shadow);
}

.sv-contact__form-heading {
  font-family: var(--sv-font-heading);
  font-size: var(--sv-h3);
  color: var(--sv-ink);
  margin: 0 0 var(--sv-space-2);
  padding-top: 0;
}

.sv-contact__form-heading::before { content: none; }

.sv-contact__form-note {
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text-muted);
  margin: 0 0 var(--sv-space-6);
}

.sv-contact__form-note a { color: var(--sv-teal); }

/* ---------------- Fluent Forms, wearing the brand ---------------- */

.sv-contact .fluentform .ff-el-input--label label {
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  font-size: 0.9375rem;
  color: var(--sv-ink);
  margin-bottom: 6px;
}

.sv-contact .fluentform .ff-el-form-control {
  font-family: var(--sv-font-body);
  font-size: 1rem;
  color: var(--sv-text);
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  padding: 11px 14px;
  height: auto;
  box-shadow: none;
  transition: border-color var(--sv-speed) var(--sv-ease),
              box-shadow var(--sv-speed) var(--sv-ease);
}

.sv-contact .fluentform .ff-el-form-control:focus {
  border-color: var(--sv-teal);
  box-shadow: 0 0 0 3px rgba(22, 127, 131, 0.14);
  outline: none;
}

.sv-contact .fluentform textarea.ff-el-form-control {
  min-height: 140px;
  line-height: var(--sv-lh-body);
}

.sv-contact .fluentform .ff-el-group { margin-bottom: var(--sv-space-5); }

.sv-contact .fluentform .ff-el-form-check-label,
.sv-contact .fluentform .ff-el-form-check {
  font-family: var(--sv-font-body);
  font-size: var(--sv-small);
  line-height: var(--sv-lh-body);
  color: var(--sv-text);
}

.sv-contact .fluentform input[type="checkbox"] {
  accent-color: var(--sv-teal);
  width: 17px;
  height: 17px;
}

/* The submit button. Fluent Forms ships it bright blue. */
.sv-contact .fluentform .ff-btn,
.sv-contact .fluentform .ff-btn-submit {
  background: var(--sv-teal);
  border: 1px solid var(--sv-teal);
  color: var(--sv-white);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  font-size: 1rem;
  border-radius: 10px;
  padding: 12px 24px;
  height: auto;
  box-shadow: none;
  transition: background var(--sv-speed) var(--sv-ease),
              border-color var(--sv-speed) var(--sv-ease);
}

.sv-contact .fluentform .ff-btn:hover,
.sv-contact .fluentform .ff-btn-submit:hover,
.sv-contact .fluentform .ff-btn-submit:focus-visible {
  background: var(--sv-teal-dark);
  border-color: var(--sv-teal-dark);
  color: var(--sv-white);
}

/* Success and error states */
.sv-contact .ff-message-success {
  background: var(--sv-bg-teal);
  border: 1px solid var(--sv-teal-soft);
  color: var(--sv-teal-dark);
  border-radius: var(--sv-radius);
  padding: var(--sv-space-5);
  font-family: var(--sv-font-body);
}

.sv-contact .fluentform .error,
.sv-contact .fluentform .text-danger {
  font-size: var(--sv-tiny);
}

/* ------------------------------------------------------------------
   Fluent Forms submit button, properly this time

   Fluent Forms prints an inline stylesheet containing

     form.fluent_form_3 .ff-btn-submit:not(.ff_btn_no_style)

   which scores (0,3,1) and beat the earlier (0,3,0) rule. Two fixes,
   either of which would do on its own:

     1. Redefine the variable it reads, scoped to our wrapper. This also
        catches any other accent the plugin draws from it.
     2. Match its specificity and add one class, so we win outright
        without resorting to !important.
   ------------------------------------------------------------------ */

.sv-contact {
  --fluentform-primary: var(--sv-teal);
  --fluentform-primary-hover: var(--sv-teal-dark);
}

.sv-contact form.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
  background: var(--sv-teal);
  border-color: var(--sv-teal);
  color: var(--sv-white);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  border-radius: 10px;
  padding: 12px 24px;
  height: auto;
}

.sv-contact form.fluentform .ff-btn-submit:not(.ff_btn_no_style):hover,
.sv-contact form.fluentform .ff-btn-submit:not(.ff_btn_no_style):focus-visible {
  background: var(--sv-teal-dark);
  border-color: var(--sv-teal-dark);
  color: var(--sv-white);
}

/* ------------------------------------------------------------------
   Footer contact block: email, phone and postal address
   ------------------------------------------------------------------ */

.sv-footer__contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--sv-space-3);
  align-items: start;
  margin-bottom: var(--sv-space-3);
}

.sv-footer__contact .sv-icon {
  margin-top: 3px;
  color: var(--sv-footer-link);
}

.sv-footer__address address {
  font-style: normal;
  font-size: var(--sv-small);
  line-height: 1.55;
  color: var(--sv-text-on-dark-mu);
  margin: 0;
}

/* ==========================================================================
   SINGLE ARTICLE LAYOUT

   The reading column stays around 760px, because a line of body text much
   longer than that is measurably harder to read. Images, tables and the
   component blocks break out wider, which is what makes a page feel like a
   publication rather than a narrow box of text.
   ========================================================================== */

/* ONE COLUMN, ONE EDGE.
   An earlier version ran text at 780px and let figures, tables and the
   component blocks break out to 1040px. In theory that is a classic
   editorial layout; in practice, on a long review, it gives the page two
   different left edges and reads as misalignment rather than emphasis.
   Everything now shares a single width, so every element starts and ends
   on the same vertical line all the way down. */

.single-post .entry-content {
  --sv-article-w: 880px;
}

.single-post .entry-content > * {
  max-width: var(--sv-article-w);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Article hero ---------------- */

.sv-article-hero {
  margin-bottom: var(--sv-space-10);
  padding-bottom: var(--sv-space-6);
  border-bottom: 1px solid var(--sv-border);
}

.sv-article-hero__cat {
  display: inline-block;
  font-family: var(--sv-font-heading);
  font-size: var(--sv-tiny);
  font-weight: var(--sv-weight-semi);
  letter-spacing: var(--sv-track-wide);
  text-transform: uppercase;
  color: var(--sv-teal-dark);
  background: var(--sv-bg-teal);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  margin-bottom: var(--sv-space-5);
  transition: background var(--sv-speed) var(--sv-ease),
              color var(--sv-speed) var(--sv-ease);
}

.sv-article-hero__cat:hover {
  background: var(--sv-teal);
  color: var(--sv-white);
}

/* The title used to be capped at 22ch, which is about 780px at the old
   size. A 22-character cap on a 58-character headline forced it onto
   three lines with a ragged gap to its right. It now fills the column,
   at a slightly smaller top size, so a long title sets on two lines and
   a short one on a single line. */

.sv-article-hero__title {
  font-family: var(--sv-font-heading);
  font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: var(--sv-track-tight);
  color: var(--sv-ink);
  margin: 0 0 var(--sv-space-5);
  max-width: 100%;
  text-wrap: balance;
}

.sv-article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sv-space-3);
  margin-bottom: var(--sv-space-6);
}

.sv-article-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.sv-article-hero__meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--sv-font-body);
}

.sv-article-hero__by {
  font-size: var(--sv-small);
  font-weight: var(--sv-weight-medium);
  color: var(--sv-ink);
}

.sv-article-hero__by a {
  color: var(--sv-teal);
  text-decoration: none;
}

.sv-article-hero__by a:hover { color: var(--sv-teal-dark); }

.sv-article-hero__dates {
  font-size: var(--sv-tiny);
  color: var(--sv-text-muted);
}

.sv-article-hero__sep { margin: 0 6px; }

.sv-article-hero__media {
  margin: 0;
  border-radius: var(--sv-radius-lg);
  overflow: hidden;
  background: var(--sv-bg-teal);
}

/* No forced 16:9. The featured image was being stretched to a 16:9 box
   and cropped to fill it, which both enlarged it and cut its edges off.
   It now keeps its own proportions, with a ceiling so an unusually tall
   upload cannot take over the screen. */

.sv-article-hero__img,
.sv-article-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

/* ---------------- Body typography ---------------- */

.single-post .entry-content h2 {
  margin-top: var(--sv-space-12);
  margin-bottom: var(--sv-space-4);
  scroll-margin-top: 110px;
}

.single-post .entry-content h3 {
  margin-top: var(--sv-space-8);
  margin-bottom: var(--sv-space-3);
}

.single-post .entry-content p,
.single-post .entry-content li {
  line-height: var(--sv-lh-body);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  padding-left: 1.3rem;
}

.single-post .entry-content li + li { margin-top: var(--sv-space-2); }

/* Images inside the article */
.single-post .entry-content figure img,
.single-post .entry-content .wp-block-image img {
  border-radius: var(--sv-radius-lg);
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.single-post .entry-content figcaption {
  font-size: var(--sv-tiny);
  color: var(--sv-text-muted);
  text-align: center;
  margin-top: var(--sv-space-3);
}

/* Tables */
.single-post .entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--sv-small);
}

.single-post .entry-content th,
.single-post .entry-content td {
  border: 1px solid var(--sv-border);
  padding: 10px 14px;
  text-align: left;
}

.single-post .entry-content th {
  background: var(--sv-bg-soft);
  font-family: var(--sv-font-heading);
  font-weight: var(--sv-weight-semi);
  color: var(--sv-ink);
}

/* ------------------------------------------------------------------
   Override Astra's narrow container on single posts

   Astra's "Narrow Width Container" caps the article wrapper at 750px,
   which leaves roughly 609px of text on a 1440px screen — a column of
   words in the middle of an empty page.

   This widens the wrapper so the 760px reading column and the 980px
   media breakout both have room. It is scoped to single posts, so the
   setting still applies anywhere else you have chosen it.

   If you later set the container to Normal in the Customizer, this rule
   simply stops matching. Nothing breaks either way.
   ------------------------------------------------------------------ */

.single-post.ast-narrow-container .site-content > .ast-container,
.single-post.ast-narrow-container .site-content .ast-container {
  max-width: var(--sv-container);
}

@media (max-width: 1400px) {
  .single-post.ast-narrow-container .site-content > .ast-container,
  .single-post.ast-narrow-container .site-content .ast-container {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------
   Remove Astra's duplicate byline on single posts

   Astra prints its own "By Author / Date" line in .entry-header. Our
   article hero prints a richer version a few pixels below it, so the
   page was showing the byline twice.

   The hero is hidden from this rule because it lives inside
   .entry-content, not .entry-header.
   ------------------------------------------------------------------ */

.single-post .entry-header {
  display: none;
}
