:root {
  --paper: #f1eee7;
  --sheet: #fffdf8;
  --sheet-alt: #f7f4ed;
  --ink: #17202a;
  --muted: #66717d;
  --line: #c9cfd4;
  --line-dark: #8c969f;
  --blue: #0d4777;
  --blue-dark: #073457;
  --blue-soft: #e9f0f6;
  --red: #a33a32;
  --red-soft: #f7ebe9;
  --focus: #1d6fa8;
  --max: 1020px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body.site-body {
  margin: 0;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
::selection { background: #cfe2f1; color: #10263a; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

/* Deliberately product-specific: stationery / invoice, not generic SaaS UI. */
h1, h2, h3 {
  color: var(--ink);
}
.home-page h1,
.home-page h2,
.legal-page h1,
.guide-page main > div > h1,
.article-page .prose h2 {
  font-family: Georgia, 'Times New Roman', serif;
}

/* Header */
.site-header,
.guide-page > nav:first-of-type {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.97) !important;
  border-bottom: 2px solid var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.site-header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand,
.guide-page > nav:first-of-type a.flex {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img,
.guide-page > nav:first-of-type img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  filter: none !important;
}
.brand span,
.guide-page > nav:first-of-type #brand-name {
  font-size: 19px !important;
  color: var(--ink) !important;
}
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-guide-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.header-guide-link:hover { border-bottom-color: currentColor; }
.header-menu-btn {
  appearance: none;
  border: 1px solid var(--ink) !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 8px 13px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1;
  letter-spacing: 0.07em !important;
  text-transform: uppercase;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  width: auto !important;
  flex: 0 0 auto;
}
.header-menu-btn:hover { background: var(--ink) !important; color: var(--sheet) !important; }

/* Drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100% !important;
  height: 100vh;
  background: rgba(12, 18, 23, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, 88vw) !important;
  height: 100%;
  padding: 88px 34px 34px !important;
  background: #15212b !important;
  color: #fff;
  text-align: left !important;
  opacity: 1 !important;
  transform: translateX(100%);
  transition: transform 180ms ease !important;
}
.nav-overlay.open .nav-content { transform: translateX(0); }
.nav-kicker {
  margin: 0 0 8px;
  color: #99b6cb;
  font: 700 12px/1.3 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav-content h2 {
  margin: 0 0 30px;
  color: #fff !important;
  font: 700 30px/1.1 Georgia, 'Times New Roman', serif;
}
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0 !important; border-top: 1px solid #34414c; }
.nav-links li:last-child { border-bottom: 1px solid #34414c; }
.nav-links a {
  display: block;
  padding: 16px 2px;
  color: #edf3f7 !important;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transform: none !important;
}
.nav-links a:hover { color: #8cc4e9 !important; transform: none !important; }
.close-btn {
  position: absolute;
  top: 22px;
  right: 26px;
  border: 0;
  background: transparent;
  color: #d9e2e8;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.close-btn:hover { color: #fff; }

/* Home */
.home-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 76px;
}
.masthead {
  display: block;
  padding: 10px 0 38px;
}
.eyebrow,
.document-label {
  margin: 0 0 10px;
  color: var(--blue);
  font: 800 11px/1.35 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.masthead h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}
.masthead-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: #45515b;
  font-size: 18px;
  line-height: 1.65;
}
.generator-shell {
  background: var(--sheet);
  border: 1px solid var(--line-dark);
  border-top: 5px solid var(--blue-dark);
  box-shadow: 0 16px 34px rgba(25, 33, 40, 0.09);
}
.generator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}
.generator-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}
.generator-head .document-label { margin-bottom: 5px; }
.draft-number {
  color: #4f5d68;
  font: 700 12px/1.3 'Courier New', monospace;
  letter-spacing: .04em;
  white-space: nowrap;
}
.generator-body { padding: 30px 28px 32px; }
.party-grid,
.charge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-section legend {
  width: 100%;
  margin: 0 0 15px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
}
.form-section label,
.field-block label {
  display: block;
  margin: 0 0 6px;
  color: #3f4a54;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.label-row label { margin: 0; }
.random-button {
  border: 0;
  border-bottom: 1px solid #8ba8be;
  background: transparent;
  color: var(--blue);
  padding: 0 0 1px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.random-button:hover { border-bottom-color: var(--blue); }
.form-section input,
.form-section textarea,
.field-block select {
  width: 100%;
  border: 1px solid #aeb7bf;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  box-shadow: none;
}
.form-section input:focus,
.form-section textarea:focus,
.field-block select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(29, 111, 168, .13);
}
.form-section textarea { resize: vertical; min-height: 88px; }
.just-randomized { background: #fff8d9 !important; }
.charge-grid {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.reason-note {
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid #91a8ba;
  background: #f3f6f8;
  color: #495760;
  font-size: 13px;
}
.amount-row {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.amount-row span {
  font: 800 12px/1.3 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.amount-row strong {
  font: 800 28px/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.pdf-button {
  width: 100%;
  margin-top: 22px;
  border: 1px solid var(--blue-dark);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.pdf-button:hover { background: var(--blue-dark); }
.pdf-button:active { transform: translateY(1px); }
.local-note {
  margin: 13px 0 0;
  color: #69737b;
  font-size: 12px;
  line-height: 1.55;
}
.ad-slot {
  margin: 26px 0 0;
  padding: 17px 20px;
  border: 1px dashed #9ca6ad;
  background: rgba(255,255,255,.3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: #6d767d;
}
.ad-slot span {
  font: 800 11px/1.3 'Courier New', monospace;
  letter-spacing: .1em;
}
.ad-slot small { font-size: 12px; text-align: right; }
.guide-teaser {
  margin-top: 74px;
  padding-top: 34px;
  border-top: 4px solid var(--ink);
}
.section-heading { max-width: 760px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 49px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-heading > p:last-child {
  margin: 18px 0 0;
  color: #52606b;
  font-size: 16px;
}
.category-ledger {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
  border-top: 1px solid var(--line-dark);
}
.category-ledger a {
  min-width: 0;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.category-ledger a:hover span { color: var(--blue); }
.category-ledger span { font-weight: 700; }
.category-ledger strong {
  color: #7a858d;
  font: 700 12px/1.5 'Courier New', monospace;
}
.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid #91acc2;
}
.text-link:hover { border-bottom-color: var(--blue); }

/* Shared footer */
.site-footer,
.guide-page > footer {
  margin-top: 0 !important;
  background: #16212a !important;
  color: #cfd7dc !important;
  border-top: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.site-footer-inner,
.guide-page > footer {
  min-height: 78px;
}
.site-footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer p { margin: 0; font-size: 13px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #dce5ea; text-decoration: none; font-size: 13px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Guide pages: preserve content, remove generic rounded-card / SaaS styling. */
.guide-page > nav:first-of-type > div {
  max-width: var(--max) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.guide-page > nav:first-of-type .text-xs.font-mono {
  font-family: 'Courier New', monospace !important;
  color: #68747d !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guide-page main {
  max-width: 860px !important;
  padding-top: 42px !important;
  padding-bottom: 64px !important;
}
.guide-page main > nav {
  color: #6d777e !important;
  font-family: 'Courier New', monospace !important;
  font-size: 12px !important;
  margin-bottom: 28px !important;
}
.guide-page main > nav a { color: var(--blue) !important; }
.guide-page main > div.mb-10 { margin-bottom: 28px !important; }
.guide-page main > div.mb-10 h1 {
  color: var(--ink) !important;
  font-size: clamp(34px, 6vw, 54px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  margin-bottom: 14px !important;
  font-weight: 700 !important;
}
.guide-page main > div.mb-10 .h-1 {
  width: 84px !important;
  height: 4px !important;
  border-radius: 0 !important;
  background: var(--red) !important;
}
.guide-page .prose {
  max-width: none !important;
  background: var(--sheet) !important;
  border: 1px solid var(--line-dark) !important;
  border-top: 4px solid var(--blue-dark) !important;
  border-radius: 1px !important;
  box-shadow: 0 12px 26px rgba(22, 31, 38, .06) !important;
  padding: clamp(24px, 5vw, 46px) !important;
  color: #3f4b54 !important;
  line-height: 1.72 !important;
}
.guide-page .prose > p:first-child { margin-top: 0 !important; }
.guide-page .prose p { color: #3f4b54; }
.guide-page .prose strong { color: #1f2a32; }
.guide-page .prose h2 {
  color: var(--ink) !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  letter-spacing: -.018em;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
}
.guide-page .prose h3 { color: var(--ink) !important; }
.guide-page .prose a {
  color: var(--blue) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.guide-page .prose .grid a,
.category-page .prose li a {
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.guide-home .prose .grid {
  gap: 0 !important;
  border-top: 1px solid var(--line-dark);
}
.guide-home .prose .grid a {
  padding: 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}
.guide-home .prose .grid a:nth-child(odd) { padding-right: 18px !important; }
.guide-home .prose .grid a:nth-child(even) { padding-left: 18px !important; }
.guide-home .prose .grid h3 { margin: 0 !important; font-size: 17px !important; }
.guide-home .prose .grid p { margin: 3px 0 0 !important; font: 12px/1.4 'Courier New', monospace; }
.category-page .prose ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.category-page .prose li { margin: 0 !important; padding: 14px 0 !important; border-bottom: 1px solid var(--line); }
.category-page .prose li a { display: inline !important; padding: 0 !important; border: 0 !important; background: transparent !important; font-weight: 800; }
.article-page .prose > .mt-8,
.article-page .prose > div.mt-8 {
  margin-top: 38px !important;
  padding: 24px !important;
  border: 0 !important;
  border-left: 4px solid var(--blue) !important;
  border-radius: 0 !important;
  background: var(--blue-soft) !important;
  text-align: left !important;
}
.article-page .prose > .mt-8 h3,
.article-page .prose > div.mt-8 h3 { color: #153a57 !important; }
.article-page .prose > .mt-8 a,
.article-page .prose > div.mt-8 a {
  display: inline-block !important;
  width: auto !important;
  border: 1px solid var(--blue-dark) !important;
  border-radius: 2px !important;
  background: var(--blue) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none !important;
}
.article-page .prose > .mt-8 a:hover,
.article-page .prose > div.mt-8 a:hover { background: var(--blue-dark) !important; }
.guide-page main > div.mt-12 {
  margin-top: 28px !important;
  padding: 22px 24px !important;
  border: 1px solid #bac6ce !important;
  border-radius: 0 !important;
  background: #edf2f5 !important;
  color: #29485f !important;
  text-align: left !important;
}
.guide-page main > div.mt-12 p { color: #405c70 !important; }
.guide-page main > div.mt-12 a {
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent !important;
  color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  padding: 9px 13px !important;
}
.guide-page > footer {
  padding: 26px 16px !important;
  text-align: center !important;
}
.guide-page > footer p { color: #d7dfe3 !important; }
.guide-page > footer a { color: #d7dfe3 !important; }

/* Legal pages */
.legal-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 70px;
}
.legal-main > h1 {
  margin: 0 0 28px;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -.04em;
}
.legal-sheet {
  background: var(--sheet);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--blue-dark);
  padding: clamp(24px, 5vw, 42px);
}
.legal-sheet section + section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-sheet h2 {
  margin: 0 0 9px;
  font: 800 15px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
}
.legal-sheet p { margin: 0; color: #44515a; }
.legal-contact { margin-top: 10px !important; }

/* Kill the visual defaults that read as generic AI output. */
.rounded-2xl, .rounded-xl, .rounded-lg { border-radius: 2px !important; }
.shadow-xl, .shadow-lg, .shadow-md, .shadow-sm { box-shadow: none !important; }
.transform, .hover\:-translate-y-0\.5:hover, .active\:scale-\[0\.98\]:active { transform: none !important; }
main { animation: none !important; }

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(29,111,168,.35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 760px) {
  .header-guide-link { display: none; }
  .masthead { grid-template-columns: 1fr; gap: 26px; align-items: start; padding-top: 0; }
  .masthead h1 { font-size: clamp(43px, 13vw, 62px); }
  .party-grid, .charge-grid, .category-ledger { grid-template-columns: 1fr; }
  .generator-head, .generator-body { padding-left: 18px; padding-right: 18px; }
  .generator-head { align-items: flex-start; }
  .party-grid, .charge-grid { gap: 22px; }
  .charge-grid { margin-top: 24px; }
  .ad-slot { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ad-slot small { text-align: left; }
  .guide-home .prose .grid { grid-template-columns: 1fr !important; }
  .guide-home .prose .grid a:nth-child(n) { padding-left: 0 !important; padding-right: 0 !important; }
  .site-footer-inner { min-height: 96px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; padding: 18px 0; }
}

@media (max-width: 480px) {
  .site-header-inner, .home-main, .site-footer-inner, .legal-main { width: min(100% - 22px, var(--max)); }
  .brand span { font-size: 17px !important; }
  .generator-head { flex-direction: column; gap: 8px; }
  .amount-row strong { font-size: 24px; }
  .guide-page main { padding-left: 12px !important; padding-right: 12px !important; }
  .guide-page .prose { padding: 21px !important; }
}

/* Petty Invoice currency control */
.amount-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px}.amount-controls select{width:auto;min-width:76px;margin:0;padding:7px 28px 7px 9px;border:1px solid var(--line-dark);border-radius:2px;background:var(--sheet);font:700 11px/1.2 "Courier New",monospace;color:var(--ink)}@media(max-width:520px){.amount-controls{align-items:flex-end;flex-direction:column;gap:6px}}

html[lang="ga"] body{font-family:Arial,"Noto Sans",sans-serif}

/* Compatibility for localized guide markup — same visual language as EN master */
.guide-page main > .eyebrow, .article-page main > .eyebrow{margin:0 0 12px;color:#5f6b73;font:700 11px/1.3 "Courier New",monospace;letter-spacing:.12em;text-transform:uppercase}
.guide-page main > h1, .article-page main > h1{margin:0 0 14px;color:var(--ink);font-size:clamp(34px,6vw,54px);line-height:1.05;letter-spacing:-.035em;font-weight:700}
.lead-copy{max-width:760px;margin:0 0 28px;color:#52606b;font-size:16px;line-height:1.65}
.category-grid{background:var(--sheet);border:1px solid var(--line-dark);border-top:4px solid var(--blue-dark);padding:clamp(24px,5vw,46px);display:grid;grid-template-columns:1fr 1fr;gap:0;box-shadow:0 12px 26px rgba(22,31,38,.06)}
.category-card{padding:15px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;min-width:0}
.category-card:nth-child(odd){padding-right:20px}.category-card:nth-child(even){padding-left:20px}
.category-card h2{margin:3px 0 4px;font-size:18px;line-height:1.25}.category-card p{margin:0;color:#58656e;font-size:13px;line-height:1.5}.category-count{color:#7a858d;font:700 11px/1.4 "Courier New",monospace;text-transform:uppercase;letter-spacing:.04em}
.guide-list{background:var(--sheet);border:1px solid var(--line-dark);border-top:4px solid var(--blue-dark);padding:0 clamp(24px,5vw,46px);box-shadow:0 12px 26px rgba(22,31,38,.06)}
.guide-list-item{padding:17px 0;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:22px;color:var(--ink);text-decoration:none}.guide-list-item:last-child{border-bottom:0}.guide-list-item h2{margin:0 0 5px;font-size:18px;line-height:1.25}.guide-list-item p{margin:0;color:#58656e;font-size:13px;line-height:1.5}.guide-list-item>strong{white-space:nowrap;color:#23333f;font:800 13px/1.5 "Courier New",monospace}
.article-page main{max-width:860px!important;padding-top:42px!important;padding-bottom:64px!important}.article-page main>.prose{max-width:none!important;background:var(--sheet)!important;border:1px solid var(--line-dark)!important;border-top:4px solid var(--blue-dark)!important;border-radius:1px!important;box-shadow:0 12px 26px rgba(22,31,38,.06)!important;padding:clamp(24px,5vw,46px)!important;color:#3f4b54!important;line-height:1.72!important}.article-page main>.prose h2{color:var(--ink)!important;font-size:26px!important;line-height:1.2!important;letter-spacing:-.018em;margin-top:36px!important;margin-bottom:12px!important;font-weight:700!important}.article-page main>.prose p{color:#3f4b54}.article-page main>.prose strong{color:#1f2a32}
.article-cta{margin-top:28px;padding:24px;border-left:4px solid var(--blue);background:var(--blue-soft)}.article-cta h2{margin:0 0 8px;color:#153a57;font-size:21px}.article-cta p{margin:0 0 15px;color:#405c70}.article-cta .generate-button{display:inline-block!important;width:auto!important;margin:0!important;border:1px solid var(--blue-dark)!important;border-radius:2px!important;background:var(--blue)!important;color:#fff!important;padding:12px 16px!important;font-weight:800;text-decoration:none!important;box-shadow:none!important}.article-cta .generate-button:hover{background:var(--blue-dark)!important}
.related-box{margin-top:28px;padding:22px 24px;border:1px solid #bac6ce;background:#edf2f5}.related-box h2{margin:0 0 10px;color:#29485f;font-size:19px}.related-links{display:flex;flex-wrap:wrap;gap:8px 18px}.related-links a{color:var(--blue);font-weight:700;text-decoration:none;border-bottom:1px solid #91acc2}.related-links a:hover{border-bottom-color:var(--blue)}
@media(max-width:760px){.category-grid{grid-template-columns:1fr}.category-card:nth-child(n){padding-left:0;padding-right:0}.guide-list-item{flex-direction:column;gap:7px}.related-links{flex-direction:column;gap:8px}}

/* Legal document layout: local styles, independent of prose plugins. */
.legal-page main.legal-main {
  width: min(760px, calc(100% - 32px));
  max-width: 760px !important;
  margin: 0 auto;
  padding: 54px 0 70px !important;
}
.legal-page main.legal-main > h1 {
  margin: 0 0 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.legal-page .legal-sheet { line-height: 1.7; overflow-wrap: anywhere; }
.legal-page .legal-sheet h2 { font-size: 18px; line-height: 1.4; }
.legal-page .legal-sheet p + p { margin-top: 12px; }
.legal-page .legal-sheet a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .legal-page main.legal-main { width: calc(100% - 22px); padding: 32px 0 48px !important; }
  .legal-page .legal-sheet { padding: 22px 18px; }
}
