/* detail.css
   Use-case detail view: coloured head, body sections, aside, related.
   ------------------------------------------------------------------------- */

.bcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--ink-3); padding: 20px 0 0;
}

.bcrumb button {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent);
  font-weight: 650; font-size: 13px;
}

.bcrumb button:hover { text-decoration: underline; text-underline-offset: 3px; }

.bcrumb svg { width: 13px; height: 13px; opacity: .5; }

.dhead { padding: 22px 0 30px; border-bottom: 1px solid var(--line); }

.dhead-no {
  font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--m-c, var(--c-red));
  letter-spacing: .02em; margin-bottom: 12px; display: flex; align-items: center; gap: 9px;
}

.dhead-no::after { content: ''; height: 1px; flex: 1; max-width: 90px; background: currentColor; opacity: .35; }

.dhead h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; max-width: 26ch; }

.dhead-tag { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-2); margin-top: 13px; max-width: 66ch; }

.dhead-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 20px; }

.dhead-cta { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.cta-note { font-size: 12.5px; color: var(--ink-3); }

.dbody { display: grid; grid-template-columns: minmax(0,1fr) 322px; gap: 44px; padding: 36px 0 80px; align-items: start; }

.sec + .sec { margin-top: 38px; }

.sec > h2 {
  font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 15px; display: flex; align-items: center; gap: 11px;
}

.sec > h2::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.prose { font-size: 15.5px; line-height: 1.68; color: var(--ink-2); max-width: 72ch; }

.prose p:first-child { color: var(--ink); }

.shot {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow-1);
}

.shot img { width: 100%; }

.shot figcaption {
  padding: 11px 15px; font-size: 12.5px; color: var(--ink-3);
  border-top: 1px solid var(--line); background: var(--surface);
}

.recon { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }

.recon-row { border-top: 1px solid var(--line); padding: 16px 19px; background: var(--surface); }

.recon-row:first-child { border-top: 0; }

.recon-k { font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px; }

.recon-pair { display: grid; gap: 7px; }

.recon-line { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: baseline; }

.recon-line em {
  font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ink-3);
}

.recon-line .v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }

.recon-note {
  margin-top: 11px; font-size: 12.5px; font-weight: 650; color: var(--ok);
  display: inline-flex; align-items: center; gap: 6px;
}

.recon-note svg { width: 14px; height: 14px; }

.finds { display: grid; gap: 14px; }

.find {
  display: grid; grid-template-columns: minmax(92px, max-content) 1fr; gap: 20px;
  padding: 17px 19px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--c-red); border-radius: var(--r-m);
}

.find b {
  font-size: clamp(19px, 2.1vw, 23px); font-weight: 800; letter-spacing: -.032em;
  color: var(--c-red); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap;
}

.find span { font-size: 14.5px; color: var(--ink-2); line-height: 1.58; }

.aside { position: sticky; top: 86px; display: grid; gap: 16px; }

.rel { border-top: 1px solid var(--line); padding: 34px 0 0; }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; margin-top: 16px; }

.rel-card {
  text-align: left; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px 16px;
  transition: all .18s var(--ease); position: relative;
}

.rel-card:hover { border-color: var(--m-c, var(--line-2)); transform: translateY(-2px); box-shadow: var(--shadow-1); }

.rel-card em {
  font-style: normal; font-size: 10.5px; font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase; color: var(--m-c, var(--ink-3)); display: block; margin-bottom: 6px;
}

.rel-card b { font-size: 14.5px; display: block; letter-spacing: -.012em; line-height: 1.35; }

@media (max-width: 1120px) {
  .dbody, .pf-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .aside { position: static; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 860px) {
  .recon-line { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .find { grid-template-columns: minmax(0,1fr); gap: 8px; }
}

@media (max-width: 660px) {
  .aside { grid-template-columns: minmax(0,1fr); }
  .dhead-cta { gap: 10px; }
  .cta-note { font-size: 12px; }
}

.dhead-pills, .cross-c { min-width: 0; }

.ipo {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
}

.ipo-col { background: var(--surface); padding: 17px 18px; }

.ipo-hd {
  display: flex; align-items: center; gap: 9px; margin-bottom: 13px;
  font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}

.ipo-hd em {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px;
  color: var(--m-c, var(--c-red)); font-weight: 800;
  border: 1.4px solid color-mix(in srgb, var(--m-c, var(--c-red)) 34%, transparent);
}

.ipo-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.ipo-col li {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
  padding-left: 14px; position: relative;
}

.ipo-col li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--m-c, var(--c-red)) 55%, transparent);
}

.vbox {
  border: 1px solid var(--line); border-left: 3px solid var(--m-c, var(--c-red));
  border-radius: var(--r-m); background: var(--surface); padding: 18px 20px;
}

.vbox b { display: block; font-size: 19px; letter-spacing: -.02em; margin-bottom: 5px; }

.vbox span { font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .ipo { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- v1.1 ---
   "Delivered inside the TDI RPFO product" — shown when a use case ships as
   part of another TDI product rather than as its own URL. */
.dhead-embed {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2);
}
.dhead-embed svg { width: 16px; height: 16px; opacity: .7; flex-shrink: 0; }

/* Dark-mode overrides for this module, moved out of global/base.css in v1.1
   so a view's dark behaviour lives beside its light behaviour. */
html[data-theme="dark"] .find { border-left-color: var(--accent); }
html[data-theme="dark"] .find b { color: var(--accent); }
