/* ═══ Capability family ═══════════════════════════════════════════════
   Linked after sub.css on the seven SAP capability pages only (the hub,
   Supply Chain Logistics, EWM, TM, LGM, ERP & Enterprise Applications,
   Technology/Data/AI). Same tokens, same type; different furniture:
   a spec-sheet hero on a film still, a numbered ledger instead of a card
   grid, a process map, a node timeline, numbered pillars, a comparison
   table, and a catalogue layout for the two long product pages.
   Written by tools/blueprint_design.py.
   ------------------------------------------------------------------ */

/* ── hero: copy left, "at a glance" panel right, film still behind ── */
.cap-hero { padding: 10vh 0 9vh; }
.cap-hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cap-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55;
                      transform: scale(1.03); filter: saturate(.55) contrast(1.05); }
.cap-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(7,10,6,.92) 30%, rgba(7,10,6,.45) 58%, rgba(7,10,6,.28) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,10,6,.35) 30%, transparent 70%); }
.cap-hero::before { z-index: 0; }
.cap-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 6vw; align-items: end; }
.cap-hero .hero-btn { margin-top: 30px; }

.spec { border: 1px solid var(--line); border-radius: 14px; background: rgba(7,10,6,.72);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 22px 24px 8px;
        animation: heroIn .9s var(--ease) .4s both; }
.spec-title { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
              color: var(--text-dim); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.spec dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
               color: var(--lime); padding-top: 3px; }
.spec-row dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(239,243,233,.78); }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 18px; }
.spec-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-list li { position: relative; padding-left: 16px; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: rgba(239,243,233,.35); }
.spec-index { list-style: none; margin: 0; padding: 0; }
.spec-index a { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 4px 0; color: rgba(239,243,233,.78);
                text-decoration: none; transition: color .25s; }
.spec-index a span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .12em; color: var(--text-dim); }
.spec-index a:hover { color: var(--lime); }
.spec-index.plain a { grid-template-columns: 1fr; }   /* un-numbered index (capabilities hub) */

/* ── section heads: number + label, headline left, lead right ── */
.eyebrow b { font-weight: 400; color: rgba(239,243,233,.48); margin-right: 4px; }
.cap-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px 6vw; align-items: end; margin-bottom: 58px; }
.cap-head h2 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 600; margin: 18px 0 0; max-width: 20ch; }
.cap-head > p { color: var(--text-dim); font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.75; max-width: 52ch; padding-bottom: 6px; }
.cap-head.solo { grid-template-columns: 1fr; }

/* ── ledger: engagement types as numbered rows ── */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5vw; counter-reset: row; }
.ledger.l3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3.5vw; }
.ledger li { counter-increment: row; border-top: 1px solid var(--line); }
.ledger li > * { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; padding: 22px 0 24px; color: inherit; text-decoration: none; }
.ledger li > *::before { content: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em;
                          color: var(--lime); padding-top: 6px; grid-row: 1 / span 2; }
.ledger h4, .ledger p, .ledger h3 { grid-column: 1; }
.ledger h4, .ledger h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.ledger p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }
.ledger a { transition: color .25s; }
.ledger a h4::after, .ledger a h3::after { content: " \2192"; color: var(--lime); opacity: 0; transition: opacity .25s; }
.ledger a:hover h4, .ledger a:hover h3 { color: var(--lime); }
.ledger a:hover h4::after, .ledger a:hover h3::after { opacity: 1; }

/* ── map: process areas on a rule with nodes ── */
.map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.map li { position: relative; padding-top: 22px; }
.map li::before { content: ""; position: absolute; left: 0; right: -28px; top: 0; height: 1px; background: var(--line); }
.map li:nth-child(4n)::before { right: 0; }
.map li::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
                 box-shadow: 0 0 0 4px rgba(46,171,198,.14); }
.map-k { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.map p { font-size: 14px; line-height: 1.65; color: rgba(239,243,233,.76); margin: 0; }

/* ── timeline: phases as nodes on a line ── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 22px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px;
                    background: linear-gradient(90deg, var(--lime), rgba(179,210,48,.18)); }
.timeline li { position: relative; padding-top: 62px; }
.t-n { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lime); background: var(--bg);
       display: grid; place-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--lime); }
.tint .t-n { background: #0b0e0a; }
.timeline h4, .timeline h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.timeline p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ── pillars: Why SYBNOC as three numbered statements ── */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4vw; }
.pillar { border-top: 1px solid var(--line); padding: 26px 0 8px; }
.pillar-n { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 400; letter-spacing: .04em; color: var(--lime); margin-bottom: 22px; }
.pillar h4, .pillar h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.35; margin: 0; max-width: 22ch; }

/* ── callout: DriverX cross-sell on the TM page ── */
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center;
           border: 1px solid var(--line); border-left: 2px solid var(--lime); border-radius: 0 14px 14px 0; padding: 34px 38px; background: var(--panel); }
.callout h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; margin: 14px 0 12px; max-width: 24ch; }
.callout p { color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 60ch; margin: 0; }

/* ── statement: one big idea with its explanation ── */
.statement { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px 6vw; align-items: end; }
.statement .eyebrow { grid-column: 1 / -1; }
.statement h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 600; line-height: 1.08; margin: 0; max-width: 20ch; }
.statement p { color: var(--text-dim); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; margin: 0; padding-bottom: 8px; }

/* ── compare: three options side by side, the page's own product in focus ── */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare-col { padding: 30px 28px 34px; border-left: 1px solid var(--line); background: var(--panel); }
.compare-col:first-child { border-left: 0; }
.compare-col.is-focus { background: rgba(179,210,48,.06); box-shadow: inset 0 2px 0 var(--lime); }
.compare-k { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.compare-col.is-focus .compare-k { color: var(--lime); }
.compare h4, .compare h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.compare p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

/* ── catalogue: sticky head left, product rows right (ERP, Technology) ── */
.catalog { padding: 9vh 0; }
.catalog-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px 6vw; align-items: start; }
.catalog-head { position: sticky; top: 104px; }
.catalog-head h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; margin: 16px 0 0; max-width: 18ch; }
.catalog-head p { color: var(--text-dim); font-size: 15px; line-height: 1.75; max-width: 42ch; margin: 16px 0 0; }
.catalog-rows { list-style: none; margin: 0; padding: 0; counter-reset: prod; border-top: 1px solid var(--line); }
.catalog-rows li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.catalog-rows li::before { content: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--lime); padding-top: 5px; grid-row: 1 / span 2; }
.catalog-rows h4, .catalog-rows p, .catalog-rows h3 { grid-column: 1; }
.catalog-rows h4, .catalog-rows h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.catalog-rows p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }
.catalog-rows li.solo h4, .catalog-rows li.solo h3 { font-weight: 500; font-size: 15.5px; line-height: 1.55; color: rgba(239,243,233,.86); margin: 0; }

/* ── domains: the three capability domains as a contents list (hub) ── */
.domains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.domains a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 0 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line);
             color: inherit; text-decoration: none; transition: color .25s; }
.domain-n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .16em; color: var(--lime); }
.domains h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; margin: 0 0 8px; }
.domains p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; margin: 0; max-width: 64ch; }
.domain-arrow { font-size: 26px; color: var(--lime); opacity: .5; transition: opacity .25s, transform .25s; justify-self: end; }
.domains a:hover h3 { color: var(--lime); }
.domains a:hover .domain-arrow { opacity: 1; transform: translateX(4px); }

/* ── plain rows: the enabling-capabilities list on the hub ── */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); columns: 2; column-gap: 5vw; }
.rows li { break-inside: avoid; position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: rgba(239,243,233,.84); }
.rows li::before { content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 1px; background: var(--lime); }
/* enabling capabilities: two deliberate columns (business apps | tech, data & AI),
   each a single-column list under a linked label, instead of a height-balanced
   multi-column flow that interleaved the two */
.rows-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5vw; }
.rows.one { columns: 1; }
.rows-k { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 0 12px;
          font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
          color: var(--lime); text-decoration: none; transition: color .25s var(--ease); }
.rows-k::after { content: "\2192"; font-size: 13px; opacity: .6; transition: transform .25s var(--ease), opacity .25s; }
.rows-k:hover { color: var(--text); }
.rows-k:hover::after { transform: translateX(3px); opacity: 1; }

/* ── responsive ── */
@media (max-width: 1080px) {
  .cap-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .spec { max-width: 560px; }
  .catalog-in { grid-template-columns: 1fr; }
  .catalog-head { position: static; }
  .map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map li:nth-child(2n)::before { right: 0; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .timeline::before { display: none; }
}
@media (max-width: 900px) {
  .cap-head, .statement { grid-template-columns: 1fr; }
  .cap-head > p { padding-bottom: 0; }
  .ledger, .ledger.l3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; padding: 28px 24px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col { border-left: 0; border-top: 1px solid var(--line); }
  .compare-col:first-child { border-top: 0; }
  .rows { columns: 1; }
  .rows-split { grid-template-columns: 1fr; gap: 34px 0; }
  .domains a { grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 0 14px; padding: 26px 0; }
}
@media (max-width: 620px) {
  .cap-hero { padding: 8vh 0 8vh; }
  .cap-hero-media img { opacity: .18; }
  .spec { padding: 18px 18px 4px; }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .spec-list.two { grid-template-columns: 1fr; }
  .map { grid-template-columns: 1fr; gap: 26px; }
  .map li { padding-top: 0; padding-left: 22px; }
  .map li::before { left: 3px; right: auto; top: 0; bottom: -26px; width: 1px; height: auto; }
  .map li:last-child::before { bottom: 0; }
  .map li::after { left: 0; top: 4px; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline li { padding-top: 0; padding-left: 58px; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .spec { animation: none; }
}

/* ── common questions (content and AI-search merge, A2): EWM, TM, SAP Logistics Management ── */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5vw; }
.qa-item { border-top: 1px solid var(--line); padding: 24px 0 30px; }
.qa-item h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.qa-item p { font-size: 15px; line-height: 1.75; color: rgba(239,243,233,.74); margin: 0; max-width: 62ch; }
/* ── decision tables (A2) ── */
.dtable-block { margin-top: 70px; }
.dtable-title { font-size: clamp(20px, 2vw, 26px); font-weight: 600; margin: 0 0 10px; }
.dtable-note { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin: 0 0 22px; max-width: 70ch; }
/* min-width: sub.css gives every table min-width 760px (the old LGM fit table), which pushed this one off-screen below ~900px */
.dtable { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
          font-size: 14px; line-height: 1.6; }
/* border-bottom: sub.css rules every th/td underneath as well, which doubled each row rule here */
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); border-bottom: 0; }
.dtable thead th { border-top: 0; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
                   color: var(--text-dim); font-weight: 400; background: var(--panel); }
.dtable tbody th { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
                   color: var(--lime); font-weight: 400; width: 17%; }
.dtable td { color: rgba(239,243,233,.8); }
.dtable .is-focus { background: rgba(179,210,48,.06); }
.dtable thead .is-focus { color: var(--lime); box-shadow: inset 0 2px 0 var(--lime); }
@media (max-width: 900px) { .qa { grid-template-columns: 1fr; } }
/* phones: each row becomes a card; the column label comes from data-k (the table keeps explicit ARIA roles) */
@media (max-width: 760px) {
  .dtable, .dtable tbody, .dtable tr, .dtable th, .dtable td { display: block; width: auto; }
  .dtable thead { display: none; }
  .dtable tr { border-top: 1px solid var(--line); padding: 16px 16px 18px; }
  .dtable tbody tr:first-child { border-top: 0; }
  .dtable tbody th { padding: 0 0 6px; border: 0; width: auto; }
  .dtable td { padding: 10px 0 0; border: 0; }
  .dtable td::before { content: attr(data-k); display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em;
                       text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
  .dtable td.is-focus { background: none; }
  .dtable td.is-focus::before { color: var(--lime); }
}
