:root {
  --navy: #02042D;
  --navy-mid: #060A48;
  --gold: #C9A84C;
  --white: #FFFFFF;
  --surface: #F6F5F2;
  --card: #FFFFFF;
  --border: #E6E3DB;
  --muted: #6B7280;
  --text: #111827;
  --text-soft: #374151;
  --green: #16A34A;
  --green-bg: #DCFCE7;
  --amber: #B45309;
  --amber-bg: #FEF3C7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(2,4,45,0.08), 0 1px 4px rgba(0,0,0,0.04);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; font-family: Inter, system-ui, sans-serif; background: var(--surface); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.header { height: 56px; flex-shrink: 0; display: flex; align-items: center; padding: 0 24px; background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.24); }
.header-logo { padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.12); }
.header-logo-text { font-size: 0.78rem; font-weight: 800; color: rgba(255,255,255,0.85); }
.header-meta { padding-left: 20px; flex: 1; min-width: 0; }
.header-project { font-size: 0.875rem; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-sub { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.header-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid rgba(201,168,76,0.4); border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #D4B980; }
.header-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.main { display: flex; flex: 1; min-height: 0; }
.sidebar { width: 256px; flex-shrink: 0; background: linear-gradient(180deg, var(--navy) 0%, #030629 100%); padding: 24px 0; }
.sidebar-section { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 24px; }
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-heading { display: flex; align-items: center; gap: 8px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; }
.sidebar-heading::before { content: ""; width: 3px; height: 12px; background: var(--gold); border-radius: 2px; }
.sidebar-row { margin-bottom: 14px; }
.sidebar-label { display: block; margin-bottom: 3px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.35); }
.sidebar-value { display: block; font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.92); }
.sidebar-value.sm { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.65); }
.sidebar-button { display: block; width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700; text-decoration: none; text-align: center; margin-bottom: 8px; }
.sidebar-button.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tabbar { display: flex; flex-shrink: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow-x: auto; }
.tab { display: flex; align-items: center; height: 52px; padding: 0 20px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--text); background: rgba(2,4,45,0.03); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.page { flex: 1; overflow-y: scroll; padding: 40px 40px 60px; max-width: 1120px; }
.page-title { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 8px; }
.page-lead { max-width: 720px; color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 28px; }
.report-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #FFFFFF 0%, #F7F3E8 100%); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 32px; box-shadow: var(--shadow-md); margin-bottom: 28px; }
.report-brand-pill { position: absolute; top: 18px; right: 20px; display: inline-block; padding: 5px 13px; background: rgba(2,4,45,0.07); border: 1px solid rgba(2,4,45,0.18); border-radius: 20px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.report-kicker { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(201,168,76,0.16); color: #7A5B12; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.report-phrase { max-width: 820px; color: var(--navy); font-size: clamp(1.55rem, 2.8vw, 2.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.report-subphrase { max-width: 720px; color: var(--text-soft); font-size: 0.98rem; line-height: 1.7; margin-top: 16px; }
.story-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 34px; }
.story-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.story-panel.featured { border-color: rgba(201,168,76,0.55); background: #FFFDF7; }
.story-step { color: var(--gold); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 8px; }
.story-headline { color: var(--navy); font-size: 1.15rem; line-height: 1.22; font-weight: 800; margin-bottom: 8px; }
.story-copy { color: var(--text-soft); font-size: 0.86rem; line-height: 1.65; }
.big-quote { margin: 30px 0; padding: 22px 26px; border-left: 5px solid var(--gold); background: #FFFFFF; box-shadow: var(--shadow-sm); color: var(--navy); font-size: 1.3rem; line-height: 1.35; font-weight: 800; }
.callout { border: 1px solid rgba(201,168,76,0.4); background: #FFFDF7; border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); margin: 18px 0 26px; }
.callout-title { color: var(--navy); font-size: 0.95rem; font-weight: 800; margin-bottom: 6px; }
.callout-copy { color: var(--text-soft); font-size: 0.86rem; line-height: 1.65; }
.map-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; margin: 20px 0 34px; }
.catchment-map { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.map-center { display: flex; align-items: center; justify-content: center; min-height: 92px; border: 2px solid rgba(201,168,76,0.7); border-radius: var(--radius-sm); color: var(--navy); font-weight: 800; text-align: center; background: #FFFDF7; margin: 10px 0; }
.map-node-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-node { min-height: 64px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #F9FAFB; padding: 10px; color: var(--text-soft); font-size: 0.78rem; line-height: 1.35; }
.map-node strong { display: block; color: var(--navy); font-size: 0.82rem; margin-bottom: 3px; }
.persona-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 34px; }
.persona-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.persona-num { color: var(--gold); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.persona-title { color: var(--navy); font-size: 1rem; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.persona-copy { color: var(--text-soft); font-size: 0.84rem; line-height: 1.62; }
.allocation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 30px; }
.allocation-tile { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.allocation-percent { color: var(--navy); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.allocation-title { color: var(--text); font-size: 0.82rem; font-weight: 800; margin-top: 8px; }
.allocation-copy { color: var(--text-soft); font-size: 0.78rem; line-height: 1.55; margin-top: 6px; }
.section-title { margin: 36px 0 8px; color: var(--navy); font-size: 1rem; font-weight: 800; }
.section-copy { max-width: 680px; color: var(--text-soft); font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; }
.muted-text { color: var(--muted); font-size: 0.78rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 34px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card-label { display: block; margin-bottom: 6px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card-value { color: var(--navy); font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.card-copy { margin-top: 10px; color: var(--text-soft); font-size: 0.84rem; line-height: 1.62; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); font-size: 0.86rem; font-weight: 800; text-decoration: none; border: 1px solid var(--navy); }
.button.secondary { background: var(--white); color: var(--navy); border-color: var(--border); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
th { padding: 11px 14px; text-align: left; background: #F9FAFB; color: var(--muted); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.gray { background: rgba(156,163,175,0.18); color: #555; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.faq-q { color: var(--navy); font-size: 0.9rem; font-weight: 800; margin-bottom: 6px; }
.faq-a { color: var(--text-soft); font-size: 0.86rem; line-height: 1.65; }
.lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 34px; }
.lens-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.lens-card.pragmatic { border-top: 4px solid #6B7280; }
.lens-card.ideal { border-top: 4px solid var(--gold); background: #FFFDF7; }
.lens-title { color: var(--navy); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.lens-copy { color: var(--text-soft); font-size: 0.86rem; line-height: 1.68; }
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 34px; }
.roadmap-step { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.roadmap-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(201,168,76,0.16); color: #7A5B12; font-size: 0.75rem; font-weight: 800; margin-bottom: 10px; }
.roadmap-title { color: var(--navy); font-size: 0.9rem; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.roadmap-copy { color: var(--text-soft); font-size: 0.78rem; line-height: 1.55; }
.link-card { display: block; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.link-card:hover { transform: translateY(-2px); border-color: rgba(201,168,76,0.7); box-shadow: var(--shadow-md); }
.next-actions { display: grid; gap: 10px; margin: 18px 0 34px; }
.next-action { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.next-action-label { color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.next-action-copy { color: var(--text-soft); font-size: 0.84rem; line-height: 1.55; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 30px; }
.metric { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.metric-value { color: var(--navy); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.metric-label { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 8px; }
.metric-copy { color: var(--text-soft); font-size: 0.78rem; line-height: 1.55; margin-top: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 34px; }
.photo-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-card.wide { grid-column: span 2; }
.photo-img { display: block; width: 100%; height: 190px; object-fit: cover; background: #ECEBE7; }
.photo-card.wide .photo-img { height: 250px; }
.photo-body { padding: 14px 16px 16px; }
.photo-kicker { color: var(--gold); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.photo-title { color: var(--navy); font-size: 0.95rem; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.photo-copy { color: var(--text-soft); font-size: 0.8rem; line-height: 1.55; }
.photo-credit { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 0.68rem; font-weight: 700; text-decoration: none; }
.photo-credit:hover { color: var(--navy); }

/* Header logo image */
.header-logo-img { height: 22px; width: auto; display: block; }

/* Sidebar colophon, prepared-by section */
.portal-photo-img { position: absolute; top: 0; bottom: 0; right: 0; width: 62%; object-fit: cover; object-position: center center; display: block; }
.sidebar-colophon { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 4px; }

.sidebar-prepared { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.sidebar-updated { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.sidebar-cta { display: block; width: 100%; padding: 10px 14px; background: var(--gold); color: var(--navy); border: none; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 800; text-decoration: none; text-align: center; margin-bottom: 16px; }
.sidebar-cta:hover { opacity: 0.9; }
.sidebar-disclaimer { font-size: 0.65rem; color: rgba(255,255,255,0.28); line-height: 1.6; margin: 0; }

.portal-footer { border-top: 1px solid #E8E6E1; margin-top: 48px; padding: 28px 0 40px; }
.portal-footer-text { font-size: 0.65rem; color: #A89E92; line-height: 1.7; max-width: 720px; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .page { padding: 20px 16px 48px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .story-band, .map-grid, .persona-grid, .allocation-grid, .lens-grid, .roadmap, .metric-strip, .photo-grid { grid-template-columns: 1fr; }
  .photo-card.wide { grid-column: span 1; }
  .photo-img, .photo-card.wide .photo-img { height: 210px; }
  .next-action { grid-template-columns: 1fr; }
  .report-hero { padding: 20px 18px; }
  .report-phrase { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .report-subphrase { font-size: 0.88rem; }
  .big-quote { font-size: 1.05rem; padding: 18px 18px; }
  .callout { padding: 16px 16px; }

  /* Header: simplify for mobile */
  .header { padding: 0 14px; height: 48px; }
  .header-logo { padding-right: 12px; }
  .header-logo-img { height: 18px; }
  .header-meta { padding-left: 12px; }
  .header-project { font-size: 0.78rem; }
  .header-sub { display: none; }
  .header-badge { display: none; }

  /* Tabbar: hide scrollbar, compress tabs */
  .tabbar { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tab { height: 44px; padding: 0 14px; font-size: 0.78rem; }

  /* Tables */
  th, td { padding: 10px 11px; font-size: 0.78rem; }
}
