/* Kepler Social Media Calendar — styles.css
   Custom CSS layered on top of Tailwind (loaded via CDN in index.html). */

  html, body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  .font-mono-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
  .skeleton { background: linear-gradient(90deg, #EEF1F5 25%, #F6F8FA 37%, #EEF1F5 63%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; }
  .detail-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.32s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
  .detail-panel.open { opacity: 1; }
  .chevron { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
  .chevron.rot { transform: rotate(180deg); }
  .nav-item.active { background: #EEF2F5; color: #24405A; }
  .nav-item.active .nav-dot { opacity: 1; }
  .nav-dot { opacity: 0; transition: opacity 0.2s ease; }
  .ai-glow:focus-within { box-shadow: 0 0 0 4px rgba(47, 81, 105, 0.10), 0 8px 24px -6px rgba(47, 81, 105, 0.25); border-color: #8FA6B8; }
  .page { display: none; }
  .page.active { display: block; }
  #mobile-drawer { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
  #mobile-overlay { transition: opacity 0.3s ease; }
  #side-panel { transition: transform 0.32s cubic-bezier(0.16,1,0.3,1); }
  #side-panel-overlay { transition: opacity 0.3s ease; }
  .toast { transition: all 0.35s cubic-bezier(0.16,1,0.3,1); }
  .tab-btn { transition: all 0.2s ease; }
  .lane { transition: opacity 0.25s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
  .lane.pulse { animation: lanePulse 1.6s ease; }
  .lane:hover { box-shadow: 0 2px 10px -3px rgba(15,23,42,0.07); }
  @keyframes lanePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,81,105,0); } 15% { box-shadow: 0 0 0 4px rgba(47,81,105,0.22); } }
  .lane-col-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94A3B8; margin-bottom: 0.5rem; }
  .line-clamp-2, .step-text-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stage-card { transition: all 0.18s ease; }
  .stage-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -3px rgba(15,23,42,0.09); border-color: #CBD5E1; z-index: 2; }
  .stage-card.has-open { background: #EEF2F5; border-color: #8FA6B8; }
  .step-number { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 9999px; background: #F1F5F9; color: #64748B; font-size: 9px; font-weight: 600; font-family: 'IBM Plex Mono', ui-monospace, monospace; flex-shrink: 0; }
  .stage-card.has-open .step-number { background: #2F5169; color: #FFFFFF; }
  .creative-slot { border: 1.5px dashed #CBD5E1; background: repeating-linear-gradient(135deg, #FAFBFC 0 8px, #F4F6F9 8px 16px); }
  .row-flash { animation: rowFlash 1.4s ease; }
  @keyframes rowFlash { 0%,100% { background-color: transparent; } 20% { background-color: #EEF2F5; } }
  input.field, select.field { border: 1px solid #E2E8F0; border-radius: 0.5rem; padding: 0.35rem 0.6rem; font-size: 12.5px; background: white; }
  input.field:focus, select.field:focus { outline: none; border-color: #8FA6B8; box-shadow: 0 0 0 2px rgba(47,81,105,0.12); }

  /* Traditional consulting operating-model table */
  .operating-model-wrap { background: #fff; border: 1px solid #9FB9CF; overflow: hidden; }
  .operating-model-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
  .operating-model-table th, .operating-model-table td { border-right: 1px solid #C7D4DF; border-bottom: 1px solid #C7D4DF; vertical-align: middle; }
  .operating-model-table th:last-child, .operating-model-table td:last-child { border-right: 0; }
  .operating-model-table thead th { background: #24405A; color: #fff; text-align: left; padding: 9px 10px; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
  .operating-model-table thead th:nth-child(1) { width: 8%; }
  .operating-model-table thead th:nth-child(2) { width: 12%; }
  .operating-model-table thead th:nth-child(3) { width: 15%; }
  .operating-model-table thead th:nth-child(4) { width: 42%; }
  .operating-model-table thead th:nth-child(5) { width: 11%; }
  .operating-model-table thead th:nth-child(6) { width: 12%; }
  .operating-model-row:nth-of-type(4n+1) .operating-cell { background: #F6FAFD; }
  .operating-cell { padding: 8px 9px; color: #273A4A; line-height: 1.35; }
  .operating-channel { color: #1B2F44; font-size: 10px; font-weight: 700; text-align: left; }
  .channel-mark { display: block; width: 20px; height: 3px; margin: 0 0 5px; }
  .operating-type p { font-weight: 700; color: #1B2F44; line-height: 1.2; }
  .operating-copy { font-size: 10.5px; }
  .table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
  .table-action { border: 1px solid #B7C6D2; background: #fff; color: #24405A; border-radius: 2px; padding: 2px 5px; font-size: 9px; font-weight: 600; white-space: nowrap; }
  .table-action:hover { border-color: #E6792A; color: #B75512; }
  .process-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 15px; }
  .process-step { position: relative; flex: 1 1 145px; min-height: 43px; border: 1px solid #9FB9CF; border-radius: 2px; background: #fff; padding: 6px 8px; color: #273A4A; }
  .process-step:not(:last-child)::after { content: ''; position: absolute; right: -11px; top: 50%; width: 8px; border-top: 1px solid #E6792A; }
  .process-step:not(:last-child)::before { content: ''; position: absolute; right: -14px; top: calc(50% - 3px); border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 5px solid #E6792A; }
  .process-step p { font-size: 10.5px; font-weight: 600; line-height: 1.22; }
  .process-step-meta { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; color: #5A7A93; font-size: 8.5px; }
  .process-step-meta span { background: #EEF2F5; padding: 1px 4px; border-radius: 2px; }
  .step-number { width: 15px; height: 15px; border-radius: 2px; background: #DCEAF5; color: #24405A; }
  .stage-card.has-open { background: #EEF6FB; border-color: #E6792A; }
  .operating-stakeholders { padding: 5px 7px; }
  .operating-stakeholders span { display: block; border-bottom: 1px solid #E4EDF3; padding: 3px 1px; color: #405A70; font-size: 10px; font-weight: 600; }
  .operating-stakeholders span:last-child { border-bottom: 0; }
  .operating-detail-row td { padding: 0; border-right: 0; background: #fff; }
  .operating-detail-row .detail-panel { background: #F8FBFD; }
  #cal-dated, #cal-recruitment, [data-calview="dated"], [data-calview="recruitment"] { display: none !important; }
  @media (max-width: 900px) { .operating-model-table { table-layout: auto; } .operating-model-table thead th { font-size: 9px; padding: 7px 5px; } .operating-cell { padding: 6px 5px; } .process-step { flex-basis: 120px; } }

  /* Stakeholder swim lanes inside each content-type process map. */
  .operating-model-table thead th:nth-child(1) { width: 8%; }
  .operating-model-table thead th:nth-child(2) { width: 13%; }
  .operating-model-table thead th:nth-child(3) { width: 15%; }
  .operating-model-table thead th:nth-child(4) { width: 50%; }
  .operating-model-table thead th:nth-child(5) { width: 14%; }
  .stakeholder-map { display: flex; width: 100%; min-width: 0; border: 1px solid #B7C6D2; background: #fff; }
  .stakeholder-labels { flex: 0 0 95px; display: grid; grid-template-rows: repeat(var(--lane-count), 1fr); border-right: 1px solid #B7C6D2; background: #EEF6FB; }
  .stakeholder-labels div { display: flex; align-items: center; justify-content: center; padding: 4px; border-bottom: 1px solid #D7E2EA; color: #24405A; text-align: center; font-size: 8.5px; font-weight: 700; line-height: 1.15; }
  .stakeholder-labels div:last-child { border-bottom: 0; }
  .stakeholder-surface { position: relative; flex: 1; min-width: 0; overflow: hidden; }
  .swim-band { position: absolute; display: block; left: 0; right: 0; border-bottom: 1px solid #D7E2EA; background: #fff; }
  .swim-band:nth-child(even) { background: #F8FBFD; }
  .swim-link { position: absolute; z-index: 1; display: block; background: #E6792A; }
  .swim-link-flat { width: 8px; height: 1px; }
  .swim-link-out { width: 4px; height: 1px; }
  .swim-link-vertical { width: 1px; }
  .swim-link-in { width: 4px; height: 1px; }
  .swim-arrow { position: absolute; z-index: 2; display: block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #E6792A; }
  .swim-stage { position: absolute; z-index: 3; display: flex; flex-direction: column; justify-content: center; overflow: visible; border: 1px solid #8FA6B8; border-radius: 1px; background: #fff; padding: 4px 5px; }
  .swim-stage:hover { z-index: 4; border-color: #E6792A; box-shadow: 0 2px 6px rgba(36,64,90,.12); transform: none; }
  .swim-stage p { font-size: 9px; font-weight: 700; line-height: 1.12; }
  .swim-stage .step-number { width: 13px; height: 13px; font-size: 8px; }
  .swim-stage .process-step-meta { margin-top: 2px; font-size: 7.5px; line-height: 1; }
  .swim-stage .process-step-meta span { padding: 1px 2px; }
  .operating-stakeholders { display: none; }
  @media (max-width: 900px) { .stakeholder-labels { flex-basis: 70px; } .stakeholder-labels div { font-size: 7.5px; } .swim-stage p { font-size: 8px; } }

  /* Channel sections and a process-first table hierarchy. */
  .operating-channel-section + .operating-channel-section { border-top: 10px solid #F1F5F9; }
  .operating-model-table thead th:nth-child(1) { width: 15%; }
  .operating-model-table thead th:nth-child(2) { width: 15%; }
  .operating-model-table thead th:nth-child(3) { width: 60%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-model-table .channel-section-row th { width: auto; background: #DCEAF5; color: #1B2F44; border-bottom: 1px solid #8FA6B8; padding: 8px 10px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
  .operating-model-table thead + thead th { background: #24405A; color: #fff; }
  .operating-cell { padding: 6px 8px; }
  .operating-type p { font-size: 11px; }
  .stakeholder-labels { flex-basis: 82px; }
  .stakeholder-map { border-color: #AABFCE; }
  .swim-stage { padding: 3px 4px; }
  .swim-stage p { font-size: 9.5px; line-height: 1.12; }
  .swim-stage .process-step-meta { margin-top: 1px; }

  /* Default desktop navigation is an icon rail, leaving room for the operating model. */
  #mobile-drawer .nav-item { height: 40px; justify-content: center; gap: 0; padding: 0; border-radius: 5px; }
  #mobile-drawer .nav-item > span:not(.nav-dot) { display: none; }
  #mobile-drawer .nav-item .nav-dot { display: none; }
  #mobile-drawer .nav-item svg { width: 19px; height: 19px; }

  /* Explicit, process-led table proportions — supplied by the colgroup, not equal-width grid columns. */
  .operating-model-table { table-layout: fixed; }
  .operating-model-table thead th:nth-child(1) { width: 12%; }
  .operating-model-table thead th:nth-child(2) { width: 12%; }
  .operating-model-table thead th:nth-child(3) { width: 66%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-cell { padding: 4px 6px; }
  .operating-type p { font-size: 10.5px; }
  .operating-copy { color: #64748B; font-size: 9.5px; line-height: 1.25; }
  .operating-process { padding: 3px; background: #FBFDFF; }
  .stakeholder-labels { flex-basis: 74px; }
  .stakeholder-labels div { padding: 2px; font-size: 8px; }
  .swim-stage { padding: 2px 3px; }
  .swim-stage p { font-size: 9.5px; line-height: 1.08; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }

  .operating-model-table .operating-model-row .operating-copy { background: #fff; }

  /* People & Culture campaign alternatives: compact separate boxes inside the existing stage. */
  .swim-stage.has-options { height: 76px !important; justify-content: flex-start; padding: 3px 4px; }
  .campaign-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 3px; }
  .campaign-option-grid span { display: flex; align-items: center; min-height: 12px; border: 1px solid #C7D4DF; background: #F8FBFD; color: #405A70; padding: 1px 3px; font-size: 7.25px; font-weight: 500; line-height: 1.08; }

  .campaign-choice-card { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #B7C6D2; border-radius: 1px; background: #F8FBFD; color: #405A70; padding: 2px 4px; text-align: center; font-size: 8.5px; font-weight: 600; line-height: 1.08; }
  .campaign-choice-card:hover { z-index: 4; border-color: #C97835; background: #fff; color: #24405A; }
  .swim-stage .process-step-meta { display: none; }
  .table-actions { gap: 3px; margin-top: 4px; }
  .table-action { padding: 1px 4px; font-size: 8px; }

  /* Diagram-scale swim lane: deliberately not a tight grid. */
  .operating-model-table thead th:nth-child(1) { width: 10%; }
  .operating-model-table thead th:nth-child(2) { width: 10%; }
  .operating-model-table thead th:nth-child(3) { width: 70%; }
  .operating-model-table thead th:nth-child(4) { width: 10%; }
  .operating-type p { font-size: 10px; }
  .operating-copy { color: #94A3B8; font-size: 9px; line-height: 1.2; }
  .operating-process { padding: 5px 6px; background: #F8FBFD; }
  .stakeholder-map { border-color: #9FB9CF; background: #fff; }
  .stakeholder-labels { flex-basis: 88px; background: #EEF6FB; }
  .stakeholder-labels div { padding: 5px 4px; font-size: 8.5px; letter-spacing: .01em; }
  .stakeholder-surface { overflow: visible; }
  .swim-band { background: #fff; border-bottom-color: #C7D4DF; }
  .swim-band:nth-child(even) { background: #F7FAFC; }
  .swim-connectors { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .swim-connectors path { fill: none; stroke: #E6792A; stroke-width: .34; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: square; }
  .swim-connectors marker path { fill: #E6792A; stroke: none; }
  .swim-stage { z-index: 3; box-sizing: border-box; border: 1.5px solid #5A7A93; border-radius: 2px; background: #fff; padding: 7px 9px; box-shadow: 0 1px 1px rgba(36,64,90,.06); }
  .swim-stage:hover { border-color: #E6792A; box-shadow: 0 3px 8px rgba(36,64,90,.14); }
  .swim-stage p { font-size: 10.5px; line-height: 1.18; letter-spacing: -.01em; }
  .swim-stage .step-number { width: 16px; height: 16px; font-size: 8px; border-radius: 2px; }
  .swim-stage .process-step-meta { display: flex; margin-top: 3px; }

  /* High-density leadership view: compact lanes, visible titles, prominent flow lines. */
  .operating-cell { padding: 3px 4px; }
  .operating-process { padding: 2px 3px; }
  .operating-copy { font-size: 8.5px; line-height: 1.16; }
  .operating-type p { font-size: 9.5px; line-height: 1.1; }
  .table-actions { margin-top: 3px; gap: 2px; }
  .table-action { font-size: 7.5px; padding: 1px 3px; }
  .stakeholder-labels { flex-basis: 64px; }
  .stakeholder-labels div { padding: 2px; font-size: 7.5px; line-height: 1.05; }
  .swim-stage { padding: 3px 5px; border-width: 1px; }
  .swim-stage p { font-size: 9.25px; line-height: 1.08; }
  .swim-stage .step-number { width: 13px; height: 13px; font-size: 7px; }
  .swim-stage .process-step-meta { display: none; }
  .swim-connectors path { stroke: #D8611C; stroke-width: 2.5; vector-effect: none; }
  .swim-connectors marker path { fill: #D8611C; }

  /* Compact content-type strips: the operating canvas receives the recovered width. */
  .operating-model-table thead th:nth-child(1) { width: 11%; }
  .operating-model-table thead th:nth-child(2) { width: 78%; }
  .operating-model-table thead th:nth-child(3) { width: 11%; }
  .content-type-strip th { padding: 4px 6px; background: #F1F6FA; border-bottom: 1px solid #B7C6D2; color: #24405A; text-align: left; }
  .content-type-name { display: inline-block; margin-right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
  .content-type-strip .table-actions { display: inline-flex; vertical-align: middle; margin: 0; }
  .operating-model-row .operating-cell { padding: 2px 3px; }
  .operating-model-row .operating-copy { padding: 4px 5px; color: #64748B; font-size: 9px; line-height: 1.18; }
  .operating-process { padding: 2px; background: #F9FCFE; }
  .stakeholder-labels { flex-basis: 60px; }
  .stakeholder-labels div { padding: 1px; font-size: 7.5px; line-height: 1.05; }
  .swim-stage { padding: 2px 4px; border-color: #8FA6B8; box-shadow: none; }
  .swim-stage p { font-size: 9.25px; line-height: 1.08; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }
  .swim-stage .process-step-meta { display: none; }
  .swim-connectors path { stroke: #C97835; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
  .swim-connectors marker path { fill: #C97835; }

  /* Final density pass: stronger text-to-node ratio and a visible vertical hand-off gap. */
  .operating-model-row .operating-copy { padding: 3px 5px; color: #475569; font-size: 9.5px; line-height: 1.18; }
  .swim-stage { padding: 1px 3px; }
  .swim-stage p { font-size: 9.75px; line-height: 1.05; }
  .swim-stage .step-number { width: 12px; height: 12px; font-size: 7px; }
