/* Case studies (/case-study-soht, /case-study-teacherpopshop, /case-study-jlv). Loaded after pages.css (and crm.css
   on the two pages with a stepper). Markup: website_2026-11_case-studies/build/case_studies.py. */

/* ---------- Hero ---------- */
.cx-hero { padding-bottom: 56px; }
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cx-hero h1 { font-size: clamp(1.95rem, 3.3vw, 2.7rem); margin-bottom: 18px; }
.cx-hero .lede { margin-bottom: 26px; }
.cx-visit { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue-ink); text-underline-offset: 4px; }
.cx-visit::after { content: "\2197"; margin-left: 6px; font-size: .9em; }
.cx-browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.cx-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EEF1F5; border-bottom: 1px solid var(--line); }
.cx-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D1DC; }
.cx-browser-bar span { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: #fff; font-size: .78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.cx-facts div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.cx-facts div:first-child { border-left: 0; }
.cx-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cx-facts dd { margin: 3px 0 0; font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ---------- Two-column text sections ---------- */
.cx-two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.cx-two .sp-head { margin-bottom: 0; }
.cx-two .sp-head p { font-size: 1.06rem; }
.cx-points, .cx-ours, .cx-changed { display: grid; gap: 12px; }
.cx-points li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text-2); }
.cx-points li::before { content: "!"; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-weight: 800; font-size: .8rem; }
.cx-ours li { position: relative; padding-left: 30px; color: var(--text-2); }
.cx-ours li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--blue-deep); }
.cx-changed li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #A9D8BF; color: var(--text); }
.cx-changed svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ---------- Demo pieces ---------- */
.cx-items { display: grid; gap: 8px; }
.cx-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #E3E6EA; }
.cx-items b { display: block; color: #111827; font-size: .92rem; }
.cx-items small { display: block; color: #6B7280; font-size: .8rem; }
.cx-items .chip { flex: none; font-size: .76rem; padding: 3px 10px; }
.cx-sign { background: #fff; border: 1px solid #DDE2EA; border-radius: 8px; padding: 12px 14px; }
.cx-sign-k { margin: 0; font-size: .74rem; font-weight: 700; color: #6B7280; letter-spacing: .03em; text-transform: uppercase; }
.cx-sign svg { display: block; width: 100%; max-width: 260px; height: auto; border-bottom: 1.5px dashed #C5CCD8; }
.cx-sign-n { margin: 6px 0 0; font-size: .84rem; color: #4B5563; }

.cx-sel { margin-top: 0; }
.cx-sel .sp-sel-nav button { grid-template-columns: minmax(0, 1fr); font-weight: 600; min-height: 48px; }
.cx-serp, .cx-code { margin: 0; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-md); }
.cx-serp-url { margin: 0; font-size: .82rem; color: #4D5156; overflow-wrap: anywhere; }
.cx-serp-t { margin: 2px 0 4px; font-size: 1.08rem; color: #1A0DAB; line-height: 1.3; }
.cx-serp-d { margin: 0; font-size: .88rem; color: #4D5156; }
.cx-serp figcaption, .cx-code figcaption { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); }
.cx-code-k { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.cx-code ul { display: grid; gap: 6px; }
.cx-code li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 10px; border-radius: 8px; background: var(--bg-tint); font-size: .9rem; }
.cx-code b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86rem; color: var(--blue-ink); }
.cx-code span { color: var(--text-2); }
.cx-measure .wp-check-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #1D2327; color: #A7AAAD; font-size: .8rem; }
.cx-measure .wp-check-top p { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .84rem; }
.cx-measure .wp-check-top i { width: 10px; height: 10px; border-radius: 50%; background: #72AEE6; display: inline-block; }
.cx-measure ul { padding: 8px 18px 10px; }
.cx-measure li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: .92rem; color: #1F2937; }
.cx-measure li:first-child { border-top: 0; }
.cx-measure li b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.cx-measure li.is-key { color: var(--green); font-weight: 700; }

/* ---------- Related ---------- */
.cx-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-related li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 4px; }
.cx-related a { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cx-related a::after { content: "\2192"; margin-left: 8px; }
.cx-related a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cx-related span { color: var(--text-2); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cx-hero-grid, .cx-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cx-browser { max-width: 640px; }
  .cx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-facts div:nth-child(3) { border-left: 0; }
  .cx-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .cx-related { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .cx-facts { grid-template-columns: minmax(0, 1fr); }
  .cx-facts div { border-left: 0; }
  .cx-facts div + div { border-top: 1px solid var(--line); }
  .cx-items li { flex-wrap: wrap; }
}
