/* iJournalPro — site stylesheet */
:root {
  --ink: #142032;
  --ink-soft: #334058;
  --brand: #0d6efd;
  --brand-deep: #0a58ca;
  --tint: #e7f0ff;
  --marker: #f5d547;
  --surface: #f4f6fa;
  --white: #ffffff;
  --line: #dde3ee;
  --muted: #5a6478;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --brand-font: "Ubuntu", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --r-sm: 6px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 .35rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--brand-font); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 500; color: var(--brand); }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: .5rem .75rem; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { background: var(--surface); }
.nav .btn { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .75rem; font: inherit; color: var(--ink); cursor: pointer; align-items: center; gap: .45rem; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem clamp(1.1rem, 4vw, 2rem) 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(20, 32, 50, .4); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border: 0; border-radius: var(--r-sm); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: .98rem; text-decoration: none; padding: .8rem 1.35rem; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--marker); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--tint), transparent 60%), var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 11em; }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Workflow demo */
.flow { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -38px rgba(20, 32, 50, .45), 0 2px 0 rgba(20, 32, 50, .03); overflow: hidden; }
.flow-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .85rem; color: var(--muted); }
.flow-top strong { color: var(--ink); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-tone="done"] { background: var(--tint); border-color: #c3d6fa; color: var(--brand-deep); }
.flow-body { padding: 1.35rem 1.35rem 1.5rem; }
.flow-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 0 0 .3rem; }
.flow-meta { font-size: .88rem; color: var(--muted); margin: 0 0 1.25rem; }
.doi-line { font-size: .88rem; color: var(--muted); margin: -.6rem 0 1.1rem; display: flex; align-items: center; gap: .5rem; min-height: 1.7em; }
.doi-wait { transition: opacity .3s; }
.doi-line.on .doi-wait { display: none; }
.doi { display: none; font-size: .88rem; margin: 0; padding: .15rem .45rem; border-radius: 4px; background: var(--marker); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.doi-line.on .doi { display: inline-block; animation: doiIn .45s ease-out forwards; }
@keyframes doiIn { to { opacity: 1; transform: none; } }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.stages li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .5rem 0; font-size: .95rem; color: var(--muted); border-top: 1px dashed var(--line); }
.stages li:first-child { border-top: 0; }
.stages .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; background: #fff; transition: background-color .3s, border-color .3s; }
.stages .dot svg { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.stages .note { font-size: .8rem; color: var(--muted); text-align: right; opacity: 0; transition: opacity .3s; }
.stages li.done { color: var(--ink); }
.stages li.done .dot { background: var(--brand); border-color: var(--brand); }
.stages li.done .dot svg { opacity: 1; }
.stages li.done .note { opacity: 1; }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.flow-caption { font-size: .85rem; color: var(--muted); margin-top: .85rem; }
@media (max-width: 480px) { .stages .note { display: none; } .stages li { grid-template-columns: 22px minmax(0, 1fr); } }

/* ---------- Numbers ---------- */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.numbers dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.numbers dl > div { padding: 1.75rem 1rem 1.75rem 0; }
.numbers dl > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.numbers dt { font-size: .92rem; color: var(--muted); order: 2; }
.numbers dd { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; }
.numbers dl > div { display: flex; flex-direction: column; }
@media (max-width: 760px) { .numbers dl { grid-template-columns: 1fr 1fr; } .numbers dl > div:nth-child(3) { border-left: 0; padding-left: 0; } .numbers dl > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--surface); }
.section-dark { background: var(--ink); color: #d5ddec; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .head p { color: #a3b1cb; }

/* Offerings */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; }
.offer .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.offer .ico svg { width: 22px; height: 22px; }
.offer h3 { font-size: 1.5rem; }
.offer p { color: var(--ink-soft); }
.offer ul { list-style: none; padding: 0; margin: .25rem 0 1.5rem; font-size: .95rem; }
.offer li { padding: .4rem 0 .4rem 1.4rem; position: relative; border-top: 1px solid var(--line); }
.offer li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.offer a.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.offer a.more:hover { text-decoration: underline; }
.offer-lead { background: var(--ink); border-color: var(--ink); color: #d5ddec; }
.offer-lead h3 { color: #fff; }
.offer-lead p { color: #aebbd3; }
.offer-lead .ico { background: rgba(255, 255, 255, .1); color: var(--marker); }
.offer-lead li { border-color: rgba(255, 255, 255, .14); }
.offer-lead li::before { background: var(--marker); }
.offer-lead a.more { color: #fff; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; max-width: 640px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.feature { padding: 1.75rem 1.75rem 2rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.feature:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.feature h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.feature p { margin: 0; font-size: .98rem; color: #aebbd3; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 1.5rem 1.25rem 1.75rem 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature:nth-child(even) { padding-left: 0; border-left: 0; } }
.integrations { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.integrations li { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .4rem 1rem; font-size: .92rem; color: #fff; }

/* Services list */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.service { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.service .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.service .ico svg { width: 20px; height: 20px; }
.service p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.25rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; top: 1.15rem; left: 3rem; right: -1rem; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Live */
.live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.live a { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; transition: border-color .15s; }
.live a:hover { border-color: var(--brand); }
.live .kind { font-size: .85rem; color: var(--brand-deep); font-weight: 600; }
.live strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.live span.d { font-size: .95rem; color: var(--muted); }
.live .url { margin-top: auto; padding-top: .9rem; font-size: .88rem; color: var(--brand-deep); font-weight: 500; }
@media (max-width: 900px) { .live { grid-template-columns: 1fr; max-width: 560px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-soft); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .doi, .status, .stages * { transition: none !important; } }

/* CTA */
.cta { background: var(--brand); color: #eef3ff; border-radius: var(--r-lg); padding: clamp(2.25rem, 5vw, 3.75rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .35rem; }
.cta p { margin: 0; color: #dbe7ff; font-size: 1.1rem; max-width: 34em; }
.cta .btn-row { margin: 0; justify-content: flex-end; }
.cta .mail { color: #fff; font-weight: 500; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Legal pages */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 100px; font-size: .92rem; }
.toc p { font-weight: 600; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand-deep); text-decoration: underline; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a3b1cb; font-size: .95rem; padding: 3.5rem 0 1.75rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: #fff; margin-bottom: .9rem; }
.foot-brand .brand b { color: var(--brand); }
.foot-brand p { max-width: 24em; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .86rem; }

@media print { .site-header, .site-footer, .hero .flow, .cta { display: none; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.flow-caption { text-align: right; }
@media (max-width: 900px) { .flow-caption { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .doi-line.on .doi { animation: none; opacity: 1; transform: none; } }

.tagline { font-family: var(--brand-font); font-size: 1.15rem; color: var(--brand-deep); margin: 0 0 1rem; }
.foot-tag { font-family: var(--brand-font); color: #fff; margin: -.4rem 0 .6rem; }

/* Brand hero: dark navy, as on the iJournalPro brand */
.hero { background: radial-gradient(900px 480px at 80% 0%, rgba(13, 110, 253, .28), transparent 65%), linear-gradient(180deg, #142032, #17243a); color: #d5ddec; }
.hero h1 { color: #fff; }
.hero .tagline { color: #7fb0ff; }
.hero .lede { color: #c3cde0; }
.hero .hero-note, .hero .flow-caption { color: #9aa8c2; }
.hero .linkbtn { color: #9cc2ff; }
.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero .flow { border-color: rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.hero :focus-visible { outline-color: #7fb0ff; }
.hero .flow { color: var(--ink); }

/* Main banner: centred brand banner */
.hero-banner .wrap { display: block; text-align: center; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero-banner .wordmark { font-family: var(--brand-font); font-weight: 500; font-size: clamp(3.2rem, 9vw, 6rem); letter-spacing: -0.01em; line-height: 1; color: #fff; max-width: none; margin: 0 0 1.25rem; }
.hero-banner .wordmark span { color: var(--brand); }
.hero-banner .tagline { font-size: clamp(1.25rem, 2.4vw, 1.65rem); color: #e3e9f5; margin: 0 0 1.5rem; }
.hero-banner .lede { margin: 0 auto; max-width: 44rem; color: #c3cde0; }
.hero-banner .btn-row { justify-content: center; margin-top: 2.5rem; }
.btn-lg { font-family: var(--brand-font); font-weight: 500; font-size: 1.2rem; padding: .95rem 1.9rem; border-radius: 8px; }
.hero-banner .btn-primary { background: var(--brand); }
.hero-banner .btn-primary:hover { background: #fff; color: var(--ink); }

/* Workflow section (manuscript card) */
.workflow { background: radial-gradient(1000px 420px at 85% 0%, var(--tint), transparent 60%), var(--white); }
.workflow .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.workflow h2 { max-width: 13em; }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .workflow .wrap { grid-template-columns: 1fr; } }

/* CTA box in the wordmark "Pro" blue */
.cta { background: var(--brand); color: #fff; }
.cta p { color: #fff; font-weight: 600; font-size: 1.2rem; }
.cta .mail { color: #fff; font-weight: 600; }
.cta .btn-light { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }

/* Tables in legal pages */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--surface); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.prose { max-width: 50rem; }
.legal-layout > * { min-width: 0; } @media (max-width: 860px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }
