@font-face {
  font-family: "Inter UI";
  src: url("./fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("./fonts/lato-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("./fonts/lato-latin-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("./fonts/lato-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins-latin-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-ui: "Inter UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", var(--font-ui);
}

@media screen {
  :root {
    --ink: #132c31;
    --muted: #526b70;
    --accent: #126c67;
    --forest: #102f32;
    --paper: #fff;
    --surface: #f7f8f5;
    --line: #dce5e1;
    font-family: var(--font-body);
    background: var(--surface);
  }
  body { background: var(--surface); }
  h1, h2, h3 { letter-spacing: -.035em; }
  .hero h1, .page-title h1, .downloads-heading h1, .section-head h2 {
    font-family: var(--font-heading);
    font-weight: 700;
  }
  #site-nav, .menu-toggle, .header-controls, .button, .tool-page, .sample-page, .document-catalog,
  .calculator-layout, .contact-form, .reference-table table {
    font-family: var(--font-ui);
  }
  .wrap { width: min(1240px, calc(100% - 80px)); }
  .header { background: #fff; border-bottom: 1px solid #e8eeeb; }
  .header-inner { min-height: 76px; gap: 20px; }
  .brand { color: #113c3b; font-size: 1.28rem; letter-spacing: -.045em; }
  .brand-wordmark {
    position: relative;
    display: block;
    width: 148px;
    aspect-ratio: 1500 / 322;
    overflow: hidden;
  }
  .brand-wordmark img {
    position: absolute;
    /* Align the visible artwork within the transparent source canvas. */
    width: 144.8%;
    max-width: none;
    height: auto;
    left: -24.5%;
    top: -69.5%;
  }
  .brand-icon { width: 35px; height: 35px; border-radius: 11px; background: #126c67; }
  #site-nav { gap: clamp(12px, 2vw, 28px); }
  #site-nav a, .documents-menu summary { color: #314b4e; font-size: .89rem; }
  html[lang="en"] #site-nav > a,
  html[lang="en"] #site-nav > .documents-menu > summary { font-size: 1rem; }
  #site-nav a:hover, .documents-menu summary:hover { color: #087a71; }
  .dropdown { border-color: #dbe8e3; border-radius: 12px; box-shadow: 0 16px 45px #153c3220; }
  .dropdown a:hover { background: #edf7f3; }
  .button { min-height: 44px; border-radius: 8px; transition: background .16s, border-color .16s; }
  .primary, .home .hero .primary { background: #126c67; color: #fff; }
  .primary:hover, .home .hero .primary:hover { background: #0d5551; filter: none; }
  .secondary, .header-action { border-color: #cadbd5; background: #fff; color: #174642; }
  .header-action:is(:hover, :focus-visible) {
    border-color: #126c67;
    background: #126c67;
    color: #fff;
    filter: none;
  }
  .header-action:focus-visible { outline-color: #126c67; }
  .header-action:is(:active, [aria-current="page"]) {
    border-color: #0d5551;
    background: #0d5551;
    color: #fff;
  }
  .text-link, .related-link, .create-label, .home-flow-links a { color: #0b6f68; }
  .hero {
    color: #fff;
    background: #103b3b;
    background-image: radial-gradient(ellipse at 82% 12%, #23685f 0, transparent 58%);
  }
  .hero-grid { gap: clamp(32px, 6vw, 86px); padding-block: clamp(55px, 7vw, 96px); }
  .home .hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 4.2vw, 4rem); line-height: 1.08; }
  .home .hero p { max-width: 49ch; color: #d3e9e0; line-height: 1.7; }
  .home .hero .primary { background: #a9e2c8; color: #123c36; }
  .home .hero .primary:hover { background: #c0ecd7; }
  .home .hero .secondary { color: white; border-color: #a1c6ba; }
  .hero-points { color: #d6eee4; }
  .hero-points li::before { color: #a9e2c8; }
  .sample-stage { background: #ffffff12; border-color: #ffffff24; border-radius: 18px; }
  .sample-paper { box-shadow: 0 18px 40px #082c2b38; }
  .sample, .doc-icon { color: #0e625c; background: #e8f5ed; border-color: #cee6d8; }
  .paper th { background: #eef4f1; }
  .paper-total { color: #174e48; }
  .home { background: #fff; }
  .home .band, .band { background: #f1f6f3; border-color: #e4ece7; }
  .home .section { padding-block: clamp(48px, 6vw, 82px); }
  .section-head { margin-bottom: 28px; }
  .section-head p { line-height: 1.6; }
  .card, .entry, .download-card, .calculator, .result, .contact-form, .contact-email, .related {
    border-color: #dce8e1; border-radius: 12px; box-shadow: 0 8px 26px #173d3010;
  }
  .card, .entry { background: #fff; }
  .card:hover, a.entry:hover { background: #f6fbf8; border-color: #84b8a3; }
  .home .card { padding: 24px; }
  .doc-icon { width: 40px; height: 40px; border-radius: 12px; }
  .create-label { color: #087168; }
  .home-flow li, .home-steps li { border-color: #dce8e1; box-shadow: 0 5px 18px #173d300a; }
  .home-flow li { border-top-color: #4da287; }
  .home-features li::before { border-color: #0b786d; }
  .home-cta { background: #e5f5ed; border-color: #c8e7d7; }
  .faq details { border-color: #dce8e1; }
  footer { background: #102e31; border: 0; color: #eaf4ee; padding-block: 52px 26px; }
  .footer-intro { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #335350; }
  .footer-brand { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
  .footer-brand span { color: #98ddbd; }
  .footer-intro p { margin-top: 6px; color: #b9d0c7; font-size: .9rem; }
  .footer-columns { gap: 28px; }
  .footer-heading { color: #fff; font-size: .9rem; font-weight: 700; margin: 8px 0; }
  .footer-columns a, .footer-base { color: #bfd1ca; }
  .footer-columns a { padding-block: 4px; font-size: .8rem; }
  .footer-base { border-color: #335350; margin-top: 30px; }
  .page-title h1, .downloads-heading h1 { color: #173b3b; }
  .breadcrumbs { color: #637b77; }
  .workspace { border-color: #d8e5de; border-radius: 14px; box-shadow: 0 12px 35px #1a403011; }
  .workspace-bar { padding: 14px 18px; }
  .workspace-title { color: #174642; }
  .template-choice[aria-pressed="true"] { border-color: #16776b; box-shadow: 0 0 0 1px #16776b; }
  .preview-pane { background: #eaf1ec; }
  .workspace input, .workspace select, .workspace textarea,
  .contact-form input:not([hidden]), .contact-form textarea,
  .loading-form input:not([type="checkbox"]):not([type="radio"]), .loading-form select {
    border-color: #b7cfc3; border-radius: 7px;
  }
  .calculator { background: white; }
  .result { background: #eaf5ef; }
  .reference-table, .guide-contents, .guide-grid aside { border-color: #dce8e1; }
  .reference-table thead { background: #eef6f1; }
  .answer { background: #eaf6ef; border-color: #398b71; }
  .download-preview, .template-preview-image { background: #e8f0eb; }
  .download-preview span { background: #174642; }
  .download-pending { background: #f4f8f5; }
  @media (max-width: 900px) {
    .wrap { width: min(100% - 48px, 1240px); }
    .header-inner { gap: 12px; }
  }
  @media (max-width: 680px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { min-height: 70px; }
    .brand-wordmark { width: clamp(96px, 28vw, 132px); }
    .home .hero h1 { max-width: none; font-size: clamp(2.25rem, 9vw, 3.1rem); }
    .home .card { padding: 18px; }
    .footer-columns { gap: 20px 15px; }
  }
}

/* Layout system: navigation, content pages and the document workspace. */
@media screen {
  .eyebrow, .workspace-kicker, .nav-group-label { display:block; color:#148072; font-size:.68rem; font-weight:800; letter-spacing:.14em; line-height:1.4; }
  .header { box-shadow:0 3px 20px #173b3210; }
  .header-controls { margin-left:auto; }
  .nav-group-label { padding:9px 12px 7px; color:#6a8179; white-space:nowrap; }
  .dropdown .nav-group-footer { margin-top:6px; padding-top:12px; border-top:1px solid #dce8e1; color:#126c67; font-weight:700; }
  .hero-grid { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); align-items:center; }
  .hero-copy { padding-block:18px; }
  .hero-eyebrow { color:#a7deca; margin-bottom:19px; }
  .hero-preview { padding:18px; border:1px solid #ffffff30; border-radius:20px; background:#ffffff10; box-shadow:0 28px 70px #041e1e35; }
  .hero-preview-top { display:flex; justify-content:space-between; gap:10px; margin-bottom:12px; color:#c2ddd4; font-size:.64rem; font-weight:800; letter-spacing:.12em; }
  .hero-preview .sample-stage { padding:15px; background:#e3eee8; border:0; border-radius:10px; }
  .hero-preview-caption { padding:14px 3px 0; color:#d3e9e0; font-size:.78rem; }
  .hero-caption-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:7px; background:#a9e2c8; }
  .section-head { align-items:end; }
  .section-head .eyebrow { margin-bottom:10px; }
  .home-documents { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
  .home-documents .card { min-height:210px; position:relative; }
  .home-documents .card:first-child { grid-column:span 2; background:#eaf5ef; padding:30px; }
  .home-documents .card:first-child h3 { font-size:1.4rem; }
  .home .card .create-label { margin-top:auto; padding-top:8px; }
  .home-file-templates { margin-top: clamp(32px, 5vw, 56px); }
  .home-file-templates .section-head { margin-bottom: 18px; }
  .home-file-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: clamp(16px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #eaf5ef;
  }
  .home-file-feature > div:first-child { flex: 1 1 18rem; }
  .home-file-feature p { margin-top: 8px; color: var(--muted); }
  .home-file-feature .actions { margin-top: 0; }
  .home-flow { counter-reset:flow; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  .home-flow li { counter-increment:flow; min-height:150px; padding:22px; border-top:1px solid #dce8e1; }
  .home-flow li::before { content:"0" counter(flow); display:block; color:#159080; font-size:.7rem; font-weight:800; letter-spacing:.1em; margin-bottom:15px; }
  .home-guides { padding-top:42px; margin-top:42px; border-top:1px solid #dce8e1; }
  .home-cta { padding:clamp(28px,4vw,50px); border-radius:18px; }
  .page-title { max-width:850px; padding-block:14px 12px; }
  .page-title h1 { max-width:24ch; line-height:1.08; }
  .page-title p { max-width:70ch; line-height:1.7; }
  .breadcrumbs { padding-top:22px; font-size:.8rem; }
  .workspace { overflow:hidden; }
  .workspace-bar { padding:22px 26px; gap:18px; }
  .workspace-bar:has(.sample-note) { row-gap:8px; }
  .workspace-bar > .sample-note { flex-basis:100%; }
  .workspace-heading { display:grid; gap:4px; }
  .workspace-title { font-size:1.2rem; }
  .workspace-subtitle { color:var(--muted); font-size:.82rem; }
  .workspace-grid { grid-template-columns:minmax(0, .88fr) minmax(0,1.12fr); }
  .editor-form { padding:26px; }
  .editor-intro h2 { font-size:1.2rem; margin:5px 0; }
  .editor-intro p { color:var(--muted); font-size:.84rem; margin:0; }
  .workspace .template-choices { padding:16px 0 22px; margin:0; }
  .workspace .template-choices legend { padding-top:18px; font-size:.83rem; }
  .template-choice-grid { gap:8px; }
  .template-choice { min-width:0; }
  .template-thumb { height:76px; }
  .editor-details-intro { margin:0 0 18px; padding-top:21px; border-top:1px solid var(--line); }
  .workspace .editor-form > fieldset:not(.template-choices) { margin:22px 0 0; padding:19px 0 0; border-top:1px solid #e1ebe5; }
  .workspace .editor-form > fieldset legend { font-size:.95rem; padding-right:10px; }
  .workspace .field-grid { gap:14px 12px; }
  .workspace label { gap:6px; }
  .workspace input, .workspace select, .workspace textarea { min-height:41px; padding:9px; }
  .preview-pane { padding:26px; }
  .preview-pane .document-paper[data-document="proforma-invoice"]:not(.export-paper) { min-height: auto; }
  .preview-heading { align-items:start; margin-bottom:18px; }
  .preview-heading div { display:grid; gap:3px; }
  .preview-heading strong { color:var(--ink); font-size:1rem; }
  .preview-heading small { color:var(--muted); font-size:.76rem; }
  .paper-badge { padding:5px 9px; background:#fff; border:1px solid #d7e4dc; border-radius:5px; }
  .workspace-bottom { padding:16px 26px; }
  .download-card-body { padding:22px; }
  .download-card-actions { padding-top:14px; border-top:1px solid #e4eee8; }
  .guide, .breadcrumbs:has(+ .guide) { max-width: 54rem; }
  .breadcrumbs + .guide { padding-top: clamp(24px, 3vw, 40px); }
  .guide .page-title { padding: 0; margin-bottom: clamp(20px, 3vw, 30px); }
  .guide .page-title, .guide .page-title p, .guide > .answer { max-width: none; }
  .guide .page-title h1 { max-width: none; font-size: clamp(2rem, 4.2vw, 3.5rem); }
  .guide .page-title p:empty { display: none; }
  .guide > .answer > p { margin-top: 4px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-grid aside {
    padding: 18px 20px;
    border-radius: 12px;
    background: #f0f7f3;
    font-size: .9375rem;
    line-height: 1.45;
  }
  .guide-grid aside ol { margin-block: 8px 0; }
  .guide-grid aside li + li { margin-top: 2px; }
  .guide-grid aside a {
    display: block;
    padding: 3px 6px;
    border-radius: 6px;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .guide-grid aside a:is(:hover, :focus-visible) {
    background: #e2efe8;
    color: #0d5551;
    text-decoration: underline;
    text-underline-offset: .18em;
  }
  .guide-grid .prose { min-width: 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
  .guide-grid .prose p { max-width: none; }
  .guide-grid .prose h2:first-child { margin-top: 0; }
  .guide-grid .prose :is(h2[id], .guide-anchor) { scroll-margin-top: 1.5rem; }
  .guide-grid .reference-table table { overflow-wrap: normal; }
  .guide-grid .reference-table thead th { white-space: nowrap; }
  .guide-anchor { display: block; height: 0; }
  .guide-essay aside ol { list-style: none; padding: 0; }
  .guide-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-block: 10px;
    border-block: 1px solid var(--line);
    color: var(--muted);
    font-size: .875rem;
  }
  .guide-essay .fig { margin: 24px 0; }
  .guide-figure-scroll { overflow-x: auto; }
  .guide-figure-scroll svg { display: block; width: 100%; min-width: 42rem; height: auto; }
  .guide-essay figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
  .guide-essay blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-inline-start: 3px solid var(--accent);
    background: #f0f7f3;
  }
  .guide-essay .reference-table table { min-width: 36rem; }
  .guide-essay .cite { font-size: .8em; white-space: nowrap; }
  .guide-essay .refs li { margin-bottom: 8px; }
  .guide-takeaways {
    margin-block: 24px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f0f7f3;
  }
  .guide-grid .prose > .guide-takeaways:first-child,
  .invoice-comparison > .guide-takeaways:first-child { margin-block-start: 0; }
  .guide-takeaways ul { margin: 8px 0 0; padding-inline-start: 1.25em; }
  .guide-takeaways li + li { margin-top: 6px; }
  .guide-drafting-actions { margin-block: 16px 24px; }
  .invoice-comparison > h2 { margin-top: clamp(30px, 4vw, 48px); }
  .invoice-comparison > h3 { margin-top: 24px; }
  .invoice-comparison > :is(ol, ul) { padding-inline-start: 1.4em; }
  .invoice-comparison > :is(ol, ul) li + li { margin-top: 8px; }
  .faq-page { max-width: 70rem; }
  .faq-search { max-width: 34rem; margin-block-end: 24px; }
  .faq-search label { display: block; margin-bottom: 6px; font-weight: 700; }
  .faq-search input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #a9c5b7;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
  }
  .faq-search-empty { margin: 0; }
  .faq-search-empty:not(:empty) { margin-top: 10px; }
  .faq-disclaimer { margin: 24px 0 0; color: var(--muted); font-size: .9rem; }
  .faq-section > .text-link { display: inline-block; margin-top: 14px; }
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
  }
  .faq-topics {
    display: block;
    position: sticky;
    top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }
  .faq-topics h2 { margin: 0 8px 8px; font-size: 1.05rem; }
  .faq-topics ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .faq-topics a { display: block; padding: 8px; border-radius: 6px; color: var(--accent); }
  .faq-topics a:hover, .faq-topics a:focus-visible { background: #f0f7f3; }
  .faq-topics[hidden] + .faq-topics-content { grid-column: 1 / -1; }
  .faq-topic + .faq-topic { margin-block-start: 32px; }
  .faq-topic h2, .faq-support h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
  .faq-topic h2 { scroll-margin-top: 24px; }
  .faq-page .faq details {
    margin-block: 8px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }
  .faq-page .faq summary { padding: 12px 16px; border-radius: inherit; }
  .faq-page .faq summary:hover, .faq-page .faq details[open] summary { background: #f0f7f3; }
  .faq-page .faq details[open] summary { border-end-start-radius: 0; border-end-end-radius: 0; }
  .faq-page .faq details p { margin: 0; padding: 12px 16px 0; }
  .faq-page .faq details p:last-child { padding-bottom: 16px; }
  .faq-page .faq .faq-resource { padding-top: 6px; }
  .faq-support {
    margin-block-start: 36px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f0f7f3;
  }
  .faq-support p { margin: 0 0 14px; }
  @media (max-width: 760px) {
    .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-topics { position: static; }
    .faq-topics ul { grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); }
  }
  .guide-faq details {
    margin-block: 10px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    transition: border-color 160ms ease;
  }
  .guide-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: inherit;
    list-style: none;
  }
  .guide-faq summary::-webkit-details-marker { display: none; }
  .guide-faq summary:hover, .guide-faq details[open] { border-color: var(--accent); }
  .guide-faq summary:hover, .guide-faq details[open] summary { background: #f0f7f3; }
  .guide-faq details[open] summary { border-end-start-radius: 0; border-end-end-radius: 0; }
  .guide-faq-icon {
    flex: 0 0 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6f1eb;
    color: var(--accent);
  }
  .guide-faq-icon::before { content: "+"; line-height: 1; }
  .guide-faq details[open] .guide-faq-icon::before { content: "−"; }
  .guide-faq .guide-faq-answer { margin: 0; padding: 12px 16px 16px; }
  @media (prefers-reduced-motion: no-preference) {
    .guide-faq details[open] .guide-faq-answer { animation: guide-faq-reveal 160ms ease-out; }
  }
  @keyframes guide-faq-reveal { from { opacity: 0; } to { opacity: 1; } }
  @media (min-width: 1200px) {
    .guide, .breadcrumbs:has(+ .guide) { width: min(calc(80rem - 4px), calc(100% - 116px)); max-width: none; }
    .guide {
      --guide-sidebar-width: clamp(18rem, 24vw, 20rem);
      --guide-column-gap: clamp(2rem, 3vw, 2.5rem);
    }
    .guide .page-title, .guide > .answer {
      max-width: calc(100% - var(--guide-sidebar-width) - var(--guide-column-gap));
    }
    .guide-grid {
      grid-template-columns: minmax(0, 1fr) var(--guide-sidebar-width);
      column-gap: var(--guide-column-gap);
    }
    .guide-grid .prose { grid-area: 1 / 1; }
    .guide-grid aside {
      grid-area: 1 / 2;
      position: sticky;
      top: 24px;
      max-height: calc(100vh - 48px);
      overflow-y: auto;
    }
    .guide-grid aside a { padding: 6px 8px; }
  }
  .prose { line-height:1.75; }
  .legal-page { max-width: 54rem; }
  .about-page {
    max-width: 68rem;
    padding-block: clamp(28px, 5vw, 64px);
  }
  .about-hero, .about-story {
    display: grid;
    gap: clamp(20px, 4vw, 56px);
  }
  .about-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding: clamp(22px, 4vw, 52px);
    background: #e9f4ed;
    border: 1px solid #d5e7dc;
    border-radius: 16px;
  }
  .about-hero .page-title { margin: 0; }
  .about-hero .page-title h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
  .about-hero .page-title p { max-width: 34ch; margin-top: 14px; line-height: 1.55; }
  .about-resources {
    display: block;
    padding: clamp(16px, 2.4vw, 26px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }
  .about-resources h2 { font-size: 1.25rem; margin-bottom: 8px; }
  .about-resources ul { margin: 0; padding: 0; list-style: none; }
  .about-resources li { padding-block: 10px; }
  .about-resources li + li { border-top: 1px solid var(--line); }
  .about-resources li:last-child { padding-bottom: 0; }
  .about-resources a { color: var(--accent); font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; }
  .about-resources p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 4px; }
  .about-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
    padding-block: clamp(32px, 5vw, 64px);
  }
  .about-story h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
  .about-copy { max-width: 66ch; line-height: 1.75; }
  .about-copy p + p { margin-block-start: 14px; }
  .about-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }
  .about-contact h2 { font-size: clamp(1.38rem, 2.2vw, 1.65rem); margin-bottom: 8px; }
  .about-contact p { color: var(--muted); }
  .about-email { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
  @media (max-width: 740px) {
    .about-hero, .about-story { grid-template-columns: minmax(0, 1fr); }
  }
  .contact-page { max-width: 70rem; }
  .contact-page .page-title { padding-bottom: 0; margin-bottom: clamp(24px, 3vw, 36px); }
  .contact-page .page-title p { max-width: 58ch; }
  .contact-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); }
  .contact-form { padding: clamp(22px, 3vw, 34px); }
  .contact-form h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
  .contact-form-intro { margin: 0 0 20px; color: var(--muted); }
  .contact-message { margin-bottom: 6px; }
  .contact-message-hint { margin: 0 0 18px; color: var(--muted); font-size: .875rem; }
  .contact-sidebar { display: grid; gap: 16px; }
  .contact-help, .contact-email { padding: clamp(20px, 3vw, 28px); }
  .contact-help { background: #edf5f0; }
  .contact-sidebar h2 { margin: 0 0 8px; font-size: 1.25rem; }
  .contact-help p { margin: 0 0 12px; color: var(--muted); }
  .contact-help .contact-faq-button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
    background: var(--paper);
  }
  .contact-help .contact-faq-button:hover { border-color: var(--accent); background: #f7faf8; }
  .contact-help-links { margin: 0; padding: 0; list-style: none; }
  .contact-help-links li + li { border-top: 1px solid #d4e4db; }
  .contact-help-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
    color: var(--accent);
    font-weight: 700;
    text-underline-offset: .2em;
  }
  @media (max-width:900px) {
    .home-documents { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .workspace-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .editor-form, .preview-pane { padding:18px; }
    .template-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media (max-width:680px) {
    .hero-grid { grid-template-columns:minmax(0,1fr); }
    .hero-copy { padding:0; }
    .hero-preview { max-width:460px; padding:12px; }
    .home-documents .card:first-child { grid-column:span 2; min-height:0; padding:22px; }
    .home-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-flow li { padding:16px; }
    .workspace-bar { padding:18px; }
    .workspace-actions { width:100%; }
    .workspace-actions .primary { flex:1; }
    .workspace-grid { display:block; }
    .editor-form { max-height:none; }
    .workspace-bottom { padding:15px 18px; }
    .contact-layout { grid-template-columns:minmax(0,1fr); }
  }
  @media (max-width:400px) {
    .home-documents { grid-template-columns:minmax(0,1fr); }
    .home-documents .card:first-child { grid-column:auto; }
    .home-flow { grid-template-columns:minmax(0,1fr); }
  }
}
@media screen and (width > 1000px) {
  .header-inner { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); }
  .header-inner > .brand { justify-self:start; }
  .header-controls { justify-self:end; margin-inline:0; }
  #site-nav { flex-wrap:nowrap; gap:clamp(12px, calc(4vw - 24px), 28px); white-space:nowrap; }
}
@media screen {
  .sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  #site-nav:has([data-mega-menu]) { position:relative; }
  #site-nav [data-mega-menu] { position:static; }
  .mega-menu {
    position:absolute;
    z-index:12;
    top:calc(100% + 18px);
    inset-inline-start:50%;
    transform:translateX(-50%);
    width:min(54rem, calc(100vw - 40px));
    overflow:hidden;
    border:1px solid #d4e3dc;
    border-radius:16px;
    background:#fff;
    box-shadow:0 20px 48px #153c3229;
    white-space:normal;
  }
  .mega-columns { display:grid; grid-template-columns:repeat(var(--menu-columns), minmax(0, 1fr)); padding:20px; }
  .mega-group { min-width:0; padding-inline:12px; }
  .mega-group + .mega-group { border-inline-start:1px solid #e6eeea; }
  .mega-group > summary {
    padding:5px 10px 11px;
    color:#496963;
    font-size:.73rem;
    font-weight:750;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  .mega-items { display:grid; gap:4px; }
  #site-nav .mega-item {
    display:grid;
    align-content:center;
    gap:3px;
    min-height:44px;
    padding:8px 10px;
    border:1px solid transparent;
    border-radius:8px;
    color:#193e3b;
    line-height:1.35;
    text-decoration:none;
  }
  .mega-item small { color:#47615d; font-size:.79rem; font-weight:500; }
  #site-nav .mega-item-featured { border-color:#cde4d8; background:#f3faf6; }
  #site-nav .mega-item:hover, #site-nav .mega-item:focus-visible { background:#e8f5ef; }
  .mega-links { display:flex; flex-wrap:wrap; gap:8px 20px; padding:12px 28px; border-top:1px solid #e0ece5; background:#f5faf7; }
  #site-nav .mega-links a { display:inline-flex; align-items:center; min-height:32px; color:#17655c; }
  .cluster-nav { display:flex; flex-wrap:wrap; align-items:center; gap:6px 20px; padding-block:10px; border-bottom:1px solid #dbe8e2; }
  .cluster-nav > strong { font-size:.86rem; }
  .cluster-nav > div { display:flex; flex-wrap:wrap; gap:4px; }
  .cluster-nav a { display:inline-flex; align-items:center; min-height:38px; padding:7px 10px; border-radius:7px; color:#35534f; font-weight:700; font-size:.82rem; text-decoration:none; }
  .cluster-nav a:hover, .cluster-nav a[aria-current="page"] { background:#e6f4ed; color:#115950; }
  .document-stages { display:grid; gap:24px; margin-block:24px 38px; }
  .document-stage { min-width:0; }
  .document-stage > h3 { margin-bottom:12px; color:#325a53; }
  .document-stage .card-grid { grid-template-columns:repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
  .catalog-next { margin-block:24px; }
  .editor-jump { display:flex; flex-wrap:wrap; gap:8px 16px; margin-block:0 24px; padding:12px 16px; border:1px solid #dbe8e2; border-radius:9px; background:#f5faf7; font-size:.85rem; }
  .tool-content .editor-export h3 { margin-block-start:1.6em; }
  .guide-chart { margin-block:12px; border:1px solid #dbe8e2; border-radius:9px; }
  .guide-chart > summary { padding:12px 16px; color:#155e55; cursor:pointer; font-weight:750; }
  .guide-chart > .reference-table { margin:0 12px 12px; }
  .shipping-mark-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(205px,100%),1fr)); gap:12px 16px; padding:18px; border:1px solid #dbe8e2; border-radius:9px; background:#f5faf7; }
  .shipping-mark-form label { min-width:0; font-size:.84rem; font-weight:700; }
  .shipping-mark-form :is(input,textarea) { display:block; width:100%; margin-block-start:4px; }
  .shipping-mark-result, .shipping-mark-form .actions { grid-column:1/-1; }
}
@media screen and (width > 1000px) {
  .mega-group > summary { pointer-events:none; cursor:default; }
  .mega-group > summary::after { content:none; }
}
@media screen and (max-width: 1000px) {
  .header-inner { flex-direction:row; align-items:center; flex-wrap:wrap; gap:9px; padding-block:12px; }
  .header-controls { margin-left:auto; }
  .menu-toggle { display:inline-block; order:2; }
  #site-nav { order:3; width:100%; display:none; padding:12px 0 2px; align-items:stretch; flex-direction:column; gap:0; }
  .menu-toggle[aria-expanded="true"] + #site-nav { display:flex; }
  #site-nav > a, #site-nav > details > summary { display:block; padding:11px 8px; border-top:1px solid #edf2ef; }
  #site-nav .dropdown { position:static; min-width:0; box-shadow:none; margin:0 0 8px; }
  .mega-menu { position:static; width:100%; transform:none; margin-block:4px 9px; box-shadow:none; }
  .mega-columns { display:block; padding:3px 12px; }
  .mega-group { padding-inline:0; }
  .mega-group + .mega-group { border:0; border-top:1px solid #e6eeea; }
  .mega-group > summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:8px 10px; }
  .mega-group[open] > summary::after { transform:rotate(180deg); }
  .mega-items { padding-block-end:8px; }
  .mega-links { padding:8px 16px; }
  #site-nav .mega-links a { min-height:44px; }
}
@media screen {
  .downloads-heading .eyebrow { margin-bottom:12px; }
  .downloads-page > .sample-note { margin-top:12px; }
  .download-jump { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:20px 0 0; }
  .download-jump > span { color:var(--muted); font-size:.8rem; margin-right:6px; }
  .download-jump a { padding:9px 13px; border:1px solid #ccdfd4; border-radius:7px; background:#fff; color:#185d55; font-size:.82rem; font-weight:700; text-decoration:none; }
  .download-jump a:hover { background:#eaf5ef; }
  .sample-document-layout { gap:clamp(24px,4vw,52px); }
  .sample-document-layout aside { padding:24px; border:1px solid var(--line); border-radius:12px; background:#f1f7f3; }
  .sample-document-layout aside h2 { padding-top:20px; border-top:1px solid #d9e7de; font-size:1rem; }
  .sample-document-layout aside .actions { display:grid; margin-block:20px; }
  .sample-document-layout aside .button { justify-content:center; }
  .inner > .directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .inner > .directory .entry { height:100%; }
  @media (max-width:680px) { .inner > .directory { grid-template-columns:minmax(0,1fr); } }
}
@media screen {
  .loading-figure { overflow:hidden; border:1px solid #cadfd4; border-radius:12px; background:#f7fbf8; }
  .loading-view-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; background:#173f3e; color:#d4eee2; font-size:.68rem; font-weight:800; letter-spacing:.1em; }
  .loading-view-controls { display:flex; gap:5px; }
  .loading-view-controls button { min-width:34px; min-height:32px; padding:5px 9px; border:1px solid #729991; border-radius:6px; color:white; background:#285953; font-family:inherit; font-size:.76rem; font-weight:600; letter-spacing:0; cursor:pointer; }
  .loading-view-controls button:hover { background:#39746a; }
  .loading-figure canvas { border:0; border-radius:0; background:linear-gradient(#f9fcfa,#edf5f0); cursor:grab; touch-action:none; }
  .loading-figure canvas.is-dragging { cursor:grabbing; }
  .loading-figure figcaption { margin:0; padding:10px 14px 14px; line-height:1.5; }
  @media (max-width:480px) { .loading-view-toolbar { flex-wrap:wrap; } }
}
@media screen {
  .loading-view-toolbar { padding:15px 18px; background:#173f3e; letter-spacing:0; }
  .loading-view-toolbar > div:first-child { display:grid; gap:3px; }
  .viewer-label { color:#96d5be; font-size:.62rem; font-weight:800; letter-spacing:.13em; }
  .loading-view-toolbar strong { color:#fff; font-size:.93rem; }
  .loading-view-controls { flex-wrap:wrap; }
  .loading-view-stage { position:relative; }
  .loading-figure canvas { background:linear-gradient(160deg,#f9fcfa,#e9f3ed); }
  .loading-zoom { position:absolute; display:grid; gap:5px; right:12px; bottom:12px; }
  .loading-zoom button { width:34px; height:34px; border:1px solid #c8ded3; border-radius:7px; background:white; color:#24584d; font-size:1.1rem; cursor:pointer; }
  .loading-view-legend { display:flex; flex-wrap:wrap; gap:8px 16px; padding:12px 15px 2px; color:#31544b; font-size:.8rem; font-weight:600; }
  .loading-view-legend span { display:inline-flex; align-items:center; gap:6px; }
  .loading-view-legend i { width:10px; height:10px; border-radius:3px; flex:none; }
  .loading-figure figcaption { color:#526b60; }
}

.share-dialog {
  width: min(36rem, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
.share-dialog::backdrop { background: #132c319c; }
.share-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-dialog-header h2 { font-size: 1.4rem; }
.share-dialog-intro, .share-print p { color: var(--muted); font-size: .9rem; }
.share-dialog .actions { margin-top: 12px; gap: 8px; }
.share-file { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }
.share-file label { font-size: .9rem; font-weight: 700; }
.share-file input { max-width: 100%; font: inherit; font-size: .9rem; }
.share-print { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.page-share { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f3f8f5; }
.page-share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.page-share-channels { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.share-channel {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.share-channel:is(:hover, :focus-visible) { background: #e4f2ea; color: #126c67; }
@media (max-width: 680px) {
  .page-share-row, .page-share-channels { justify-content: center; }
  .page-share-row > p { text-align: center; }
  .page-share-channels { gap: 4px; }
  .share-channel { width: 40px; }
}
.page-share .share-copy { min-height: 44px; }
.page-share input[readonly] {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: .875rem;
}
.share-status { margin-top: 10px; font-size: .875rem; }
.share-status:empty { margin: 0; }
@media print { .share-dialog, .page-share { display: none !important; } }

.sample-paper .sample-paper-title { margin: 24px 0 16px; font-size: clamp(1.25rem, 3vw, 2.2rem); font-weight: 750; line-height: 1.15; color: var(--ink); }
.guide .guide-byline { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.home-file-feature + .home-file-feature { margin-top: .75rem; }
.site-dropdown .nav-panel { display: grid; align-content: start; }
.site-dropdown { max-height: 75vh; overflow-y: auto; z-index: 5; }
@media (min-width: 921px) {
  .site-dropdown:has(.nav-panel + .nav-panel) { grid-template-columns: 190px 220px; }
}
@media (min-width: 1100px) {
  html[lang="en"] .footer-columns { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.editor-example { margin: 1.5rem 0; }
.editor-example img { display: block; width: min(100%, 42rem); border: 1px solid var(--line); }
.editor-example figcaption { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

.document-menu-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-top: 1px solid #e4eee9;
}
.document-menu-row > div { display: flex; flex-wrap: wrap; }
.document-menu-row strong { padding-block: 0.45rem; }
.workflow-diagram { margin-block: 1rem; overflow-x: auto; }
.workflow-diagram svg { display: block; min-width: 34rem; width: 100%; font-size: 13px; font-weight: 650; }
.workflow-diagram a:hover rect, .workflow-diagram a:focus-visible rect { fill: #cfe8df; }
@media (max-width: 48rem) {
  .document-menu-row { grid-template-columns: 1fr; gap: 0; }
  .workflow-diagram { display: none; }
}
.editor-benefits { margin: -0.45rem 0 1.05rem; color: #375d56; font-size: 0.9rem; }
.download-catalog-preparing summary { cursor: pointer; font-weight: 650; }
.download-catalog-preparing .card-grid { margin-top: 1rem; }
.guide-supplement { margin-top: 2rem; }
@media print {
  html[lang="en"] .workspace .document-paper .paper-note { display: none; }
}
.templates-menu { min-width: 28rem; }
