/* SRS SEO Blitz (2026-10): blog byline, table of contents, product box, related guides, sticky CTAs.
   Colours and fonts follow the Elementor kit: Darker Blue #1E293B, Dark Blue #284169, Light Blue #B4D7F0,
   Skyblue background #EAF2FA, Cream #FAFAF7; headings Alegreya SC, text Afacad. */

:root {
  --srs-navy: #1E293B;
  --srs-blue: #284169;
  --srs-sky: #EAF2FA;
  --srs-light: #B4D7F0;
  --srs-accent: #2272AB;
  --srs-cream: #FAFAF7;
  --srs-text: #3B3B3B;
  --srs-muted: #59595B;
}

/* Buttons */
.srs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Afacad", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.srs-btn--primary { background: var(--srs-blue); color: #fff !important; }
.srs-btn--primary:hover, .srs-btn--primary:focus-visible { background: var(--srs-navy); color: #fff !important; transform: translateY(-1px); }
.srs-btn--primary::after { content: "\2192"; font-size: 1.05em; }
.srs-btn--sm { padding: 9px 16px; font-size: 15px; }
.srs-btn--sm::after { content: none; }

/* Byline */
.srs-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  font-family: "Afacad", sans-serif;
  font-size: 16px;
  color: var(--srs-muted);
}
.srs-byline__author { color: var(--srs-navy); font-weight: 600; }
.srs-byline__role { font-weight: 400; color: var(--srs-muted); }

/* Table of contents */
.srs-toc {
  margin: 28px 0 32px;
  background: var(--srs-sky);
  border: 1px solid #D6E6F5;
  border-radius: 12px;
  font-family: "Afacad", sans-serif;
}
.srs-toc details { padding: 0; }
.srs-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--srs-navy);
}
.srs-toc summary::-webkit-details-marker { display: none; }
.srs-toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--srs-blue);
  border-bottom: 2px solid var(--srs-blue);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform .2s ease;
}
.srs-toc details[open] summary::after { transform: rotate(-135deg); }
.srs-toc__count { font-size: 14px; font-weight: 400; color: var(--srs-muted); }
.srs-toc ol {
  margin: 0;
  padding: 0 20px 18px 40px;
  counter-reset: none;
}
.srs-toc li { margin: 6px 0; padding-left: 4px; font-size: 16px; line-height: 1.4; color: var(--srs-blue); }
.srs-toc a { color: var(--srs-blue) !important; text-decoration: none !important; }
.srs-toc a:hover { text-decoration: underline !important; }

/* Product box */
.srs-pbox {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin: 36px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--srs-sky) 0%, #FFFFFF 100%);
  border: 1px solid #D6E6F5;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 74, 153, .06);
  font-family: "Afacad", sans-serif;
}
.srs-pbox__media { display: block; border-radius: 12px; overflow: hidden; background: #fff; }
.srs-pbox__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.srs-pbox__eyebrow {
  margin: 0 0 4px !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--srs-accent) !important;
}
.srs-pbox__title {
  margin: 0 0 8px !important;
  font-family: "Alegreya SC", serif;
  font-size: 26px !important;
  line-height: 1.15 !important;
  color: var(--srs-navy) !important;
}
.srs-pbox__copy { margin: 0 0 12px !important; font-size: 17px !important; line-height: 1.5 !important; color: var(--srs-text) !important; }
.srs-pbox__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 16px !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 15px;
  color: var(--srs-muted);
}
.srs-pbox__facts li { margin: 0 !important; padding: 0 0 0 20px !important; position: relative; list-style: none !important; }
.srs-pbox__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--srs-accent);
  border-bottom: 2px solid var(--srs-accent);
  transform: rotate(-45deg);
}
.srs-pbox__facts li:first-child { padding-left: 0 !important; font-size: 20px; color: var(--srs-navy); }
.srs-pbox__facts li:first-child::before { content: none; }
.srs-pbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.srs-pbox__link { font-size: 16px; color: var(--srs-blue) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Related guides */
.srs-related {
  margin: 40px 0 8px;
  padding: 20px 24px;
  border-left: 4px solid var(--srs-light);
  background: var(--srs-cream);
  border-radius: 0 12px 12px 0;
  font-family: "Afacad", sans-serif;
}
.srs-related__title { margin: 0 0 8px !important; font-size: 18px !important; font-weight: 700; color: var(--srs-navy) !important; }
.srs-related ul { margin: 0 !important; padding-left: 20px !important; }
.srs-related li { margin: 6px 0 !important; font-size: 17px; }
.srs-related a { color: var(--srs-blue) !important; }

/* Sticky bars (articles and product page) */
.srs-sticky-cta, .srs-sticky-buy {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--srs-navy);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
  font-family: "Afacad", sans-serif;
  transform: translateY(140%);
  transition: transform .25s ease;
}
.srs-sticky-cta.is-visible, .srs-sticky-buy.is-visible { transform: translateY(0); }
.srs-sticky-cta[hidden], .srs-sticky-buy[hidden] { display: none; }
.srs-sticky-cta__text { flex: 1; font-size: 15px; line-height: 1.2; }
.srs-sticky-cta .srs-btn--primary, .srs-sticky-buy .srs-btn--primary { background: #fff; color: var(--srs-navy) !important; }
.srs-sticky-cta__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #CBD5E1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.srs-sticky-buy__info { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.srs-sticky-buy__name { font-weight: 700; font-size: 16px; }
.srs-sticky-buy__price { font-size: 14px; color: #CBD5E1; }
.srs-sticky-buy__price .woocommerce-Price-amount { color: #fff; font-weight: 600; }

@media (min-width: 768px) {
  .srs-sticky-cta, .srs-sticky-buy { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
}
@media (min-width: 1025px) {
  .srs-sticky-cta { display: none !important; } /* the in-article box and end block are enough on desktop */
}

@media (max-width: 767px) {
  .srs-pbox { grid-template-columns: 1fr; gap: 16px; padding: 18px; margin: 28px 0; }
  .srs-pbox__media { max-width: 100%; }
  .srs-pbox__img { aspect-ratio: 16 / 10; }
  .srs-pbox__title { font-size: 23px !important; }
  .srs-pbox__actions .srs-btn { width: 100%; }
  .srs-toc summary { padding: 14px 16px; }
  .srs-toc ol { padding: 0 16px 16px 34px; }
}

/* Mobile header: the compact Shop button added to the header */
.srs-header-shop .elementor-button { white-space: nowrap; }

/* Blog page hub */
.srs-hub { margin: 8px auto 8px; max-width: 1140px; padding: 0 20px; font-family: "Afacad", sans-serif; text-align: left; }
.srs-hub__label {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--srs-accent) !important;
}
.srs-hub__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.srs-hub__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 18px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--srs-text) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 74, 153, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.srs-hub__card:hover { transform: translateY(-3px); box-shadow: 0 24px 30px -8px rgba(0, 74, 153, .14); }
.srs-hub__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.srs-hub__title, .srs-hub__blurb, .srs-hub__more { padding: 0 18px; }
.srs-hub__title { font-family: "Alegreya SC", serif; font-size: 21px; line-height: 1.2; color: var(--srs-navy); }
.srs-hub__blurb { font-size: 16px; line-height: 1.45; color: var(--srs-muted); }
.srs-hub__more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--srs-blue); }
.srs-hub__more::after { content: " \2192"; }
.srs-hub__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.srs-hub__topics-label { font-weight: 700; color: var(--srs-navy); margin-right: 4px; }
.srs-hub__topics a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--srs-sky);
  color: var(--srs-blue) !important;
  font-size: 15px;
  text-decoration: none !important;
}
.srs-hub__topics a:hover { background: var(--srs-light); }
.srs-hub__topics a span { color: var(--srs-muted); font-size: 13px; margin-left: 2px; }
@media (max-width: 900px) { .srs-hub__cards { grid-template-columns: 1fr; } .srs-hub__img { aspect-ratio: 21 / 9; } }

/* Article body headings: sized for reading (the global H2/H3 sizes are hero sizes, 64px/52px). */
.single-post .pos-con h2 { font-size: 36px; line-height: 1.15; margin: 44px 0 14px; scroll-margin-top: 120px; }
.single-post .pos-con h3 { font-size: 26px; line-height: 1.2; margin: 30px 0 10px; }
.single-post .pos-con h4 { font-size: 22px; line-height: 1.25; margin: 24px 0 8px; }
@media (max-width: 767px) {
  .single-post .pos-con h2 { font-size: 28px; margin-top: 36px; }
  .single-post .pos-con h3 { font-size: 22px; }
}

/* Product page on phones: name, price and Add to cart in the first screen, right under the first photo.
   Thumbnails are hidden (the gallery still swipes); the photo is capped in height. */
@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery .flex-control-thumbs { display: none !important; }
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    max-height: 200px;
    width: 100%;
    object-fit: contain;
  }
  .single-product .woocommerce-product-gallery { margin-bottom: 0 !important; }
  .single-product .elementor-element-e84a34b { padding-top: 12px !important; row-gap: 12px !important; gap: 12px !important; }
  .single-product .elementor-element-23aa22c { row-gap: 8px !important; gap: 8px !important; padding-top: 0 !important; }
  .single-product .elementor-element-23aa22c h1 { font-size: 27px; line-height: 1.1; }
  .single-product .elementor-element-513474e { padding-top: 14px !important; padding-bottom: 14px !important; }
  .single-product .elementor-element-888b888 { margin: 0 !important; }
}

/* Short answer callout (articles) */
.srs-answer {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--srs-cream);
  border: 1px solid #E7E5DC;
  border-left: 4px solid var(--srs-accent);
  border-radius: 0 12px 12px 0;
  font-family: "Afacad", sans-serif;
}
.srs-answer p { margin: 0 !important; font-size: 18px; line-height: 1.55; color: var(--srs-text); }
.srs-answer .srs-answer__label { margin: 0 0 6px !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--srs-accent); }

/* Comparison tables (articles and product page) */
.srs-compare { margin: 20px 0 28px; overflow-x: auto; }
.srs-compare table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: "Afacad", sans-serif; font-size: 16px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
.srs-compare th, .srs-compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #EEF2F6; line-height: 1.35; }
.srs-compare thead th { background: var(--srs-navy); color: #fff; font-weight: 600; border-bottom: 0; }
.srs-compare tbody th { color: var(--srs-navy); font-weight: 600; background: #FBFCFD; }
.srs-compare tbody tr:last-child th, .srs-compare tbody tr:last-child td { border-bottom: 0; }
.srs-compare .srs-col-hl { background: var(--srs-sky); color: var(--srs-navy); font-weight: 600; }
.srs-compare thead .srs-col-hl { background: var(--srs-accent); color: #fff; }
.srs-compare a { color: var(--srs-blue) !important; }
.srs-compare--product { max-width: 800px; margin: 8px auto 24px; }
@media (max-width: 767px) {
  .srs-compare table, .srs-compare tbody, .srs-compare tr { display: block; }
  .srs-compare thead { display: none; }
  .srs-compare tr { border-bottom: 1px solid #E2E8F0; padding: 10px 0; }
  .srs-compare tbody th { display: block; background: none; padding: 6px 14px 2px; }
  .srs-compare td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 14px; }
  .srs-compare td::before { content: attr(data-label); color: var(--srs-muted); font-weight: 400; }
  .srs-compare td.srs-col-hl { border-radius: 6px; margin: 2px 8px; padding: 6px; }
}

/* Product page: promise, reviews, first-week band */
.srs-promise { margin: 0 !important; font-size: 18px; line-height: 1.5; color: var(--srs-text); }
@media (max-width: 767px) { .srs-promise__more { display: none; } .srs-promise { text-align: center; } }
.srs-reviews { width: 100%; font-family: "Afacad", sans-serif; }
.srs-reviews__title { margin: 0 0 10px !important; font-weight: 700; color: var(--srs-navy); font-size: 18px; }
.srs-reviews ul { margin: 0 !important; padding: 0 !important; list-style: none !important; display: grid; gap: 10px; }
.srs-reviews li { margin: 0 !important; padding: 12px 14px; background: var(--srs-sky); border-radius: 10px; list-style: none !important; }
.srs-reviews blockquote { margin: 0 0 4px; padding: 0; border: 0; font-size: 16px; line-height: 1.45; color: var(--srs-text); font-style: normal; }
.srs-reviews li span { font-size: 14px; color: var(--srs-muted); }
.srs-reviews__more { display: inline-block; margin-top: 10px; color: var(--srs-blue) !important; text-decoration: underline !important; }
.srs-problems { font-family: "Afacad", sans-serif; }
.srs-problems__title { margin: 0 0 20px !important; text-align: center; font-size: 36px !important; color: var(--srs-navy); }
.srs-problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.srs-problems__grid > div { padding: 18px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 20px 25px -5px rgba(0, 74, 153, .06); }
.srs-problems__grid p { margin: 0 !important; font-size: 16px; line-height: 1.45; color: var(--srs-muted); }
.srs-problems__grid .srs-problems__q { margin-bottom: 6px !important; font-size: 18px; font-weight: 700; color: var(--srs-navy); }
@media (max-width: 767px) { .srs-problems__title { font-size: 28px !important; } }

/* Product page comparison: the HTML widget sits in a centred flex column, so give it the full width. */
.elementor-widget-html:has(.srs-compare--product), .elementor-widget-html:has(.srs-reviews), .elementor-widget-html:has(.srs-problems) { width: 100%; max-width: 100%; }
.srs-compare--product table { font-size: 17px; }
.srs-compare thead th { color: #fff !important; font-size: 15px; }
.srs-compare a { text-decoration: underline !important; text-underline-offset: 2px; font-weight: 600; font-size: inherit !important; }
.srs-answer, .srs-answer p, .srs-pbox, .srs-pbox p, .srs-related, .srs-toc { text-align: left !important; }
