/* CincyCashFlow investor area. Tokens follow the CCF brand (teal + coral on a light ground, navy for weight; Oswald display,
   Poppins body), the same system as cincycashflow.com, investincincy.com and the /GPs portal. */
:root {
  --teal: #3fa8a4; --teal-dk: #2e8a87; --teal-ink: #1f6f6c; --teal-soft: #e4f2f1; --teal-wash: #f2f9f8;
  --coral: #ee8b7b; --coral-dk: #e2705e; --coral-soft: #fdeeea;
  --navy: #22333e; --navy-dk: #16232b; --navy-2: #2d4250; --slate: #5a6b76; --line: #dce6e6; --line-warm: #e3ddd2; --bg: #f5f2ec; --bg-cool: #fbfcfc; --card: #ffffff;
  --good: #2e8a5e; --warn: #b7791f; --bad: #c0392b;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(34, 51, 62, .06), 0 8px 24px rgba(34, 51, 62, .07);
  --shadow-lg: 0 18px 50px rgba(34, 51, 62, .16);
  --display: 'Oswald', 'Arial Narrow', sans-serif; --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 400 15.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dk); text-underline-offset: 3px; }
a:hover { color: var(--coral-dk); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
p { margin: 0 0 1em; }
small, .muted { color: var(--slate); }
code { background: var(--teal-soft); padding: .1em .4em; border-radius: 5px; font-size: .92em; }
code.big { font-size: 1.15em; padding: .25em .6em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kicker { display: inline-block; font: 600 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--coral); padding: .45em .8em; border-radius: 999px; margin-bottom: .9rem; }
.kicker.teal { background: var(--teal); }
.kicker.ghost { background: transparent; color: var(--coral-dk); padding: 0; }
.two-tone b { color: var(--teal); font-weight: inherit; }
.grow { flex: 1; }

/* top strip + nav */
.strip { background: var(--teal); color: #eaf6f5; font-size: .78rem; letter-spacing: .02em; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.strip a { color: #fff; text-decoration: none; }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 1.15rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.brand img { height: 34px; width: auto; }
.brand span b { color: var(--teal); font-weight: inherit; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--teal-soft); color: var(--teal-ink); }
.nav-links a.on { background: var(--teal); color: #fff; }
.nav-links a.admin { color: var(--coral-dk); }
.user-menu { position: relative; }
.user-menu > button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; font: 500 .88rem var(--body); color: var(--navy); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 600 .8rem var(--display); }
.user-menu .menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; display: none; }
.user-menu.open .menu { display: block; }
.user-menu .menu a { display: block; padding: 8px 10px; border-radius: 7px; text-decoration: none; color: var(--navy); font-size: .9rem; }
.user-menu .menu a:hover { background: var(--teal-wash); }
.user-menu .menu .who { padding: 8px 10px; font-size: .8rem; color: var(--slate); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; color: var(--navy); }

/* buttons, pills, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 500 .92rem/1 var(--body); padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); }
.btn.primary { background: var(--coral); color: var(--navy-dk); border-color: var(--coral); font: 600 .9rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(238, 139, 123, .35); }
.btn.primary:hover { background: var(--coral-dk); color: var(--navy-dk); box-shadow: 0 12px 26px rgba(238, 139, 123, .5); }
.btn.teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.teal:hover { background: var(--teal-dk); color: #fff; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.coral:hover { background: var(--coral-dk); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: .82rem; }
.btn.warn { color: var(--warn); }
.btn.danger { color: var(--bad); border-color: #f0c9c3; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .arr { color: var(--coral); font-weight: 700; }
.btn.primary .arr { color: var(--navy-dk); } .btn.coral .arr, .btn.teal .arr { color: #fff; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-block; font: 600 .7rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: .45em .7em; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); margin: 0 4px 4px 0; white-space: nowrap; }
.pill.live, .pill.open { background: #ddf3e7; color: #1e6b45; }
.pill.closed, .pill.exited { background: #eceff1; color: #4a5a64; }
.pill.watch, .pill.draft { background: #fdf2dc; color: #8a5a10; }
.pill.admin { background: var(--coral-soft); color: var(--coral-dk); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 500 .82rem var(--body); cursor: pointer; color: var(--navy); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy-dk) center/cover no-repeat; overflow: hidden; }
.hero .ghost { position: absolute; right: -2vw; bottom: -6vw; font: 700 clamp(9rem, 26vw, 22rem)/1 var(--display); color: #fff; opacity: .06; letter-spacing: -.02em; pointer-events: none; z-index: 0; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 34, 43, .92) 0%, rgba(20, 34, 43, .78) 45%, rgba(20, 34, 43, .35) 100%); }
.hero .wrap { position: relative; padding-top: 70px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 b { color: var(--coral); font-weight: inherit; }
.hero p.lead { font-size: 1.08rem; max-width: 38em; color: #e3eeee; }
.hero .stats { margin-top: 30px; }
.hero .stat { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.hero .stat-v { color: #fff; }
.hero .stat-l { color: #bfd6d4; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-v { font: 600 1.75rem/1.1 var(--display); color: var(--navy); }
.stat-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-top: 4px; }
.stat-n { font-size: .8rem; color: var(--slate); margin-top: 6px; }

/* sections */
.section { padding: 56px 0; }
.section.tint { background: var(--teal-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { max-width: 44em; margin: 0; color: var(--slate); }
.subnav { position: sticky; top: 64px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 13px 14px; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--slate); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.on { color: var(--navy); border-bottom-color: var(--coral); }

/* deal cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card-img { aspect-ratio: 16/9; background: var(--teal-soft) center/cover no-repeat; position: relative; }
.card-img .pill { position: absolute; left: 12px; top: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.35rem; text-transform: uppercase; }
.card-body .loc { font-size: .85rem; color: var(--slate); margin: 0; }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-stats div b { display: block; font: 600 1.1rem/1.2 var(--display); }
.card-stats div span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--teal-dk); font-weight: 600; padding-top: 6px; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--slate); background: #fff; }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); background: var(--teal-wash); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #edf2f2; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.neg { color: var(--bad); }
.tbl.has-total tbody tr:last-child td { font-weight: 700; border-top: 2px solid var(--navy); background: var(--teal-wash); }
.tbl-fig { margin: 1.2em 0 1.6em; }
.tbl-fig figcaption, .chart figcaption { font: 600 .82rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 8px; }

/* charts */
.chart { margin: 1.2em 0 1.6em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: #e8eeee; }
.chart .ax { font: 11px var(--body); fill: var(--slate); }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--slate); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.bars-v { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 10px 0 0; }
.bars-v .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars-v .col span.b { width: 100%; max-width: 46px; background: var(--teal); border-radius: 5px 5px 0 0; min-height: 3px; }
.bars-v .col.hl span.b { background: var(--coral); }
.bars-v .col small { font-size: .7rem; }
.bars-v .col b { font: 600 .78rem var(--display); }

/* KPI tiles inside documents */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 1em 0 1.4em; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--teal-wash); }
.kpi-v { font: 600 1.4rem/1.1 var(--display); }
.kpi-l { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-top: 3px; }
.kpi-d { font-size: .78rem; color: var(--good); margin-top: 4px; }
.kpi-d.neg { color: var(--bad); }
.callout { border-radius: var(--radius-sm); padding: 14px 16px; margin: 1em 0; border: 1px solid var(--line); background: var(--teal-wash); }
.callout.watch { background: #fff8ea; border-color: #f3dfb4; }
.callout.good { background: #edf8f1; border-color: #cbe8d6; }
.callout p:last-child { margin: 0; }
blockquote { margin: 1.2em 0; padding: 0 0 0 1.6em; color: var(--navy-2); font-style: italic; position: relative; }
blockquote::before { content: 'C'; position: absolute; left: 0; top: -.2em; font: 600 2.2rem/1 var(--display); color: var(--coral); }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin: 1em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure.img { margin: 1.2em 0; }
figure.img img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
figure figcaption { font-size: .82rem; color: var(--slate); margin-top: 6px; }
details.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin: 8px 0; }
details.qa summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
details.qa summary::after { content: '+'; position: absolute; right: 16px; top: 10px; font: 600 1.3rem var(--display); color: var(--coral); }
details.qa[open] summary::after { content: '–'; }
details.qa > div { padding: 0 16px 6px; }

/* booklet */
.ribbon { background: var(--coral-soft); border-bottom: 1px solid #f6d5ce; color: #8a3b2e; font-size: .88rem; }
.ribbon .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.ribbon b { white-space: nowrap; }
.ribbon.live { background: #e8f6ef; border-color: #c7e7d5; color: #1e6b45; }
.deal-hero { background: var(--navy-dk); color: #fff; }
.deal-hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.deal-hero h1 { color: #fff; margin-bottom: .25em; }
.deal-hero p { color: #d6e5e4; }
.deal-hero .cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .15); }
.deal-hero .stats { margin-top: 18px; }
.deal-hero .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); box-shadow: none; padding: 12px 14px; }
.deal-hero .stat-v { color: #fff; font-size: 1.35rem; }
.deal-hero .stat-l { color: #a9c6c4; }
.book { margin: 28px auto 60px; }
.book-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.book-progress { flex: 1; height: 6px; background: var(--teal-soft); border-radius: 99px; overflow: hidden; }
.book-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--coral)); transition: transform .4s; }
.book-toc-toggle { display: none; }
.book-body { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.book-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.toc-head { padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.toc-head b { display: block; font: 600 1.05rem/1.25 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.toc-head .kicker { margin-bottom: 8px; font-size: .66rem; }
.toc-group { font: 600 .68rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); padding: 12px 8px 4px; }
.toc-link { display: flex; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.toc-link small { display: block; color: var(--slate); font-size: .74rem; }
.toc-link:hover { background: var(--teal-wash); color: var(--navy); }
.toc-link.on { background: var(--teal); color: #fff; }
.toc-link.on small, .toc-link.on .toc-n { color: #dff3f1; }
.toc-n { font: 600 .8rem var(--display); color: var(--coral-dk); min-width: 1.6em; padding-top: 1px; }
.toc-link.seen:not(.on) .toc-n::after { content: ' ✓'; color: var(--teal); }
.book-pane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 34px 24px; box-shadow: var(--shadow); min-width: 0; }
.book-note { margin: -6px 0 18px; }
.book-note p { font-size: .82rem; color: var(--slate); background: var(--teal-wash); border-radius: 8px; padding: 8px 12px; margin: 0; }
.prose { max-width: 50rem; }
.prose h2 { margin-top: 1.4em; }
.prose h2.ch-title { margin-top: 0; font-size: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.deck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.deck-head h2 { margin: 0; }
.slide-count { font: 600 .9rem var(--display); color: var(--slate); padding: 0 6px; }
.stage { position: relative; display: flex; align-items: center; gap: 8px; background: var(--navy); border-radius: var(--radius-sm); padding: 12px; }
.stage:fullscreen { padding: 2vh 2vw; border-radius: 0; }
.slide-frame { flex: 1; cursor: pointer; display: grid; place-items: center; min-height: 200px; }
.slide { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.stage:fullscreen .slide { max-height: 94vh; }
.stage .nav { position: static; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; height: 42px; }
.stage .nav:hover { background: var(--coral); }
.slide-title { font-size: .85rem; color: var(--slate); margin: 8px 2px 10px; min-height: 1.3em; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.thumb { flex: 0 0 116px; border: 2px solid transparent; border-radius: 7px; padding: 0; background: #fff; cursor: pointer; position: relative; scroll-snap-align: center; }
.thumb img { border-radius: 5px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.thumb span { position: absolute; right: 4px; bottom: 4px; background: rgba(34, 51, 62, .8); color: #fff; font-size: .66rem; padding: 1px 5px; border-radius: 4px; }
.thumb.on { border-color: var(--coral); }
.ch-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.ch-nav a { text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; font-size: .92rem; }
.ch-nav a small { display: block; font-weight: 500; color: var(--slate); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.ch-nav a:hover { border-color: var(--teal); background: var(--teal-wash); }
.ch-next { text-align: right; }

/* forms + auth: a sibling of the /GPs sign-in (dark field, centered white card) */
.gate { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 80% -10%, rgba(63, 168, 164, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-dk) 70%); color: #fff; }
.gate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); font: 500 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.gate-top a { color: #cfe3e2; text-decoration: none; }
.gate-top a:hover { color: #fff; }
.gate-top .lbl { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; color: #fff; }
.gate-main { flex: 1; display: grid; place-items: center; padding: 20px 16px 50px; }
.gate-card { width: 100%; max-width: 440px; background: #fff; color: var(--navy); border-radius: 22px; padding: 32px 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.gate-card.wide { max-width: 560px; }
.gate-card .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.gate-card .card-top img { height: 38px; width: auto; }
.gate-card .card-top .lbl { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font: 600 .66rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.gate-card h1 { font-size: 2.1rem; text-transform: none; margin-bottom: .3em; }
.gate-card h1 b { color: var(--teal); font-weight: inherit; }
.gate-card .lede { color: var(--slate); font-size: .95rem; }
.gate-card input { background: #f5f2ec; border-color: #e3ddd2; border-radius: 11px; }
.gate-card .btn.primary { width: 100%; padding: 15px; font-size: 1rem; }
.gate-foot { text-align: center; font-size: .74rem; color: #9fb5b6; padding: 0 16px 24px; letter-spacing: .04em; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 500; }
.field > span { color: var(--navy-2); }
input, select, textarea { font: 400 .95rem var(--body); color: var(--navy); border: 1px solid #cfdcdc; border-radius: 10px; padding: 11px 13px; background: #fff; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(63, 168, 164, .25); border-color: var(--teal); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--teal); }
.checks { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 400; }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; font-weight: 400; }
.radios { display: flex; flex-direction: column; gap: 6px; font-weight: 400; font-size: .88rem; }
.radios label { display: flex; gap: 8px; align-items: center; }
fieldset.box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
fieldset.box legend { font: 600 .74rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); padding: 0 6px; }
.msg { border-radius: 10px; padding: 11px 14px; font-size: .9rem; }
.msg.bad { background: #fdecea; color: #8e2a1f; border: 1px solid #f6cfc9; }
.msg.ok { background: #e8f6ef; color: #1e6b45; border: 1px solid #c7e7d5; }
.fine { font-size: .76rem; color: var(--slate); line-height: 1.55; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hp { position: absolute; left: -9999px; }

/* footer */
.foot { background: var(--navy-dk); color: #a9bfc0; font-size: .8rem; padding: 34px 0 40px; margin-top: 40px; }
.foot a { color: #fff; }
.foot .wrap { display: grid; gap: 14px; }
.foot .legal { line-height: 1.6; max-width: 70em; }
.foot .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* admin */
.admin-head { background: var(--navy-dk); color: #fff; }
.admin-head .wrap { padding-top: 26px; padding-bottom: 0; }
.admin-head h1 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: #b9cfd0; font: 500 .9rem var(--body); padding: 12px 16px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: #fff; border-bottom-color: var(--coral); }
#admin-main { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 300px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: .85rem; }
.hbar-track { background: var(--teal-soft); border-radius: 99px; height: 10px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.hbar-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }
.daychart { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); }
.daycol { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.daybar { width: 100%; background: var(--teal); border-radius: 3px 3px 0 0; }
.daycol:hover .daybar { background: var(--coral); }
.tbl.people td:first-child { min-width: 200px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }
.events li { font-size: .84rem; border-bottom: 1px solid #f0f4f4; }
details.visit { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin: 6px 0; background: #fff; font-size: .86rem; }
details.visit summary { cursor: pointer; }
details.visit ol { margin: 8px 0 4px; padding-left: 1.4em; }
.modal { position: fixed; inset: 0; background: rgba(20, 34, 43, .55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow: auto; }
.modal-card { background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 980px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.modal-head h3 { margin: 0; }
.modal-card > :not(.modal-head) { padding: 18px 22px 22px; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--slate); }
.who { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.drawer-grid { align-items: start; }
.activity { max-height: 70vh; overflow: auto; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.rowsec { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rowsec textarea { grid-column: 1; }
.sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sitecard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); }
.sitecard b { font: 600 1.1rem var(--display); text-transform: uppercase; }
.sitecard span { font-size: .88rem; color: var(--slate); }
.sitecard small { color: var(--teal-dk); word-break: break-all; }
.sitecard:hover { border-color: var(--teal); }
.err { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 200; transition: .25s; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* responsive */
@media (max-width: 920px) {
  .book-body { grid-template-columns: 1fr; }
  .book-toggle-wrap { display: block; }
  .book-toc-toggle { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 .85rem var(--body); color: var(--navy); }
  .book-toc { display: none; position: static; max-height: none; }
  .toc-open .book-toc { display: block; }
  .deal-hero .wrap { grid-template-columns: 1fr; }
  .gate-card { padding: 26px 22px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.open .nav-links { display: flex; }
  .burger { display: block; }
  .nav .wrap { gap: 10px; }
  .wrap { padding: 0 16px; }
  .book-pane { padding: 18px 16px; }
  .stage { padding: 6px; }
  .stage .nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hbar { grid-template-columns: 110px 1fr 60px; }
  .strip .wrap span:first-child { display: none; }
  .row3 { grid-template-columns: 1fr; }
}
@media print {
  .nav, .strip, .subnav, .book-toc, .book-top, .ch-nav, .foot, .ribbon .btn { display: none !important; }
  .book-body { display: block; }
  .book-pane { border: 0; box-shadow: none; padding: 0; }
}

/* story components (deal pages, hub) */
.narrow { max-width: 760px; }
.lead { font-size: 1.12rem; color: #e3eeee; font-weight: 500; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pillar .num, .step .num { display: block; font: 600 .9rem var(--display); color: var(--coral-dk); letter-spacing: .1em; margin-bottom: 10px; }
.pillar h3, .step h3 { text-transform: uppercase; font-size: 1.1rem; }
.pillar p, .step p { color: var(--slate); margin: 0; font-size: .93rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 22px; }
.step { padding: 22px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.timeline { list-style: none; margin: 0 0 14px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 2px; background: var(--teal-soft); }
.timeline li { display: grid; grid-template-columns: 104px 1fr; gap: 30px; padding: 9px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 113px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li:last-child::before { background: var(--coral); border-color: var(--coral); }
.timeline b { font: 600 .9rem var(--display); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.timeline span { color: var(--navy-2); }
.since { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.since p { margin: 0; max-width: 46em; }
.cta-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--navy-dk); color: #d6e5e4; border-radius: var(--radius); padding: 28px 30px; }
.cta-band h3 { color: #fff; font-size: 1.4rem; text-transform: uppercase; }
.cta-band p { margin: 0; }
.split4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.tile b { font: 600 1.9rem/1.1 var(--display); }
.tile small { color: var(--slate); }
.tile.dark { background: var(--navy-dk); color: #fff; border-color: var(--navy-dk); border-top-color: var(--coral); }
.tile.dark span, .tile.dark small { color: #a9c6c4; }
.tr-grid { margin-bottom: 18px; }
.tbl tr.total td { border-top: 2px solid var(--navy); background: var(--teal-wash); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card-img.typo { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; }
.card-img.typo b { font: 700 2.4rem/1 var(--display); text-transform: uppercase; }
.card-img.typo small { color: #a9c6c4; }
.deal-hero .cover-type { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal-dk), var(--navy) 70%); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; }
.cover-type span { font: 700 5rem/1 var(--display); }
.cover-type small { color: #d6ecea; font-size: .9rem; }
.cover-type b { font: 600 1rem var(--display); text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; color: var(--coral); }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: .92rem; }
.dl dt { color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.dl dd { margin: 0; }
.opp-grid { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.opp-side .sticky { position: sticky; top: 84px; }
.ribbon .wrap span { flex: 1; }
@media (max-width: 920px) {
  .split4 { grid-template-columns: 1fr 1fr; }
  .opp-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .split4 { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .timeline li::before { left: 2px; }
  .dl { grid-template-columns: 1fr; }
}
.deal-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* way home, view-as */
.strip a.back { font-weight: 600; }
.strip a.back:hover { color: var(--navy-dk); }
.nav-links a.home-link { color: var(--slate); font-size: .85rem; }
.viewas { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-h { font: 600 .68rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: 6px; }
.menu-l { display: block; font-size: .8rem; font-weight: 500; margin-bottom: 4px; }
.viewas select { font-size: .82rem; padding: 7px 9px; }
.user-menu .menu { min-width: 280px; }
.viewas-bar { background: #fdf2dc; border-bottom: 1px solid #f3dfb4; color: #6b4708; font-size: .88rem; }
.viewas-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .strip .wrap span:nth-child(2) { display: none; } }
.nav-links a { white-space: nowrap; padding: 8px 10px; }
.brand span { white-space: nowrap; }
@media (max-width: 1180px) { .nav-links a.home-link { display: none; } }
@media (max-width: 760px) { .nav-links a.home-link { display: block; } }

/* booklet: document mode (portrait PDF pages) */
.book.doc .stage { background: #e9ecee; padding: 18px; }
.book.doc .slide { max-height: none; max-width: 880px; margin: 0 auto; box-shadow: 0 4px 22px rgba(0, 0, 0, .18); border-radius: 2px; }
.book.doc .stage .nav { background: rgba(34, 51, 62, .55); }
.book.doc .thumb { flex-basis: 92px; }
.book.doc .thumb img { aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; }
.deck-head .jump { width: auto; font-size: .82rem; padding: 7px 10px; max-width: 260px; }
