/* AxisBench technique pages (/xrd-phase-identification and siblings).
   Loaded after styles.css and reuses its tokens and components: nav, hero art,
   spec band, catalog, sources table, footer. --c is the page's data family. */

.tp-hero .hero__inner { align-items: start; }
.tp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tp-crumbs a:hover { color: var(--ink); }
.tp-hero .hero__eyebrow { margin-top: 22px; }
.tp-hero .hero__title { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; max-width: 15ch; }
.tp-hero .hero__sub { max-width: 46ch; }

/* what the results table holds: field names and units, never sample values */
.tp-fields { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--c); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tp-fields__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); font: var(--label); color: var(--ink-3); }
.tp-fields__head b { color: var(--ink); font-weight: 600; }
.tp-fields dl { margin: 0; }
.tp-fields dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 11px 18px; border-bottom: 1px solid color-mix(in oklab, var(--rule) 70%, transparent); }
.tp-fields dl div:last-child { border-bottom: 0; }
.tp-fields dt { font-size: 15px; color: var(--ink); }
.tp-fields dd { margin: 0; font: 400 13px/1.6 var(--mono); color: var(--ink-3); text-align: right; }
.tp-fields__foot { padding: 11px 18px; border-top: 1px solid var(--rule); font: var(--meta); color: var(--ink-3); }

.tp-section { padding: clamp(80px, 9vw, 128px) 0; }
.tp-section--alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.tp-section .section-head { margin-bottom: 44px; }

.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tp-card { padding: 24px 22px 26px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.tp-card h3 { font: 700 22px/1.15 var(--display); letter-spacing: 0.005em; }
.tp-card h3::before { content: ""; display: block; width: 22px; height: 6px; margin-bottom: 16px; background: var(--c); }
.tp-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* one library total on the band */
.tp-catalog .catalog__grid { grid-template-columns: minmax(0, 1fr); }
.tp-catalog .catalog__cell { padding-inline: 0; border-right: 0; }

.tp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; max-width: 1040px; }
.tp-steps li { counter-increment: step; position: relative; padding-left: 44px; }
.tp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 400 12px/1.6 var(--mono); color: var(--c); }
.tp-steps b { display: block; font: 700 20px/1.25 var(--display); color: var(--ink); }
.tp-steps p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); max-width: 52ch; }

.tp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.tp-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.tp-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); }
.tp-list b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.tp-list code { color: var(--ink); }
.tp-h3 { margin-bottom: 18px; font: 400 30px/1.2 var(--display); color: var(--ink); }

.tp-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tp-related a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--sheet); font: 500 14.5px/1.2 var(--sans); color: var(--ink); transition: border-color 0.2s; }
.tp-related a:hover { border-color: var(--ink); }
.tp-related i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.tp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding: 28px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--sheet); }
.tp-cta h2 { font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--display); max-width: 24ch; }
.tp-cta p { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 56ch; }

@media (max-width: 960px) {
  .tp-grid { grid-template-columns: 1fr 1fr; }
  .tp-split, .tp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tp-grid { grid-template-columns: 1fr; }
  .tp-cta { padding: 22px 18px; }
  .tp-cta .btn { flex: 1 1 100%; }
}
