/* DeFoor Innovations — shared stylesheet (home, projects, document library, document pages) */

:root {
  --bg: #040d15;
  --bg-2: #06111a;
  --surface: #0a1924;
  --surface-2: #0d1f2d;
  --line: #173041;
  --line-2: #21405a;
  --text: #f4f7fa;
  --text-2: #aebbc6;
  --muted: #7f8f9e;
  --accent: #0b7bff;
  --accent-btn: #0a6cfe;
  --accent-bright: #2f8fff;
  --accent-soft: rgba(11, 123, 255, .14);
  --tag-bg: #0f2a44;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1380px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-underline-offset: 3px; }
a:hover { color: #6fb2ff; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-sprite { display: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 600 12.5px/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 14px;
}
.eyebrow.ruled::before { content: ""; width: 14px; height: 9px; flex: none; border-left: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 13, 21, .9);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: auto; height: 40px; }
.brand-name { display: block; font: 600 21px/1.1 var(--font-head); letter-spacing: -.01em; }
.brand-tag { display: block; font: 500 10px/1.2 var(--font-body); color: var(--text-2); letter-spacing: .12em; text-transform: uppercase; margin-top: 5px; white-space: nowrap; }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { position: relative; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 10px 14px; border-radius: var(--radius-sm); white-space: nowrap; }
@media (min-width: 1121px) and (max-width: 1379px) { .nav { gap: 0; } .nav a { padding: 10px 10px; } .nav .btn { margin-left: 8px; } .site-header .brand-tag { display: none; } }
.nav a:hover { color: var(--accent-bright); }
.nav a[aria-current="page"] { color: var(--accent-bright); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent-bright); border-radius: 2px; }
.nav .btn { margin-left: 14px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 14px; font: 600 14px var(--font-body); cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 16px; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 24px; bottom: 6px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 480px) { .brand-tag { display: none; } .brand-name { font-size: 19px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font-body); text-decoration: none;
  padding: 14px 24px; border-radius: 6px; border: 1.5px solid transparent; min-height: 48px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: #2a83ff; color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent-bright); background: rgba(4, 13, 21, .4); }
.btn-outline:hover { background: var(--accent-soft); color: #8cc4ff; }
.nav .btn { padding: 11px 18px; min-height: 42px; font-size: 14px; white-space: nowrap; flex: none; }
.btn svg { flex: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* ---------- Hero ---------- */
/* The portrait is the mockup's own graphic (handwriting included), shown at its own aspect ratio. */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { padding: 48px 0 8px; max-width: 640px; }
.hero h1 { font-size: clamp(36px, 7.4vw, 60px); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.capabilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.capabilities li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13.5px; line-height: 1.3; color: var(--text); }
.capabilities img { height: 31px; width: auto; }

.hero-media { position: relative; aspect-ratio: 586 / 402; width: 100%; max-width: 820px; margin: 8px auto 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(4, 13, 21, 0) 6%, rgba(4, 13, 21, 0) 92%, var(--bg) 100%),
              linear-gradient(90deg, var(--bg) 0%, rgba(4, 13, 21, 0) 3%, rgba(4, 13, 21, 0) 97%, var(--bg) 100%); }

@media (min-width: 1200px) {
  .hero { min-height: clamp(560px, 41.7vw, 720px); }
  .hero-copy { padding: clamp(48px, 4.6vw, 80px) 0 52px; max-width: min(600px, 41vw); }
  .hero h1 { font-size: clamp(42px, 3.6vw, 58px); }
  .hero-media { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; margin: 0; }
  .hero-media::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(4, 13, 21, 0) 3%), linear-gradient(0deg, var(--bg) 0%, rgba(4, 13, 21, 0) 5%); }
}
@media (max-width: 560px) {
  .capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 700; margin: 0; }
.section-head .aside { color: var(--text-2); font-size: 15px; max-width: 360px; margin: 0; }
.section-head .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; font-size: 15px; }
.section-head .more svg { width: 16px; height: 16px; }

/* Latest blog posts (front page, under the hero) */
.latest { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.latest-head .eyebrow { margin: 0; }
.latest-head .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; font-size: 15px; }
.latest-head .more svg { width: 16px; height: 16px; }
.latest-list { display: grid; gap: 16px; }
@media (min-width: 860px) { .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.latest-post { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 20px; }
.latest-post:hover { border-color: var(--line-2); }
.latest-date { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.latest-post h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.latest-post h3 a { color: var(--text); text-decoration: none; }
.latest-post h3 a:hover { color: var(--accent-bright); }
.latest-post p:not(.latest-date) { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.latest-post .read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; align-self: flex-start; }
.latest-post .read svg { width: 16px; height: 16px; }

/* Project cards */
.projects { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 18px; transition: border-color .2s ease, transform .2s ease;
}
.project:hover { border-color: var(--line-2); transform: translateY(-2px); }
.project .shot { border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.project .shot img { width: 100%; height: auto; }
.project h3 { font-size: 19px; font-weight: 700; margin: 0 6px 8px; letter-spacing: -.01em; }
.project p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0 6px 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: auto 6px 0; padding: 0 28px 0 0; }
.tags li { font-size: 12.5px; color: #cfe1f3; background: var(--tag-bg); border: 1px solid #17385a; border-radius: 6px; padding: 5px 11px; }
.project .go { position: absolute; right: 14px; bottom: 16px; color: var(--accent-bright); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.project .go::after { content: ""; position: absolute; inset: 0; }
.project .go svg { width: 18px; height: 18px; }
.project:focus-within { border-color: var(--accent); }
.project .go:focus-visible { outline: none; }
.project .go:focus-visible::after { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: var(--radius); }

/* Click-to-enlarge images (sit above the card's stretched link) */
.shot.zoomable { position: relative; z-index: 2; }
.zoom { display: block; position: relative; cursor: zoom-in; }
.zoom img { width: 100%; height: auto; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(4, 13, 21, .85); color: var(--text); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 6px; opacity: 0; transition: opacity .15s ease; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 6, 10, .88); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; cursor: zoom-out; }
.lightbox-close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(4, 13, 21, .9); color: var(--text); font: 600 26px/1 var(--font-body); cursor: pointer; }
.lightbox-close:hover { border-color: var(--accent); }

/* Service cards */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .services { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.service { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px 24px; }
.service img { height: 43px; width: auto; margin: -3px 0 15px -3px; }
.service h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.005em; }
.service p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* About / experience */
.about { position: relative; overflow: hidden; }
.about .topo { position: absolute; inset: 0 auto 0 0; width: min(40%, 560px); background: url("/img/mockup/about-topo.png") left center / cover no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
.about .wrap { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .about .wrap { grid-template-columns: minmax(0, 1fr) 300px; padding-left: max(32px, 22%); gap: 48px; } }
.about .eyebrow { display: block; max-width: 34em; }
.about .eyebrow::before { content: ""; display: block; width: 44px; height: 1.5px; background: var(--accent); margin: 0 0 18px; }
@media (min-width: 960px) { .about .eyebrow { position: relative; } .about .eyebrow::before { position: absolute; left: -72px; top: .75em; margin: 0; } }
.about h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; margin-bottom: 18px; }
.about .body { color: var(--text); font-size: 17px; line-height: 1.6; max-width: 33em; }
.highlight { border-left: 2px solid var(--accent); padding: 2px 0 2px 20px; margin: 22px 0 0; }
.highlight p { color: var(--accent-bright); font: 600 clamp(17px, 1.6vw, 19px)/1.5 var(--font-body); margin: 0 0 10px; }
.highlight cite { font-style: normal; color: var(--text-2); font-size: 14px; }
.experience { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
@media (min-width: 960px) { .experience { border-left: 1px solid var(--line-2); padding-left: 30px; } }
@media (min-width: 560px) and (max-width: 959px) { .experience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.experience li { display: flex; align-items: center; gap: 16px; font-size: 17px; color: var(--text); }
.experience img { flex: none; width: 34px; height: 32px; object-fit: contain; }

/* Final CTA */
.cta { position: relative; overflow: hidden; padding: clamp(52px, 6vw, 80px) 0; background: #0b1724 url("/img/mockup/cta-mountains.jpg") center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(4, 13, 21, .55); }
@media (min-width: 860px) { .cta::before { background: none; } }
.cta .wrap { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.cta h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; margin-bottom: 14px; }
.cta p { color: var(--text-2); font-size: 17px; max-width: 34em; margin: 0; }
.cta p.eyebrow { color: var(--accent-bright); font-size: 12.5px; margin-bottom: 14px; }
.cta .reach { margin-top: 14px; font-size: 14.5px; color: var(--text-2); }
.cta .reach a { color: var(--text); font-weight: 500; text-decoration: none; }
.cta .reach a:hover { color: var(--accent-bright); }
.cta .btn { padding: 18px 30px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 36px; color: var(--muted); font-size: 14px; background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Inner pages (projects, documents) ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 90% -20%, rgba(11, 123, 255, .16), transparent 60%), var(--bg); }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); max-width: 22ch; }
.page-head .lede { color: var(--text-2); font-size: 18px; max-width: 46em; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.doc-head-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; margin-top: 18px; align-items: center; }
.tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #cfe1f3; background: var(--tag-bg); padding: 6px 10px; border-radius: 6px; }

.earlier { display: grid; gap: 16px; }
@media (min-width: 760px) { .earlier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .earlier { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.earlier article { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.earlier .tag { margin-bottom: 14px; }
.earlier h3 { font-size: 19px; font-weight: 700; }
.earlier p { color: var(--text-2); font-size: 15px; margin: 0; }
.detail { display: grid; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.detail:last-child { border-bottom: 0; }
@media (min-width: 900px) { .detail { grid-template-columns: 420px minmax(0, 1fr); gap: 44px; align-items: start; } }
.detail .shot { border-radius: 10px; overflow: hidden; }
.detail .shot img { width: 100%; height: auto; }
.detail h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.detail p { color: var(--text-2); font-size: 16.5px; }
.detail ul:not(.tags) { color: var(--text-2); padding-left: 1.2em; margin: 0 0 1em; }
.detail .tags { margin: 14px 0 0; padding: 0; }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 10px 18px; color: var(--text-2); font-size: 15.5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline b { color: var(--text); font-weight: 600; }

/* Documents list */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.doc-list a.doc { display: grid; gap: 4px; text-decoration: none; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .15s ease; }
.doc-list a.doc:hover { border-color: var(--accent); }
.doc-list .doc-title { font: 700 19px/1.3 var(--font-head); }
.doc-list .doc-sum { color: var(--text-2); font-size: 15.5px; }
.doc-list .doc-meta { color: var(--muted); font-size: 13.5px; }
.empty { color: var(--text-2); background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; }

/* Document page */
.doc-layout { display: grid; gap: 40px; padding: 48px 0 80px; }
@media (min-width: 1040px) { .doc-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
.toc { font-size: 14.5px; }
@media (min-width: 1040px) { .toc { position: sticky; top: 92px; align-self: start; } }
.toc h2 { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line-2); }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent-bright); }
.toc .actions { margin-top: 20px; display: grid; gap: 8px; }
.toc .actions a { display: block; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); font-weight: 600; color: var(--text); text-align: center; }
.toc .actions a:hover { border-color: var(--accent); }

.prose { max-width: 72ch; min-width: 0; font-size: 17px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; font-weight: 700; margin: 1.8em 0 .5em; scroll-margin-top: 92px; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 1.5em 0 .4em; scroll-margin-top: 92px; }
.prose h4 { font-size: 17px; margin: 1.3em 0 .3em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font-size: 18px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.prose code { font: 14.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head { background: none; border: 0; padding: 0 0 12pt; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose p, .prose li, .prose strong, h1, h2, h3 { color: #000; }
  a { color: #000; }
}
