/* HowToReport.org visual polish v1.2.1 */

/* Hide the theme-generated duplicate quick answer and redundant TOC. */
.htr-quick-answer + .htr-quick-answer { display: none !important; }
.htr-jump-links.htr-toc { display: none !important; }
:root {
  --htr-ink: #10231f;
  --htr-body: #40524d;
  --htr-muted: #6b7c77;
  --htr-green: #087f5b;
  --htr-green-dark: #075c45;
  --htr-mint: #e8f6f0;
  --htr-orange: #ed6a2d;
  --htr-cream: #fbfaf6;
  --htr-border: #dfe8e4;
  --htr-shadow: 0 16px 40px rgba(22, 51, 43, .10);
}

body.htr-site { background: var(--htr-cream) !important; color: var(--htr-body); }
body.htr-site #masthead { background: rgba(251,250,246,.96) !important; border-bottom-color: rgba(8,127,91,.16) !important; }
body.htr-site .inside-header { min-height: 74px; }
body.htr-site .htr-svg-logo a { width: 224px !important; height: 44px !important; }
body.htr-site .main-navigation .main-nav > ul > li > a { font-size: 13px !important; letter-spacing: .01em; }
body.htr-site .main-navigation .htr-nav-search-item > a { background: var(--htr-orange) !important; box-shadow: 0 5px 14px rgba(237,106,45,.22); }
body.htr-site .main-navigation .htr-nav-search-item:hover > a { background: #cf5520 !important; }

/* Readability-first article layout */
body.single-post .site-main { background: #fff !important; }
body.single-post .content-area { width: 100% !important; }
body.single-post .entry-header,
body.single-post .entry-content,
body.single-post .comments-area { max-width: 820px; margin-left: auto; margin-right: auto; }
body.single-post .entry-header { padding-left: 22px; padding-right: 22px; }
body.single-post .entry-content {
  padding: 0 22px 48px;
  color: #30423d;
  font-size: 18px;
  line-height: 1.72;
}
body.single-post .entry-content p,
body.single-post .entry-content li { max-width: 70ch; }
body.single-post .entry-content p { margin: 0 0 1.15rem; }
body.single-post .entry-content h2 {
  max-width: 70ch;
  margin: 2.6rem 0 .85rem !important;
  padding: 0 0 0 14px !important;
  border-left: 4px solid var(--htr-orange) !important;
  color: var(--htr-ink) !important;
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
  line-height: 1.2 !important;
}
body.single-post .entry-content h3 {
  margin: 1.8rem 0 .6rem !important;
  color: var(--htr-ink) !important;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
}
body.single-post .entry-content ul,
body.single-post .entry-content ol { max-width: 70ch; margin: 0 0 1.35rem; padding-left: 1.35rem; }
body.single-post .entry-content li { margin: 0 0 .55rem; }
body.single-post .entry-content a { text-underline-offset: 3px; }
body.single-post .entry-content strong { color: #20352f; }

.htr-quick-answer {
  max-width: 70ch;
  margin: 0 0 1.8rem;
  padding: 18px 20px;
  background: #eef8f3;
  border: 1px solid #b9e0ce;
  border-left: 5px solid var(--htr-green);
  border-radius: 0 12px 12px 0;
}
.htr-quick-answer p { margin: .35rem 0 0 !important; }
.htr-callout-label { display: block; color: var(--htr-green) !important; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.htr-guide-ux-block {
  max-width: 70ch;
  margin: 1.4rem 0 1.8rem;
  padding: 1.15rem 1.2rem;
  background: #f5f9f7 !important;
  border: 1px solid var(--htr-border) !important;
  border-radius: 12px;
}
.htr-guide-ux-block .steps { display: grid; gap: 0; }
.htr-guide-ux-block .step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--htr-border); line-height: 1.55; }
.htr-guide-ux-block .step:first-child { padding-top: 0; }
.htr-guide-ux-block .step:last-child { padding-bottom: 0; border-bottom: 0; }
.htr-guide-ux-block .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--htr-green); color: #fff; font-weight: 800; font-size: .9rem; }

.htr-deadline-callout, .htr-sample-script, .htr-callout-green {
  max-width: 70ch;
  margin: 1.4rem 0;
  line-height: 1.6;
}
.htr-deadline-callout { background: #fff9e8 !important; border: 1px solid #f3d98b !important; border-left: 5px solid #c47a00 !important; border-radius: 0 12px 12px 0; padding: 16px 20px !important; }
.htr-deadline-callout p, .htr-callout-green p { margin: .4rem 0 0 !important; }
.htr-sample-script { padding: 16px 20px; background: #f8fbfa; border: 1px solid var(--htr-border); border-left: 5px solid var(--htr-green); border-radius: 0 12px 12px 0; font-size: .94em; }
.htr-callout-green { padding: 16px 20px; background: var(--htr-mint) !important; border: 1px solid #b9e0ce !important; border-left: 5px solid var(--htr-green) !important; border-radius: 0 12px 12px 0 !important; }

.htr-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 70ch; margin: 1.2rem 0 1.5rem; }
.htr-related-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--htr-border); border-radius: 10px; text-decoration: none !important; color: inherit !important; }
.htr-related-cat { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--htr-green); }
.htr-related-title { font-weight: 700; line-height: 1.35; color: var(--htr-ink); }
.htr-related-excerpt { font-size: .82em; line-height: 1.45; color: var(--htr-muted); }
.htr-official-list { list-style: none; padding-left: 0 !important; max-width: 70ch; }
.htr-official-list li { padding: 12px 14px; margin-bottom: 8px !important; background: #f8fbfa; border: 1px solid var(--htr-border); border-radius: 10px; }
.table-wrap { max-width: 70ch; overflow-x: auto; margin: 1.2rem 0 1.8rem; }
.table-wrap table { min-width: 620px; border-collapse: collapse; font-size: .9em; line-height: 1.45; }
.table-wrap th { background: var(--htr-green-dark); color: #fff; text-align: left; }
.table-wrap th, .table-wrap td { padding: 12px 13px; border: 1px solid #cfe0d8; vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #f5f9f7; }

/* Existing homepage and global polish */
.htr-home.htr-v3 { background: var(--htr-cream); }
.htr-v3-topbar { background: #f6efe4; border-bottom-color: #eadbc6; }
.htr-v3-hero { padding: 76px 0 54px; background: radial-gradient(circle at 9% 5%, rgba(8,127,91,.13), transparent 34%), linear-gradient(180deg,#fff 0%,#f4f7f3 100%); }
.htr-v3-hero-shell { gap: 52px; align-items: center; }
.htr-v3-eyebrow { color: var(--htr-orange); letter-spacing: .1em; font-size: 12px; }
.htr-v3-h1 { color: var(--htr-ink); font-size: clamp(2.6rem, 5vw, 4.65rem); line-height: .98; max-width: 720px; }
.htr-v3-lead { color: #52655f; font-size: 19px; max-width: 600px; }
.htr-v3-search { max-width: 600px; }
.htr-v3-search-input { min-height: 58px !important; border-radius: 12px !important; border-color: #cddbd4 !important; }
.htr-v3-search-btn { border-radius: 12px; background: var(--htr-orange); }
.htr-v3-search-btn:hover { background: #cf5520; }
.htr-v3-hero-proof { border: 1px solid #d8e7df; border-radius: 20px; box-shadow: var(--htr-shadow); padding: 28px; }
.htr-v3-hero-proof::before { content: 'TRUSTED STARTING POINT'; display: block; color: var(--htr-green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.htr-v3-hero-proof h2 { color: var(--htr-ink) !important; font-size: 1.6rem !important; }
.htr-v3-proof-list li::before { background: var(--htr-orange); }
.htr-v3-quicklinks a { border-color: #d2e0d9; background: rgba(255,255,255,.72); }
.htr-v3-quicklinks a:hover { border-color: var(--htr-green); background: var(--htr-mint); }
.htr-v3-trust { background: var(--htr-green-dark) !important; color: #fff !important; }
.htr-v3-trust strong, .htr-v3-trust span { color: #fff !important; }
.htr-v3-start { background: #fff !important; border-top: 1px solid var(--htr-border); border-bottom: 1px solid var(--htr-border); }
.htr-v3-section-head h2, .htr-v3-topics h2, .htr-v3-guides h2, .htr-v3-how h2 { color: var(--htr-ink) !important; }
.htr-v3-topic-card, .htr-v3-guide-card { border-color: var(--htr-border) !important; box-shadow: 0 8px 20px rgba(30,63,52,.04); border-radius: 16px !important; }
.htr-v3-topic-card:hover, .htr-v3-guide-card:hover { border-color: rgba(8,127,91,.5) !important; transform: translateY(-3px); box-shadow: var(--htr-shadow); }
.htr-v3-topic-card h3, .htr-v3-guide-card h3 { color: var(--htr-ink) !important; }
.htr-v3-topic-card .htr-v3-card-kicker { color: var(--htr-orange) !important; }
.htr-v3-cta { background: var(--htr-green-dark) !important; border-radius: 20px !important; }
.htr-footer-top { background: #12372e !important; border-top: 0 !important; }
body.htr-site .site-footer, body.htr-site .site-info { background: #0c241f !important; }

@media (max-width: 768px) {
  body.single-post .entry-content { padding-left: 18px; padding-right: 18px; font-size: 17px; line-height: 1.68; }
  body.single-post .entry-header { padding-left: 18px; padding-right: 18px; }
  .htr-related-grid { grid-template-columns: 1fr; }
  .htr-v3-hero { padding: 48px 0 34px; }
  .htr-v3-hero-shell { gap: 28px; }
  .htr-v3-h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .htr-v3-lead { font-size: 17px; }
  .htr-v3-search { flex-direction: column; }
  .htr-v3-search-btn { min-height: 50px; }
  body.htr-site .htr-svg-logo a { width: 190px !important; }
}


/* ==========================================================================
   Smart Proportional Fit for Hero & Featured Images (Site-Wide Standard)
   ========================================================================== */
.featured-image.page-header-image-single,
.page-header-image-single,
.single .featured-image,
.single-post .inside-article > .featured-image,
.single-post .featured-image {
  max-width: 620px !important;
  margin: 24px auto !important;
  text-align: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.featured-image.page-header-image-single img,
.page-header-image-single img,
.single .featured-image img,
.single-post .inside-article > .featured-image img,
.single-post .featured-image img,
.single-post .wp-post-image {
  width: 100% !important;
  max-height: 340px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

.htr-image-container {
  max-width: 620px !important;
  margin: 28px auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.htr-image-container img {
  width: 100% !important;
  max-height: 340px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Standardize body figures and in-post photos */
.htr-body-figure {
  max-width: 620px !important;
  margin: 28px auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.htr-body-figure img,
.htr-body-photo {
  width: 100% !important;
  max-height: 340px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

.htr-body-figure figcaption {
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #475569 !important;
  background: #f8fafc !important;
  text-align: center !important;
  border-top: 1px solid #e2e8f0 !important;
  margin: 0 !important;
}


/* ==========================================================================
   PHASE 1: INTERACTIVE DISPUTE LETTER TOOLBAR
   ========================================================================== */
.htr-letter-template {
  position: relative !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 5px solid #2563eb !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 32px auto !important;
  max-width: 760px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.htr-letter-toolbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 10px 16px !important;
}

.htr-letter-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.htr-letter-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.htr-btn-copy-letter,
.htr-btn-print-letter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  line-height: 1 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.htr-btn-copy-letter:hover,
.htr-btn-print-letter:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.htr-btn-copy-letter.htr-copied {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.htr-letter-body {
  padding: 20px 22px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 14px !important;
  color: #1e293b !important;
  line-height: 1.7 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  background: #ffffff !important;
}

/* ==========================================================================
   PHASE 2: READING PROGRESS BAR & FLOATING BACK TO TOP
   ========================================================================== */
#htr-progress-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3.5px !important;
  background: transparent !important;
  z-index: 99999 !important;
  pointer-events: none !important;
}

#htr-progress-bar {
  height: 100% !important;
  width: 0% !important;
  background: linear-gradient(90deg, #059669 0%, #2563eb 100%) !important;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4) !important;
  transition: width 0.08s ease-out !important;
}

#htr-back-to-top {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease !important;
}

#htr-back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#htr-back-to-top:hover {
  background: #2563eb !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

/* ==========================================================================
   PHASE 3: E-E-A-T AUTHOR & EDITORIAL DESK BIO BOX
   ========================================================================== */
.htr-author-card {
  max-width: 760px !important;
  margin: 40px auto 32px auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
}

.htr-author-avatar {
  flex-shrink: 0 !important;
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: #e0f2fe !important;
  border: 2px solid #bae6fd !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0369a1 !important;
  font-weight: 800 !important;
  font-size: 24px !important;
}

.htr-author-info {
  flex: 1 !important;
}

.htr-author-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.htr-author-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.htr-author-role {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #047857 !important;
  background: #ecfdf5 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  border: 1px solid #a7f3d0 !important;
}

.htr-author-bio {
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 0 12px 0 !important;
}

.htr-author-meta-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  font-size: 13px !important;
  color: #64748b !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 10px !important;
}

.htr-author-meta-links a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.htr-author-meta-links a:hover {
  text-decoration: underline !important;
}

@media (max-width: 640px) {
  .htr-author-card {
    flex-direction: column !important;
    gap: 14px !important;
    padding: 18px !important;
  }
}


/* ==========================================================================
   PHASE 4: CATEGORY ARCHIVE MODERN PILLAR HUBS
   ========================================================================== */
body.category .site-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 36px 24px !important;
}

body.category .page-header {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 32px 28px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  text-align: left !important;
}

body.category .page-header h1 {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.02em !important;
}

body.category .page-header p {
  font-size: 16px !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: 800px !important;
}

body.category #main {
  display: block !important;
}

body.category .htr-archive-featured-grid,
body.category .htr-archive-guide-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 14px !important;
  margin-bottom: 36px !important;
}

body.category .htr-archive-section-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 28px 0 6px 0 !important;
}

body.category .htr-archive-range {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 16px 0 8px 0 !important;
}

body.category article.post {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.category article.post:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 22px -3px rgba(0, 0, 0, 0.07) !important;
  border-color: #cbd5e1 !important;
}

body.category .inside-article {
  padding: 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  justify-content: space-between !important;
}

body.category .entry-header {
  margin-bottom: 10px !important;
}

body.category .entry-title {
  font-size: 17.5px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  margin: 0 !important;
}

body.category .entry-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

body.category .entry-title a:hover {
  color: #2563eb !important;
}

/* Clean out empty/broken featured images on category cards */
body.category .post-image {
  display: none !important;
}

body.category .entry-summary {
  font-size: 14.5px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 0 0 16px 0 !important;
  flex: 1 !important;
}

body.category .entry-summary p {
  margin: 0 !important;
}

body.category .entry-meta {
  display: none !important;
}

body.category .inside-article::after {
  content: "View Filing Protocol →" !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}


/* ==========================================================================
   ITEM 1: DEDICATED PRINT STYLESHEET (@media print)
   ========================================================================== */
@media print {
  header.site-header,
  nav.main-navigation,
  .htr-breadcrumbs,
  .htr-jump-links.htr-toc,
  #htr-progress-container,
  #htr-back-to-top,
  .htr-letter-toolbar,
  .htr-related-guides,
  .comments-area,
  footer.site-footer,
  .site-footer,
  footer.site-info,
  .htr-guide-trust-footer,
  .htr-footer-top,
  .htr-footer-grid,
  .htr-footer-trust,
  .htr-hub-nav,
  .htr-btn-copy-letter,
  .htr-btn-print-letter,
  .sidebar,
  #right-sidebar {
    display: none !important;
  }

  body, .site, #page, #content, #primary, main {
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .entry-header {
    border-bottom: 2pt solid #0f172a !important;
    padding-bottom: 12pt !important;
    margin-bottom: 18pt !important;
  }

  .entry-title {
    font-size: 20pt !important;
    color: #000000 !important;
    line-height: 1.2 !important;
    margin-bottom: 6pt !important;
  }

  body::before {
    content: "HowToReport.org • Official Citizen Dispute & Administrative Filing Dossier" !important;
    display: block !important;
    font-family: sans-serif !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #475569 !important;
    border-bottom: 1pt solid #cbd5e1 !important;
    padding-bottom: 4pt !important;
    margin-bottom: 16pt !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  h2, h3 {
    page-break-after: avoid !important;
    break-after: avoid !important;
    color: #000000 !important;
    margin-top: 16pt !important;
  }

  table, .htr-callout-green, .htr-letter-template, .htr-author-card, figure, .htr-statutory-drawer-wrap {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .htr-letter-template {
    border: 1pt solid #000000 !important;
    border-left: 4pt solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 14pt 0 !important;
  }

  .htr-letter-body {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 10pt !important;
    padding: 12pt !important;
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   ITEM 2: READING TIME & WORD COUNT BADGE
   ========================================================================== */
.htr-reading-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.htr-stat-badge {
  font-weight: 600 !important;
  color: #0369a1 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}

/* ==========================================================================
   ITEM 3: CUSTOM 404 RESCUE PAGE STYLING
   ========================================================================== */
.htr-404-container {
  max-width: 1100px !important;
  margin: 40px auto 60px auto !important;
  padding: 0 20px !important;
}

.htr-404-hero {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 44px 36px !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 40px !important;
}

.htr-404-badge {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.htr-404-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.02em !important;
}

.htr-404-desc {
  font-size: 16.5px !important;
  color: #475569 !important;
  max-width: 720px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.6 !important;
}

.htr-404-search-form {
  display: flex !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  gap: 8px !important;
}

.htr-404-search-input {
  flex: 1 !important;
  height: 48px !important;
  padding: 0 18px !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: #0f172a !important;
  transition: border-color 0.15s ease !important;
}

.htr-404-search-input:focus {
  border-color: #2563eb !important;
  outline: none !important;
}

.htr-404-search-btn {
  height: 48px !important;
  padding: 0 24px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.htr-404-search-btn:hover {
  background: #1d4ed8 !important;
}

.htr-404-section-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 36px 0 16px 0 !important;
}

.htr-hotline-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 40px !important;
}

.htr-hotline-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 18px !important;
}

.htr-hotline-num {
  display: inline-block !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #dc2626 !important;
  margin-bottom: 4px !important;
}

.htr-hotline-card strong {
  display: block !important;
  font-size: 15px !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

.htr-hotline-card p {
  font-size: 13.5px !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.htr-404-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 18px !important;
}

.htr-cat-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease !important;
}

.htr-cat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06) !important;
  border-color: #cbd5e1 !important;
}

.htr-cat-card h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.htr-cat-card p {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 0 0 14px 0 !important;
  line-height: 1.5 !important;
}

.htr-cat-card span {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
}

/* ==========================================================================
   ITEM 4: STATUTORY AUTHORITY DRAWER ACCORDION
   ========================================================================== */
.htr-statutory-drawer-wrap {
  max-width: 760px !important;
  margin: 36px auto 24px auto !important;
}

.htr-statutory-details {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.htr-statutory-details[open] {
  border-color: #94a3b8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.htr-statutory-summary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 18px 22px !important;
  cursor: pointer !important;
  list-style: none !important;
  user-select: none !important;
  background: #ffffff !important;
}

.htr-statutory-summary::-webkit-details-marker {
  display: none !important;
}

.htr-statutory-summary-content {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.htr-statutory-icon {
  font-size: 24px !important;
}

.htr-statutory-title {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.htr-statutory-sub {
  display: block !important;
  font-size: 13px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.htr-statutory-toggle {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #bfdbfe !important;
  white-space: nowrap !important;
}

.htr-statutory-body {
  padding: 22px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.htr-statutory-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 18px !important;
}

.htr-statutory-col h4 {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin: 0 0 10px 0 !important;
}

.htr-statutory-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.htr-statutory-col li {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
  position: relative !important;
  padding-left: 14px !important;
}

.htr-statutory-col li::before {
  content: "•" !important;
  position: absolute !important;
  left: 0 !important;
  color: #2563eb !important;
}

.htr-statutory-col a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.htr-statutory-col a:hover {
  text-decoration: underline !important;
}

.htr-statutory-disclaimer {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 12px !important;
}

/* ==========================================================================
   FIX BYLINE ALIGNMENT & BR SUPPRESSION
   ========================================================================== */
.htr-article-meta {
  max-width: 760px !important;
  margin: 16px auto 32px auto !important;
  padding: 12px 18px !important;
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #166534 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
  line-height: 1.5 !important;
}

.htr-article-meta br {
  display: none !important;
}

.htr-article-meta strong {
  color: #14532d !important;
  font-weight: 700 !important;
}

.htr-article-meta-sep {
  color: #86efac !important;
  font-size: 14px !important;
  user-select: none !important;
}

.htr-article-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.htr-reading-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ==========================================================================
   PERFECT INLINE BYLINE FORMATTING (NO FLEX SHATTERING)
   ========================================================================== */
p.htr-article-meta {
  max-width: 760px !important;
  margin: 16px auto 32px auto !important;
  padding: 14px 20px !important;
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #166534 !important;
  display: block !important;
  line-height: 2 !important;
  text-align: left !important;
}

p.htr-article-meta br {
  display: none !important;
}

p.htr-article-meta strong {
  color: #14532d !important;
  font-weight: 700 !important;
}

.htr-article-meta-item {
  display: inline !important;
}

.htr-article-meta-sep {
  color: #86efac !important;
  font-size: 14px !important;
  margin: 0 8px !important;
  display: inline !important;
  user-select: none !important;
}

.htr-reading-stat {
  display: inline !important;
}

.htr-stat-badge {
  font-weight: 600 !important;
  color: #0369a1 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  vertical-align: 1px !important;
}

/* ==========================================================================
   POLISHED HELPFUL ENGAGEMENT & SHARE WIDGET
   ========================================================================== */
.htr-guide-engagement {
  margin: 36px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.htr-helpful-counter {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 24px 20px !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.htr-helpful-title {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 16px 0 !important;
}

.htr-helpful-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 12px !important;
}

.htr-helpful-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.htr-helpful-btn-yes {
  background: #ecfdf5 !important;
  border: 1.5px solid #a7f3d0 !important;
  color: #047857 !important;
}

.htr-helpful-btn-yes:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  transform: translateY(-1px) !important;
}

.htr-helpful-btn-no {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
}

.htr-helpful-btn-no:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
}

.htr-helpful-stats {
  font-size: 13.5px !important;
  color: #64748b !important;
  margin-top: 8px !important;
}

.htr-share-buttons {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  text-align: center !important;
}

.htr-share-title {
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 14px 0 !important;
}

.htr-share-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.htr-share-link,
.htr-share-copy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease !important;
}

.htr-share-link:hover,
.htr-share-copy:hover {
  opacity: 0.9 !important;
}

.htr-share-x {
  background: #000000 !important;
  color: #ffffff !important;
}

.htr-share-facebook {
  background: #1877f2 !important;
  color: #ffffff !important;
}

.htr-share-linkedin {
  background: #0a66c2 !important;
  color: #ffffff !important;
}

.htr-share-copy {
  background: #475569 !important;
  color: #ffffff !important;
}


/* --- WAVE 4: DISPUTE LETTER COPY, PRINT DOSSIER & INTERACTIVE TRACKER --- */
.htr-letter-template {
  position: relative !important;
  padding-top: 50px !important;
}

.htr-copy-letter-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  z-index: 5;
}

.htr-copy-letter-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.htr-copy-letter-btn.is-copied {
  background: #ecfdf5;
  color: #047857;
  border-color: #10b981;
}

.htr-print-dossier-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.htr-print-dossier-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.htr-stage-card {
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.htr-stage-card.is-stage-completed {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.htr-stage-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.htr-stage-check-label input {
  width: 16px;
  height: 16px;
  accent-color: #059669;
  cursor: pointer;
}

.htr-roadmap-progress-wrap {
  margin: 14px 0 20px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.htr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.htr-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media print {
  .htr-copy-letter-btn,
  .htr-print-dossier-btn,
  .htr-stage-check-label,
  .htr-toast,
  .htr-roadmap-progress-wrap {
    display: none !important;
  }
}


/* --- WAVE 5: INSTITUTIONAL FOOTER & HOTLINE BADGES --- */
.site-info {
  padding: 0 !important;
  background: #090d16 !important;
  border-top: 1px solid #1e293b !important;
}

.htr-institutional-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 20px 28px 20px;
  text-align: left;
}

.htr-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 960px) {
  .htr-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .htr-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.htr-footer-brand {
  margin-bottom: 16px;
  display: block;
}

.htr-footer-brand a {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
}

.htr-footer-brand svg.htr-footer-svg-logo {
  height: 40px;
  width: auto;
  max-width: 232px;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.htr-footer-brand a:hover svg.htr-footer-svg-logo {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .htr-footer-brand svg.htr-footer-svg-logo {
    height: 36px;
    max-width: 210px;
  }
}

.htr-footer-mission {
  font-size: 14px;
  color: #94a3b8 !important;
  line-height: 1.6;
  margin-bottom: 14px;
}

.htr-footer-disclaimer-note {
  font-size: 12.5px;
  color: #64748b !important;
  line-height: 1.5;
  border-left: 2px solid #334155;
  padding-left: 10px;
  margin: 0;
}

.htr-footer-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px 0;
}

.htr-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.htr-footer-links li {
  margin-bottom: 9px !important;
}

.htr-footer-links a {
  color: #94a3b8 !important;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}

.htr-footer-links a:hover {
  color: #38bdf8 !important;
  transform: translateX(2px);
  text-decoration: underline;
}

.htr-footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.htr-footer-bottom-sep {
  color: #334155;
}

/* Header Hotline Pill Badges */
.htr-v4-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.htr-v4-emergency a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 12px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.htr-v4-emergency a:hover {
  border-color: #059669;
  color: #047857;
  transform: translateY(-1px);
}


/* --- HERO SECTION REFINEMENT & SPACING BALANCE --- */
.htr-v4-hero {
  padding: 42px 0 24px !important;
}

.htr-v4-hero-grid {
  gap: 28px !important;
  align-items: start !important;
}

.htr-v4-title {
  margin: 0 0 14px !important;
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  line-height: 1.08 !important;
}

.htr-v4-dek {
  margin: 0 0 18px !important;
  font-size: 16.5px !important;
  line-height: 1.55 !important;
  max-width: 540px !important;
}

.htr-v4-search {
  margin-bottom: 12px !important;
  max-width: 100% !important;
}

.htr-v4-chips {
  margin-bottom: 20px !important;
}

/* Jurisdiction & Deadline Tool Card in Hero Main */
.htr-v4-hero-jurisdiction-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  margin-top: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.htr-v4-hero-jurisdiction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.htr-v4-hjc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
}

.htr-v4-hjc-badge {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: 4px;
}

.htr-v4-hjc-scope {
  color: #64748b;
  font-weight: 600;
}

.htr-v4-hjc-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.htr-v4-hjc-text {
  flex: 1;
  min-width: 220px;
}

.htr-v4-hjc-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.htr-v4-hjc-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #475569;
}

.htr-v4-hjc-btn {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25) !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

.htr-v4-hjc-btn:hover {
  background: #1e40af !important;
  transform: translateY(-1px) !important;
}

/* Streamlined Agency Finder Card */
.htr-v4-finder {
  padding: 22px 22px 18px !important;
}

.htr-v4-finder-head h2 {
  font-size: 1.35rem !important;
  margin: 0 0 4px !important;
}

.htr-v4-finder-head p {
  margin: 0 0 14px !important;
  font-size: 13px !important;
}

.htr-v4-finder-fields {
  gap: 10px !important;
}

.htr-v4-finder-btn {
  margin-top: 2px !important;
  padding: 12px 16px !important;
  font-size: 14.5px !important;
}

.htr-v4-finder-help {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
}

.htr-v4-finder-faq {
  margin-top: 10px !important;
}

.htr-v4-finder-faq summary {
  padding: 10px 12px !important;
  font-size: 12.5px !important;
}

.htr-v4-finder-foot {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
}

/* Trust Signals & Pathways Spacing Tightening */
.htr-v4-trust {
  margin: 20px 0 0 !important;
}

.htr-v4-trust li {
  padding: 12px 16px !important;
}

.htr-v4-pathways {
  margin-top: 16px !important;
}

.htr-v4-pathway {
  padding: 14px 16px !important;
}

/* Remove redundant band between hero and topic hubs */
.htr-v4-not-sure {
  display: none !important;
}

.htr-v4-topics {
  padding: 44px 0 !important;
}


/* ==========================================================================
   HOWTOREPORT.ORG - GRAND HOMEPAGE DESIGN SYSTEM V4.1
   ========================================================================== */

/* --- 1. National Scope Authority Metric Ribbon --- */
.htr-v4-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 28px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.htr-v4-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
}

.htr-v4-metric-card:not(:last-child) {
  border-right: 1px solid #F1F5F9;
}

.htr-v4-metric-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.htr-v4-metric-data {
  display: flex;
  flex-direction: column;
}

.htr-v4-metric-data strong {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 2px;
}

.htr-v4-metric-data span {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}

/* --- Section Headers Common --- */
.htr-v4-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.htr-v4-section-head h2 {
  font-family: var(--htr-v3-serif, 'Newsreader', serif) !important;
  font-size: 1.85rem !important;
  color: #0F172A !important;
  margin: 6px 0 4px !important;
  line-height: 1.25 !important;
}

.htr-v4-section-sub {
  font-size: 14.5px;
  color: #64748B;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.htr-v4-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #047857;
  background: #ECFDF5;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.htr-v4-link-all {
  font-size: 13.5px;
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: color 0.15s ease;
}

.htr-v4-link-all:hover {
  color: #065F46 !important;
  text-decoration: underline !important;
}

/* --- 2. Category Topic Grid with Dual-Tone SVG --- */
.htr-v4-topics {
  padding: 52px 0 !important;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.htr-v4-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.htr-v4-topic-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 220px;
  padding: 22px 20px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03) !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  overflow: hidden;
}

.htr-v4-topic-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

.htr-topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.htr-topic-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.htr-v4-topic-card:hover .htr-topic-icon-wrap {
  transform: scale(1.05);
}

.htr-topic-badge {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.htr-topic-content h3 {
  margin: 0 0 6px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  line-height: 1.3 !important;
}

.htr-topic-content p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748B !important;
  line-height: 1.5 !important;
}

.htr-topic-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.htr-topic-action {
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.htr-v4-topic-card:hover .htr-topic-action {
  transform: translateX(3px);
}

/* Category Color Theming */
/* Fraud */
.htr-topic-fraud { border-top: 3px solid #EF4444 !important; }
.htr-topic-fraud .htr-topic-icon-wrap { background: #FEF2F2; border: 1px solid #FEE2E2; color: #DC2626; }
.htr-topic-fraud .htr-topic-badge { background: #FEF2F2; color: #DC2626; }
.htr-topic-fraud .htr-topic-action { color: #DC2626; }
.htr-topic-fraud:hover { border-color: #FCA5A5 !important; }

/* Workplace */
.htr-topic-work { border-top: 3px solid #3B82F6 !important; }
.htr-topic-work .htr-topic-icon-wrap { background: #EFF6FF; border: 1px solid #DBEAFE; color: #2563EB; }
.htr-topic-work .htr-topic-badge { background: #EFF6FF; color: #2563EB; }
.htr-topic-work .htr-topic-action { color: #2563EB; }
.htr-topic-work:hover { border-color: #93C5FD !important; }

/* Consumer */
.htr-topic-consumer { border-top: 3px solid #10B981 !important; }
.htr-topic-consumer .htr-topic-icon-wrap { background: #ECFDF5; border: 1px solid #D1FAE5; color: #059669; }
.htr-topic-consumer .htr-topic-badge { background: #ECFDF5; color: #059669; }
.htr-topic-consumer .htr-topic-action { color: #059669; }
.htr-topic-consumer:hover { border-color: #6EE7B7 !important; }

/* Housing */
.htr-topic-housing { border-top: 3px solid #F59E0B !important; }
.htr-topic-housing .htr-topic-icon-wrap { background: #FFFBEB; border: 1px solid #FEF3C7; color: #D97706; }
.htr-topic-housing .htr-topic-badge { background: #FFFBEB; color: #D97706; }
.htr-topic-housing .htr-topic-action { color: #D97706; }
.htr-topic-housing:hover { border-color: #FCD34D !important; }

/* Government */
.htr-topic-gov { border-top: 3px solid #64748B !important; }
.htr-topic-gov .htr-topic-icon-wrap { background: #F8FAFC; border: 1px solid #E2E8F0; color: #334155; }
.htr-topic-gov .htr-topic-badge { background: #F1F5F9; color: #475569; }
.htr-topic-gov .htr-topic-action { color: #334155; }
.htr-topic-gov:hover { border-color: #CBD5E1 !important; }

/* Health & Safety */
.htr-topic-health { border-top: 3px solid #EC4899 !important; }
.htr-topic-health .htr-topic-icon-wrap { background: #FDF2F8; border: 1px solid #FCE7F3; color: #DB2777; }
.htr-topic-health .htr-topic-badge { background: #FDF2F8; color: #DB2777; }
.htr-topic-health .htr-topic-action { color: #DB2777; }
.htr-topic-health:hover { border-color: #F9A8D4 !important; }

/* Environmental */
.htr-topic-env { border-top: 3px solid #059669 !important; }
.htr-topic-env .htr-topic-icon-wrap { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.htr-topic-env .htr-topic-badge { background: #ECFDF5; color: #047857; }
.htr-topic-env .htr-topic-action { color: #047857; }
.htr-topic-env:hover { border-color: #6EE7B7 !important; }

/* 50-State Directory */
.htr-topic-state { border-top: 3px solid #6366F1 !important; }
.htr-topic-state .htr-topic-icon-wrap { background: #EEF2FF; border: 1px solid #E0E7FF; color: #4F46E5; }
.htr-topic-state .htr-topic-badge { background: #EEF2FF; color: #4F46E5; }
.htr-topic-state .htr-topic-action { color: #4F46E5; }
.htr-topic-state:hover { border-color: #A5B4FC !important; }

/* --- 3. Popular Reporting Guides Grid --- */
.htr-v4-guides {
  padding: 56px 0 !important;
  background: #FFFFFF;
}

.htr-v4-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.htr-guide-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.htr-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.09);
  border-color: #CBD5E1;
}

.htr-guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.htr-guide-cat-tag {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2.5px 7px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}

.htr-guide-badge.htr-badge-fresh {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3.5px !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 2.5px 8px !important;
  border-radius: 9999px !important;
  background: #b45309 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.25) !important;
  line-height: 1.15 !important;
}

.htr-tag-fraud { background: #FEF2F2; color: #DC2626; }
.htr-tag-work { background: #EFF6FF; color: #2563EB; }
.htr-tag-housing { background: #FFFBEB; color: #D97706; }
.htr-tag-gov { background: #F1F5F9; color: #334155; }

.htr-guide-readtime {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

.htr-guide-title {
  margin: 0 0 10px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.htr-guide-title a {
  color: #0F172A !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.htr-guide-title a:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

.htr-guide-excerpt {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.htr-guide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.htr-badge-item {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.htr-guide-card-foot {
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
}

.htr-guide-link {
  font-size: 13px;
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.htr-guide-link:hover {
  gap: 8px;
  text-decoration: underline !important;
}

/* --- 4. Unfolded 3-Step Action Workflow --- */
.htr-v4-steps {
  padding: 56px 0 !important;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.htr-steps-head {
  text-align: center;
  justify-content: center;
  margin-bottom: 36px;
}

.htr-steps-head .htr-v4-section-sub {
  margin: 0 auto;
}

.htr-v4-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.htr-v4-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.htr-v4-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

.htr-step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.htr-v4-step-card h3 {
  margin: 0 0 10px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  line-height: 1.35 !important;
}

.htr-v4-step-card p {
  margin: 0 0 16px !important;
  font-size: 13.5px !important;
  color: #64748B !important;
  line-height: 1.55 !important;
}

.htr-step-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 12px;
  color: #475569;
  font-weight: 550;
}

/* --- 5. Tangible Document & Evidence Checklist Showcase --- */
.htr-v4-resources {
  padding: 56px 0 !important;
  background: #FFFFFF;
}

.htr-resources-wrapper {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  border-radius: 18px;
  padding: 40px;
  color: #FFFFFF;
  box-shadow: 0 12px 28px -6px rgba(6, 78, 59, 0.35);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: center;
}

.htr-v4-resources-copy h2 {
  font-family: var(--htr-v3-serif, 'Newsreader', serif) !important;
  font-size: 1.85rem !important;
  color: #FFFFFF !important;
  margin: 10px 0 12px !important;
  line-height: 1.25 !important;
}

.htr-resources-wrapper .htr-v4-label {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #A7F3D0 !important;
}

.htr-v4-resources-copy p {
  font-size: 14.5px;
  color: #D1FAE5;
  line-height: 1.6;
  margin: 0;
}

.htr-doc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 12.5px;
  color: #ECFDF5;
  font-weight: 600;
}

.htr-v4-pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.htr-doc-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.htr-doc-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}

.htr-doc-card h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
}

.htr-doc-card p {
  font-size: 12px !important;
  color: #64748B !important;
  line-height: 1.45 !important;
  margin: 0 0 14px !important;
  flex-grow: 1;
}

.htr-doc-btn {
  display: inline-block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.htr-doc-btn:hover {
  background: #047857;
  color: #FFFFFF !important;
}

.htr-doc-card-featured {
  background: #F0FDF4;
  border: 2px solid #34D399;
}

.htr-badge-green {
  background: #047857;
  color: #FFFFFF;
}

.htr-btn-primary {
  background: #047857;
  color: #FFFFFF !important;
  border: none;
}

.htr-btn-primary:hover {
  background: #065F46;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1080px) {
  .htr-v4-topic-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .htr-v4-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .htr-v4-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .htr-v4-metric-card:nth-child(2) {
    border-right: none;
  }
  .htr-resources-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .htr-v4-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .htr-v4-topic-grid {
    grid-template-columns: 1fr !important;
  }
  .htr-v4-guide-grid {
    grid-template-columns: 1fr;
  }
  .htr-v4-steps-grid {
    grid-template-columns: 1fr;
  }
  .htr-v4-metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .htr-v4-metric-card {
    border-right: none !important;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 12px;
  }
  .htr-v4-metric-card:last-child {
    border-bottom: none;
  }
  .htr-v4-pdf-grid {
    grid-template-columns: 1fr;
  }
  .htr-resources-wrapper {
    padding: 24px;
  }
}


/* ==========================================================================
   CATEGORY HUB SILOS & 50-STATE DIRECTORY ENHANCEMENT V4.2
   ========================================================================== */

/* --- Category Hub Silos --- */
.htr-category-hub-v4 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.htr-cat-header {
  margin-bottom: 24px;
}

.htr-cat-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.htr-cat-icon-container {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.htr-cat-fraud .htr-cat-icon-container { background: #FEF2F2; border-color: #FEE2E2; color: #DC2626; }
.htr-cat-work .htr-cat-icon-container { background: #EFF6FF; border-color: #DBEAFE; color: #2563EB; }
.htr-cat-consumer .htr-cat-icon-container { background: #ECFDF5; border-color: #D1FAE5; color: #059669; }
.htr-cat-gov .htr-cat-icon-container { background: #F8FAFC; border-color: #E2E8F0; color: #334155; }
.htr-cat-health .htr-cat-icon-container { background: #FDF2F8; border-color: #FCE7F3; color: #DB2777; }
.htr-cat-env .htr-cat-icon-container { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }

.htr-cat-title-block h1 {
  font-family: var(--htr-v3-serif, 'Newsreader', serif) !important;
  font-size: 2.25rem !important;
  color: #0F172A !important;
  margin: 8px 0 !important;
  line-height: 1.2 !important;
}

.htr-cat-lead {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

/* Quick Answer Box */
.htr-cat-quick-answer {
  background: #F8FAFC;
  border-left: 4px solid #047857;
  border-radius: 0 10px 10px 0;
  padding: 18px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.htr-cat-qa-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  background: #ECFDF5;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.htr-cat-quick-answer p {
  margin: 0;
  font-size: 14.5px;
  color: #1E293B;
  line-height: 1.6;
}

/* Jurisdictional Matrix Table */
.htr-cat-matrix-section {
  margin-bottom: 48px;
}

.htr-cat-section-header {
  margin-bottom: 18px;
}

.htr-cat-section-header h2 {
  font-family: var(--htr-v3-serif, 'Newsreader', serif) !important;
  font-size: 1.65rem !important;
  color: #0F172A !important;
  margin: 0 0 6px !important;
}

.htr-cat-section-header p {
  font-size: 14.5px;
  color: #64748B;
  margin: 0;
}

.htr-matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.htr-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.htr-matrix-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.htr-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.htr-matrix-table tr:last-child td {
  border-bottom: none;
}

.htr-matrix-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #334155;
  white-space: nowrap;
}

.htr-matrix-link {
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.htr-matrix-link:hover {
  text-decoration: underline !important;
}

.htr-matrix-phone {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

/* Category Guide Grid */
.htr-cat-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.htr-cat-guide-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.htr-cat-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.htr-cat-guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.htr-cat-badge-mini {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #047857;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
}

.htr-cat-readtime {
  font-size: 12px;
  color: #94A3B8;
}

.htr-cat-guide-card h4 {
  margin: 0 0 8px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.htr-cat-guide-card h4 a {
  color: #0F172A !important;
  text-decoration: none !important;
}

.htr-cat-guide-card h4 a:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

.htr-cat-guide-card p {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  color: #64748B !important;
  line-height: 1.5 !important;
  flex-grow: 1;
}

.htr-cat-guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.htr-cat-guide-pills span {
  font-size: 11px;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2px 6px;
  border-radius: 4px;
}

.htr-cat-guide-foot {
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
  margin-top: auto;
}

.htr-cat-guide-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
}

.htr-cat-guide-link:hover {
  text-decoration: underline !important;
}

/* State Bridge Card */
.htr-cat-bridge-section {
  margin-bottom: 40px;
}

.htr-cat-bridge-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 28px;
}

.htr-cat-bridge-copy h3 {
  font-size: 1.25rem !important;
  color: #0F172A !important;
  margin: 8px 0 !important;
}

.htr-cat-bridge-copy p {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 16px;
  line-height: 1.5;
}

.htr-btn-outline {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #047857 !important;
  background: #FFFFFF;
  border: 1px solid #047857;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.htr-btn-outline:hover {
  background: #ECFDF5;
}

/* --- 50-State Interactive Directory V4 --- */
.htr-state-directory-v4 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.htr-rbs-controls-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.htr-rbs-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.htr-control-group {
  display: flex;
  flex-direction: column;
}

.htr-state-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.htr-state-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.htr-state-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

.htr-state-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.htr-state-abbr-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #2563EB;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htr-state-card-top h4 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

.htr-state-card-top h4 a {
  color: #0F172A !important;
  text-decoration: none !important;
}

.htr-state-card-top h4 a:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

.htr-state-meta {
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
}

.htr-state-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.htr-meta-label {
  color: #64748B;
  font-size: 12px;
}

.htr-state-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  gap: 8px;
}

.htr-state-btn-select {
  font-size: 12.5px;
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
}

.htr-state-btn-select:hover {
  text-decoration: underline !important;
}

.htr-state-btn-gov {
  font-size: 11.5px;
  color: #64748B !important;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none !important;
}

.htr-state-btn-gov:hover {
  color: #0F172A !important;
  border-color: #CBD5E1;
}

.htr-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.htr-btn-back-states {
  font-size: 13px;
  font-weight: 700;
  color: #047857 !important;
  text-decoration: none !important;
}

.htr-btn-back-states:hover {
  text-decoration: underline !important;
}

/* --- Print-to-Mail Letterhead CSS (@media print) --- */
@media print {
  @page {
    size: 8.5in 11in;
    margin: 0.8in;
  }

  /* Strip all website chrome */
  header.site-header,
  footer.site-footer,
  .htr-institutional-footer,
  .htr-header,
  .htr-topbar,
  .htr-v4-hero,
  .htr-guide-nav,
  .htr-guide-trust-footer,
  .htr-helpful-votes,
  .htr-sister-sites,
  .htr-letter-toolbar,
  .htr-letter-customizer-drawer,
  .generate-back-to-top,
  .htr-rbs-controls-wrapper,
  .htr-rbs-submit,
  #comments,
  .sidebar,
  nav,
  button,
  .htr-doc-btn,
  .htr-btn-primary,
  .htr-btn-outline {
    display: none !important;
  }

  body, html {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .htr-letter-template {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: #000000 !important;
    font-family: "Times New Roman", Times, Georgia, serif !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
    page-break-inside: avoid;
  }

  .htr-letter-template strong {
    font-size: 12pt !important;
    letter-spacing: 0.05em;
  }

  a[href]:after {
    content: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .htr-cat-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .htr-state-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .htr-rbs-inputs-grid {
    grid-template-columns: 1fr;
  }
  .htr-cat-bridge-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .htr-cat-guide-grid {
    grid-template-columns: 1fr;
  }
  .htr-state-cards-grid {
    grid-template-columns: 1fr;
  }
  .htr-cat-header-inner {
    flex-direction: column;
    gap: 12px;
  }
}


/* ==========================================================================
   CATEGORY HUB & TABLE FULL-WIDTH FIX V4.3
   ========================================================================== */

/* Force 100% full width on category hub pages and state directory */
body.page-id-757 #right-sidebar,
body.page-id-717 #right-sidebar,
body.page-id-718 #right-sidebar,
body.page-id-720 #right-sidebar,
body.page-id-721 #right-sidebar,
body.page-id-758 #right-sidebar,
body.page-id-719 #right-sidebar,
body.page-id-764 #right-sidebar,
body.page-id-736 #right-sidebar,
body:has(.htr-category-hub-v4) #right-sidebar,
body:has(.htr-state-directory-v4) #right-sidebar {
  display: none !important;
}

body.page-id-757 .content-area,
body.page-id-717 .content-area,
body.page-id-718 .content-area,
body.page-id-720 .content-area,
body.page-id-721 .content-area,
body.page-id-758 .content-area,
body.page-id-719 .content-area,
body.page-id-764 .content-area,
body.page-id-736 .content-area,
body:has(.htr-category-hub-v4) .content-area,
body:has(.htr-state-directory-v4) .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.page-id-757 .inside-article,
body.page-id-717 .inside-article,
body.page-id-718 .inside-article,
body.page-id-720 .inside-article,
body.page-id-721 .inside-article,
body.page-id-758 .inside-article,
body.page-id-719 .inside-article,
body.page-id-764 .inside-article,
body.page-id-736 .inside-article,
body:has(.htr-category-hub-v4) .inside-article,
body:has(.htr-state-directory-v4) .inside-article {
  padding: 0 !important;
}

body.page-id-757 .site-content,
body.page-id-717 .site-content,
body.page-id-718 .site-content,
body.page-id-720 .site-content,
body.page-id-721 .site-content,
body.page-id-758 .site-content,
body.page-id-719 .site-content,
body.page-id-764 .site-content,
body.page-id-736 .site-content,
body:has(.htr-category-hub-v4) .site-content,
body:has(.htr-state-directory-v4) .site-content {
  display: block !important;
}

/* Enhanced Table Layout & Visibility */
.htr-matrix-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
  margin: 18px 0 36px !important;
}

.htr-matrix-table {
  width: 100% !important;
  min-width: 820px !important;
  border-collapse: collapse !important;
  font-size: 14.5px !important;
  text-align: left !important;
  margin: 0 !important;
}

.htr-matrix-table th {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  font-weight: 750 !important;
  padding: 14px 18px !important;
  border-bottom: 2px solid #CBD5E1 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em;
}

.htr-matrix-table td {
  padding: 16px 18px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  color: #334155 !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
}

.htr-matrix-table tbody tr:hover td {
  background: #F8FAFC !important;
}

.htr-matrix-table tr:last-child td {
  border-bottom: none !important;
}

.htr-matrix-table-wrap::after {
  display: block;
  content: '↔ Swipe horizontally to view full routing matrix and hotline numbers';
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

@media (min-width: 960px) {
  .htr-matrix-table-wrap::after {
    display: none !important;
  }
}


/* Checklists Hub Styling V4.4 */
.htr-checklists-hub-v4 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.htr-letter-card-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.htr-letter-card-head h3 {
  margin: 8px 0 6px !important;
  font-size: 1.3rem !important;
  color: #0F172A !important;
  font-weight: 750 !important;
}

.htr-letter-card-head p {
  margin: 0 0 14px !important;
  font-size: 14px !important;
  color: #64748B !important;
  line-height: 1.5 !important;
}

/* Search Page Layout */
.htr-search-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

body.page-id-738 .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.page-id-738 #right-sidebar {
  display: none !important;
}

/* ==========================================================================
   Phase 1 Enhancements: Dropdown Polish, Checklists Actions, Search Chips
   ========================================================================== */

/* 1. Global Navigation Dropdown Polish */
.main-navigation ul ul.sub-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
  padding: 6px 0 !important;
  min-width: 250px !important;
  margin-top: 4px !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.main-navigation ul ul.sub-menu li a {
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  border-left: 3px solid transparent !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
}

.main-navigation ul ul.sub-menu li a:hover,
.main-navigation ul ul.sub-menu li a:focus {
  background: #f8fafc !important;
  color: #1d4ed8 !important;
  border-left-color: #1d4ed8 !important;
  padding-left: 22px !important;
}

/* 2. Dispute Letters Hub Interactive Action Bar & Drawer */
.htr-letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px 0;
}

.htr-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
}

.htr-btn-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.htr-btn-action.htr-btn-copy {
  background: #047857;
  color: #ffffff;
  border-color: #059669;
}

.htr-btn-action.htr-btn-copy:hover {
  background: #065f46;
}

.htr-btn-action.htr-btn-personalize {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

.htr-btn-action.htr-btn-personalize:hover {
  background: #1e40af;
}

.htr-personalizer-drawer {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 16px 0;
}

.htr-personalizer-drawer.active {
  display: block;
}

.htr-personalizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.htr-personalizer-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.htr-personalizer-field input {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}

.htr-personalizer-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Toast Notification */
.htr-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  pointer-events: none;
}

.htr-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Search Quick Filter Chips */
.htr-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px 0;
}

.htr-search-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.htr-search-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.htr-search-chip.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}


/* ==========================================================================
   Phase 2, 3 & 4 Enhancements: Dispute Letters Hub, Related Guides & CWV
   ========================================================================== */

/* Dispute Letters Hub Filter Bar & Edit Mode */
.htr-letters-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 24px 0 28px 0 !important;
  padding: 4px !important;
}

.htr-filter-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1.2 !important;
}

.htr-filter-chip:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.htr-filter-chip.active {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25) !important;
}

.htr-btn-edit-letter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
}

.htr-btn-edit-letter:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.htr-btn-edit-letter.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #3b82f6 !important;
}

.htr-letter-body.htr-editing-active {
  background: #ffffff !important;
  outline: 2px dashed #3b82f6 !important;
  outline-offset: -2px !important;
  cursor: text !important;
}

/* Phase 4: Enforce 16/9 aspect-ratio to guarantee CLS 0.00 */
.htr-image-container img {
  aspect-ratio: 16 / 9 !important;
}

/* Phase 3: Related Citizen Guides Cluster */
.htr-related-guides-box {
  margin: 48px 0 24px 0 !important;
  padding: 24px 28px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.htr-related-guides-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.htr-related-guides-header h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.htr-related-cluster-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

.htr-related-cluster-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.htr-related-cluster-card:hover {
  transform: translateY(-2px) !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37,99,235,0.1) !important;
}

.htr-related-cluster-cat {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #2563eb !important;
  margin-bottom: 6px !important;
}

.htr-related-cluster-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-bottom: 6px !important;
}

.htr-related-cluster-desc {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}


/* ==========================================================================
   Global Instant Search Modal & Interactive Utility Styles
   ========================================================================== */
#htr-floating-search-btn:hover {
  transform: translateY(-2px);
  background: #1e293b !important;
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.2) !important;
}

.htr-modal-backdrop {
  animation: htrFadeIn 0.15s ease-out;
}

@keyframes htrFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#htr-search-modal-dialog {
  animation: htrSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes htrSlideDown {
  from { transform: translateY(-16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.htr-finder-cat-btn:hover {
  border-color: #3b82f6 !important;
  background: #f1f5f9 !important;
}

.htr-finder-issue-btn:hover {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
}

.htr-search-result-row:hover {
  background: #f8fafc !important;
}

.htr-hotline-banner a:hover {
  text-decoration: underline !important;
}


/* ============================================================
   TABLE OF CONTENTS: STICKY RIGHT RAIL (DESKTOP) & COMPACT DRAWER (MOBILE)
   ============================================================ */

/* Hide any legacy/duplicate TOC box from the center flow */
.htr-jump-links.htr-toc {
  display: none !important;
}

/* Ensure smooth scrolling to section anchors with header clearance */
html {
  scroll-behavior: smooth;
}
.entry-content h2[id],
.entry-content h3[id] {
  scroll-margin-top: 100px;
}

/* Desktop: Screens 1240px and wider */
@media (min-width: 1240px) {
  body.single-post #page.grid-container,
  body.single-post .site-content {
    max-width: 1380px !important;
  }
  body.single-post .inside-article {
    position: relative;
  }
  body.single-post .entry-content {
    position: relative;
  }

  /* Desktop Right Rail container spanning full height of entry-content */
  .htr-toc-rail {
    display: block !important;
    position: absolute;
    top: 0;
    left: calc(100% + 28px);
    width: 250px;
    height: 100%;
    pointer-events: none;
    z-index: 40;
  }

  /* Sticky card that floats down as the user scrolls */
  .htr-toc-rail-sticky {
    position: sticky;
    top: 92px;
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #047857;
    border-radius: 10px;
    padding: 16px 14px 18px 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .htr-toc-rail-sticky::-webkit-scrollbar {
    width: 4px;
  }
  .htr-toc-rail-sticky::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }

  .htr-toc-rail-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #047857;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
  }

  .htr-toc-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .htr-toc-rail-link {
    font-size: 13px;
    line-height: 1.42;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 5px 8px 5px 10px;
    border-left: 2px solid #e2e8f0;
    transition: all 0.16s ease;
    display: block;
    border-radius: 0 4px 4px 0;
  }
  .htr-toc-rail-link:hover {
    color: #047857 !important;
    border-left-color: #047857;
    background: #f0fdf4;
    font-weight: 600;
  }

  /* Hide the mobile collapsible bar on desktop so center is 100% clean */
  .htr-toc-mobile-bar {
    display: none !important;
  }
}

/* Tablet & Mobile: Screens narrower than 1240px */
@media (max-width: 1239px) {
  /* Hide desktop rail */
  .htr-toc-rail {
    display: none !important;
  }

  /* Unobtrusive collapsible drawer, closed by default (only 38px) */
  .htr-toc-mobile-bar {
    display: block;
    max-width: 70ch;
    margin: 0 0 1.5rem;
  }
  .htr-toc-mobile-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
  }
  .htr-toc-mobile-details[open] {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  }
  .htr-toc-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    list-style: none;
  }
  .htr-toc-mobile-summary::-webkit-details-marker {
    display: none;
  }
  .htr-toc-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .htr-toc-summary-left strong {
    color: #0f172a;
    font-weight: 600;
  }
  .htr-toc-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .htr-toc-badge {
    font-size: 11px;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 12px;
  }
  .htr-toc-chevron {
    font-size: 16px;
    color: #64748b;
    transition: transform 0.2s ease;
    display: inline-block;
  }
  .htr-toc-mobile-details[open] .htr-toc-chevron {
    transform: rotate(90deg);
  }
  .htr-toc-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px 14px;
    border-top: 1px solid #f1f5f9;
  }
  .htr-toc-mobile-nav a {
    font-size: 13.5px;
    color: #047857 !important;
    text-decoration: none !important;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
    line-height: 1.4;
  }
  .htr-toc-mobile-nav a:last-child {
    border-bottom: none;
  }
}



/* ============================================================
   FACT CHECK FINDER - CIVIC & CONSUMER VERIFICATION SUITE
   ============================================================ */
.htr-fc-finder-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.htr-fc-quick-tag {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.htr-fc-quick-tag:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}
.htr-fc-engine-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.htr-fc-engine-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.htr-fc-engine-btn.is-active {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}
.htr-fc-engine-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.htr-fc-engine-meta strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.25;
}
.htr-fc-engine-meta small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}
.htr-fc-cat-btn {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.htr-fc-cat-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.htr-fc-cat-btn.is-active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
.htr-fc-claim-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.htr-fc-claim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.htr-fc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.htr-fc-cat-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}
.htr-fc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.htr-fc-badge-false {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.htr-fc-badge-misleading {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.htr-fc-claim-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px;
}
.htr-fc-claim-body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 10px;
}
.htr-fc-reality-box {
  background: #f8fafc;
  border-left: 3px solid #047857;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.55;
  margin-bottom: 12px;
}
.htr-fc-source-row {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.htr-fc-source-row a {
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}
.htr-fc-source-row a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .htr-fc-header h1 {
    font-size: 24px !important;
  }
  .htr-fc-engine-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   STICKY CITIZEN ACTION BAR & CLICK ACCELERATORS
   ============================================================ */
.htr-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  box-sizing: border-box;
  animation: htrSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes htrSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.htr-action-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.htr-action-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.htr-action-icon {
  font-size: 16px;
}

.htr-action-bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.htr-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.htr-bar-btn-verify {
  background: #1d4ed8;
  color: #ffffff !important;
}
.htr-bar-btn-verify:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.htr-bar-btn-agency {
  background: #047857;
  color: #ffffff !important;
}
.htr-bar-btn-agency:hover {
  background: #059669;
  transform: translateY(-1px);
}

.htr-bar-btn-state {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.htr-bar-btn-state:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.htr-bar-btn-checklist {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.htr-bar-btn-checklist:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.htr-bar-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
}
.htr-bar-close:hover {
  color: #ffffff;
}

/* Related card CTA */
.htr-related-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
  transition: color 0.15s ease, transform 0.15s ease;
}
.htr-related-card:hover .htr-related-cta {
  color: #065f46;
  text-decoration: underline;
  transform: translateX(3px);
}

/* Related Tools Bridge */
.htr-related-tools-bridge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.htr-tools-bridge-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.htr-tools-bridge-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.htr-bridge-pill {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b !important;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 4px 12px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.htr-bridge-pill:hover {
  background: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
}

@media (max-width: 768px) {
  .htr-action-bar-label {
    display: none;
  }
  .htr-action-bar-links {
    flex-grow: 1;
    justify-content: flex-start;
  }
}


/* ============================================================
   DEMAND LETTER GENERATOR & QUICK JUMP ACTION PILLS
   ============================================================ */

/* Demand Letter App */
.htr-dlg-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}
.htr-dlg-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.htr-dlg-tab:hover {
  border-color: #047857;
  background: #f0fdf4;
}
.htr-dlg-tab.is-active {
  border-color: #047857 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.2);
}
.htr-dlg-tab-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.htr-dlg-tab strong {
  font-size: 13px;
  color: #0f172a;
}
.htr-dlg-tab small {
  font-size: 11px;
  color: #64748b;
}

/* Print Sheet Styling */
.htr-letter-sheet {
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  line-height: 1.6;
}

@media print {
  body * {
    visibility: hidden;
  }
  #htr-dlg-letter-sheet, #htr-dlg-letter-sheet * {
    visibility: visible;
  }
  #htr-dlg-letter-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .htr-action-bar, header, footer, .site-header, .site-footer {
    display: none !important;
  }
}

/* Quick Jump Action Pills */
.htr-quick-jump-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.htr-jump-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  white-space: nowrap;
}
.htr-jump-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.htr-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.htr-jump-pill:hover {
  background: #047857;
  color: #ffffff !important;
  border-color: #047857;
  transform: translateY(-1px);
}

.htr-bar-btn-letter {
  background: #b45309;
  color: #ffffff !important;
}
.htr-bar-btn-letter:hover {
  background: #d97706;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .htr-dlg-body-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ── DROPDOWN SUB-MENU FOR REPORTING CATEGORIES ── */
body.htr-site .main-navigation ul li.menu-item-has-children {
  position: relative !important;
}

body.htr-site .main-navigation ul li.menu-item-has-children > a {
  padding-right: 22px !important;
  position: relative !important;
}

body.htr-site .main-navigation ul li.menu-item-has-children > a::after {
  content: "" !important;
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
}

body.htr-site .main-navigation ul ul.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  min-width: 230px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06) !important;
  padding: 6px 0 !important;
  margin: 4px 0 0 !important;
  list-style: none !important;
}

body.htr-site .main-navigation ul li.menu-item-has-children:hover > ul.sub-menu,
body.htr-site .main-navigation ul li.menu-item-has-children:focus-within > ul.sub-menu {
  display: block !important;
}

body.htr-site .main-navigation ul ul.sub-menu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.htr-site .main-navigation ul ul.sub-menu li a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  transition: all 0.12s ease !important;
}

body.htr-site .main-navigation ul ul.sub-menu li a:hover {
  background: #f8fafc !important;
  color: #047857 !important;
  padding-left: 20px !important;
}
