/* Chat-Deep homepage v3. Hero = full content width (1180px); every later section = 880px, centered. */
.home .entry-content > .cdh-hero,
.home .entry-content > .cdh-section { box-sizing: border-box; margin-left: auto !important; margin-right: auto !important; width: 100%; }
.home .entry-content > .cdh-hero { max-width: 1212px !important; text-align: center; padding: 8px 16px 8px; }
.home .entry-content > .cdh-section { max-width: 912px !important; padding: 44px 16px 0; }
.home .entry-content > .cdh-section:last-child { padding-bottom: 48px; }
.cdh-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.14; letter-spacing: -.02em; margin: 10px auto 14px; max-width: 22ch; text-align: center; }
.cdh-lead { max-width: 62ch; margin: 0 auto 22px !important; font-size: 18.5px; line-height: 1.6; color: var(--cd-ink); text-align: center; }
.cdh-verified { font-size: 13.5px; color: var(--cd-muted); text-align: center; max-width: 80ch; margin: 14px auto 0 !important; }
.cdh-section > h2 { text-align: center; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 14px; }
.cdh-section > .cdh-intro { text-align: center; max-width: 70ch; margin-left: auto !important; margin-right: auto !important; }
.cdh-section .wp-block-table { margin-top: 20px; }
.cdh-section .wp-block-table table { font-size: 15px; }

/* Quick-link cards: one row, 2×2 on small screens. */
.cdh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto 16px; }
.cdh-card { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 74px; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--cd-line); border-radius: 14px; background: var(--cd-surface); color: var(--cd-ink) !important; text-decoration: none !important; text-align: center; transition: border-color .15s, box-shadow .15s; }
.cdh-card:hover { border-color: var(--cd-primary); box-shadow: 0 4px 14px rgba(18, 87, 168, .12); }
.cdh-card__t { font-family: var(--cd-font-head); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.cdh-card__c { font-size: 12.5px; color: var(--cd-muted); }
.cdh-card--primary { background: var(--cd-primary); border-color: var(--cd-primary); color: #fff !important; }
.cdh-card--primary .cdh-card__c { color: #DCE9F9; }
.cdh-card--primary:hover { background: var(--cd-primary-strong); }
@media (max-width: 720px) { .cdh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Status strip */
.cdh-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; box-sizing: border-box; max-width: 980px; min-height: 44px; margin: 0 auto 16px !important; padding: 9px 16px; border: 1px solid var(--cd-line); border-radius: 12px; background: var(--cd-surface); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; text-align: center; }
.cdh-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cd-muted); flex: none; margin-right: 2px; }
.cdh-status[data-state="green"] .cdh-status__dot { background: var(--cd-success); box-shadow: 0 0 0 4px var(--cd-success-soft); }
.cdh-status[data-state="amber"] .cdh-status__dot { background: #E39A1C; box-shadow: 0 0 0 4px #FCEFD6; }
.cdh-status[data-state="red"] .cdh-status__dot { background: #C62828; box-shadow: 0 0 0 4px #FBE3E3; }
.cdh-status__src { flex-basis: 100%; font-size: 12.5px; color: var(--cd-muted); }
@media (max-width: 720px) { .cdh-status { min-height: 86px; font-size: 13.5px; } }

/* The chat card sits in the hero at full hero width. */
.cdh-hero .cdc { margin: 0 auto 8px; text-align: left; }
.cdh-hero .cd-ad--a2 { margin-top: 20px; }
.cdh-note { max-width: 880px; margin: 14px auto 0 !important; padding: 12px 16px; border-left: 4px solid var(--cd-primary); background: var(--cd-surface); border-radius: 0 10px 10px 0; font-size: 14.5px; text-align: left; }

/* Changes + scores */
.cdh-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.cdh-panel { box-sizing: border-box; border: 1px solid var(--cd-line); border-radius: 16px; background: var(--cd-surface); padding: 20px 20px 14px; min-height: 420px; display: flex; flex-direction: column; }
.cdh-panel h3 { font-size: 18px; margin: 0 0 10px; }
.cdh-feed { list-style: none; margin: 0; padding: 0; }
.cdh-feed li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--cd-line); font-size: 14px; line-height: 1.45; }
.cdh-feed time { color: var(--cd-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdh-feed--scores li { grid-template-columns: 64px 1fr; align-items: center; }
.cdh-feed--scores time { display: block; }
.cdh-score { font-family: var(--cd-font-head); font-weight: 700; font-size: 22px; color: var(--cd-primary); font-variant-numeric: tabular-nums; }
.cdh-score[data-low="1"] { color: #9A5B00; }
.cdh-score small { font-size: 12px; font-weight: 600; color: var(--cd-muted); }
.cdh-spark { margin: 12px 0 0; }
.cdh-spark svg { display: block; width: 100%; height: 44px; background: var(--cd-page); border-radius: 8px; }
.cdh-spark figcaption { font-size: 12.5px; color: var(--cd-muted); margin-top: 4px; }
.cdh-more { margin: auto 0 0 !important; padding-top: 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .cdh-duo { grid-template-columns: 1fr; } .cdh-panel { min-height: 0; } }

.cdh-figure { margin: 22px auto 0; }
.cdh-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--cd-line); }
.cdh-figure figcaption { font-size: 13px; color: var(--cd-muted); text-align: center; margin-top: 6px; }
.cdh-faq h3 { font-size: 18px; margin: 22px 0 6px; }
