/* =====================================================================
   Harris Digital · case study template (HD-2168, v2 Oct 13)
   Loaded by page-case-study.php after css/hd-shared.css.
   ===================================================================== */

/* Hero facts row */
.hdx-case .hdx-facts { margin-top: 32px; margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.hdx-case .hdx-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 400; }
.hdx-case .hdx-facts dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* Client card */
.hdx-case .hdx-client-card .hdx-logo { height: 34px; width: auto; max-width: 100%; display: block; object-fit: contain; object-position: left center; }
.hdx-case .hdx-client-card .hdx-client-name { font-size: 22px; font-weight: 600; color: #1C1B1C; }
.hdx-case .hdx-client-card .hdx-who { margin-top: 8px; }
.hdx-case .hdx-mini-map { display: grid; gap: 10px; }

/* Results */
.hdx-case .hdx-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 40px; }
.hdx-case .hdx-results-head .hdx-results-lede { max-width: 30em; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.hdx-case .hdx-results { display: grid; grid-template-columns: repeat(var(--slots, 4), minmax(0, 1fr)); gap: var(--col-gap); }
.hdx-case .hdx-result { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--gold); padding-top: 18px; }
.hdx-case .hdx-result .hdx-v { font-size: clamp(40px, 4vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.hdx-case .hdx-result .hdx-v.is-phrase { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; padding-top: 6px; }
.hdx-case .hdx-result .hdx-l { font-size: 15.5px; line-height: 1.5; color: var(--body); }

/* The complexity: 2×2 fact grid */
.hdx-case .hdx-complex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.hdx-case .hdx-complex div { background: var(--white); padding: 22px 24px; display: grid; gap: 4px; align-content: start; }
.hdx-case .hdx-complex b { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hdx-case .hdx-complex span { font-size: 15px; line-height: 1.45; color: var(--body); }

/* What we built */
.hdx-case .hdx-build-diagram { background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; margin-block: 40px; }
.hdx-case .hdx-build-diagram .hdx-node { padding: 16px 18px; }
.hdx-case .hdx-build-diagram .hdx-node img { height: 28px; }
.hdx-case .hdx-build-diagram .hdx-node.is-built img { height: 24px; }
.hdx-case .hdx-side-systems { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.hdx-case .hdx-side-systems .hdx-tag { font-size: 13.5px; color: #696869; }
.hdx-case .hdx-chip { font-size: 13.5px; font-weight: 500; color: var(--ink); background: var(--tint); border: 1px dashed #C9C6C8; border-radius: 999px; padding: 6px 12px; }
.hdx-case .hdx-footnote { margin-top: 28px; max-width: 46em; }

/* Quote */
.hdx-case .hdx-quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 900px; }
.hdx-case .hdx-quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; font-style: normal; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; quotes: none; }
.hdx-case .hdx-quote blockquote::before { content: "\201C"; display: block; font-size: 64px; line-height: .6; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.hdx-case .hdx-quote blockquote::after { content: none; }
.hdx-case .hdx-quote .hdx-by { font-size: 15px; color: var(--muted); }
.hdx-case .hdx-quote .hdx-by b { color: var(--ink); font-weight: 600; display: block; font-size: 16px; }

/* Problems this solved */
.hdx-case .hdx-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 40px; }
.hdx-case .hdx-problem { background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.hdx-case .hdx-problem .hdx-from { font-size: 13px; color: var(--muted); }
.hdx-case .hdx-problem .hdx-h4 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.hdx-case .hdx-problem p { font-size: 15px; line-height: 1.55; color: var(--body); }
.hdx-case .hdx-problem a { font-size: 15px; font-weight: 600; text-decoration: none; margin-top: 4px; color: var(--magenta); }
.hdx-case .hdx-problem a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hdx-case .hdx-problems { grid-template-columns: 1fr; }
  .hdx-case .hdx-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hdx-case .hdx-results, .hdx-case .hdx-complex, .hdx-case .hdx-facts { grid-template-columns: 1fr; }
}
