/**
 * HowToRepel — Guide visual kit (v2)
 * Reusable article chrome: callouts, decision strips, keep-notes, pullquotes,
 * myth/fact, pro boxes, mistakes, related chips, charts, steps, FAQ, CTA.
 * Enqueued on singular posts that contain .htr-kit (theme: astra-custom).
 *
 * Brand accent matches Claude draft green (#2d8a5e).
 */

.htr-kit {
  --htr-ink: #1a1a1a;
  --htr-ink-soft: #333;
  --htr-muted: #6b7280;
  --htr-line: #e5e5e5;
  --htr-surface: #f9f9f7;
  --htr-surface-2: #f5f5f3;
  --htr-accent: #2d8a5e;
  --htr-accent-soft: #e8f5ee;
  --htr-accent-mid: #c8e6d4;
  --htr-accent-wash: #f0f7f4;
  --htr-danger: #8b2020;
  --htr-danger-soft: #fce8e8;
  --htr-warn: #7a5200;
  --htr-warn-soft: #fff8e6;
  --htr-warn-border: #f5c842;
  --htr-radius: 10px;
  --htr-radius-sm: 8px;
  --htr-max: 42rem;

  color: var(--htr-ink);
  max-width: var(--htr-max);
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.htr-kit > *:first-child {
  margin-top: 0;
}

.htr-kit h2 {
  font-size: 1.35rem;
  font-weight: 650;
  color: #111;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.htr-kit h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: #111;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.htr-kit p {
  margin: 0 0 1.05rem;
}

.htr-kit .htr-lead {
  font-size: 1.08rem;
  font-weight: 500;
}

/* —— Quick answer —— */
.htr-quick {
  background: var(--htr-accent-wash);
  border: 1px solid var(--htr-accent-mid);
  border-radius: var(--htr-radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.htr-quick p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.htr-quick strong:first-child {
  color: var(--htr-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.35rem;
}

/* —— Dividers —— */
.htr-rule {
  height: 1px;
  background: var(--htr-line);
  border: 0;
  margin: 2rem 0;
}

/* —— Callouts —— */
.htr-callout {
  border-radius: 0 var(--htr-radius-sm) var(--htr-radius-sm) 0;
  padding: 0.95rem 1.1rem;
  margin: 1.15rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.htr-callout p {
  margin: 0;
}

.htr-callout--tip {
  background: var(--htr-accent-wash);
  border-left: 4px solid var(--htr-accent);
}

.htr-callout--warning {
  background: var(--htr-warn-soft);
  border: 1px solid var(--htr-warn-border);
  border-radius: var(--htr-radius-sm);
  color: var(--htr-warn);
}

/* —— Badges —— */
.htr-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.htr-badge--ok {
  background: var(--htr-accent-soft);
  color: #1a5e38;
}

.htr-badge--warn {
  background: #fff3cd;
  color: var(--htr-warn);
}

.htr-badge--danger {
  background: var(--htr-danger-soft);
  color: var(--htr-danger);
}

/* —— Tables (fit content column; scroll only if needed) —— */
.entry-content .wp-block-table,
.ast-article-single .wp-block-table,
.htr-fit-table,
.htr-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid var(--htr-line, #e5e5e5);
  border-radius: var(--htr-radius, 10px);
  background: #fff;
  box-sizing: border-box;
}

.entry-content .wp-block-table table,
.ast-article-single .wp-block-table table,
.htr-fit-table table,
.htr-kit table.htr-table {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td,
.ast-article-single .wp-block-table th,
.ast-article-single .wp-block-table td,
.htr-fit-table th,
.htr-fit-table td,
.htr-kit .htr-table th,
.htr-kit .htr-table td {
  padding: 0.5rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal !important;
  hyphens: auto;
}

.entry-content .wp-block-table thead th,
.ast-article-single .wp-block-table thead th,
.htr-fit-table thead th,
.htr-kit .htr-table thead th {
  background: var(--htr-surface-2, #f5f5f3);
  font-weight: 650;
  color: #111;
  border-bottom: 2px solid #ddd;
  white-space: normal !important;
  font-size: 0.78rem;
}

/* 4-column guides: balanced widths */
.htr-fit-table table th:nth-child(1),
.htr-fit-table table td:nth-child(1) { width: 22%; }
.htr-fit-table table th:nth-child(2),
.htr-fit-table table td:nth-child(2) { width: 34%; }
.htr-fit-table table th:nth-child(3),
.htr-fit-table table td:nth-child(3) { width: 22%; }
.htr-fit-table table th:nth-child(4),
.htr-fit-table table td:nth-child(4) { width: 22%; }

@media (max-width: 640px) {
  .entry-content .wp-block-table table,
  .ast-article-single .wp-block-table table,
  .htr-fit-table table {
    font-size: 0.75rem;
  }

  .entry-content .wp-block-table th,
  .entry-content .wp-block-table td,
  .htr-fit-table th,
  .htr-fit-table td {
    padding: 0.4rem 0.4rem;
  }
}

.htr-kit .htr-table tbody tr:last-child td {
  border-bottom: 0;
}

.htr-kit .htr-table tbody tr:nth-child(even),
.entry-content .wp-block-table tbody tr:nth-child(even),
.htr-fit-table tbody tr:nth-child(even) {
  background: var(--htr-surface, #f9f9f7);
}

.htr-kit .htr-table tr.htr-row--alert {
  background: #fff8f8;
}

.htr-kit .htr-table .htr-num {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.htr-kit .htr-table .htr-stars {
  color: var(--htr-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

/* Effectiveness bar (cleaner than only stars) */
.htr-eff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.htr-eff__track {
  display: inline-flex;
  gap: 3px;
  height: 8px;
  align-items: center;
}

.htr-eff__pip {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: var(--htr-accent-mid);
}

.htr-eff__pip.is-on {
  background: var(--htr-accent);
}

.htr-eff__label {
  font-size: 0.7rem;
  color: var(--htr-muted);
  font-variant-numeric: tabular-nums;
}

/* —— Seasonal / bar chart (SVG) —— */
.htr-chart {
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1rem;
  margin: 1.5rem 0;
}

.htr-chart__label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.htr-chart__svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.htr-chart__note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.45;
}

/* Legacy CSS-bar chart (kept for older drafts) */
.htr-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  border-bottom: 2px solid #ddd;
}

.htr-chart__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}

.htr-chart__bar {
  width: 100%;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--htr-accent-mid);
  align-self: stretch;
}

.htr-chart__col.is-peak .htr-chart__bar {
  background: var(--htr-accent);
}

.htr-chart__peak {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--htr-accent);
  white-space: nowrap;
}

.htr-chart__months {
  display: flex;
  gap: 4px;
  margin-top: 0.4rem;
}

.htr-chart__months span {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  color: #999;
  min-width: 0;
}

.htr-chart__months span.is-peak {
  color: var(--htr-accent);
  font-weight: 650;
}

/* Easy TOC side panel styles live in design-refresh.css (htr-toc-side-only) */

/* —— Icon / entry grid —— */
.htr-panel {
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-radius: var(--htr-radius);
  padding: 1rem;
  margin: 1rem 0 0;
}

.htr-panel__label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.htr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.htr-tile {
  background: #fff;
  border: 1px solid var(--htr-line);
  border-radius: var(--htr-radius-sm);
  padding: 0.75rem 0.6rem;
  text-align: center;
}

.htr-tile__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--htr-accent-soft);
  color: var(--htr-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.htr-tile__title {
  font-size: 0.78rem;
  font-weight: 650;
  color: #111;
  margin: 0 0 0.2rem;
}

.htr-tile__desc {
  font-size: 0.7rem;
  color: #888;
  line-height: 1.4;
  margin: 0;
}

/* —— Method sections —— */
.htr-method {
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #eee;
}

.htr-method:last-of-type {
  border-bottom: 0;
}

/* —— Numbered steps —— */
.htr-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  counter-reset: htr-step;
}

.htr-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 0.95rem;
  counter-increment: htr-step;
  font-size: 0.95rem;
  line-height: 1.65;
}

.htr-steps li::before {
  content: counter(htr-step);
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--htr-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htr-steps li p {
  margin: 0;
}

/* —— FAQ —— */
.htr-faq {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--htr-line);
}

.htr-faq:last-of-type {
  border-bottom: 0;
}

.htr-faq h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.htr-faq p {
  margin: 0;
  color: var(--htr-ink-soft);
  font-size: 0.95rem;
}

/* —— Bottom tags (Claude-style topic pills) —— */
.htr-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--htr-line);
}

.htr-tags__label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin-right: 0.25rem;
}

.htr-tags a,
.htr-tags span.htr-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 550;
  color: #1a5e38;
  background: var(--htr-accent-soft);
  border: 1px solid var(--htr-accent-mid);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
  line-height: 1.3;
}

.htr-tags a:hover {
  background: var(--htr-accent);
  border-color: var(--htr-accent);
  color: #fff;
}

/* —— Featured / inline figures inside kit —— */
.htr-kit .htr-hero {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--htr-surface);
}

.htr-kit .htr-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}

.htr-kit .htr-hero figcaption,
.htr-kit .htr-figure figcaption {
  font-size: 0.8rem;
  color: var(--htr-muted);
  padding: 0.55rem 0.15rem 0;
  line-height: 1.4;
}

.htr-kit .htr-figure {
  margin: 1.5rem 0;
}

.htr-kit .htr-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--htr-radius);
  border: 1px solid var(--htr-line);
}

.htr-kit .htr-takeaways {
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-radius: var(--htr-radius);
  padding: 1rem 1.15rem 0.85rem;
  margin: 0 0 1.5rem;
}

.htr-kit .htr-takeaways h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.htr-kit .htr-takeaways ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.htr-kit .htr-takeaways li {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.htr-kit .htr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--htr-muted);
  margin: 0 0 1.25rem;
}

/* —— Checklist CTA (visual only until form wired) —— */
.htr-cta {
  background: #eef7f2;
  border: 1px solid #b2ddc4;
  border-radius: var(--htr-radius-sm);
  padding: 1.5rem 1.5rem 1.35rem;
  margin: 2.25rem 0 0;
}

.htr-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.htr-cta p {
  font-size: 0.95rem;
  color: var(--htr-ink-soft);
}

.htr-cta ul {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.15rem;
}

.htr-cta li {
  font-size: 0.95rem;
  color: var(--htr-ink-soft);
  margin: 0 0 0.3rem;
  line-height: 1.6;
}

.htr-cta__note {
  margin: 0;
  font-size: 0.78rem;
  color: #888;
}

.htr-cta__placeholder {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--htr-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  border-radius: 4px;
  margin: 0.25rem 0 0.65rem;
  opacity: 0.85;
}

/* —— Decision strip (after comparison table) —— */
.htr-decide {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 1.5rem;
  padding: 0.95rem 1.1rem;
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-left: 4px solid var(--htr-accent);
  border-radius: 0 var(--htr-radius-sm) var(--htr-radius-sm) 0;
}

.htr-decide__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--htr-accent);
}

.htr-decide__rows {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.htr-decide__rows li {
  display: grid;
  grid-template-columns: minmax(5.5rem, 30%) 1fr;
  gap: 0.5rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.htr-decide__rows strong {
  color: var(--htr-ink);
  font-weight: 650;
}

.htr-decide__rows span {
  color: var(--htr-ink-soft);
}

/* —— Critical keep-note (in-flow only; no floating sticky) —— */
.htr-keep {
  margin: 1.25rem 0 1.5rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--htr-accent-mid);
  border-radius: var(--htr-radius-sm);
  box-shadow: 0 1px 0 rgba(45, 138, 94, 0.08);
}

.htr-keep__label {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--htr-accent);
}

.htr-keep p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--htr-ink);
}

/* —— Rule-of-thumb pullquote (max 1 per guide) —— */
.htr-pullquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem 1.1rem 1.35rem;
  background: var(--htr-accent-wash);
  border-left: 4px solid var(--htr-accent);
  border-radius: 0 var(--htr-radius) var(--htr-radius) 0;
}

.htr-pullquote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--htr-ink);
}

.htr-pullquote__note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--htr-muted);
}

/* —— Myth vs fact —— */
.htr-myth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.35rem 0 1.5rem;
}

.htr-myth__cell {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--htr-radius-sm);
  border: 1px solid var(--htr-line);
  background: var(--htr-surface);
}

.htr-myth__cell--myth {
  background: #fff8f8;
  border-color: #f0d0d0;
}

.htr-myth__cell--fact {
  background: var(--htr-accent-wash);
  border-color: var(--htr-accent-mid);
}

.htr-myth__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.htr-myth__cell--myth .htr-myth__label {
  color: var(--htr-danger);
}

.htr-myth__cell--fact .htr-myth__label {
  color: var(--htr-accent);
}

.htr-myth__cell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--htr-ink-soft);
}

/* —— When to call a pro —— */
.htr-pro {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--htr-warn-soft);
  border: 1px solid var(--htr-warn-border);
  border-radius: var(--htr-radius-sm);
}

.htr-pro__label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--htr-warn);
}

.htr-pro p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--htr-ink-soft);
}

.htr-pro ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.htr-pro li {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--htr-ink-soft);
}

/* —— Common mistakes —— */
.htr-mistakes {
  margin: 1.35rem 0 1.5rem;
  padding: 1rem 1.15rem 0.9rem;
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-radius: var(--htr-radius);
}

.htr-mistakes__label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.htr-mistakes ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.htr-mistakes li {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--htr-ink-soft);
}

.htr-mistakes li strong {
  color: var(--htr-ink);
  font-weight: 650;
}

/* —— Seasonal act-now line (under chart) —— */
.htr-actnow {
  margin: -0.35rem 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--htr-accent-soft);
  border-radius: var(--htr-radius-sm);
  border: 1px solid var(--htr-accent-mid);
}

.htr-actnow p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1a5e38;
}

.htr-actnow strong {
  font-weight: 650;
}

/* —— Related guide chips (before FAQ) —— */
.htr-related {
  margin: 1.75rem 0 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--htr-line);
}

.htr-related__label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.htr-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.htr-related__list a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 550;
  color: #1a5e38;
  background: #fff;
  border: 1px solid var(--htr-accent-mid);
  border-radius: var(--htr-radius-sm);
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  line-height: 1.35;
}

.htr-related__list a:hover,
.htr-related__list a:focus {
  background: var(--htr-accent);
  border-color: var(--htr-accent);
  color: #fff;
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .htr-kit {
    font-size: 1rem;
  }

  .htr-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .htr-chart__peak {
    font-size: 0.6rem;
  }

  .htr-chart__months span {
    font-size: 0.55rem;
  }

  .htr-decide__rows li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .htr-myth {
    grid-template-columns: 1fr;
  }

  .htr-pullquote p {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .htr-grid {
    grid-template-columns: 1fr;
  }
}



/* —— Collapsible secondary methods —— */
.htr-more {
  margin: 1.15rem 0 1.5rem;
  padding: 0 1rem 0.85rem;
  background: var(--htr-surface);
  border: 1px solid var(--htr-line);
  border-radius: var(--htr-radius);
}

.htr-more > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--htr-ink);
  padding: 0.85rem 0 0.55rem;
}

.htr-more > summary::-webkit-details-marker {
  display: none;
}

.htr-more > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.35rem;
  color: var(--htr-accent);
  font-weight: 700;
}

.htr-more[open] > summary::before {
  content: "–";
}

.htr-more__body {
  padding: 0.25rem 0 0.35rem;
  border-top: 1px solid var(--htr-line);
}

.htr-more__body h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.htr-more__body p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--htr-ink-soft);
}

.htr-mistakes p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--htr-ink-soft);
}

/* Hide Astra Related Posts when theme Related Guides cards exist */
body:has(aside.htr-related) .ast-single-related-posts-container {
  display: none !important;
}

/* —— Print —— */
@media print {
  .htr-kit {
    max-width: none;
    color: #000;
  }

  .htr-cta,
  .htr-cta__placeholder {
    display: none;
  }

  .htr-chart__bar,
  .htr-eff__pip.is-on {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
