/**
 * Legacy post components — replaces inline style="" blocks in guide content.
 * Scoped under .entry-content / .htr-legacy-scope to avoid theme collisions.
 */

.entry-content .htr-breadcrumb,
.htr-legacy-scope .htr-breadcrumb {
  margin: 20px 0;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9em;
}

.entry-content .htr-breadcrumb ol,
.htr-legacy-scope .htr-breadcrumb ol {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.entry-content .htr-breadcrumb li,
.htr-legacy-scope .htr-breadcrumb li {
  display: flex;
  align-items: center;
}

.entry-content .htr-breadcrumb a,
.htr-legacy-scope .htr-breadcrumb a {
  color: #0066cc !important;
  text-decoration: none !important;
}

.entry-content .htr-breadcrumb .htr-bc-sep,
.htr-legacy-scope .htr-breadcrumb .htr-bc-sep {
  margin: 0 8px;
  color: #6c757d;
}

.entry-content .htr-breadcrumb .htr-bc-current,
.htr-legacy-scope .htr-breadcrumb .htr-bc-current {
  color: #495057;
}

/* Last verified badge — calm blue trust signal (not warning red) */
.entry-content .htr-last-verified,
.htr-legacy-scope .htr-last-verified,
.entry-content .last-updated-badge.htr-last-verified,
.htr-legacy-scope .last-updated-badge.htr-last-verified {
  background: linear-gradient(135deg, #e8f4fd 0%, #d6ebff 100%);
  border-left: 4px solid #1565c0;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  color: #0d47a1;
}

.entry-content .htr-last-verified__row,
.htr-legacy-scope .htr-last-verified__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-content .htr-last-verified__icon,
.htr-legacy-scope .htr-last-verified__icon {
  font-size: 1.5em;
  line-height: 1;
}

.entry-content .htr-last-verified strong,
.entry-content .htr-last-verified .htr-last-verified__title,
.htr-legacy-scope .htr-last-verified strong,
.htr-legacy-scope .htr-last-verified .htr-last-verified__title {
  display: block;
  font-size: 1.1em;
  margin-bottom: 4px;
  color: #0d47a1;
}

.entry-content .htr-last-verified > .htr-last-verified__row > div > span:not(.htr-last-verified__icon),
.entry-content .htr-last-verified .htr-last-verified__subtitle,
.htr-legacy-scope .htr-last-verified > .htr-last-verified__row > div > span:not(.htr-last-verified__icon),
.htr-legacy-scope .htr-last-verified .htr-last-verified__subtitle {
  font-size: 0.9em;
  color: #1565c0;
  opacity: 1;
}

/* Blue info callout */
.entry-content .htr-info-box,
.htr-legacy-scope .htr-info-box {
  background: #f0f7ff;
  border: 1px solid #b8d8ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.entry-content .htr-info-box--meta,
.htr-legacy-scope .htr-info-box--meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.entry-content .htr-info-box--state-cta,
.htr-legacy-scope .htr-info-box--state-cta {
  border-left: 4px solid #1a73e8;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 28px 0;
}

.entry-content .htr-info-box--state-cta strong,
.htr-legacy-scope .htr-info-box--state-cta strong {
  display: block;
  margin-bottom: 6px;
  color: #174ea6;
}

.entry-content .htr-info-box--state-cta p,
.htr-legacy-scope .htr-info-box--state-cta p {
  margin: 0 0 10px;
}

.entry-content .htr-info-box__btn,
.htr-legacy-scope .htr-info-box__btn {
  display: inline-block;
  background: #1a73e8;
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.entry-content .htr-info-box .htr-info-emoji,
.htr-legacy-scope .htr-info-box .htr-info-emoji {
  font-size: 1.3em;
}

/* Amber warning */
.entry-content .htr-warning-box,
.htr-legacy-scope .htr-warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.entry-content .htr-warning-box h3,
.htr-legacy-scope .htr-warning-box h3 {
  margin-top: 0;
  color: #856404;
}

/* Green enforcement / success */
.entry-content .htr-success-box,
.htr-legacy-scope .htr-success-box {
  background: #d4edda;
  border-left: 4px solid #28a745;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.entry-content .htr-success-box h3,
.htr-legacy-scope .htr-success-box h3 {
  margin-top: 0;
  color: #155724;
}

/* Jump links / TOC */
.entry-content .htr-jump-links,
.htr-legacy-scope .htr-jump-links {
  background: #e8f4fd;
  border-left: 4px solid #0066cc;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.entry-content .htr-jump-links h3,
.htr-legacy-scope .htr-jump-links h3 {
  margin-top: 0;
  color: #003d7a;
}

.entry-content .htr-jump-links__grid,
.htr-legacy-scope .htr-jump-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.entry-content .htr-jump-links a,
.htr-legacy-scope .htr-jump-links a {
  color: #0066cc !important;
  text-decoration: none !important;
}

/* State contact grid */
.entry-content .htr-state-grid,
.htr-legacy-scope .htr-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.entry-content .htr-state-card,
.htr-legacy-scope .htr-state-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
}

.entry-content .htr-state-card h4,
.htr-legacy-scope .htr-state-card h4 {
  margin-top: 0;
  color: #0066cc;
  font-size: 0.95em;
}

.entry-content .htr-state-grid--wide,
.htr-legacy-scope .htr-state-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.entry-content .htr-state-card--lg,
.htr-legacy-scope .htr-state-card--lg {
  padding: 20px;
}

.entry-content .htr-state-card--lg h4,
.htr-legacy-scope .htr-state-card--lg h4 {
  margin-top: 0;
  color: #0066cc;
}

.entry-content .htr-state-card--lg p,
.htr-legacy-scope .htr-state-card--lg p {
  margin-bottom: 10px;
}

.entry-content .htr-state-card--lg p:last-child,
.htr-legacy-scope .htr-state-card--lg p:last-child {
  margin-bottom: 0;
}

/* Checklist download CTA */
.entry-content .htr-cta-download,
.htr-legacy-scope .htr-cta-download {
  background: linear-gradient(135deg, #f5576c 0%, #f5576cdd 100%);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  color: #fff;
}

.entry-content .htr-cta-download h3,
.htr-legacy-scope .htr-cta-download h3 {
  color: #fff;
  margin-top: 0;
}

.entry-content .htr-cta-download p,
.htr-legacy-scope .htr-cta-download p {
  color: #fff;
}

.entry-content .htr-cta-download__btn,
.htr-legacy-scope .htr-cta-download__btn {
  background: #fff;
  color: #f5576c !important;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-block;
  font-weight: 700;
}

/* Purple related guides widget */
.entry-content .htr-related-posts,
.htr-legacy-scope .htr-related-posts {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  color: #fff;
}

.entry-content .htr-related-posts h3,
.htr-legacy-scope .htr-related-posts h3 {
  margin-top: 0;
  color: #fff;
}

.entry-content .htr-related-posts__grid,
.htr-legacy-scope .htr-related-posts__grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.entry-content .htr-related-posts a,
.htr-legacy-scope .htr-related-posts a {
  color: #fff !important;
  text-decoration: none !important;
}

/* Legal / evidence callout (legacy htr-sensitive-guide-note) */
.entry-content .htr-evidence-box,
.entry-content .htr-sensitive-guide-note.htr-evidence-box,
.htr-legacy-scope .htr-evidence-box {
  border: 2px solid #8a4b00;
  background: #fff8e6;
  color: #25221f;
  padding: 18px;
  border-radius: 8px;
  margin: 24px 0;
}

.entry-content .htr-evidence-box h2,
.htr-legacy-scope .htr-evidence-box h2 {
  margin-top: 0;
}

/* Legacy related-posts-widget shell */
.entry-content .related-posts-widget.htr-related-posts,
.htr-legacy-scope .related-posts-widget.htr-related-posts {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  color: #fff;
}

.entry-content .htr-related-posts__link,
.htr-legacy-scope .htr-related-posts__link {
  border-radius: 8px;
  padding: 15px 20px;
  color: #fff !important;
  text-decoration: none !important;
  display: block;
}

.entry-content .htr-related-posts__arrow,
.htr-legacy-scope .htr-related-posts__arrow {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2em;
}

.entry-content nav.breadcrumb-nav.htr-breadcrumb,
.htr-legacy-scope nav.breadcrumb-nav.htr-breadcrumb {
  margin: 20px 0;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9em;
}

/* PDF download callout boxes */
.entry-content .htr-pdf-callout,
.htr-legacy-scope .htr-pdf-callout {
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
}

.entry-content .htr-pdf-callout--blue,
.htr-legacy-scope .htr-pdf-callout--blue {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #1565c0;
}

.entry-content .htr-pdf-callout--red,
.htr-legacy-scope .htr-pdf-callout--red {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #c62828;
}

.entry-content .htr-pdf-callout--purple,
.htr-legacy-scope .htr-pdf-callout--purple {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border: 2px solid #4a148c;
}

.entry-content .htr-pdf-callout--orange,
.htr-legacy-scope .htr-pdf-callout--orange {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #e65100;
}

.entry-content .htr-pdf-callout--teal,
.htr-legacy-scope .htr-pdf-callout--teal {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border: 2px solid #00695c;
}

.entry-content .htr-pdf-callout--green,
.htr-legacy-scope .htr-pdf-callout--green {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #2e7d32;
}

.entry-content .htr-pdf-callout h3,
.htr-legacy-scope .htr-pdf-callout h3 {
  margin: 0 0 10px 0;
}

.entry-content .htr-pdf-callout--blue h3,
.htr-legacy-scope .htr-pdf-callout--blue h3 { color: #0d47a1; }

.entry-content .htr-pdf-callout--red h3,
.htr-legacy-scope .htr-pdf-callout--red h3 { color: #b71c1c; }

.entry-content .htr-pdf-callout--purple h3,
.htr-legacy-scope .htr-pdf-callout--purple h3 { color: #4a148c; }

.entry-content .htr-pdf-callout--orange h3,
.htr-legacy-scope .htr-pdf-callout--orange h3 { color: #e65100; }

.entry-content .htr-pdf-callout--teal h3,
.htr-legacy-scope .htr-pdf-callout--teal h3 { color: #00695c; }

.entry-content .htr-pdf-callout--green h3,
.htr-legacy-scope .htr-pdf-callout--green h3 { color: #1b5e20; }

.entry-content .htr-pdf-callout p,
.htr-legacy-scope .htr-pdf-callout p {
  margin: 0 0 18px 0;
}

.entry-content .htr-pdf-callout--blue p,
.htr-legacy-scope .htr-pdf-callout--blue p { color: #1565c0; }

.entry-content .htr-pdf-callout--red p,
.htr-legacy-scope .htr-pdf-callout--red p { color: #c62828; }

.entry-content .htr-pdf-callout--purple p,
.htr-legacy-scope .htr-pdf-callout--purple p { color: #6a1b9a; }

.entry-content .htr-pdf-callout--orange p,
.htr-legacy-scope .htr-pdf-callout--orange p { color: #e65100; }

.entry-content .htr-pdf-callout--teal p,
.htr-legacy-scope .htr-pdf-callout--teal p { color: #00695c; }

.entry-content .htr-pdf-callout--green p,
.htr-legacy-scope .htr-pdf-callout--green p { color: #2e7d32; }

.entry-content .htr-pdf-callout a,
.htr-legacy-scope .htr-pdf-callout a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
}

.entry-content .htr-pdf-callout--blue a,
.htr-legacy-scope .htr-pdf-callout--blue a { background: #1565c0; }

.entry-content .htr-pdf-callout--red a,
.htr-legacy-scope .htr-pdf-callout--red a { background: #c62828; }

.entry-content .htr-pdf-callout--purple a,
.htr-legacy-scope .htr-pdf-callout--purple a { background: #4a148c; }

.entry-content .htr-pdf-callout--orange a,
.htr-legacy-scope .htr-pdf-callout--orange a { background: #e65100; }

.entry-content .htr-pdf-callout--teal a,
.htr-legacy-scope .htr-pdf-callout--teal a { background: #00695c; }

.entry-content .htr-pdf-callout--green a,
.htr-legacy-scope .htr-pdf-callout--green a { background: #2e7d32; }

/* Agency quick-reference gray box */
.entry-content .htr-ref-box,
.htr-legacy-scope .htr-ref-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  margin: 30px 0;
}

.entry-content .htr-ref-box h3,
.htr-legacy-scope .htr-ref-box h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #212529;
}

.entry-content .htr-ref-box > p,
.htr-legacy-scope .htr-ref-box > p {
  margin: 10px 0 15px;
  font-size: 0.95em;
  color: #6c757d;
}

.entry-content .htr-ref-box ul,
.htr-legacy-scope .htr-ref-box ul {
  line-height: 1.8;
}

.entry-content .htr-ref-box a,
.htr-legacy-scope .htr-ref-box a {
  color: #0066cc;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.entry-content .htr-last-reviewed-inline,
.htr-legacy-scope .htr-last-reviewed-inline {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
}

.entry-content .htr-cta-download__title,
.htr-legacy-scope .htr-cta-download__title {
  color: #fff;
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.entry-content .htr-cta-download__lead,
.htr-legacy-scope .htr-cta-download__lead {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #fff;
}

/* CTA download color variants */
.entry-content .htr-cta-download--purple,
.htr-legacy-scope .htr-cta-download--purple {
  background: linear-gradient(135deg, #667eea 0%, #667eeadd 100%);
}

.entry-content .htr-cta-download--pink,
.htr-legacy-scope .htr-cta-download--pink {
  background: linear-gradient(135deg, #fa709a 0%, #fa709add 100%);
}

.entry-content .htr-cta-download--sky,
.htr-legacy-scope .htr-cta-download--sky {
  background: linear-gradient(135deg, #4facfe 0%, #4facfedd 100%);
}

.entry-content .htr-cta-download__btn--purple,
.htr-legacy-scope .htr-cta-download__btn--purple {
  color: #667eea !important;
}

.entry-content .htr-cta-download__btn--pink,
.htr-legacy-scope .htr-cta-download__btn--pink {
  color: #fa709a !important;
}

.entry-content .htr-cta-download__btn--sky,
.htr-legacy-scope .htr-cta-download__btn--sky {
  color: #4facfe !important;
}

/* Glass related-post links (on purple widget) */
.entry-content .htr-related-posts__link--glass,
.htr-legacy-scope .htr-related-posts__link--glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

/* Sidebar / agency callouts */
.entry-content .htr-callout,
.htr-legacy-scope .htr-callout {
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
}

.entry-content .htr-callout--navy,
.htr-legacy-scope .htr-callout--navy {
  background: #f0f4f8;
  border-left: 4px solid #2c5282;
}

.entry-content .htr-callout--green,
.htr-legacy-scope .htr-callout--green {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
}

.entry-content .htr-callout--orange,
.htr-legacy-scope .htr-callout--orange {
  background: #fff3e0;
  border-left: 4px solid #e65100;
}

/* Tip boxes (do / don't) */
.entry-content .htr-tip,
.htr-legacy-scope .htr-tip {
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
}

.entry-content .htr-tip--info,
.htr-legacy-scope .htr-tip--info {
  background: #eff6ff;
  border-left: 4px solid #1a56db;
}

.entry-content .htr-tip--danger,
.htr-legacy-scope .htr-tip--danger {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
}

.entry-content .htr-tip--success,
.htr-legacy-scope .htr-tip--success {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}

/* Neutral content panels */
.entry-content .htr-panel,
.htr-legacy-scope .htr-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 28px;
  margin: 32px 0;
}

.entry-content .htr-card,
.htr-legacy-scope .htr-card {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.entry-content .htr-card h3,
.entry-content .htr-card h4,
.htr-legacy-scope .htr-card h3,
.htr-legacy-scope .htr-card h4 {
  margin: 0 0 12px 0;
}

/* Semantic inline text */
.entry-content .htr-text-good,
.htr-legacy-scope .htr-text-good {
  color: #16a34a;
}

.entry-content .htr-text-bad,
.htr-legacy-scope .htr-text-bad {
  color: #dc2626;
}

.entry-content .htr-img-center,
.htr-legacy-scope .htr-img-center {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

/* Body photos in guides */
.entry-content .htr-body-figure,
.htr-legacy-scope .htr-body-figure {
  max-width: 620px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.entry-content .htr-body-figure img,
.htr-legacy-scope .htr-body-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.entry-content .htr-body-figure figcaption,
.htr-legacy-scope .htr-body-figure figcaption {
  background: #f8fafc;
  padding: 10px 16px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
  line-height: 1.45;
}

.entry-content .htr-agency-pills,
.htr-legacy-scope .htr-agency-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.entry-content .htr-agency-pills span,
.htr-legacy-scope .htr-agency-pills span {
  background: #e0e7ff;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.entry-content .htr-letter-template,
.htr-legacy-scope .htr-letter-template {
  background: #f1f5f9;
  border-left: 4px solid #1d4ed8;
  padding: 20px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.6;
  margin: 24px 0;
  white-space: pre-wrap;
}
