/* Sample Exit File — counsel-ready evidence file demo page */

/* ── Top Banner ── */
.sef-banner {
  background: var(--gold);
  color: var(--navy);
  padding: 12px 48px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.sef-banner a { color: var(--navy); text-decoration: underline; }

/* ── Page Container ── */
.sef-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

/* ── Cover Summary ── */
.sef-cover {
  background: var(--navy);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 40px;
  color: var(--white);
  position: relative;
}

.sef-cover-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.sef-cover-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.sef-cover-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.sef-cover-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.sef-cover-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sef-meta-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.sef-meta-label {
  color: rgba(255,255,255,0.45);
  min-width: 120px;
}

.sef-meta-value {
  color: var(--white);
  font-weight: 500;
}

/* Confidence Score Widget */
.sef-score-block {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
  min-width: 160px;
}

.sef-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.sef-score-den {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.sef-score-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sef-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,122,79,0.25);
  border: 1px solid rgba(45,122,79,0.4);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5DC98A;
  margin-top: 20px;
}

.sef-cover-badge svg { flex-shrink: 0; }

/* ── Section Containers ── */
.sef-section {
  margin-bottom: 40px;
}

.sef-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.sef-section-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--gold-dim);
}

.sef-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.sef-section-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

/* ── Residency Factor Scorecard ── */
.sef-scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(13,27,42,0.1);
}

.sef-scorecard th {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}

.sef-scorecard td {
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink);
}

.sef-scorecard tr:last-child td { border-bottom: none; }
.sef-scorecard tr:nth-child(even) td { background: var(--cream); }

.sef-scorecard td:first-child { font-weight: 600; color: var(--navy); }

.sef-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sef-badge-high { background: var(--green-bg); color: var(--green); }
.sef-badge-med { background: var(--amber-bg); color: var(--amber); }
.sef-badge-low { background: rgba(13,27,42,0.07); color: var(--muted); }

.sef-badge-strong { background: var(--green-bg); color: var(--green); }
.sef-badge-watch { background: var(--amber-bg); color: var(--amber); }
.sef-badge-weak { background: var(--red-bg); color: var(--red); }

.sef-why {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}

/* ── Evidence Index ── */
.sef-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.sef-evidence-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(13,27,42,0.07);
  font-size: 14px;
}

.sef-evidence-item:last-child { border-bottom: none; }
.sef-evidence-item:nth-child(even) { background: var(--cream); }

.sef-ev-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dim);
  text-align: right;
}

.sef-ev-name {
  color: var(--ink);
  font-weight: 500;
}

.sef-ev-stub {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  white-space: nowrap;
}

.sef-ev-category {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Timeline ── */
.sef-timeline {
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.sef-tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid rgba(13,27,42,0.07);
}

.sef-tl-item:last-child { border-bottom: none; }

.sef-tl-month {
  padding: 20px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  border-right: 1px solid rgba(13,27,42,0.07);
}

.sef-tl-content {
  padding: 20px 24px;
  background: var(--white);
}

.sef-tl-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}

.sef-tl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.sef-tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sef-tl-tag {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(212,168,67,0.12);
  color: var(--gold-dim);
  font-weight: 600;
}

.sef-tl-exhibit {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(13,27,42,0.07);
  color: var(--muted);
  font-family: monospace;
}

/* ── Risk Map ── */
.sef-risk-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sef-risk-item {
  border-radius: 10px;
  border: 1px solid transparent;
  overflow: hidden;
}

.sef-risk-item-high {
  border-color: rgba(139,46,46,0.2);
  background: var(--red-bg);
}

.sef-risk-item-med {
  border-color: rgba(154,107,0,0.2);
  background: var(--amber-bg);
}

.sef-risk-item-low {
  border-color: rgba(13,27,42,0.1);
  background: var(--cream);
}

.sef-risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 10px;
}

.sef-risk-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.sef-risk-body {
  padding: 0 18px 14px;
}

.sef-risk-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.sef-risk-mitigation {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sef-risk-mitigation::before {
  content: '→';
  color: var(--green);
}

/* ── Narrative ── */
.sef-narrative {
  background: var(--white);
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 12px;
  padding: 36px 40px;
}

.sef-narrative-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.sef-narrative p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 18px;
}

.sef-narrative p:last-child { margin-bottom: 0; }

.sef-narrative-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(13,27,42,0.08);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* ── Footer CTA ── */
.sef-footer-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 40px 48px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.sef-fcta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.sef-fcta-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.sef-fcta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.sef-fcta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.sef-fcta-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
  white-space: nowrap;
}

.sef-fcta-btn-primary:hover { background: var(--gold-dim); }

.sef-fcta-btn-secondary {
  display: inline-block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}

.sef-fcta-btn-secondary:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sef-banner { padding: 12px 20px; font-size: 13px; }
  .sef-page { padding: 32px 20px 56px; }
  .sef-cover { padding: 28px 24px; }
  .sef-cover-grid { grid-template-columns: 1fr; gap: 28px; }
  .sef-cover-title { font-size: 24px; }
  .sef-score-block { padding: 20px 24px; }
  .sef-score-num { font-size: 44px; }
  .sef-scorecard { font-size: 12px; }
  .sef-scorecard th, .sef-scorecard td { padding: 10px 12px; }
  .sef-evidence-item { grid-template-columns: 28px 1fr; }
  .sef-ev-stub { display: none; }
  .sef-tl-item { grid-template-columns: 1fr; }
  .sef-tl-month { border-right: none; border-bottom: 1px solid rgba(13,27,42,0.07); padding: 12px 18px; }
  .sef-narrative { padding: 24px 20px; }
  .sef-footer-cta { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .sef-fcta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .sef-scorecard thead { display: none; }
  .sef-scorecard td { display: block; border-right: none; }
  .sef-scorecard td:first-child { background: var(--navy); color: var(--white); font-size: 13px; border-radius: 0; }
  .sef-section-title { font-size: 18px; }
}

/* ── Print Styles ── */
@media print {
  .sef-banner { display: none; }
  .nav { display: none; }
  .footer { display: none; }
  .sef-footer-cta { display: none; }

  body { background: white; font-size: 11pt; }
  .sef-page { max-width: 100%; padding: 0; margin: 0; }

  .sef-cover {
    background: white;
    color: black;
    border: 2px solid #0D1B2A;
    border-radius: 4px;
    break-inside: avoid;
  }

  .sef-cover-title { color: #0D1B2A; }
  .sef-cover-subtitle { color: #444; }
  .sef-cover-eyebrow { color: #B8923A; }
  .sef-score-num { color: #B8923A; }
  .sef-score-label { color: #666; }
  .sef-meta-label { color: #888; }
  .sef-meta-value { color: #1A1A1A; }
  .sef-score-block { border: 1px solid #ccc; background: #f5f5f5; }
  .sef-cover-badge { background: #e8f5ee; border-color: #2D7A4F; }

  .sef-scorecard th { background: #0D1B2A; color: white; }
  .sef-scorecard td { background: white; }
  .sef-scorecard tr:nth-child(even) td { background: #f9f6f0; }

  .sef-tl-month { background: #f2efe8; }
  .sef-tl-content { background: white; }
  .sef-narrative { border: 1px solid #ddd; }

  .sef-section { break-inside: avoid; }
  .sef-timeline { break-inside: avoid; }
  .sef-narrative { break-inside: avoid; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .sef-fcta-btn-primary::after, .sef-fcta-btn-secondary::after { content: ""; }
}
