/* 818 Capital — Interactive Document Showcase */

@import url('../forms/shared/colors_and_type.css');

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #0E1A24;
}

.shell__sidebar {
  background: #122636;
  border-right: 1px solid rgba(46, 117, 182, 0.25);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.shell__brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(46, 117, 182, 0.2);
}

.shell__brand img {
  width: auto;
  height: 36px;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.shell__brand-tag {
  font-size: 7.5px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 10px;
}

.shell__deal {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(46, 117, 182, 0.15);
}

.shell__deal-label {
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--color-accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shell__deal-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.shell__deal-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  line-height: 1.45;
}

.shell__deal-photo {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(46, 117, 182, 0.35);
  aspect-ratio: 16 / 9;
}

.shell__deal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shell__nav { padding: 16px 12px; flex: 1; }

.shell__nav-label {
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 12px 10px;
}

.shell__nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  padding: 11px 12px;
  margin-bottom: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.shell__nav-btn:hover { background: rgba(46, 117, 182, 0.12); }
.shell__nav-btn.is-active { background: rgba(46, 117, 182, 0.18); border-left-color: var(--color-gold); }
.shell__nav-btn .title { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.shell__nav-btn .desc { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.45); margin-top: 3px; line-height: 1.35; }

.shell__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(46, 117, 182, 0.15);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.shell__main { display: flex; flex-direction: column; min-width: 0; }

.shell__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #162D42;
  border-bottom: 1px solid rgba(46, 117, 182, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.shell__doc-title { font-size: 13px; font-weight: 600; color: #fff; }
.shell__doc-ref { font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, 0.45); }
.shell__toolbar-right { display: flex; align-items: center; gap: 10px; }
.shell__zoom { display: flex; align-items: center; gap: 8px; }
.shell__zoom label { font-size: 9px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); font-weight: 700; text-transform: uppercase; }
.shell__zoom input[type="range"] { width: 100px; accent-color: var(--color-accent-blue); }
.shell__zoom-val { font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, 0.6); min-width: 36px; }

.shell__btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(46, 117, 182, 0.5);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.shell__btn--primary { background: var(--color-navy); border-color: var(--color-accent-blue); color: #fff; }

.shell__sections {
  display: flex;
  gap: 4px;
  padding: 0 28px 12px;
  background: #162D42;
  overflow-x: auto;
}

.shell__section-btn {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(46, 117, 182, 0.25);
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  white-space: nowrap;
}

.shell__section-btn.is-active,
.shell__section-btn:hover {
  background: rgba(46, 117, 182, 0.25);
  color: #fff;
  border-color: var(--color-accent-blue);
}

.shell__viewport { flex: 1; padding: 32px 28px 48px; overflow: auto; background: #1A3048; }
.shell__stage { transform-origin: top center; transition: transform var(--dur-slow) var(--ease-out); margin: 0 auto; max-width: 8.5in; }

.doc-panel { display: none; animation: docIn var(--dur-slow) var(--ease-out); }
.doc-panel.is-active { display: block; }

@keyframes docIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc-page {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 24px;
  background: var(--bg-page);
  box-shadow: var(--shadow-page);
  padding: 0.55in;
  box-sizing: border-box;
}

.doc-page--letter { padding: 0.75in; }

.photo-band {
  margin-top: 14px;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}

.photo-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-band__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 78, 120, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, transparent 30%, rgba(14, 26, 36, 0.85) 100%);
}

.photo-band__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

.photo-band__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(31, 78, 120, 0.94);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.teaser-lede { margin-top: 18px; display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 28px; }
.teaser-lede h1 { font-size: 26px; margin: 0 0 6px; }
.teaser-lede .sub { font-size: 11px; color: var(--fg-secondary); }
.teaser-lede p { font-size: 11px; line-height: 1.55; margin-top: 12px; }
.teaser-ask { border-top: var(--rule-gold-top); padding-top: 12px; }
.teaser-ask .k { font-size: 8.5px; letter-spacing: var(--ls-eyebrow); color: var(--fg-secondary); font-weight: 700; text-transform: uppercase; }
.teaser-ask .v { font-size: 26px; font-weight: 700; color: var(--color-navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.teaser-ask .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.teaser-ask .v2 { font-size: 13px; font-weight: 700; color: var(--color-navy); margin-top: 2px; }

.term-grid {
  margin-top: 22px;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.term-grid .cell { padding: 12px; border-right: 1px solid var(--border-default); }
.term-grid .cell:last-child { border-right: 0; }
.term-grid .k { font-size: 8px; letter-spacing: var(--ls-eyebrow); color: var(--fg-secondary); font-weight: 700; text-transform: uppercase; }
.term-grid .v { font-size: 14px; font-weight: 700; color: var(--color-navy); margin-top: 4px; font-variant-numeric: tabular-nums; }

.highlight-cols { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-cols .col { padding-top: 8px; border-top: 1px solid var(--color-accent-blue); }
.highlight-cols .col.gold { border-top-color: var(--color-gold); }
.highlight-cols h3 { font-size: 11px; margin: 0 0 6px; }
.highlight-cols p { font-size: 10.5px; line-height: 1.5; margin: 0; }

.doc-foot {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  font-size: 9px;
  line-height: 1.5;
}

.doc-foot .lbl { font-size: 7.5px; letter-spacing: var(--ls-eyebrow); color: var(--color-accent-blue); font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.doc-foot .fineprint { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-default); font-size: 7.5px; color: var(--fg-secondary); line-height: 1.55; }

.navy-hero {
  background: var(--color-navy);
  color: #fff;
  margin: -0.75in -0.75in 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: stretch;
  padding: 28px 32px 30px;
}

.navy-hero--split {
  grid-template-columns: 1.05fr 0.95fr;
  padding: 0;
  min-height: 210px;
}

.navy-hero__copy {
  padding: 28px 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navy-hero__photo {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.navy-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navy-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-navy) 0%, transparent 32%);
}

.navy-hero__brand img { height: 52px; width: auto; object-fit: contain; }
.navy-hero h1 { font-size: 30px; color: #fff; margin: 12px 0 0; letter-spacing: var(--ls-display); }
.navy-hero .subt { font-size: 12px; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }
.navy-hero__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.navy-hero__doctype { font-size: 9px; letter-spacing: 0.28em; font-weight: 700; color: #E0C683; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(224, 198, 131, 0.4); }
.navy-hero__ref { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.7); font-weight: 600; line-height: 1.7; text-transform: uppercase; }

.hero-tag {
  margin: 0 -0.75in;
  padding: 9px 0.75in;
  background: #F4EFE3;
  border-bottom: 1px solid #E0C683;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #6E5320;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.hero-tag .sep { color: #C4A65E; margin: 0 10px; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule-gold-top);
  border-bottom: 1px solid var(--border-default);
  margin: 0 -0.75in;
}

.kpi-strip .cell { padding: 14px 20px; border-right: 1px solid var(--border-default); }
.kpi-strip .cell:last-child { border-right: 0; }
.kpi-strip .k { font-size: 8px; letter-spacing: var(--ls-eyebrow); color: var(--color-accent-blue); font-weight: 700; text-transform: uppercase; }
.kpi-strip .v { font-size: 21px; color: var(--color-navy); font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-strip .n { font-size: 9px; color: var(--fg-secondary); margin-top: 3px; }

.sect-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; margin-bottom: 8px; border-top: 2px solid var(--color-navy); padding-top: 8px; }
.sect-bar .left { font-size: 13px; color: var(--color-navy); font-weight: 700; }
.sect-bar .no { color: var(--color-gold); font-size: 10px; letter-spacing: var(--ls-eyebrow); display: block; text-transform: uppercase; }
.sect-bar .right { font-size: 8.5px; letter-spacing: 0.18em; color: var(--fg-secondary); font-weight: 700; text-transform: uppercase; }
.intro { font-size: 10.5px; line-height: 1.6; text-align: justify; margin: 6px 0 12px; }

.terms-table { width: 100%; border-collapse: collapse; font-size: 10px; margin-top: 8px; }
.terms-table th { background: var(--color-navy); color: #fff; font-size: 9px; padding: 8px 10px; letter-spacing: 0.1em; text-align: left; font-weight: 700; text-transform: uppercase; }
.terms-table td { padding: 8px 10px; border: 1px solid var(--border-default); vertical-align: top; }
.terms-table tr:nth-child(even) td { background: var(--bg-stripe); }
.terms-table tr.highlight td { background: var(--bg-callout-gold); font-weight: 600; }

.callout { margin-top: 14px; background: var(--bg-callout); border-left: 3px solid var(--color-accent-blue); padding: 12px 14px; font-size: 10px; line-height: 1.55; }
.callout .tt { font-size: 8.5px; letter-spacing: var(--ls-eyebrow); color: var(--color-navy); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 4px; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--border-default); margin-top: 10px; }
.compare-grid .col { border-right: 1px solid var(--border-default); transition: background var(--dur-base) var(--ease-out); }
.compare-grid .col:last-child { border-right: 0; }
.compare-grid .col.is-highlighted { background: var(--bg-callout-gold); }
.compare-head { background: var(--color-navy); color: #fff; padding: 12px 14px; }
.compare-head .label { font-size: 8px; letter-spacing: var(--ls-eyebrow); color: #E0C683; font-weight: 700; text-transform: uppercase; }
.compare-head .name { font-size: 14px; font-weight: 700; margin-top: 4px; }
.compare-head .type { font-size: 9px; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }
.compare-grid .col.recommended .compare-head { background: var(--color-gold); }
.compare-grid .col.recommended .compare-head .label { color: #fff; }
.compare-field { padding: 8px 12px; font-size: 10px; border-top: 1px solid var(--border-default); }
.compare-field .k { font-size: 7.5px; letter-spacing: 0.18em; color: var(--fg-secondary); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.compare-field .v b { color: var(--color-navy); font-weight: 700; }
.compare-field .v .em { color: var(--color-gold); font-weight: 700; }
.compare-grid .col .compare-field:nth-child(odd) { background: var(--bg-callout); }
.compare-grid .col.recommended .compare-field:nth-child(odd) { background: var(--bg-callout-gold); }

.gnote { margin-top: 14px; background: var(--bg-callout-gold); border-left: 3px solid var(--color-gold); padding: 12px 14px; font-size: 10px; line-height: 1.55; }
.gnote .tt { font-size: 8.5px; letter-spacing: var(--ls-eyebrow); color: var(--color-gold); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 4px; }

.expandable { cursor: pointer; }
.expandable .expand-hint { font-size: 9px; color: var(--color-accent-blue); font-weight: 600; margin-top: 6px; }
.expandable .expand-body { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.expandable.is-expanded .expand-body { max-height: 200px; margin-top: 8px; }
.expandable.is-expanded .expand-hint { display: none; }

body.focus-mode .shell__sidebar,
body.focus-mode .shell__toolbar,
body.focus-mode .shell__sections { display: none; }
body.focus-mode .shell { grid-template-columns: 1fr; }
body.focus-mode .shell__viewport { padding: 24px; background: #2C2C2C; }

@media print {
  @page { size: Letter; margin: 0; }
  html, body, .doc-page {
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
  }
  .doc-ref, .navy-hero__ref, .shell__doc-ref {
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums;
  }
  body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .shell, .shell__sidebar, .shell__toolbar, .shell__sections, .noprint { display: none !important; }
  .shell__viewport, .shell__stage { padding: 0 !important; margin: 0 !important; background: white !important; transform: none !important; max-width: none !important; }
  .doc-panel { display: none !important; }
  .doc-panel.is-active { display: block !important; animation: none !important; }
  .doc-page { box-shadow: none !important; margin: 0 !important; width: 100% !important; min-height: 0 !important; page-break-after: always; }
  .doc-page:last-child { page-break-after: auto; }
  .expandable .expand-body { max-height: none !important; overflow: visible !important; }
  .expand-hint { display: none !important; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .shell__sidebar { position: relative; height: auto; }
  .teaser-lede, .highlight-cols, .compare-grid, .term-grid, .kpi-strip { grid-template-columns: 1fr 1fr; }
  .navy-hero--split { grid-template-columns: 1fr; }
  .doc-page { width: 100%; padding: 0.5in; }
}
