/* ═══════════════════════════════════════════════════
   BLOG POST — Extra Styles
   ═══════════════════════════════════════════════════ */

/* ── Hero — same island + hero.webp + radius as reviews-hero ── */
body.getlegalstatus .post-hero {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 30px clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  background-color: var(--color-hero-darkest);
  background-image:
    linear-gradient(140deg, rgba(var(--color-hero-darkest-rgb), 0.93) 0%, rgba(var(--color-primary-dark-rgb), 0.88) 55%, rgba(var(--color-hero-deep-rgb), 0.86) 100%),
    url(../images/hero.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.getlegalstatus .post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
body.getlegalstatus .post-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1440px !important;
}

/* Article + sidebar — match .post-hero island width (shell .container defaults to 1200px) */
body.getlegalstatus .post-body-section > .container {
  max-width: 1440px !important;
}
@media (max-width: 768px) {
  body.getlegalstatus .post-hero {
    border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.breadcrumbs a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumbs a:hover { color: rgba(255,255,255,.9); }
.breadcrumbs .sep { color: rgba(255,255,255,.3); font-size: 12px; }
.breadcrumbs .current { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }

/* Post meta header */
.post-meta-header { margin-bottom: 28px; }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
  color: var(--color-accent);
  text-decoration: none;
}
.post-cat:hover { background: color-mix(in srgb, var(--color-accent) 38%, transparent); }
.post-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.post-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 28px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.post-author-block { display: flex; align-items: center; gap: 10px; }
.post-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-card-mid), var(--color-card-light));
  flex-shrink: 0;
}
.post-author-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.post-author-name { font-size: 14px; font-weight: 600; color: #fff; }
.post-author-role { font-size: 12px; color: rgba(255,255,255,.5); }
.post-meta-divider { width: 1px; height: 30px; background: rgba(255,255,255,.15); }
.post-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.6); }
.post-meta-item svg { opacity: .7; flex-shrink: 0; }
.post-rating-stars { display: flex; gap: 2px; align-items: center; }
.post-rating-stars .post-star-img {
  width: 14px; height: 14px; display: block;
}
.post-rating-val { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; margin-left: 4px; }

/* Hero image strip */
.post-hero-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-top: 8px;
}
.post-hero-img-placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-card-mid) 50%, var(--color-primary-dark) 100%);
}
.post-hero-img-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Featured visual at top of article card (full bleed to card edges) */
.post-article-inner > .post-hero-img-placeholder {
  margin: -48px -52px 32px -52px;
  width: auto;
  border-radius: 20px 20px 0 0;
  height: clamp(220px, 36vw, 360px);
}
.post-article-inner > .post-hero-img-placeholder + h2 { margin-top: 0; }

/* ── Layout: article + sidebar ── */
.post-body-section {
  background: var(--color-bg-v-light, #f5f8ff);
  padding: 60px 0 80px;
  position: relative;
  z-index: 0;
}
/* Main column + fixed-ish sidebar; stack on small viewports only (769px+ = article | sidebar) */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 48px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Explicit columns: article left, sidebar right (avoids broken auto-placement / stray DOM) */
body.getlegalstatus.single-post .post-body-section .post-layout > #post-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
body.getlegalstatus.single-post .post-body-section .post-layout > .post-sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  justify-self: stretch;
}

@media (max-width: 1200px) {
  .post-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}
@media (max-width: 900px) {
  .post-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }
}
@media (max-width: 768px) {
  .post-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
  }
  body.getlegalstatus.single-post .post-body-section .post-layout > #post-main,
  body.getlegalstatus.single-post .post-body-section .post-layout > .post-sidebar {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
}

/* Single post — phones: full-width band (cancel global .container inset). 769px+ uses two columns + shell padding. */
@media (max-width: 768px) {
  body.single-post .post-hero {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: clamp(24px, 5vw, 30px);
    padding-bottom: clamp(24px, 5vw, 30px);
    padding-left: 0;
    padding-right: 0;
    border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
  }
  body.single-post .post-hero .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
  }
  body.single-post .post-body-section {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  body.single-post .post-body-section > .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  body.single-post .post-layout {
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  body.single-post #post-main,
  body.single-post .post-sidebar {
    width: 100%;
    max-width: 100%;
  }
  body.single-post #post-content,
  body.single-post #post-main > .comments-section,
  body.single-post #post-main .comments-section .comment-respond {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.single-post .post-article-inner {
    --post-mobile-pad: max(16px, env(safe-area-inset-left, 0px));
    --post-mobile-pad-r: max(16px, env(safe-area-inset-right, 0px));
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: var(--post-mobile-pad);
    padding-right: var(--post-mobile-pad-r);
    box-sizing: border-box;
  }
  body.single-post .post-article-inner > .post-hero-img-placeholder {
    margin-left: calc(-1 * var(--post-mobile-pad));
    margin-right: calc(-1 * var(--post-mobile-pad-r));
    width: calc(100% + var(--post-mobile-pad) + var(--post-mobile-pad-r));
    max-width: none;
    border-radius: 0;
  }
  body.single-post .comments-section,
  body.single-post .related-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
  body.single-post .post-sidebar .sidebar-form-card,
  body.single-post .post-sidebar .sidebar-info-card,
  body.single-post .post-sidebar .sidebar-author-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  body.single-post #post-main .comments-section .comment-respond {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* ── Article typography ── */
.post-article { min-width: 0; }
.post-article-inner {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px 52px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .post-article-inner { padding: 28px 20px; }
  .post-article-inner > .post-hero-img-placeholder {
    margin: -28px -20px 24px -20px;
    border-radius: 20px 20px 0 0;
  }
}

.post-article h2 {
  font-size: 26px; font-weight: 800; color: var(--color-secondary);
  line-height: 1.25; letter-spacing: -.3px;
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  position: relative;
}
.post-article h2:first-child { margin-top: 0; }
.post-article h3 {
  font-size: 20px; font-weight: 700; color: var(--color-secondary);
  line-height: 1.3; letter-spacing: -.2px;
  margin: 36px 0 12px;
}
.post-article h4 {
  font-size: 16px; font-weight: 700; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 28px 0 10px;
}
.post-article p {
  font-size: 15.5px; line-height: 1.8; color: var(--color-text);
  margin-bottom: 20px;
}
.post-article ul, .post-article ol {
  margin: 0 0 20px 0; padding-left: 24px;
}
.post-article li {
  font-size: 15.5px; line-height: 1.8; color: var(--color-text);
  margin-bottom: 6px;
}
.post-article strong { color: var(--color-secondary); font-weight: 700; }
.post-article a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-article a:hover { color: var(--color-secondary); }

/* ── Highlight block ── */
.post-highlight {
  background: linear-gradient(135deg, #eff5ff, #e0eaff);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  padding: 22px 28px;
  margin: 32px 0;
  position: relative;
}
.post-highlight-icon {
  position: absolute; top: -14px; left: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.post-highlight-icon img {
  width: 14px; height: 14px;
  filter: brightness(0) invert(1);
}
.post-highlight p { margin: 0; font-size: 15px; color: var(--color-secondary); font-weight: 500; line-height: 1.7; }

/* ── Warning highlight ── */
.post-highlight.warn {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent-light) 45%, #fff),
    color-mix(in srgb, var(--color-accent-light) 72%, #fff)
  );
  border-color: var(--color-accent);
}
.post-highlight.warn .post-highlight-icon { background: var(--color-accent); }

/* ── Quote block ── */
.post-quote {
  position: relative;
  margin: 36px 0;
  padding: 28px 36px 28px 56px;
  background: #f8faff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}
.post-quote::before {
  content: '"';
  position: absolute; top: 8px; left: 20px;
  font-size: 72px; line-height: 1; color: var(--color-primary); opacity: .25;
  font-family: Georgia, serif;
}
.post-quote blockquote {
  margin: 0; padding: 0;
  font-size: 17px; font-style: italic; line-height: 1.75;
  color: var(--color-secondary);
}
.post-quote cite {
  display: block; margin-top: 12px;
  font-size: 13px; font-style: normal;
  color: var(--color-text-secondary); font-weight: 600;
}

/* ── Inline image ── */
.post-img-block { margin: 36px 0; }
.post-img-block .post-img-frame {
  width: 100%;
  height: clamp(200px, 28vw, 320px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.post-img-block figcaption {
  margin-top: 10px; text-align: center;
  font-size: 13px; color: var(--color-text-secondary); line-height: 1.5;
}
/* ── Table ── */
.post-table-wrap { overflow-x: auto; margin: 32px 0; border-radius: 12px; border: 1px solid var(--color-border); }
.post-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.post-table thead th {
  background: var(--color-primary);
  color: #fff;
  padding: 13px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.post-table thead th:first-child { border-radius: 11px 0 0 0; }
.post-table thead th:last-child { border-radius: 0 11px 0 0; }
.post-table tbody tr:nth-child(even) { background: #f5f8ff; }
.post-table tbody tr:hover { background: #eff4ff; }
.post-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  line-height: 1.5;
}
.post-table tbody tr:last-child td { border-bottom: none; }

/* ── Inline CTA (compact promo → modal) ── */
.post-cta-closed {
  border: 1.5px solid var(--color-primary);
  border-radius: 16px;
  padding: 22px 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(var(--color-primary-dark-rgb), 0.05) 0%, rgba(var(--color-card-mid-rgb), 0.07) 100%);
  box-shadow: 0 4px 20px rgba(var(--color-primary-dark-rgb), 0.06);
}
.post-cta-closed-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-primary-subtle, #eef4ff);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.post-cta-closed-icon svg { width: 24px; height: 24px; }
.post-cta-closed-text { flex: 1; min-width: min(100%, 220px); }
.post-cta-closed-text h4 { font-size: 17px; font-weight: 700; color: var(--color-secondary); margin: 0 0 6px; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.post-cta-closed-text p { font-size: 14px; color: var(--color-text-secondary); margin: 0; line-height: 1.55; }
.post-cta-closed .btn {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.post-cta-closed .btn:hover { opacity: 0.92; transform: translateY(-1px); }
/* Article links use primary blue — restore contrast on primary button */
.post-article-inner .post-cta-closed a.btn.btn-primary {
  color: #fff;
  text-decoration: none;
}
.post-article-inner .post-cta-closed a.btn.btn-primary:hover,
.post-article-inner .post-cta-closed a.btn.btn-primary:focus-visible {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 560px) {
  .post-cta-closed {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .post-cta-closed-icon { margin: 0 auto; }
  .post-cta-closed .btn { margin-left: 0; width: 100%; box-sizing: border-box; }
}

/* ── Sidebar ──
   Sticky is desktop-only: on narrow layouts it can paint over the footer. */
.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  z-index: 1;
}
/* Disable sticky when layout stacks (single column) */
@media (max-width: 768px) {
  .post-sidebar {
    position: static;
    top: auto;
    z-index: auto;
  }
}

/* Keep footer above any residual stacking from the post column */
body.single-post .site-footer.f-dark {
  position: relative;
  z-index: 2;
}

/* Sidebar consultation form */
.sidebar-form-card {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-card-mid));
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.sidebar-form-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sidebar-form-inner { position: relative; z-index: 1; }
.sidebar-form-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.sidebar-form-sub { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 24px; line-height: 1.6; }
.sidebar-form-group { margin-bottom: 14px; }
.sidebar-form-group label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.sidebar-form-group .sidebar-input-wrap { position: relative; }
.sidebar-form-group .sidebar-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; pointer-events: none;
  color: var(--form-input-icon-color, var(--color-neutral-400));
}
.sidebar-form-group .sidebar-input-icon img {
  width: 16px; height: 16px; display: block; object-fit: contain;
}
.sidebar-form-group input,
.sidebar-form-group select {
  width: 100%; height: 46px; padding: 0 16px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font); font-size: 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.sidebar-form-group .sidebar-input-wrap input { padding-left: 42px; }
.sidebar-form-group input::placeholder { color: rgba(255,255,255,.4); }
.sidebar-form-group input:focus,
.sidebar-form-group select:focus { border-color: rgba(255,255,255,.6); }
.sidebar-form-group select { cursor: pointer; }
.sidebar-form-group select option { color: #111; background: #fff; }
.sidebar-submit {
  width: 100%; height: 50px;
  background: var(--color-accent, #E8A020); color: #fff;
  border: none; border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  cursor: pointer; margin-top: 8px;
  transition: opacity .15s, transform .15s;
}
.sidebar-submit:hover { opacity: .9; transform: translateY(-1px); }
.sidebar-trust {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sidebar-trust-text { font-size: 12px; color: rgba(255,255,255,.72); line-height: 1.5; }

/* Sidebar info card */
.sidebar-info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
.sidebar-info-title { font-size: 14px; font-weight: 700; color: var(--color-secondary); margin-bottom: 16px; }
.sidebar-toc { list-style: none; margin: 0; padding: 0; }
.sidebar-toc li { margin-bottom: 8px; }
.sidebar-toc a {
  font-size: 13px; color: var(--color-text-secondary);
  text-decoration: none; display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5; transition: color .15s;
}
.sidebar-toc a:hover { color: var(--color-primary); }
.sidebar-toc a::before {
  content: '';
  flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); opacity: .5;
  margin-top: 7px;
}

.sidebar-author-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  text-align: center;
}
.sidebar-author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-card-mid), var(--color-card-light));
  margin: 0 auto 12px;
}
.sidebar-author-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sidebar-author-name { font-size: 15px; font-weight: 700; color: var(--color-secondary); }
.sidebar-author-role { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 10px; }
.sidebar-author-bio { font-size: 12px; color: var(--color-text-secondary); line-height: 1.65; }

/* ── Share bar ── */
.post-share {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
}
.post-share-label { font-size: 13px; font-weight: 700; color: var(--color-secondary); }
.post-share-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.post-share-actions .share-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}
@media (max-width: 768px) {
  .post-share-actions .share-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .post-share-actions .share-btn {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 10px 8px;
    gap: 0;
  }
  .post-share-actions .share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}
@media (max-width: 640px) {
  .post-share-actions { gap: 6px; }
}
@media (max-width: 400px) {
  .post-share-actions .share-btn svg {
    width: 16px;
    height: 16px;
  }
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
  cursor: pointer; border: none;
}
.share-btn:hover { opacity: .85; }
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.tw { background: #000; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn.li { background: #0a66c2; color: #fff; }
.share-btn.copy { background: #f1f5ff; color: var(--color-primary); border: 1px solid var(--color-border); }

/* ── Comments ── */
.comments-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
}
@media (max-width: 640px) { .comments-section { padding: 24px 20px; } }
.comments-title { font-size: 20px; font-weight: 800; color: var(--color-secondary); margin-bottom: 28px; }
.comment-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.comment-item:last-of-type { border-bottom: none; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #e2eaf5, #c7d9f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--color-primary);
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-name { font-size: 14px; font-weight: 700; color: var(--color-secondary); }
.comment-date { font-size: 12px; color: var(--color-text-secondary); }
.comment-stars { display: inline-flex; gap: 2px; align-items: center; }
.comment-stars .post-star-img { width: 13px; height: 13px; display: block; }
.comment-stars .post-star-img.is-dim { opacity: 0.32; }
.comment-text { font-size: 14px; color: var(--color-text); line-height: 1.7; }
.comment-reply { font-size: 12px; color: var(--color-primary); cursor: pointer; margin-top: 6px; background: none; border: none; font-family: var(--font); font-weight: 600; padding: 0; }
.comment-reply:hover { text-decoration: underline; }

/* Reply form lives inside .comments-section (same card as the list) — #post-main > .comments-section > #respond */
.comments-section .comment-respond {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Legacy: form rendered outside .comments-section (plugins) */
.post-body-section .comment-respond {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.post-body-section .comment-respond .comment-reply-title,
.post-body-section .comment-respond #reply-title.comment-form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 20px;
}
.post-body-section .comment-respond .comment-reply-title small {
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
}
.post-body-section .comment-respond .comment-reply-title small a {
  color: var(--color-primary);
  text-decoration: none;
}
.post-body-section .comment-respond .comment-reply-title small a:hover {
  text-decoration: underline;
}
.post-body-section .logged-in-as {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}
.post-body-section .logged-in-as a {
  color: var(--color-primary);
}

/* Core markup: <form class="comment-form"> with <p class="comment-form-*"> */
.post-body-section .comment-form {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  align-items: start;
}
@media (max-width: 520px) {
  .post-body-section .comment-form {
    grid-template-columns: 1fr;
  }
}
.post-body-section .comment-form .comment-form-comment,
.post-body-section .comment-form .comment-form-url,
.post-body-section .comment-form .form-submit,
.post-body-section .comment-form .comment-subscription-form,
.post-body-section .comment-form .comment-form-cookies-consent {
  grid-column: 1 / -1;
}

.post-body-section .comment-form .comment-form-author,
.post-body-section .comment-form .comment-form-email,
.post-body-section .comment-form .comment-form-url,
.post-body-section .comment-form .comment-form-comment,
.post-body-section .comment-form .comment-form-cookies-consent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.post-body-section .comment-form label,
.post-body-section .comment-form .required-field-message {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.post-body-section .comment-form .required {
  color: var(--color-primary);
}
.post-body-section .comment-form input[type="text"],
.post-body-section .comment-form input[type="email"],
.post-body-section .comment-form input[type="url"],
.post-body-section .comment-form textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font); font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.post-body-section .comment-form input:focus,
.post-body-section .comment-form textarea:focus {
  border-color: var(--color-primary);
}
.post-body-section .comment-form textarea {
  resize: vertical;
  min-height: 120px;
}
.post-body-section .comment-form .comment-form-cookies-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  color: var(--color-text);
}
.post-body-section .comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}
.post-body-section .comment-form .form-submit {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.post-body-section .comment-form .form-submit .comment-submit {
  width: auto;
}

/*
 * Orphan #respond: WordPress sometimes prints it as a direct child of .container
 * (sibling of .post-layout), so it spans the full shell width. Match the main column
 * width (grid col 1 ≈ 100% − gap − sidebar) and the same card as .comments-section.
 */
body.getlegalstatus.single-post .post-body-section > .container > #respond.comment-respond {
  width: 100%;
  max-width: calc(100% - 48px - 340px); /* .post-layout gap + max sidebar */
  margin-left: 0;
  margin-right: auto;
  padding: 40px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  margin-bottom: 32px;
}
@media (max-width: 1200px) {
  body.getlegalstatus.single-post .post-body-section > .container > #respond.comment-respond {
    max-width: calc(100% - 32px - 300px);
  }
}
@media (max-width: 900px) {
  body.getlegalstatus.single-post .post-body-section > .container > #respond.comment-respond {
    max-width: calc(100% - 24px - 280px);
  }
}
@media (max-width: 768px) {
  body.getlegalstatus.single-post .post-body-section > .container > #respond.comment-respond {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 640px) {
  body.getlegalstatus.single-post .post-body-section > .container > #respond.comment-respond {
    padding: 24px max(16px, env(safe-area-inset-left, 0px)) 24px max(16px, env(safe-area-inset-right, 0px));
  }
}
/* Legacy selector (direct child of section — rare) */
body.getlegalstatus.single-post .post-body-section > .comment-respond {
  max-width: calc(100% - 48px - 340px);
  margin-left: 0;
  margin-right: auto;
  padding: 40px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  margin-bottom: 32px;
}

.comment-form { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--color-border); }
.comment-form-title { font-size: 16px; font-weight: 700; color: var(--color-secondary); margin-bottom: 20px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 520px) { .comment-form-row { grid-template-columns: 1fr; } }
.cf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cf-group label { font-size: 12px; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: .4px; }
.cf-group input,
.cf-group textarea,
.cf-group .star-rating-wrap input {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font); font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%; box-sizing: border-box;
}
.cf-group input:focus,
.cf-group textarea:focus { border-color: var(--color-primary); }
.cf-group textarea { resize: vertical; min-height: 100px; }
.star-rating-wrap { display: flex; gap: 4px; cursor: pointer; align-items: center; }
.star-rating-wrap span { line-height: 0; opacity: 0.35; transition: opacity .1s; }
.star-rating-wrap span img { width: 22px; height: 22px; display: block; }
.star-rating-wrap span.filled, .star-rating-wrap span:hover { opacity: 1; }
.comment-submit {
  height: 50px; padding: 0 36px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 12px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .15s;
}
.comment-submit:hover { background: var(--color-secondary); }

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Related articles ── */
.related-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
}
@media (max-width: 640px) { .related-section { padding: 24px 20px; } }
.related-title { font-size: 20px; font-weight: 800; color: var(--color-secondary); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.related-card {
  border: 1px solid var(--color-border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.related-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.related-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e2eaf5, #c7d9f0);
  position: relative;
  overflow: hidden;
}
.related-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-card-body { padding: 16px; flex: 1; }
.related-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--color-primary); margin-bottom: 6px; }
.related-card-title { font-size: 14px; font-weight: 700; color: var(--color-secondary); line-height: 1.45; margin-bottom: 8px; }
.related-card:hover .related-card-title { color: var(--color-primary); }
.related-card-meta { font-size: 12px; color: var(--color-text-secondary); }
#related .related-card,
#related .related-card:hover,
#related .related-card * {
  text-decoration: none;
}

.sidebar-trust-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-trust-icon img {
  width: 20px; height: 20px; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.modal-eyebrow-img {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.widget-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.widget-modal-close img { width: 16px; height: 16px; display: block; }

/* Sidebar contact honeypot + nested TOC (WP single) */
.gls-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.sidebar-toc__item--h3 {
  padding-left: 12px;
}

