/* ── PILLS ── */
.pill {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; font-weight: 500; white-space: nowrap;
}
.pill-type-xl { background: var(--type-xl); color: var(--type-xl-text); }
.pill-type-l  { background: var(--type-l);  color: var(--type-l-text); }
.pill-type-m  { background: var(--type-m);  color: var(--type-m-text); }
.pill-type-s  { background: var(--type-s);  color: var(--type-s-text); }
.pill-fs      { background: var(--type-fs); color: var(--type-fs-text); }

.pill-inprogress { background: var(--status-inprogress-bg); color: var(--status-inprogress-text); }
.pill-todo       { background: var(--status-todo-bg);       color: var(--status-todo-text); }
.pill-done       { background: var(--status-done-bg);       color: var(--status-done-text); }
.pill-hold       { background: var(--status-hold-bg);       color: var(--status-hold-text); }

.pill-outline { background: transparent; border: 1px solid #333; color: var(--gray-300); }

/* generic status/tag pills used across Org/Contacts/Workload/Ongoing/Process tabs */
.pill-pink   { background: #2A1420; color: var(--momo-pink-light); }
.pill-green  { background: var(--status-done-bg); color: var(--status-done-text); }
.pill-yellow { background: var(--status-todo-bg); color: var(--status-todo-text); }
.pill-gray   { background: #222; color: #aaa; border: 1px solid #333; }
.pill-red    { background: #3D1A1A; color: #E88080; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface-2); border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 20px;
}
.card-label { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.card-value { font-size: 15px; font-weight: 500; color: var(--momo-white); margin-bottom: 4px; }
.card-sub { font-size: 12px; color: var(--text-secondary); }

/* ── ROSTER ACCORDION ── */
.roster-list { display: flex; flex-direction: column; gap: 8px; }
.roster-card { background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 6px; overflow: hidden; }
.roster-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
}
.roster-card-name { font-size: 13px; font-weight: 500; color: var(--momo-white); min-width: 220px; flex-shrink: 0; }
.roster-card-role { font-size: 12px; color: var(--text-secondary); flex: 1; }
.roster-chevron { font-size: 11px; color: #555; transition: transform 0.15s; margin-left: auto; flex-shrink: 0; }
.roster-card.expanded .roster-chevron { transform: rotate(90deg); }
.roster-card-body { display: none; padding: 0 16px 14px; border-top: 1px solid #2A2A2A; }
.roster-card.expanded .roster-card-body { display: block; padding-top: 12px; }
.roster-card-section { font-size: 12px; color: #ccc; margin-bottom: 8px; }
.roster-card-section:last-child { margin-bottom: 0; }
.roster-card-section strong { color: var(--momo-white); font-weight: 500; }

/* ── GLOSSARY (Terminologies) ── */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.glossary-col { background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 6px; padding: 16px; }
.glossary-col-title {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--momo-pink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #2A2A2A;
}
.glossary-item { margin-bottom: 10px; }
.glossary-item:last-child { margin-bottom: 0; }
.glossary-item strong { display: block; font-size: 12px; color: var(--momo-white); margin-bottom: 2px; }
.glossary-item span { font-size: 11px; color: #aaa; }
.glossary-item span.card-sub { display: inline; }

/* ── TABLE ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 10px 14px;
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-secondary);
  background: #161616; border-bottom: 1px solid #2A2A2A;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid #222; vertical-align: top; color: #ddd; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #202020; }
.tbl-wrap { background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 6px; overflow: hidden; }
.tbl strong { color: var(--momo-white); font-weight: 500; }

/* ── INFO ROW ── */
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #222; align-items: flex-start; }
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 12px; font-weight: 500; color: var(--gray-300); min-width: 180px; flex-shrink: 0; }
.info-val { font-size: 13px; color: var(--momo-white); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: #2A2A2A; }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-dot { position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--momo-pink); border: 2px solid var(--surface-1); box-shadow: 0 0 0 1px var(--momo-pink); }
.tl-date { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 2px; }
.tl-title { font-size: 13px; font-weight: 500; color: var(--momo-white); margin-bottom: 2px; }
.tl-desc { font-size: 12px; color: #aaa; }

/* ── CALLOUT ── */
.callout {
  background: var(--momo-pink-bg); background: #2A1420; border-left: 3px solid var(--momo-pink);
  border-radius: 0 6px 6px 0; padding: 12px 16px;
  font-size: 13px; color: #ddd; margin-bottom: 16px;
}
.callout strong { color: var(--momo-pink-light); }

/* ── PROCESS STEPS ── */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 16px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--momo-pink); color: var(--momo-white);
  font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.step-title { font-size: 13px; font-weight: 500; color: var(--momo-white); margin-bottom: 3px; }
.step-desc { font-size: 12px; color: #aaa; }

/* ── CONTACT CARD ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact-card {
  background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 6px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-name { font-size: 14px; font-weight: 500; color: var(--momo-white); }
.contact-role { font-size: 12px; color: var(--text-secondary); }
.contact-team { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--momo-pink-light); margin-bottom: 2px; }
.contact-reach { font-size: 12px; color: #aaa; margin-top: 6px; padding-top: 6px; border-top: 1px solid #2A2A2A; }

/* ── WORKLOAD ── */
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rhythm-card {
  background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 6px; overflow: hidden;
}
.rhythm-header {
  padding: 12px 16px; background: #161616;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--momo-white);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #2A2A2A;
}
.rhythm-header .rh-icon { font-size: 14px; }
.rhythm-body { padding: 12px 0; }
.rhythm-item {
  padding: 7px 16px; font-size: 12px; color: #aaa;
  border-bottom: 1px solid #222; display: flex; gap: 8px; align-items: flex-start;
}
.rhythm-item:last-child { border-bottom: none; }
.rhythm-item::before { content: '·'; color: var(--momo-pink-light); font-weight: 700; flex-shrink: 0; }

/* ── ORG CHART ── */
.org-wrap { overflow-x: auto; padding-bottom: 8px; }
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level { display: flex; gap: 12px; justify-content: center; position: relative; padding: 16px 0; }
.org-node {
  background: var(--surface-2); border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 12px 16px; text-align: center;
  min-width: 140px;
}
.org-node.highlight { border-color: var(--momo-pink); background: #2A1420; }
.org-node-title { font-size: 12px; font-weight: 500; color: var(--momo-white); }
.org-node-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.org-connector { width: 1px; height: 20px; background: #2A2A2A; margin: 0 auto; }
.org-branch { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node.dashed { border-style: dashed; opacity: 0.75; }
.org-caption { font-size: 11px; color: var(--text-secondary); margin-top: 10px; }
.org-scope {
  background: #161616; border: 1px solid #2A2A2A; border-radius: 6px;
  padding: 10px 12px; text-align: left; max-width: 210px;
  font-size: 10.5px; color: #aaa; line-height: 1.5;
}
.org-scope-line + .org-scope-line { margin-top: 4px; }
.org-scope strong { color: var(--momo-white); font-weight: 500; }
.org-siblings { display: flex; gap: 10px; }
.org-node.platform { background: #2A1420; border-color: var(--momo-pink); }
.org-node.wide { min-width: 170px; }
.org-leaf-list { display: flex; flex-direction: column; gap: 6px; }
.org-leaf {
  background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 4px;
  padding: 6px 12px; font-size: 11px; color: #ccc; text-align: center; min-width: 150px;
}

/* ── LINK ── */
a.doc-link {
  color: var(--momo-pink-light); text-decoration: none; font-weight: 500;
  font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
}
a.doc-link::after { content: '↗'; font-size: 10px; }
a.doc-link:hover { text-decoration: underline; }

/* ── HOME / MUST READ DOCS ── */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card {
  display: block; background: var(--surface-2); border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 20px; text-decoration: none;
  transition: border-color 0.15s;
}
.doc-card:hover { border-color: var(--momo-pink); }
.doc-card-icon { font-size: 22px; margin-bottom: 10px; }
.doc-card-title { font-family: var(--font-display); font-size: 15px; color: var(--momo-white); margin-bottom: 6px; }
.doc-card-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.doc-card-link {
  font-size: 11px; font-weight: 500; color: var(--momo-pink-light);
  display: inline-flex; align-items: center; gap: 4px;
}
.doc-card-link::after { content: '↗'; font-size: 10px; }

/* ── KANBAN BOARD (Campaigns) ── */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kanban-col { width: 280px; flex-shrink: 0; }
.kanban-col-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kanban-col-count { font-size: 12px; color: var(--text-secondary); }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; }

.campaign-card {
  display: block; background: var(--surface-2); border: 1px solid #2A2A2A;
  border-radius: 6px; padding: 14px 16px; text-decoration: none;
  transition: border-color 0.15s;
}
.campaign-card:hover { border-color: var(--momo-pink); }
.campaign-card-name { font-family: var(--font-display); font-size: 15px; color: var(--momo-white); margin-bottom: 8px; }
.campaign-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.campaign-card-time { font-size: 12px; color: var(--text-secondary); }

/* ── CAMPAIGN DETAIL PAGE ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 20px;
}
.back-link:hover { color: var(--momo-pink-light); }

.detail-header { margin-bottom: 8px; }
.detail-title { font-family: var(--font-display); font-size: 36px; color: var(--momo-white); margin-bottom: 12px; }
.detail-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }

.cover-image {
  width: 100%; height: 260px; margin-bottom: 24px;
  background-color: #1A1A1A; background-size: cover; background-position: center;
  border: 1px solid #2A2A2A; border-radius: 6px;
}

.prop-row { display: flex; padding: 12px 0; border-bottom: 1px solid #222; align-items: center; gap: 12px; }
.prop-row:last-child { border-bottom: none; }
.prop-icon { font-size: 14px; color: #444; width: 24px; flex-shrink: 0; }
.prop-label { font-size: 13px; color: #555; min-width: 180px; flex-shrink: 0; }
.prop-value { font-size: 13px; color: var(--momo-white); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.prop-empty { color: #444; }

.subtype-label {
  font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: #666;
}
.camp-card-top { display: flex; flex-direction: column; margin-bottom: 8px; }
.camp-card-top .campaign-card-name { margin-bottom: 2px; }

.link-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.link-col-title {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 10px;
}
.link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #1E1E1E; font-size: 13px;
}
.link-row:last-child { border-bottom: none; }
.link-row .link-label { flex: 1; color: #ccc; }
.link-row a { color: var(--momo-pink-light); text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

.kv-block {
  background: var(--surface-2); border: 1px solid #2A2A2A; border-radius: 6px;
  min-height: 160px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.kv-block img { width: 100%; height: auto; display: block; }

.notes-placeholder { font-size: 12px; color: #444; font-style: italic; }

/* ── DYNAMIC PROJECTS (Google Sheets) ── */
.spinner { color: #555; font-size: 13px; padding: 20px 0; }
.placeholder { color: #555; font-size: 13px; font-style: italic; padding: 12px 0; }
.placeholder.error { color: #e55; }
.sheet-updated { font-size: 11px; color: #444; margin-top: 8px; text-align: right; }
.row-note { font-size: 11px; color: #555; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rhythm-grid { grid-template-columns: 1fr; }
  .link-cols { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .cover-image { height: 160px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-key { min-width: unset; }
  .prop-row { flex-direction: column; gap: 4px; }
  .prop-label { min-width: unset; }
  .kanban-board { flex-direction: column; }
  .kanban-col { width: 100%; }
  .detail-title { font-size: 28px; }
  .roster-card-header { flex-wrap: wrap; }
  .roster-card-name { min-width: 100%; }
  .glossary-grid { grid-template-columns: 1fr; }
}
