:root {
  color-scheme: light;
  --paper: #fffefa;
  --ink: #1e302b;
  --muted: #52655f;
  --teal: #075b4a;
  --teal-hover: #004a3d;
  --line: #d4ddd5;
  --tint: #edf4ee;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font: 100%/1.55 var(--sans);
  scroll-padding-top: 1rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f5ef; color: var(--ink); }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .53; }
:focus-visible { outline: 3px solid #168378; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; color: var(--teal); padding: .7rem 1rem; z-index: 10; }
.skip-link:focus { top: .5rem; }
.masthead { background: #123d33; color: #fff; }
.masthead-inner, main { width: min(100% - 4rem, 75rem); margin-inline: auto; }
.masthead-inner { min-height: 3.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-size: 1rem; font-weight: 650; letter-spacing: -.02em; }
.mark { position: relative; width: 1.85rem; height: 1.85rem; border: 1px solid #a8cead; border-radius: .28rem; display: grid; align-content: center; justify-items: start; padding-inline: .35rem; gap: .18rem; }
.mark i { display: block; width: .95rem; height: 2px; background: #e0e9cc; }
.mark i:last-child { width: .55rem; }
.masthead nav { display: flex; gap: 1.55rem; }
.masthead nav a { color: #e3ece5; text-decoration: none; font-size: .87rem; font-weight: 500; }
.masthead nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .28rem; }
main { padding-bottom: 4rem; }
.page-heading { margin: 2.5rem 0 1.7rem; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-family: "Georgia", "Times New Roman", serif; font-size: clamp(2.15rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
.page-heading p { max-width: 49rem; margin-top: .65rem; font-size: 1rem; color: var(--muted); }
.work-section { padding: 1.5rem 1.65rem; background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; margin: 0 0 1.15rem; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.36rem; line-height: 1.22; font-weight: 650; letter-spacing: -.032em; }
.section-head p { margin-top: .28rem; max-width: 50rem; color: var(--muted); font-size: .93rem; }
.button-secondary, .button-primary { display: inline-flex; justify-content: center; align-items: center; border: 1px solid; border-radius: .3rem; min-height: 2.65rem; padding: .57rem 1.05rem; font-weight: 650; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.button-secondary { background: transparent; color: var(--teal); border-color: #aebfb3; }
.button-secondary:hover:not(:disabled) { background: var(--tint); border-color: #8ba79a; }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-hover); }
.files-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.file-item { background: #f7f8f2; border: 1px solid #dfe4d9; border-radius: .3rem; padding: .9rem; min-width: 0; }
.file-item label, .date-field label { font-size: .94rem; font-weight: 650; }
.file-item p { font-size: .83rem; color: var(--muted); margin: .2rem 0 .7rem; }
input[type=file] { display: block; width: 100%; color: var(--muted); font-size: .78rem; }
input[type=file]::file-selector-button { color: #284739; background: #fffefa; border: 1px solid #b8c7bb; border-radius: .25rem; padding: .35rem .6rem; margin-inline-end: .45rem; font: 600 .78rem/1.3 var(--sans); cursor: pointer; }
details { min-width: 0; }
summary { color: var(--teal); cursor: pointer; font-weight: 600; }
.source-disclosure { padding: .7rem .9rem; border-left: 3px solid #a7bda5; background: #f5f6ef; font-size: .9rem; }
pre { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#contractText { margin: .8rem 0 .1rem; max-height: 26rem; overflow: auto; }
.data-region { min-width: 0; margin-top: 1.05rem; }
.data-region:empty, .review-notes:empty, #notice:empty { display: none; }
.data-region h3, .data-region h4 { font-size: 1.04rem; line-height: 1.35; letter-spacing: -.018em; margin: 1.25rem 0 .5rem; }
.data-region p { color: var(--muted); font-size: .92rem; margin: .5rem 0; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .3rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; font-size: .86rem; font-variant-numeric: tabular-nums; }
thead { background: #edf2eb; }
th, td { text-align: left; border-bottom: 1px solid #dfe6dd; padding: .65rem .78rem; vertical-align: top; }
th { font-size: .78rem; font-weight: 650; color: #3b5246; line-height: 1.35; white-space: nowrap; }
td { line-height: 1.45; }
tbody tr:last-child > td { border-bottom: none; }
tbody tr:nth-child(even) { background: #f9faf6; }
td details[open] { min-width: 10rem; }
td summary { font-size: .84rem; }
blockquote { margin: .55rem 0; padding: .4rem .7rem; border-left: 2px solid #a7bda5; color: var(--muted); }
.review-notes { color: #576345; margin: .85rem 0; padding-left: 1.25rem; font-size: .88rem; }
.approval-row { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.1rem; font-size: .92rem; cursor: pointer; font-weight: 550; }
input[type=checkbox] { width: 1.08rem; height: 1.08rem; flex: 0 0 auto; margin: .17rem 0 0; accent-color: var(--teal); }
.execution-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem; }
.date-field { display: grid; gap: .25rem; }
.date-field label { font-size: .82rem; }
input[type=date] { color: var(--ink); padding: .4rem .58rem; min-height: 2.65rem; border: 1px solid #b8c7bb; border-radius: .3rem; background: var(--paper); font-size: .92rem; }
#notice { margin-top: .95rem; padding: .62rem .85rem; color: #284638; background: var(--tint); border-left: 3px solid #52826d; font-size: .9rem; }
.output-section { border-top: 3px solid var(--teal); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(9.5rem,1fr)); gap: .55rem; }
.metric { padding: .8rem .95rem; background: var(--tint); border-radius: .25rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.metric span { color: #3d5146; font-size: .79rem; line-height: 1.35; font-weight: 600; }
.metric strong { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin-top: .25rem; line-height: 1.2; color: #174938; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
@media (max-width: 52rem) {
  .masthead-inner, main { width: min(100% - 2rem,75rem); }
  .work-section { padding: 1.2rem; }
  .files-grid { grid-template-columns: 1fr; gap: .5rem; }
  .file-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(11rem,38%); column-gap: 1rem; align-items: center; padding: .65rem .75rem; }
  .file-item p { margin: .15rem 0 0; }
  .file-item input { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 36rem) {
  .masthead-inner, main { width: calc(100% - 1.4rem); }
  .masthead-inner { min-height: 3.35rem; gap: .4rem; }
  .masthead nav { gap: .65rem; }
  .masthead nav a { font-size: .74rem; }
  .wordmark { gap: .42rem; font-size: .88rem; }
  .mark { width: 1.55rem; height: 1.55rem; padding-inline: .25rem; }
  .page-heading { margin: 1.75rem .2rem 1.1rem; }
  .section-head { flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
  .work-section { padding: 1.05rem; margin-bottom: .75rem; }
  .file-item { display: block; }
  .file-item p { margin: .1rem 0 .5rem; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  th, td { padding: .5rem .58rem; }
}
@media print {
  body { background: white; }
  .masthead, #sources, .execution-bar, button, .skip-link { display: none; }
  main { width: 100%; }
  .work-section { box-shadow: none; margin-bottom: .5rem; }
  .table-scroll { overflow: visible; }
}
.work-footer {display:flex;align-items:center;justify-content:space-between;padding:1rem 0 2rem;gap:1rem;margin:auto;width:min(100% - 3rem,75rem);}
.work-footer a {color:var(--teal);font-size:.9rem;}
.output-section h3 {font-size:1rem;margin:1.5rem 0 .7rem;}
select {font:inherit; color:#143d36;background:#fff;padding:.45rem;border:1px solid #becbc6;border-radius:5px;}
.ai-box p {padding-top:.6rem;}
.ai-box .approval-row {margin:.75rem 0;}

.samplelinks{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin-top:1.2rem;color:var(--muted);font-size:.84rem}.samplelinks a{color:var(--teal)}.execution-bar{flex-wrap:wrap}.work-footer{flex-wrap:wrap}

.legal-guide{max-width:58rem}.guide-content{background:var(--paper);border:1px solid var(--line);border-radius:.55rem;padding:clamp(1.25rem,4vw,3rem)}.guide-content p{max-width:76ch;margin:.7rem 0 1.15rem;color:#35483f}.guide-content h2{font-size:1.45rem;margin-top:1.8rem;letter-spacing:-.025em}.guide-content h2:first-child{margin-top:0}.guide-content a{color:#075b4a;text-underline-offset:3px}

.local-reader {margin:1rem 0;padding:1.1rem;border:1px solid var(--line);border-radius:.45rem}
.local-reader h3 {font-size:1rem}.local-reader p{font-size:.9rem;color:var(--muted);margin:.35rem 0 .8rem}
.local-reader p:empty{display:none}.local-reader a{color:var(--teal)}.local-reader #localStatus{margin:.55rem 0 0}
.export-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.service-intro{max-width:48rem}.service-kit{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));gap:1rem;margin-top:1rem}
.service-kit a {display:block;padding:1.15rem;background:var(--tint);border:1px solid var(--line);border-radius:.35rem;color:var(--teal);text-decoration:none}
.service-kit a:hover{text-decoration:underline}.service-kit strong,.service-kit span{display:block}.service-kit span{font-size:.82rem;color:var(--muted);margin-top:.25rem}
.service-details{display:grid;grid-template-columns:minmax(8rem,12rem) 1fr;gap:.6rem 1rem;max-width:48rem;margin:1rem 0}
.service-details dt{font-weight:650}.service-details dd{margin:0}.guide-content ol{padding-left:1.4rem}.guide-content li{margin-bottom:.6rem}
@media(max-width:36rem){.service-details{grid-template-columns:1fr;gap:.2rem}.service-details dd{margin-bottom:.8rem}}
.demo-banner{padding:18px 22px;background:#e9efdb;border-left:3px solid #6f8556;border-radius:3px}.masthead{background:#f9f8f2}.wordmark{font-family:Georgia,serif;letter-spacing:-.04em}.work-footer a{font-size:12px}
[hidden]{display:none!important}.demo-source{margin:35px auto;max-width:1180px;padding:0 24px}.demo-source>summary{padding:18px 0;font-size:18px;cursor:pointer;border-top:1px solid #dce1d5}.demo-source .work-section{padding-left:0;padding-right:0}
