/* ============================================================
   Flex Intelligence Portal · SAMPLE, shared layer
   Ribbon, redaction system, CORE box, tier badges, footer lockup
   ============================================================ */

/* ---- Persistent sample ribbon (every page) ---- */
.sample-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #7A5B12 0%, #9A7B1E 50%, #7A5B12 100%);
  color: #FFFDF7; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 7px 16px; text-align: center;
}
.sample-ribbon .dot { width: 6px; height: 6px; border-radius: 50%; background: #FFE9A8; flex-shrink: 0; }
.sample-ribbon .sep { opacity: 0.55; font-weight: 600; }

/* ---- Redaction system ----
   IMPORTANT: the characters under a redaction bar are always fictional
   placeholders (block glyphs or "Sample Client"), never real data. */
.redacted {
  position: relative; display: inline-block;
  background: #1B1E23; color: #1B1E23; border-radius: 3px;
  padding: 0 8px; line-height: 1.35; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.redacted.lbl::after {
  content: "REDACTED"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.52em; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; pointer-events: none;
}
.sidebar .redacted { background: rgba(255,255,255,0.16); color: transparent; box-shadow: none; }
.sidebar .redacted.lbl::after { color: rgba(255,255,255,0.55); }

/* Blur variant for imagery / graphic panels */
.redacted-blur { filter: blur(7px); }
.redact-frame { position: relative; overflow: hidden; border-radius: 8px; }
.redact-frame .redact-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; background: rgba(2,4,45,0.88); color: #fff;
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; border-radius: 6px;
}
.redact-frame .redact-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9A84C; }

/* ---- CORE box (portal home only) ---- */
.core-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF8F0 100%);
  border: 1px solid rgba(201,168,76,0.45); border-left: 4px solid #C9A84C;
  border-radius: 12px; padding: 24px 28px; margin: 0 0 32px;
  box-shadow: 0 4px 16px rgba(2,4,45,0.05);
}
.core-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.core-box-hex { color: #C9A84C; font-size: 1.05rem; line-height: 1; }
.core-box-logo { height: 20px; width: auto; display: block; }
.core-box-label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #7A5B12;
}
.core-sources {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px;
}
.core-source-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #FFFFFF; border: 1px solid #E8E4D8; border-radius: 6px;
  padding: 7px 12px; font-size: 0.74rem; font-weight: 600; color: #5C544B;
}
.core-source-chip .ck { color: #C9A84C; font-size: 0.7rem; }
.core-sources-kicker {
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: #8A7F6E; margin-bottom: 8px;
}
.core-bridge {
  font-size: 0.86rem; color: #374151; line-height: 1.65; max-width: 720px;
  padding-top: 12px; border-top: 1px solid rgba(201,168,76,0.25);
}

/* ============================================================
   MODULE SYSTEM · productized designations, chips, tab chips
   MODULE 01 Flex Space Pro Forma · MODULE 02 Market Pricing Calibration
   MODULE 03 Demand Intelligence · MODULE 04 The Strategic Report
   ============================================================ */

/* ---- Tab bar as compact module chips ---- */
.tabbar { gap: 8px; padding: 10px 18px; align-items: center; border-bottom: 1px solid var(--border); }
.tabbar .tab {
  height: auto; padding: 7px 14px; border: 1px solid #E6E3DB; border-radius: 999px;
  border-bottom: 1px solid #E6E3DB; background: #FFFFFF; font-size: 0.74rem; font-weight: 700;
  color: #5C544B; transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.tabbar .tab:hover { border-color: rgba(201,168,76,0.6); background: #FFFDF7; color: var(--navy); }
.tabbar .tab.active { border-color: var(--gold); border-bottom-color: var(--gold); background: #FCFAF2; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(201,168,76,0.35); }
.tab-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  color: #B0A88F; margin-right: 8px;
}
.tabbar .tab.active .tab-num, .tabbar .tab:hover .tab-num { color: #9A7B1E; }

/* ---- Module designation row (page heroes) ---- */
.module-designation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.module-designation .mod-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-noimg .module-designation { margin-bottom: 10px; }
.hero-noimg .module-designation .mod-num { color: #C9A84C; }
.report-hero .module-designation { margin-bottom: 12px; }
.report-hero .module-designation .mod-num { color: #9A7B1E; }

/* Version chip: light-context and dark-context variants */
.ver-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: #FFFFFF; border: 1px solid rgba(201,168,76,0.5); color: #7A5B12;
}
.ver-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #C9A84C; flex-shrink: 0; }
.hero-noimg .ver-chip { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.9); }
.hero-mod-note { position: relative; z-index: 2; font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 10px; }

/* ---- Module tier badge (module pages) ---- */
.tier-include {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.tier-include::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.tier-include.proforma { background: #FCFAF2; color: #7A5B12; border: 1px solid rgba(201,168,76,0.4); }
.tier-include.proforma::before { background: #C9A84C; }
.tier-include.feasibility { background: #F0F4FF; color: #1E3A8A; border: 1px solid rgba(147,167,235,0.5); }
.tier-include.feasibility::before { background: #3B5BDB; }

/* ---- Module composition menu (portal home): product component cards ---- */
.module-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 32px; }
.module-menu-item {
  background: #FFFFFF; border: 1px solid #E6E3DB; border-top: 3px solid #E6E3DB; border-radius: 10px;
  padding: 15px 16px 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.module-menu-item:hover { border-color: rgba(201,168,76,0.6); border-top-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,4,45,0.07); }
.module-menu-item.core-product { border-color: rgba(201,168,76,0.6); border-top-color: var(--gold); background: #FFFDF7; }
.module-menu-item.bundle { background: linear-gradient(150deg, #02042D 0%, #0A1142 100%); border-color: rgba(201,168,76,0.4); border-top-color: var(--gold); }
.module-menu-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-menu-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #B0A88F;
}
.module-menu-item.core-product .module-menu-num { color: #9A7B1E; }
.module-menu-item.bundle .module-menu-num { color: #C9A84C; }
.module-menu-flag { font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 2px 8px; border-radius: 4px; background: #FCFAF2; color: #7A5B12; border: 1px solid rgba(201,168,76,0.4); white-space: nowrap; }
.module-menu-item.bundle .module-menu-flag { background: rgba(201,168,76,0.14); color: #E5C979; border-color: rgba(201,168,76,0.35); }
.module-menu-name { font-size: 0.84rem; font-weight: 800; color: #02042D; line-height: 1.3; }
.module-menu-item.bundle .module-menu-name { color: #FFFFFF; }
.module-menu-note { font-size: 0.68rem; color: #6B7280; line-height: 1.45; flex-grow: 1; }
.module-menu-item.bundle .module-menu-note { color: rgba(255,255,255,0.65); }
.module-menu-meta { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 9px; border-top: 1px solid #F0EDE8; }
.module-menu-item.bundle .module-menu-meta { border-top-color: rgba(255,255,255,0.12); }
.mm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.mm-chip.ver { background: #F8F7F4; color: #6B7280; border: 1px solid #E6E3DB; }
.mm-chip.ver::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C9A84C; flex-shrink: 0; }
.mm-chip.tier-gold { background: #FCFAF2; color: #7A5B12; border: 1px solid rgba(201,168,76,0.35); }
.mm-chip.tier-blue { background: #F0F4FF; color: #1E3A8A; border: 1px solid rgba(147,167,235,0.5); }
.module-menu-item.bundle .mm-chip.ver { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.18); }
.module-menu-item.bundle .mm-chip.tier-blue { background: rgba(147,167,235,0.16); color: #B9C7F2; border-color: rgba(147,167,235,0.3); }
.mm-core { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 0.54rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #B0A88F; }
.mm-core::before { content: "\2B21"; color: #C9A84C; font-size: 0.66rem; line-height: 1; }
.module-menu-item.bundle .mm-core { color: rgba(255,255,255,0.45); }

/* ---- Photo-free navy hero (replaces client imagery) ---- */
.hero-noimg {
  position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(201,168,76,0.22), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(78,96,180,0.28), transparent 52%),
    linear-gradient(135deg, #02042D 0%, #0A1142 62%, #060A33 100%);
  box-shadow: 0 4px 16px rgba(2,4,45,0.10);
}
.hero-noimg .hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.10;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-noimg-content { position: relative; z-index: 2; padding: 34px 44px 36px; }
.hero-noimg-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #C9A84C; margin-bottom: 10px; }
.hero-noimg-title { font-size: 1.5rem; font-weight: 800; color: #FFFFFF; line-height: 1.25; max-width: 680px; margin: 0; letter-spacing: -0.01em; }
.hero-noimg-sub { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 620px; margin-top: 9px; }
.hero-noimg .hero-pill {
  position: absolute; top: 22px; right: 26px; z-index: 2;
  display: inline-block; padding: 5px 14px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.92);
}

/* ---- Powered by Core footer lockup ---- */
.powered-by {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #EDEAE2;
}
.powered-by .pb-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #8A7F6E; }
.powered-by .pb-logo { height: 15px; width: auto; display: block; }
.powered-by .pb-version { font-size: 0.64rem; color: #C4BFBA; margin-left: auto; }

/* ============================================================
   Google Sheet showcase mock (Flex Space Pro Forma page)
   A pure HTML/CSS recreation of the delivered spreadsheet.
   No real sheet, no real URL, all figures = the illustrative model.
   ============================================================ */
.gs-window { background: #fff; border: 1px solid #D8D5CC; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(2,4,45,0.12); margin: 18px 0 10px; }
.gs-chrome { display: flex; align-items: center; gap: 12px; background: #ECEDF0; padding: 9px 14px; border-bottom: 1px solid #DDDEE2; }
.gs-chrome .dots { display: flex; gap: 6px; }
.gs-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.gs-chrome .dot.r { background: #F26D5F; } .gs-chrome .dot.y { background: #F5BE4F; } .gs-chrome .dot.g { background: #5FC454; }
.gs-chrome .addr { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #DDDEE2; border-radius: 999px; padding: 5px 14px; font-size: 0.7rem; color: #6B7280; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gs-chrome .addr .redacted { padding: 0 22px; }
.gs-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px 4px; }
.gs-sheets-icon { width: 26px; height: 34px; border-radius: 4px; background: #0F9D58; position: relative; flex-shrink: 0; }
.gs-sheets-icon::after { content: ""; position: absolute; inset: 9px 6px; background:
  linear-gradient(#fff 1.5px, transparent 1.5px) 0 0 / 100% 5px,
  linear-gradient(90deg, #fff 1.5px, transparent 1.5px) 0 0 / 7px 100%;
  opacity: 0.95; }
.gs-title-block { min-width: 0; }
.gs-title { display: flex; align-items: center; gap: 7px; font-size: 0.95rem; font-weight: 600; color: #202124; }
.gs-title .redacted { font-size: 0.8rem; }
.gs-menus { font-size: 0.7rem; color: #5F6368; margin-top: 3px; letter-spacing: 0.01em; }
.gs-toolbar { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 6px 10px; background: #F1F3F4; border-radius: 999px; }
.gs-tool { width: 16px; height: 16px; border-radius: 3px; background: #D5D8DC; }
.gs-tool.wide { width: 44px; }
.gs-tool.sep { width: 1px; height: 16px; background: #C9CCD1; border-radius: 0; }
.gs-formula { display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 5px 12px; border: 1px solid #E3E5E8; border-radius: 5px; font-size: 0.72rem; color: #5F6368; }
.gs-formula .fx { font-style: italic; font-weight: 700; color: #5F6368; }
.gs-gridwrap { overflow-x: auto; border-top: 1px solid #E3E5E8; }
.gs-grid { border-collapse: collapse; width: 100%; font-size: 0.74rem; font-family: Inter, Arial, sans-serif; color: #202124; }
.gs-grid th, .gs-grid td { border: 1px solid #E3E5E8; padding: 5px 10px; white-space: nowrap; }
.gs-grid th { background: #F8F9FA; color: #5F6368; font-weight: 500; font-size: 0.66rem; text-align: center; padding: 4px 8px; }
.gs-grid th.rowhead { width: 34px; }
.gs-grid td.rownum { background: #F8F9FA; color: #5F6368; text-align: center; font-size: 0.66rem; width: 34px; }
.gs-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.gs-grid tr.band td:not(.rownum) { background: #FCFAF2; font-weight: 700; color: #02042D; text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.05em; }
.gs-grid tr.total td:not(.rownum) { background: #FEFCF5; font-weight: 700; color: #02042D; border-top: 2px solid #C9A84C; }
.gs-grid td.neg { color: #C5221F; }
.gs-grid td.pos { color: #137333; font-weight: 700; }
.gs-grid tr.total td.neg { color: #C5221F; }
.gs-grid tr.total td.pos { color: #137333; }
.gs-grid td.fade, .gs-grid th.fade { color: #B9BDC3; background: #FBFBFC; font-style: italic; }
.gs-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 10px 8px; background: #F8F9FA; border-top: 1px solid #E3E5E8; overflow-x: auto; }
.gs-tab { padding: 6px 14px; border-radius: 6px 6px 0 0; font-size: 0.7rem; font-weight: 600; color: #5F6368; background: transparent; border: none; cursor: pointer; white-space: nowrap; font-family: Inter, sans-serif; }
.gs-tab:hover { background: #EDEFF1; color: #202124; }
.gs-tab.active { background: #fff; color: #0F9D58; box-shadow: inset 0 -2px 0 #0F9D58, 0 -1px 3px rgba(0,0,0,0.06); }
.gs-tab-plus { color: #5F6368; font-size: 0.9rem; padding: 2px 8px; }
.gs-tabnote { font-size: 0.7rem; color: #8A7F6E; padding: 8px 16px 10px; background: #FFFDF7; border-top: 1px solid rgba(201,168,76,0.3); display: none; }
.gs-tabnote.visible { display: block; }
.gs-view { display: none; }
.gs-view.active { display: block; }
.gs-ramp-chip { display: inline-flex; align-items: center; gap: 7px; margin: 10px 12px 12px; padding: 5px 12px; background: #FCFAF2; border: 1px solid rgba(201,168,76,0.4); border-radius: 999px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #7A5B12; }
.gs-ramp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9A84C; }

/* Inert "open sheet" CTA + modal */
.gs-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; }
.gs-cta-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; background: #C9A84C; color: #02042D; font-size: 0.8rem; font-weight: 800; border: none; border-radius: 7px; cursor: pointer; font-family: Inter, sans-serif; box-shadow: 0 4px 14px rgba(201,168,76,0.25); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.gs-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,168,76,0.35); }
.gs-cta-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gs-cta-note { font-size: 0.72rem; color: #8A7F6E; }
.gs-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2,4,45,0.55); }
.gs-modal.open { display: flex; }
.gs-modal-card { background: #fff; border-radius: 12px; padding: 30px 32px; max-width: 440px; box-shadow: 0 24px 80px rgba(2,4,45,0.4); }
.gs-modal-kicker { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #C9A84C; margin-bottom: 8px; }
.gs-modal-title { font-size: 1.05rem; font-weight: 800; color: #0A1838; margin-bottom: 8px; }
.gs-modal-copy { font-size: 0.82rem; color: #5C544B; line-height: 1.6; margin-bottom: 18px; }
.gs-modal-close { padding: 10px 18px; background: #0A1838; color: #fff; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; border: none; border-radius: 7px; cursor: pointer; font-family: Inter, sans-serif; }

@media (max-width: 900px) {
  .module-menu { grid-template-columns: 1fr 1fr; }
  .hero-noimg-content { padding: 24px 20px 26px; }
  .hero-noimg-sub { display: none; }
  .core-box { padding: 18px 16px; }
  .gs-menus { display: none; }
}
