/* =====================================================================
   /integration/ SILO  —  hub + platform page design
   Uses the existing procurementvms.com tokens (style.css). No new colours.
   ===================================================================== */

.int-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-6); }
.int-crumbs { font-size: 13px; color: var(--text-muted); margin: var(--sp-6) 0 var(--sp-4); }
.int-crumbs a { color: var(--text-muted); text-decoration: none; }
.int-crumbs a:hover { color: var(--accent); }

/* ── review-mode scaffolding (removed in production builds) ───────── */
.int-review-bar { position: relative; background: #3a2a05; color: #FBBF24; font-size: 13px; padding: 9px var(--sp-6); text-align: center; border-bottom: 1px solid rgba(251,191,36,.4); }
.int-confirm { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #FBBF24; background: rgba(251,191,36,.12); border: 1px dashed rgba(251,191,36,.55); border-radius: var(--r-pill); vertical-align: middle; white-space: nowrap; }

/* ── pills & badges ──────────────────────────────────────────────── */
.int-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.int-pill { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); background: var(--bg-overlay); color: var(--text-body); border: 1px solid var(--border-subtle); }
.int-pill.teal { background: rgba(45,212,191,.14); color: var(--accent); border-color: transparent; }
.int-pill.amber { background: rgba(251,191,36,.12); color: #FBBF24; border-color: transparent; }
.int-size { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: var(--r-sm); background: var(--bg-overlay); color: var(--text-muted); border: 1px solid var(--border-subtle); margin-right: 4px; }

/* ── hero ────────────────────────────────────────────────────────── */
.int-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--sp-10); align-items: start; padding-bottom: var(--sp-8); }
.int-hero h1 { margin-bottom: var(--sp-4); }
.int-dek { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-body); max-width: 700px; }
.int-hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.int-btn-ghost { display: inline-flex; align-items: center; padding: 12px 20px; border: 1px solid var(--border-accent); border-radius: var(--r-pill); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.int-btn-ghost:hover { background: rgba(45,212,191,.08); }
.int-byline { display: flex; align-items: center; gap: var(--sp-3); font-size: 13px; color: var(--text-muted); margin-top: var(--sp-6); flex-wrap: wrap; }
.int-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--clr-navy-950); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }

/* glance card (platform page) */
.int-glance { background: linear-gradient(160deg, #0F1E33 0%, #0A1420 100%); border: 1px solid var(--border-accent); border-radius: var(--r-xl); padding: var(--sp-6); }
.int-glance h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--sp-4); font-family: var(--ff-body); font-weight: 800; }
.int-glance dl { margin: 0; display: grid; gap: 0; }
.int-glance .row { display: grid; grid-template-columns: 112px 1fr; gap: var(--sp-3); padding: 9px 0; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.int-glance .row:first-of-type { border-top: 0; }
.int-glance dt { color: var(--text-muted); }
.int-glance dd { margin: 0; color: var(--clr-white); }

/* stats strip (hub) */
.int-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.int-stat { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.int-stat b { display: block; font-family: var(--ff-display); font-size: var(--fs-2xl); color: var(--accent); line-height: 1.1; }
.int-stat span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── answer block (AIO) ──────────────────────────────────────────── */
.int-answer { border-left: 4px solid var(--accent); background: rgba(45,212,191,.07); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-5) var(--sp-6); margin: var(--sp-6) 0; }
.int-answer .lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.int-answer p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-primary, var(--clr-white)); }

/* ── page layout with sticky rail ────────────────────────────────── */
.int-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-12); align-items: start; }
.int-article { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--text-body); }
.int-article h2 { font-size: var(--fs-2xl); color: var(--clr-white); margin: var(--sp-12) 0 var(--sp-4); scroll-margin-top: 90px; }
.int-article h2:first-child { margin-top: 0; }
.int-article p { margin: 0 0 var(--sp-4); }
.int-rail { position: sticky; top: 90px; display: grid; gap: var(--sp-4); }
.int-rail-box { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.int-rail-box .t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-3); }
.int-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.int-toc a { display: block; font-size: 13.5px; color: var(--text-body); text-decoration: none; padding: 2px 0 2px 10px; border-left: 2px solid transparent; }
.int-toc a:hover, .int-toc a.on { color: var(--accent); border-left-color: var(--accent); }
.int-rail-cta { background: linear-gradient(155deg, rgba(45,212,191,.14), var(--bg-raised)); border-color: var(--border-accent); }
.int-rail-cta b { display: block; color: var(--clr-white); margin-bottom: 4px; }
.int-rail-cta p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 var(--sp-3); line-height: 1.55; }

/* ── tables ──────────────────────────────────────────────────────── */
.int-table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.int-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.int-table th { text-align: left; background: var(--bg-raised); color: var(--clr-white); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); }
.int-table td { padding: 12px 14px; border-top: 1px solid var(--border-subtle); vertical-align: top; color: var(--text-body); line-height: 1.55; }
.int-table td:first-child { color: var(--clr-white); font-weight: 600; }
.int-table code { font-size: 12.5px; background: var(--bg-overlay); padding: 1px 6px; border-radius: 4px; color: var(--accent); }
.int-dir { white-space: nowrap; color: var(--accent); font-weight: 600; }

/* ── flow diagram ────────────────────────────────────────────────── */
.int-flow { margin: var(--sp-5) 0; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-5); }
.int-flow svg { width: 100%; height: auto; display: block; }
.int-flow text { font-family: var(--ff-body); }

/* ── steps ───────────────────────────────────────────────────────── */
.int-steps { list-style: none; margin: var(--sp-5) 0; padding: 0; counter-reset: s; }
.int-steps li { counter-increment: s; position: relative; padding: var(--sp-4) 0 var(--sp-4) 48px; border-bottom: 1px solid var(--border-subtle); }
.int-steps li::before { content: counter(s); position: absolute; left: 0; top: var(--sp-4); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--clr-navy-950); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.int-steps b { display: block; color: var(--clr-white); margin-bottom: 2px; }
.int-who { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

/* ── icp columns ─────────────────────────────────────────────────── */
.int-icp { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.int-icp-card { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-5); font-size: 15px; line-height: 1.6; }
.int-icp-card.fit { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(45,212,191,.25) inset; }
.int-icp-card h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-white); margin: 0 0 var(--sp-2); font-family: var(--ff-body); }
.int-icp-card.fit h3 { color: var(--accent); }
.int-icp-card p { margin: 0; color: var(--text-body); }
.int-icp-card.dim { opacity: .75; }

/* ── role list & plan-for ────────────────────────────────────────── */
.int-roles { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0; }
.int-role { display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--border-subtle); }
.int-role b { color: var(--clr-white); font-size: 15px; }
.int-role span { font-size: 15.5px; line-height: 1.6; }
.int-plan { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
.int-plan-item { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-left: 3px solid #FBBF24; border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-4) var(--sp-5); }
.int-plan-item h3 { font-size: 16px; color: var(--clr-white); margin: 0 0 6px; font-family: var(--ff-body); }
.int-plan-item p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.int-cite { font-size: 11px; vertical-align: super; line-height: 0; margin-left: 2px; }
.int-cite a { color: var(--accent); text-decoration: none; }

/* ── reviewer + sources ──────────────────────────────────────────── */
.int-reviewer { display: flex; gap: var(--sp-4); align-items: center; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin: var(--sp-6) 0; }
.int-reviewer .meta { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.int-reviewer .meta b { color: var(--clr-white); display: block; font-size: 15px; }
.int-sources { list-style: none; margin: var(--sp-4) 0 0; padding: 0; counter-reset: src; font-size: 14px; }
.int-sources li { counter-increment: src; padding: 8px 0 8px 34px; position: relative; border-top: 1px solid var(--border-subtle); line-height: 1.5; scroll-margin-top: 90px; }
.int-sources li::before { content: counter(src); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-overlay); color: var(--text-muted); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.int-sources a { color: var(--accent); }
.int-sources .kind { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.int-legal { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin-top: var(--sp-4); }

/* ── related cards ───────────────────────────────────────────────── */
.int-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin: var(--sp-4) 0; }
.int-rel-card { display: block; text-decoration: none; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-4); transition: border-color .2s; }
.int-rel-card:hover { border-color: var(--border-accent); }
.int-rel-card b { display: block; color: var(--clr-white); font-size: 14px; }
.int-rel-card span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; line-height: 1.45; }

/* ── CTA band + form ─────────────────────────────────────────────── */
.int-cta { background: linear-gradient(155deg, rgba(45,212,191,.12), var(--bg-raised)); border: 1px solid var(--border-accent); border-radius: var(--r-lg); padding: var(--sp-8); margin: var(--sp-12) 0; scroll-margin-top: 90px; }
.int-cta .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.int-cta h2 { margin: 0 0 var(--sp-3) !important; font-size: var(--fs-2xl); color: var(--clr-white); }
.int-cta p.lead { color: var(--text-body); line-height: 1.7; margin: 0; max-width: 640px; }
.int-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.int-form .full { grid-column: 1 / -1; }
.int-form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.int-form input, .int-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; background: var(--bg-overlay); border: 1px solid var(--border-subtle); border-radius: var(--r-md); color: var(--clr-white); font-family: var(--ff-body); }
.int-form textarea { min-height: 84px; resize: vertical; }
.int-form-status { font-size: 13px; min-height: 18px; margin: var(--sp-2) 0 0; }
.int-form-fine { font-size: 12px; color: var(--text-muted); margin: var(--sp-3) 0 0; }

/* ── hub: filters + grid ─────────────────────────────────────────── */
.int-filter { position: sticky; top: 0; z-index: 40; background: var(--bg-base); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border-subtle); margin-top: var(--sp-6); }
.int-search { width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: var(--bg-raised); color: var(--clr-white); font-size: 15px; font-family: var(--ff-body); }
.int-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.int-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); align-items: center; }
.int-chiprow .lab { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.int-chip { cursor: pointer; font-size: 13px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--bg-overlay); border: 1px solid var(--border-subtle); color: var(--text-body); font-family: var(--ff-body); }
.int-chip:hover { border-color: var(--border-accent); }
.int-chip[aria-pressed="true"] { background: var(--accent); color: var(--clr-navy-950); border-color: var(--accent); font-weight: 700; }
.int-count { font-size: 13px; color: var(--text-muted); margin: var(--sp-4) 0 0; }
.int-group { margin-top: var(--sp-10); scroll-margin-top: 150px; }
.int-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.int-group-head h2 { font-size: var(--fs-xl); margin: 0; color: var(--clr-white); }
.int-group-head p { margin: 0; font-size: 14px; color: var(--text-muted); }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.int-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-5); transition: border-color .2s, transform .2s; }
.int-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.int-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-card h3 { font-size: 17px; color: var(--clr-white); margin: 0; font-family: var(--ff-body); font-weight: 700; }
.int-card .vendor { font-size: 12px; color: var(--text-muted); }
.int-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-body); flex: 1; }
.int-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.int-status { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); }
.int-status.ok { background: rgba(45,212,191,.14); color: var(--accent); }
.int-status.tbc { background: rgba(251,191,36,.12); color: #FBBF24; }
.int-empty { display: none; padding: var(--sp-10) 0; text-align: center; color: var(--text-muted); }

/* hub: size paths + methods */
.int-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.int-path { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-5); }
.int-path h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--sp-2); font-family: var(--ff-body); }
.int-path p { font-size: 14.5px; line-height: 1.6; margin: 0 0 var(--sp-3); }
.int-path ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.int-path li a { font-size: 12.5px; text-decoration: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-overlay); border: 1px solid var(--border-subtle); color: var(--clr-white); display: inline-block; }
.int-path li a:hover { border-color: var(--border-accent); }
.int-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.int-method { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-5); }
.int-method h3 { font-size: 16px; color: var(--clr-white); margin: 0 0 6px; font-family: var(--ff-body); }
.int-method p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.int-section { padding: var(--sp-10) 0 0; }
.int-section > h2 { font-size: var(--fs-2xl); color: var(--clr-white); margin: 0 0 var(--sp-3); }
.int-section > p { max-width: 760px; line-height: 1.7; color: var(--text-body); }

/* ── responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .int-layout { grid-template-columns: 1fr; }
  .int-rail { position: static; order: -1; }
  .int-hero { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .int-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .int-grid, .int-icp, .int-paths, .int-methods { grid-template-columns: 1fr; }
  .int-form { grid-template-columns: 1fr; }
  .int-role { grid-template-columns: 1fr; gap: 4px; }
  .int-glance .row { grid-template-columns: 1fr; gap: 2px; }
  .int-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .int-card, .int-card:hover { transition: none; transform: none; } }
