:root { --navy: #003a70; --ink: #152c40; --muted: #526474; --paper: #fffdf8; --line: #d4dce2; --blue: #7e9bc0; }
* { box-sizing: border-box; }
body { margin: 0; background: #eaeef0; color: var(--ink); font-family: 'DM Sans', 'Segoe UI', sans-serif; line-height: 1.6; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { background: var(--navy); color: white; border: 1px solid var(--navy); border-radius: 4px; padding: .65rem 1rem; font-weight: 600; }
button:hover { background: #005195; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: white; color: var(--navy); }
:focus-visible { outline: 3px solid #ae7125; outline-offset: 3px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem max(1.2rem, calc((100vw - 1050px) / 2)); background: white; border-bottom: 1px solid var(--line); gap: 1rem; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: .13em; font-size: 1.1rem; white-space: nowrap; }
.brand span { color: var(--blue); margin-left: .3rem; }
.tools { display: flex; align-items: center; gap: .7rem; font-size: .85rem; }
select { max-width: 150px; padding: .55rem; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 4px; }
.download-panel { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--navy); background: white; }
.download-panel h2 { font-size: 1.5rem; }
.download-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 1rem 0; }
.download-button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem .9rem; background: var(--navy); border: 1px solid var(--navy); border-radius: 4px; color: white; font-size: .8rem; font-weight: 600; text-decoration: none; }
.download-button:hover { background: #005195; }
.download-button.secondary { background: white; color: var(--navy); }
.download-instructions summary { color: var(--navy); cursor: pointer; font-size: .85rem; font-weight: 600; }
.download-instructions ol { padding-inline-start: 1.3rem; }
.download-instructions li { font-size: .8rem; margin: .7rem 0; }
main { max-width: 1050px; margin: auto; padding: 2.5rem 1.2rem; }
.masthead { background: var(--navy); color: white; padding: 3rem 3.5rem; position: relative; border-top: 6px solid var(--blue); }
.eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 .9rem; }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; line-height: 1.04; margin: 0 0 1.5rem; }
h1 em { color: #c5d8ee; }
.intro { max-width: 650px; font-size: 1rem; color: #e3ebf3; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid #6082a2; }
.highlights strong { font-size: 2rem; display: block; font-family: Georgia, serif; font-weight: 400; }
.highlights span { font-size: .8rem; color: #d1e0ef; }
.agreement { padding: 3rem 3.5rem; background: var(--paper); box-shadow: 0 14px 36px #0c2b4012; }
.document-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
h2 { font: 400 2.3rem/1.2 Georgia, serif; margin: 0; }
.document-code { border: 1px solid var(--blue); padding: .5rem .7rem; color: var(--navy); font-size: .8rem; white-space: nowrap; }
section { margin-top: 2rem; }
h3 { font-size: .95rem; color: var(--navy); border-top: 2px solid var(--navy); padding-top: .8rem; margin: 0 0 1rem; }
h4 { font-size: .9rem; margin: 1.2rem 0 .6rem; }
p { font-size: .9rem; }
.small, .translation-note { font-size: .76rem; color: var(--muted); }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--navy); background: #eaf0f6; }
.translation-note { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.phase-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.phase-card { padding: 1rem 1.2rem; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; background: #f3f6f9; }
.phase-card h4 { margin: 0; color: var(--navy); font-size: .95rem; }
.phase-card .phase-meta { margin: .4rem 0 .8rem; color: var(--muted); font-size: .75rem; }
.phase-card ul { margin: 0; padding-inline-start: 1.2rem; font-size: .82rem; }
.phase-card li { margin: .3rem 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.3rem; }
.field-wide { grid-column: 1 / -1; }
label, .field { display: block; font-size: .76rem; }
label > span:first-child, .field > span { display: block; color: var(--muted); margin-bottom: .3rem; }
.field .document-value { display: block; min-height: 40px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.field .document-area { min-height: 72px; }
.week-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1rem; font-size: .72rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .76rem; margin: .7rem 0; }
th { background: #e7edf2; color: var(--navy); font-size: .68rem; font-weight: 700; text-align: start; }
th, td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #f3f5f6; }
.plan-table td { white-space: nowrap; }
.circle { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #91a0ac; border-radius: 50%; color: var(--navy); font-size: .8rem; }
.currency-total { padding: 1rem; background: #eaf0f6; display: flex; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.currency-total output { white-space: nowrap; font-weight: 700; }
.payment-summary { padding: 1rem; border: 1px solid var(--line); margin-top: 1rem; }
.payment-summary h4 { margin: 0 0 .8rem; }
.payment-usd { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-bottom: .75rem; }
.payment-usd output { white-space: nowrap; }
.terms ol { padding-left: 1.2rem; }
.terms li { padding-left: .2rem; margin-bottom: .85rem; font-size: .82rem; }
.acknowledgment { border: 1px solid var(--line); padding: 1rem; font-size: .8rem; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
.signatures div { display: grid; gap: .35rem; font-size: .76rem; }
.signature-line { display: block; border-bottom: 1px solid var(--ink); height: 20px; }
.blank-row { height: 40px; }
.document-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .68rem; }
.document-footer p { font-size: .7rem; }
.review-note { margin: 1.2rem .5rem; font-size: .75rem; color: var(--muted); }
#google_translate_element, .skiptranslate { display: none !important; }
body { top: 0 !important; }
@media (max-width: 680px) {
  .toolbar { flex-direction: column; align-items: start; }
  .tools { width: 100%; flex-wrap: wrap; }
  main { padding: 1rem .6rem; }
  .masthead, .agreement { padding: 1.8rem 1.2rem; }
  .highlights { gap: .7rem; }
  .highlights strong { font-size: 1.6rem; }
  .fields, .phase-services { grid-template-columns: 1fr; }
  h2 { font-size: 1.8rem; }
  .currency-total { font-size: .75rem; }
  .payment-usd { font-size: .75rem; }
}
@page { size: auto; margin: 15mm; }
@media print {
  body { background: white; color: black; font-size: 10pt; }
  .toolbar, .masthead, .no-print, .skiptranslate, #google_translate_element { display: none !important; }
  main { max-width: none; margin: 0; padding: 0; }
  .agreement { background: white; padding: 0; box-shadow: none; }
  h2 { font-size: 22pt; }
  h3 { font-size: 11pt; break-after: avoid; }
  h4 { break-after: avoid; }
  p { font-size: 9pt; break-inside: avoid; }
  .small, .translation-note { font-size: 8pt; color: #333; }
  section { margin-top: 5mm; }
  .fields, .week-grid, .phase-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { gap: 3mm 6mm; }
  .phase-services { gap: 4mm; }
  .phase-card { background: white; border: 1px solid #777; padding: 3mm; break-inside: avoid; }
  .field .document-value { min-height: 7mm; border-bottom-color: #777; }
  .field .document-area { min-height: 14mm; }
  .notice, .currency-total, .acknowledgment { background: white; border: 1px solid #777; padding: 3mm; }
  th, td { padding: 2mm 1.5mm; color: black; }
  table { font-size: 8pt; }
  th { font-size: 7.5pt; background: white; }
  .table-wrap { overflow: visible; }
  thead { display: table-header-group; }
  tr, .plan-section, .terms, .signatures, .document-heading, .payment-section, .payment-summary, .currency-total, .fields .field, .terms li, .records { break-inside: avoid; }
  .circle { border-color: black; color: black; }
  .terms h3 { margin-bottom: 3mm; }
  .terms ol { margin: 0 0 3mm; padding-left: 6mm; }
  .terms li { font-size: 9pt; line-height: 1.25; margin-bottom: .7mm; }
  .terms .acknowledgment { line-height: 1.35; margin: 3mm 0; }
  .terms .signatures { margin-top: 4mm; }
  .terms .signed-copy-receipt { margin: 2mm 0 0; }
  .signatures { margin-top: 12mm; }
  .initial-line { min-width: 18mm; }
  .document-footer { margin-top: 5mm; }
}
