/* ══ INSIGHTS ══ */
.in-page { max-width: 1080px; margin: 0 auto; padding: 28px 16px 64px; display: flex; flex-direction: column; gap: 24px; font-family: 'DM Sans', system-ui, sans-serif; color: #1E2A33; }
.in-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.in-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #2F6B7A; font-weight: 600; }
.in-h1 { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; margin: 4px 0 2px; line-height: 1.1; }
.in-sub, .in-intro { margin: 0; color: #5B6770; font-size: 14px; line-height: 1.5; }
.in-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.in-period { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5B6770; }
.in-period select { font: inherit; padding: 8px 10px; border: 1px solid #D8D3C9; border-radius: 6px; background: #fff; }
.in-btn { font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 10px 16px; min-height: 44px; border: none; border-radius: 6px; background: #E87A5D; color: #fff; cursor: pointer; }
.in-btn-ghost { font: inherit; font-size: 12px; padding: 7px 12px; min-height: 34px; border: 1px solid #D8D3C9; border-radius: 6px; background: #fff; color: #1E2A33; cursor: pointer; }
/* The sections bar: one pill like the main menu, held under the app header while scrolling */
.in-sticky { position: sticky; top: var(--in-top, 0px); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: -8px -16px 0; padding: 10px 16px; background: rgba(247, 245, 240, .96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #E4E0D8; }
.in-pillbar { flex: 1 1 100%; min-width: 0; display: flex; justify-content: space-between; gap: 2px; padding: 4px; background: #fff; border: 1px solid #E4E0D8; border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; }
.in-pillbar::-webkit-scrollbar { display: none; }
.in-pill { flex: 0 0 auto; font: inherit; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; padding: 8px 11px; min-height: 34px;
  border: none; border-radius: 999px; background: transparent; color: #5B6770; cursor: pointer; }
.in-pill:hover { color: #1E2A33; background: #F4F1EB; }
.in-pill.active { background: #1E2A33; color: #fff; }
.in-pill:focus-visible { outline: 2px solid #2F6B7A; outline-offset: 1px; }


.in-section { background: #fff; border: 1px solid #E4E0D8; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: var(--in-offset, 160px); }
.in-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.in-h2 { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 600; margin: 0; }
.in-h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.in-note { font-size: 13px; color: #5B6770; }
.in-muted { color: #5B6770; }
.in-empty { margin: 0; font-size: 14px; color: #5B6770; background: #FBFAF7; border: 1px dashed #D8D3C9; border-radius: 8px; padding: 14px 16px; }
.in-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.in-badge { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: #1A1A1A; color: #fff; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.in-scroll { overflow-x: auto; }

.in-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.in-tile { border: 1px solid #E4E0D8; border-radius: 10px; padding: 13px 15px; background: #FBFAF7; }
.in-tile-k { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #5B6770; }
.in-tile-v { font-size: 25px; font-weight: 600; margin-top: 3px; }
.in-tile-s { font-size: 12px; color: #5B6770; margin-top: 2px; }

.in-svg { width: 100%; height: auto; display: block; }
.in-svg-t { font-size: 12px; fill: #5B6770; font-family: 'DM Sans', system-ui, sans-serif; }
.in-svg-s { font-size: 11px; fill: #5B6770; font-family: 'DM Sans', system-ui, sans-serif; }
.in-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.in-split-main { flex: 999 1 420px; min-width: 0; }
.in-split-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.in-legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.in-legend-row span:nth-child(2) { flex: 1; }
.in-path { margin-top: 10px; font-size: 13px; color: #5B6770; line-height: 1.55; }
.in-path b { color: #1E2A33; }

.in-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.in-cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.in-bars { display: flex; flex-direction: column; gap: 6px; }
.in-bar { display: grid; align-items: center; gap: 8px; font-size: 13px; }
.in-bar-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.in-bar-track { display: block; flex: 1; height: 13px; background: #F1EEE8; border-radius: 3px; overflow: hidden; }
.in-bar-fill { display: block; height: 100%; border-radius: 3px; }
.in-bar-n { text-align: right; color: #5B6770; }

/* The Grid */
.in-grid { display: grid; grid-template-columns: 128px repeat(5, minmax(118px, 1fr)); gap: 8px 10px; min-width: 760px; }
.in-grid-root { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.in-grid-labels, .in-grid-col { display: flex; flex-direction: column; gap: 2px; }
.in-grid-dimhead { height: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: #5B6770; text-align: center; }
.in-grid-label { height: 18px; font-size: 11px; color: #5B6770; display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding-right: 4px; white-space: nowrap; }
.in-grid-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.in-cell { height: 18px; border-radius: 3px; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.in-legend-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #5B6770; }
.in-ramp { display: inline-flex; align-items: center; gap: 4px; }
.in-ramp span { width: 18px; height: 12px; border-radius: 2px; display: inline-block; }

/* Participation */
.in-pgrid { display: grid; grid-template-columns: 120px repeat(6, minmax(70px, 1fr)); gap: 3px; min-width: 620px; font-size: 12px; }
.in-pgrid-o { grid-column: span 3; text-align: center; font-weight: 600; padding: 4px; border-bottom: 3px solid; }
.in-pgrid-d { display: flex; align-items: center; justify-content: center; gap: 5px; color: #5B6770; padding: 4px 0; }
.in-pgrid-d .in-badge { width: 17px; height: 17px; font-size: 9px; }
.in-pgrid-l { display: flex; align-items: center; gap: 6px; }
.in-pcell { height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #1E2A33; }
.in-pa { border: 1px solid #E4E0D8; border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; margin-bottom: 8px; }
.in-pa-need { background: #FFF8F3; }
.in-pa-bar { flex: 0 0 4px; border-radius: 2px; }
.in-pa-where { font-size: 11px; color: #5B6770; display: flex; align-items: center; gap: 6px; }
.in-pa-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; line-height: 1.35; margin-top: 4px; }
.in-pa-why { font-size: 12px; color: #9A4A2E; margin-top: 4px; }
.in-prim { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; font-size: 13px; margin-bottom: 10px; }
.in-prim-root { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.in-prim-line { display: flex; align-items: center; gap: 8px; }
.in-prim-line .in-muted { white-space: nowrap; }

/* Patterns */
.in-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.in-card { border: 1px solid #E4E0D8; border-radius: 10px; padding: 15px; background: #FBFAF7; display: flex; flex-direction: column; gap: 7px; }
.in-card-kind { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #2F6B7A; font-weight: 600; }
.in-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.in-card-title { font-size: 16px; font-weight: 600; }
.in-card-rule { font-size: 12px; color: #2F6B7A; line-height: 1.45; }
.in-card-body { font-size: 13px; color: #5B6770; line-height: 1.5; }
.in-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.in-codes span { font-size: 12px; font-family: ui-monospace, monospace; padding: 2px 7px; border: 1px solid #D8D3C9; border-radius: 4px; background: #fff; }

/* Life timeline */
.in-tl { position: relative; height: 230px; min-width: 700px; margin: 0 60px; }
.in-tl-axis { position: absolute; left: 0; right: 0; top: 104px; height: 2px; background: #1E2A33; }
.in-tl-tick { position: absolute; top: 98px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.in-tl-tick span { width: 1px; height: 14px; background: #1E2A33; }
.in-tl-tick b { font-weight: 400; font-size: 12px; color: #5B6770; margin-top: 3px; }
.in-tl-ev { position: absolute; transform: translateX(-50%); width: 130px; display: flex; align-items: center; text-align: center; }
.in-tl-ev.up { top: 8px; flex-direction: column; }
.in-tl-ev.down { top: 97px; flex-direction: column-reverse; }
.in-tl-lab { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.in-tl-lab b { font-size: 13px; }
.in-tl-lab span { font-size: 12px; }
.in-tl-lab small { font-size: 11px; color: #5B6770; }
.in-tl-ev.up .in-tl-stem { height: 42px; }
.in-tl-ev.down .in-tl-stem { height: 50px; }
.in-tl-stem { width: 2px; }
.in-tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; flex: 0 0 auto; }
.in-tl-cap { text-align: center; font-size: 12px; color: #5B6770; }

/* The Assessment and the clearings */
.in-cmp { display: flex; flex-direction: column; gap: 8px; }
.in-cmp-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 12px; align-items: center; font-size: 13px; }
.in-cmp-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.in-cmp-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #5B6770; }
.in-cmp-bar { display: flex; align-items: center; gap: 8px; }
.in-cmp-bar b { width: 26px; font-weight: 400; color: #5B6770; }
.in-callout { font-size: 13px; background: #EEF5F7; border-radius: 8px; padding: 12px 14px; }

@media (max-width: 600px) {
  .in-h1 { font-size: 32px; }
  .in-sticky { gap: 8px; padding: 8px 12px; margin: -8px -16px 0; }
  .in-pillbar { flex-basis: 100%; }
  .in-pill { padding: 7px 11px; font-size: 10.5px; }
  .in-pillbar { justify-content: flex-start; }
  .in-section { padding: 16px; }
  .in-cmp-row { grid-template-columns: 96px 1fr 1fr; gap: 8px; }
  .in-prim { grid-template-columns: 1fr; gap: 4px; }
}

/* Print: the whole report, or one section */
.in-print-head { display: none; }
@media print {
  body.printing-insights .app-header, body.printing-insights #va-bar, body.printing-insights .in-noprint,
  body.printing-insights #module-assessment, body.printing-insights #module-codes, body.printing-insights #module-wheel,
  body.printing-insights #admin-banner { display: none !important; }
  body.printing-insights { background: #fff !important; }
  body.printing-insights .in-print-head { display: block; font-size: 11px; color: #5B6770; margin-bottom: 4px; }
  body.printing-insights .in-page { max-width: none; padding: 0; gap: 14px; }
  body.printing-insights .in-section { break-inside: avoid; page-break-inside: avoid; border-color: #D8D3C9; }
  body.printing-insights .in-scroll { overflow: visible; }
  body.in-print-one .in-section:not(.in-print-only), body.in-print-one .in-top { display: none !important; }
  body.printing-insights * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The page scrolls, not the module, so the sections bar can stay put (a module is a scroll box by default) */
#module-insights { overflow: visible; }
@media (max-width: 1150px) and (min-width: 601px) {
  .in-pill { padding: 8px 8px; font-size: 10.5px; letter-spacing: .05em; }
}
