/* ════════════════════════════════════════════════════════════════════════════
   Aurora design system — web port of creative-partner-docx.
   Tokens, components, tabs, print stylesheet.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --cream:        #FAF9F6;
  --cream2:       #F5F1E8;
  --white:        #FFFFFF;
  --navy:         #031631;
  --navy-light:   #6B7280;
  --amber:        #FEA619;
  --amber-dark:   #C97F0F;
  --amber-pale:   #FDF6E3;
  --amber-border: #E8C273;
  --amber-ink:    #6B4513;
  --slate:        #5C5A55;
  --ink:          #292724;
  --taupe:        #73715E;
  --rule:         #5C5A55;
  --error:        #C04848;
  --error-bg:     #FDEBEB;
  --error-border: #E5A8A8;

  --font-head: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* DOC HEADER                                                                 */
/* ────────────────────────────────────────────────────────────────────────── */

.doc-header {
  background: var(--cream);
  padding: 56px 7vw 32px;
  border-bottom: 2px solid var(--rule);
}

.doc-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.doc-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--slate);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.doc-subtitle .sep { margin: 0 12px; color: var(--amber); }

/* ────────────────────────────────────────────────────────────────────────── */
/* TAB NAV                                                                    */
/* ────────────────────────────────────────────────────────────────────────── */

.tab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--rule);
  padding: 0 7vw;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-link {
  display: inline-block;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 120ms, border-color 120ms;
  white-space: nowrap;
}
.tab-link:hover { color: var(--navy); }
.tab-link.active {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

/* ────────────────────────────────────────────────────────────────────────── */
/* DOC BODY                                                                   */
/* ────────────────────────────────────────────────────────────────────────── */

.doc-body {
  padding: 40px 7vw 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.doc-section {
  display: none;
  animation: fadeIn 180ms ease-out;
}
.doc-section.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Review callout (amber-pale top of doc)                         */
/* ────────────────────────────────────────────────────────────────────────── */

.review-callout {
  background: var(--amber-pale);
  border: 3px solid var(--amber-border);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 0 0 32px;
}
.review-callout .review-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--amber-ink);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.review-callout .review-title::before { content: '▶  '; }
.review-callout .review-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--amber-dark);
  line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Section marker (01 / LABEL / status)                           */
/* ────────────────────────────────────────────────────────────────────────── */

.section-marker {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  margin: 32px 0 24px;
}
.section-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: 4px;
}
.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.section-status {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: right;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Section headline (big H1) + sub-headline (H2)                  */
/* ────────────────────────────────────────────────────────────────────────── */

.section-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 24px 0 16px;
}
.section-headline.bigger {
  font-size: clamp(28px, 3.6vw, 42px);
}

.sub-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--amber-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0 6px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — body paragraph + bullet                                        */
/* ────────────────────────────────────────────────────────────────────────── */

.body-para {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 14px;
}
.body-para strong { color: var(--navy); font-weight: 700; }
.body-para em { font-style: italic; }
.body-para .accent { color: var(--navy); font-weight: 700; }
.body-para .accent-red { color: var(--error); font-weight: 700; }

.bullet-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}
.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--amber);
  font-weight: 700;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Fact row (key/value grid)                                      */
/* ────────────────────────────────────────────────────────────────────────── */

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 2px solid var(--rule);
  background: var(--cream2);
  margin: 16px 0 24px;
}
.fact-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fact-cell:last-child { border-right: none; }
.fact-cell .fact-key {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fact-cell .fact-val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Table (Aurora-style; nav-row + striped data rows)              */
/* ────────────────────────────────────────────────────────────────────────── */

.aurora-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 2px solid var(--rule);
}
.aurora-table th {
  background: var(--navy);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 12px 14px;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.aurora-table th:last-child { border-right: none; }
.aurora-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.5;
}
.aurora-table td:last-child { border-right: none; }
.aurora-table tr:nth-child(even) td { background: var(--cream2); }
.aurora-table tr:nth-child(odd) td { background: var(--white); }

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Action callout (red, warn)                                     */
/* ────────────────────────────────────────────────────────────────────────── */

.action-callout {
  background: var(--error-bg);
  border: 3px solid var(--error-border);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 18px 0 24px;
}
.action-callout .callout-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--error);
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.action-callout .callout-title::before { content: '⚠  '; }
.action-callout .callout-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: #7A1F1F;
  line-height: 1.55;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Decision request (amber-pale, A/B options)                     */
/* ────────────────────────────────────────────────────────────────────────── */

.decision-request {
  background: var(--amber-pale);
  border: 3px solid var(--amber-border);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 18px 0 24px;
}
.decision-request .decision-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--amber-ink);
  margin: 0 0 14px;
}
.decision-request .decision-title::before { content: '◆  '; }
.decision-request .decision-options { padding-left: 20px; }
.decision-request .decision-option {
  font-family: var(--font-body);
  font-size: 15px;
  margin: 6px 0;
  line-height: 1.5;
}
.decision-request .option-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--amber-dark);
  margin-right: 8px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Signature block (sign-off card)                                */
/* ────────────────────────────────────────────────────────────────────────── */

.signature-block {
  background: var(--cream2);
  border: 2px solid var(--rule);
  border-radius: 4px;
  padding: 30px 34px;
  margin: 24px 0;
}
.signature-block .sig-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.signature-block .sig-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.signature-block .sig-fields { margin: 0; }
.signature-block .sig-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
}
.signature-block .sig-field-key {
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  min-width: 200px;
}
.signature-block .sig-field-val {
  color: var(--ink);
  font-size: 16px;
  border-bottom: 1px dashed var(--rule);
  flex: 1;
  min-width: 180px;
  padding-bottom: 2px;
}
.signature-block .sig-field-val:empty::before {
  content: '\00a0';
}

/* ────────────────────────────────────────────────────────────────────────── */
/* COMPONENT — Contact footer (navy block)                                    */
/* ────────────────────────────────────────────────────────────────────────── */

.contact-footer {
  background: var(--navy);
  color: var(--white);
  padding: 36px 7vw;
  margin: 40px 0 0;
}
.contact-footer .footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.contact-footer .footer-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.contact-footer .footer-field {
  font-family: var(--font-body);
}
.contact-footer .footer-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.contact-footer .footer-val { font-size: 16px; color: var(--white); }

/* ────────────────────────────────────────────────────────────────────────── */
/* REPLY CTA — sticky bottom button                                           */
/* ────────────────────────────────────────────────────────────────────────── */

.reply-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
}
.reply-cta a {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(3,22,49,0.2);
  transition: transform 120ms, box-shadow 120ms;
}
.reply-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(3,22,49,0.3);
}

/* ────────────────────────────────────────────────────────────────────────── */
/* PRINT STYLESHEET                                                           */
/* ────────────────────────────────────────────────────────────────────────── */

@media print {
  html, body { background: white; color: black; }
  .tab-nav { display: none; }
  .reply-cta { display: none; }
  .doc-header { padding: 24px 0; }
  .doc-body { padding: 0; max-width: 100%; }
  .doc-section { display: block !important; page-break-inside: auto; }
  .section-marker { page-break-before: auto; page-break-after: avoid; }
  .section-headline, .sub-headline { page-break-after: avoid; }
  .aurora-table { page-break-inside: auto; }
  .aurora-table tr { page-break-inside: avoid; page-break-after: auto; }
  .action-callout, .decision-request, .signature-block { page-break-inside: avoid; }
  .review-callout { page-break-after: avoid; }
  a, a:visited { color: var(--navy); text-decoration: underline; }
}

/* ────────────────────────────────────────────────────────────────────────── */
/* MOBILE                                                                     */
/* ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .doc-header { padding: 32px 5vw 24px; }
  .tab-nav { padding: 0 5vw; }
  .doc-body { padding: 24px 5vw 60px; }
  .contact-footer { padding: 28px 5vw; }
  .section-marker {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }
  .section-status {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 62px;
    margin-top: -8px;
  }
  .reply-cta { bottom: 12px; right: 12px; }
  .reply-cta a { padding: 12px 18px; font-size: 13px; }
}
