:root {
  --navy: #0B1B2E; --navy-2: #12294A; --ink: #0F1B2D; --muted: #53627A; --line: #DFE5EE;
  --bg: #F6F8FB; --white: #FFFFFF; --accent: #F5C518; --accent-ink: #0B1B2E; --link: #1747C9; --ok: #2BB673;
  --mark-page: #0B1B2E; --mark-fold: #F5C518; --mark-m: #FFFFFF;
  --head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px; --shadow: 0 1px 2px rgba(11,27,46,.06), 0 8px 24px rgba(11,27,46,.06);
  color-scheme: light; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); letter-spacing: -0.02em; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(74rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }

/* Top bar */
.topbar { background: var(--navy); color: #C9D3E1; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #C9D3E1; }
.topbar .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); margin-right: .5rem; }

/* Sticky header */
.site-header { position: sticky; top: 0; z-index: 40; 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 .bar { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.logo .mark { width: 28px; height: 34px; flex: none; }
.logo .name { display: block; font-family: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em; }
.logo .sub { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.site-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: .25rem; }
.site-nav > a, .menu > summary { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem .8rem; border-radius: 8px; cursor: pointer; }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: .4rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: .38em; height: .38em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.menu[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.menu > summary:hover, .menu[open] > summary { background: var(--bg); }
.menu.current > summary { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 15.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; }
.menu-panel a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-size: .94rem; border-radius: 8px; }
.menu-panel a:hover { background: var(--bg); }
.menu-panel a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.header-cta, .button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.header-cta { font-weight: 600; font-size: .95rem; text-decoration: none; padding: .6rem 1.1rem; border-radius: 8px; flex: none; }
.header-cta:hover, .button.primary:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(245,197,24,.35); }
.nav-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 600; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .85rem; cursor: pointer; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; border-radius: 8px; transition: transform .15s, box-shadow .15s, background .15s; }
.button.secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button.secondary:hover { background: var(--navy); color: var(--white); }
.button.ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: transparent; }
.button.ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* HERO */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11,27,46,.96) 0%, rgba(11,27,46,.86) 45%, rgba(11,27,46,.55) 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.hero p { color: #C9D3E1; font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 36rem; margin: 1.5rem 0 0; }
.hero .actions { margin-top: 2.25rem; }
.doc-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 1.4rem 1.5rem; font-size: .92rem; }
.doc-card .top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.doc-card .top b { font-family: var(--head); font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.pill.ok { background: rgba(43,182,115,.16); color: #7CE0B0; border: 1px solid rgba(43,182,115,.4); }
.pill.ok::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ok); }
.doc-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; margin: 1rem 0; }
.doc-card dt { color: #93A3BA; font-size: .76rem; }
.doc-card dd { margin: .1rem 0 0; font-weight: 600; color: var(--white); }
.doc-card .checks { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: .5rem; }
.doc-card .checks li { display: flex; gap: .6rem; align-items: center; color: #D6DEEA; }
.doc-card .checks svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.doc-card .bar-track { height: 6px; background: rgba(255,255,255,.12); border-radius: 99px; margin-top: 1rem; overflow: hidden; }
.doc-card .bar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #FFE27A); }
.doc-card .bar-label { display: flex; justify-content: space-between; color: #93A3BA; font-size: .76rem; margin-top: .4rem; }

/* Trust / standards strip */
.standards { border-bottom: 1px solid var(--line); background: var(--white); }
.standards .wrap { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding-block: 1.6rem; }
.standards p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 13rem; line-height: 1.4; }
.standards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.standards li { display: flex; gap: .7rem; align-items: center; color: #5E6B80; filter: grayscale(1); opacity: .9; transition: opacity .15s, color .15s; }
.standards li:hover { opacity: 1; color: var(--ink); }
.standards svg { width: 30px; height: 30px; flex: none; }
.standards b { display: block; font-family: var(--head); font-size: .98rem; color: inherit; line-height: 1.2; }
.standards span { font-size: .78rem; }

/* Generic sections */
section.block { padding-block: clamp(4rem, 8vw, 6.5rem); }
section.block.alt { background: var(--bg); }
section.block + section.block:not(.alt) { border-top: 1px solid var(--line); }
.sec-head { max-width: 44rem; margin-bottom: 2.75rem; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--navy); background: #FFF5CC; border-radius: 6px; padding: .2rem .6rem; margin-bottom: .9rem; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; margin: 0 0 .75rem; }
h3 { font-weight: 600; font-size: 1.18rem; margin: 0 0 .4rem; line-height: 1.3; }
.intro { color: var(--muted); max-width: 42rem; margin: 0 0 2.5rem; font-size: 1.08rem; }
.sec-head .intro { margin-bottom: 0; }

/* Industries grid */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ind-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy); }
.ind-card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--navy); margin-bottom: 1.1rem; transition: background .18s; }
.ind-card:hover .icon { background: #FFF5CC; }
.ind-card svg { width: 28px; height: 28px; }
.ind-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.ind-card .more { display: inline-block; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--link); }

/* Services split */
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.svc-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); }
.svc-panel.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.svc-panel.dark h3 { color: var(--white); }
.svc-panel .tag { font-size: .82rem; color: var(--muted); }
.svc-panel.dark .tag { color: #93A3BA; }
.svc-panel h3 { font-size: 1.5rem; margin: .35rem 0 1.25rem; }
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.svc-panel.dark .checklist li { border-color: rgba(255,255,255,.12); }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--ok); }
.svc-panel.dark .checklist svg { color: var(--accent); }
.checklist b { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: .94rem; }
.svc-panel.dark .checklist span { color: #A9B6C9; }
.svc-panel.dark .arrow-link { color: var(--accent); }

/* Case study banner */
.case-banner { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 18px; overflow: hidden; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.case-banner .img { min-height: 26rem; background-size: cover; background-position: center; position: relative; }
.case-banner .img span { position: absolute; left: 1rem; bottom: 1rem; font-size: .72rem; color: #fff; background: rgba(11,27,46,.6); padding: .2rem .5rem; border-radius: 4px; }
.case-banner .img span a { color: #fff; }
.case-banner .txt { padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; }
.case-banner h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.case-banner p { color: #C9D3E1; margin: 0 0 1.5rem; }
.case-banner .eyebrow { align-self: flex-start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.75rem; padding: 1.1rem 0; border-block: 1px solid rgba(255,255,255,.14); }
.stats b { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--white); }
.stats span { font-size: .82rem; color: #93A3BA; }
.case-banner .arrow-link { color: var(--accent); font-size: 1.05rem; }

/* Resource cards */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.res-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.res-card .thumb { aspect-ratio: 16 / 10; background: var(--bg) center / cover no-repeat; position: relative; }
.res-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.res-card .tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag-chip { font-size: .75rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag-chip.free { background: #FFF5CC; color: var(--navy); border-color: #F3DE8A; }
.res-card h3 { font-size: 1.1rem; margin: 0; }
.res-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.res-card .date { margin-top: auto; padding-top: .5rem; font-size: .82rem; color: var(--muted); }
.mini-doc { position: absolute; inset: 14% 22%; background: var(--white); border-radius: 4px; box-shadow: 0 10px 30px rgba(11,27,46,.18); padding: 10% 9%; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.mini-doc::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: var(--accent); }
.mini-doc i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 7px; }
.mini-doc i:first-child { background: var(--navy); width: 55%; height: 8px; margin-bottom: 10px; }
.mini-doc i:nth-child(3) { width: 80%; } .mini-doc i:nth-child(5) { width: 65%; }
.thumb.navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.thumb.yellow { background: linear-gradient(135deg, #FFE27A, var(--accent)); }

/* Inner-page head */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.page-head { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 3.75rem); background: linear-gradient(180deg, var(--white), var(--bg)); border-bottom: 1px solid var(--line); }
.control-block { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); margin: 0 0 clamp(2rem, 4vw, 2.75rem); overflow: hidden; max-width: 46rem; }
.control-block div { padding: .75rem 1rem; border-right: 1px solid var(--line); }
.control-block div:last-child { border-right: 0; }
.control-block dt { font-size: .75rem; color: var(--muted); }
.control-block dd { margin: .1rem 0 0; font-weight: 600; font-size: .95rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; font-weight: 700; margin: 0; max-width: 22ch; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 42rem; margin: 1.25rem 0 0; }
.actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }

/* Inner-page components */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.photo.wide img { aspect-ratio: 16 / 7; }
.photo.tall img { aspect-ratio: 4 / 5; }
.photo figcaption { font-size: .75rem; color: var(--muted); padding: .45rem .8rem; background: var(--white); }
.photo figcaption a { color: var(--muted); }
.photo-band { padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.summary { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.summary p { color: var(--muted); margin: 0 0 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.note { border-left: 4px solid var(--accent); background: #FFFBEA; border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; max-width: 46rem; font-size: .97rem; }
.note strong { color: var(--navy); }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .85rem 0; border-top: 1px solid var(--line); }
.spec th { font-weight: 600; width: 38%; padding-right: 1rem; }
.spec td { color: var(--muted); }
.for { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.steps li { padding: 1.5rem 1.3rem; counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--navy); color: var(--accent); font-family: var(--head); font-weight: 700; margin-bottom: .9rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list li { padding: .85rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.detail-list strong { color: var(--ink); font-weight: 600; }
.ruled { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ruled > li { border-top: 1px solid var(--line); padding: 1.3rem 0; display: grid; grid-template-columns: 10rem 1fr auto; gap: 1.5rem; align-items: baseline; }
.ruled .meta { color: var(--muted); font-size: .88rem; }
.ruled h3 { margin: 0 0 .3rem; }
.ruled h3 a { color: var(--ink); text-decoration: none; }
.ruled h3 a:hover { color: var(--link); }
.ruled p { margin: 0; color: var(--muted); font-size: .97rem; max-width: 42rem; }
.status { font-size: .78rem; font-weight: 600; white-space: nowrap; padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.status.live { border-color: #9FDDBF; background: #EAF8F1; color: #187A4E; }
.case { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.case + .case { margin-top: 2rem; }
.case-head { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; background: var(--bg); }
.case-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-body div { padding: 1.3rem 1.5rem; border-right: 1px solid var(--line); }
.case-body div:last-child { border-right: 0; }
.case-body h3 { font-size: .85rem; color: var(--navy); }
.case-body p, .case-body ul { margin: 0; color: var(--muted); font-size: .96rem; }
.case-body ul { padding-left: 1.1rem; }
.prose { max-width: 41rem; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.25rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
aside.side { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; font-size: .95rem; background: var(--bg); position: sticky; top: 6rem; }
aside.side h3 { font-size: .95rem; }
aside.side ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
aside.side li { padding: .45rem 0; border-top: 1px solid var(--line); }
.sop-figure { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.sheet { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem; font-size: .8rem; position: relative; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.sheet::after { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: var(--accent); }
.sheet .row { border: 1px solid var(--line); border-radius: 4px; padding: .45rem .6rem; margin-top: .45rem; display: flex; gap: .6rem; align-items: baseline; }
.sheet .row b { color: var(--navy); min-width: 1.4rem; }
.sheet .row.tall { min-height: 6.5rem; }
.sheet .head { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1.5px solid var(--navy); border-radius: 4px; }
.sheet .head span { padding: .3rem .45rem; border-right: 1px solid var(--line); }
.sheet .head span:last-child { border-right: 0; }
.callouts { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.callouts li { counter-increment: c; padding: .85rem 0 .85rem 2.75rem; border-top: 1px solid var(--line); position: relative; }
.callouts li::before { content: counter(c); position: absolute; left: 0; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--navy); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.callouts strong { display: block; }
.callouts span { color: var(--muted); font-size: .96rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; font-family: var(--head); }
.faq details p { color: var(--muted); max-width: 42rem; margin: .6rem 0 0; }
.about p { max-width: 40rem; margin: 0 0 1rem; }
.creds { max-width: 40rem; margin: 1.75rem 0 0; padding: 1.3rem 1.5rem; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.creds div + div { margin-top: .9rem; }
.creds dt { font-size: .8rem; color: var(--muted); }
.creds dd { margin: .1rem 0 0; font-weight: 600; font-size: .97rem; }
.email { display: inline-block; font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.4rem); letter-spacing: -0.02em; color: var(--navy); word-break: break-word; }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--navy); color: var(--white); border-radius: 18px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.cta-strip p { margin: 0; color: #C9D3E1; max-width: 36rem; font-size: 1.1rem; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; }

/* Footer */
.site-footer { background: var(--navy); color: #A9B6C9; padding-block: 4.5rem 2rem; font-size: .93rem; --mark-page: #FFFFFF; --mark-m: #0B1B2E; }
.site-footer .logo { color: var(--white); }
.site-footer .logo .sub { color: #93A3BA; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.6fr; gap: 2.25rem; }
.foot-grid p { margin: 1rem 0 0; max-width: 20rem; }
.foot-grid h2 { font-size: .92rem; color: var(--white); margin: 0 0 .8rem; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li + li { margin-top: .45rem; }
.foot-grid a { color: #A9B6C9; text-decoration: none; }
.foot-grid a:hover { color: var(--white); }
.newsletter form { display: flex; gap: .5rem; margin-top: .3rem; }
.newsletter input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; padding: .7rem .85rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); }
.newsletter input::placeholder { color: #7D8DA5; }
.newsletter button { font: inherit; font-weight: 600; font-size: .92rem; padding: .7rem 1rem; border-radius: 8px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.newsletter small { display: block; margin-top: .6rem; color: #7D8DA5; font-size: .8rem; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }
.foot-base a { color: #A9B6C9; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .site-nav.open { display: flex; }
  .menu > summary { padding: .85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .menu.current > summary { box-shadow: none; }
  .menu-panel { position: static; transform: none; border: 0; box-shadow: none; padding: .25rem 0 .5rem .5rem; min-width: 0; }
  .nav-cta { display: block; margin-top: 1rem; text-align: center; padding: .8rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .doc-card { max-width: 30rem; }
  .standards .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .standards p { max-width: none; }
  .standards ul { grid-template-columns: 1fr 1fr; }
  .ind-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .svc-split, .case-banner, .two-col, .split, .sop-figure { grid-template-columns: 1fr; }
  .case-banner .img { min-height: 16rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .ruled > li { grid-template-columns: 1fr; gap: .4rem; }
  .case-body { grid-template-columns: 1fr; }
  .case-body div { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-body div:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child, .newsletter { grid-column: 1 / -1; }
  aside.side { position: static; }
}
@media (max-width: 600px) {
  .topbar a { display: none; }
  .logo .sub { display: none; }
  .ind-grid, .res-grid, .steps, .standards ul { grid-template-columns: 1fr; }
  .control-block { grid-template-columns: 1fr 1fr 1fr; }
  .control-block div { padding: .6rem .7rem; }
  .stats { grid-template-columns: 1fr; }
  .doc-card dl { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .topbar, .site-header, .site-footer, .crumbs { display: none; } }

/* ===== Sample documents ===== */
.sample-note { max-width: 56rem; margin: 0 auto 1.5rem; background: #FFFBEA; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; font-size: .95rem; }
.sample-doc { max-width: 56rem; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3.25rem); font-size: .98rem; position: relative; }
.sample-doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 75%, var(--accent) 75% 100%); border-radius: 6px 6px 0 0; }
.doc-title { border-bottom: 2px solid var(--navy); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.doc-kicker { font-size: .8rem; color: var(--muted); font-weight: 600; }
.doc-h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .35rem 0 0; line-height: 1.15; }
.sample-doc h3 { font-size: 1.12rem; color: var(--navy); margin: 2rem 0 .7rem; padding: .45rem .75rem; background: var(--bg); border-left: 4px solid var(--navy); border-radius: 0 6px 6px 0; }
.sample-doc h4 { font-size: .95rem; margin: 1.25rem 0 .5rem; color: var(--ink); }
.sample-doc p, .sample-doc li { line-height: 1.6; }
.sample-doc .small { font-size: .85rem; color: var(--muted); }
.tw { overflow-x: auto; }
.ctrl, .dt { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .25rem 0 .5rem; }
.ctrl th, .ctrl td, .dt th, .dt td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.ctrl th { background: #E7F1FB; font-weight: 600; width: 18%; }
.dt thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .85rem; border-color: var(--navy); }
.dt tbody tr:nth-child(even) td { background: #FAFBFD; }
.dt.steps td:first-child { width: 3.5rem; text-align: center; font-weight: 700; font-family: var(--head); color: var(--navy); }
.dt.verify tbody td { background: #E5F4E4 !important; }
.dt.ifthen td:first-child { background: #F9ECE7 !important; font-weight: 600; width: 38%; }
.dt.ccp td:first-child { font-weight: 600; width: 30%; background: #E7F1FB !important; }
.dt.ccp tr:nth-child(2) td { background: #FFF5CC !important; }
.dt.sign td { height: 2.6rem; }
.sig { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.sig.yes { background: #FBEBEB; color: #A12C2C; }
.sig.no { background: #E5F4E4; color: #24703A; }
.callout { background: #EEF2F7; border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; padding: .8rem 1rem; }
.callout.warn { background: #FFF5CC; border-left-color: var(--accent); }
.flow-fig { margin: .5rem 0; }
.flow-fig .flow { width: 100%; height: auto; display: block; }
.flow-fig.inline { margin: 1rem 0 0; max-width: 46rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.flow-fig figcaption { font-size: .82rem; color: var(--muted); padding: .4rem .25rem 0; }

/* ===== Sample cards ===== */
.res-grid.two { grid-template-columns: repeat(2, 1fr); }
.res-card.static:hover { transform: none; }
.card-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: .75rem; font-size: .92rem; }

/* ===== Packages ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.pkg { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.pkg.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.pkg h3 { font-size: 1.25rem; }
.pkg-price { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--navy); margin: .25rem 0 0; line-height: 1.1; }
.pkg-price span { display: block; font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.pkg-time { font-size: .85rem; color: var(--muted); margin: .4rem 0 .9rem; }
.pkg > p:not(.pkg-price):not(.pkg-time) { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.pkg .checklist { flex: 1; }
.pkg .checklist li { padding: .5rem 0; }
.pkg .button { justify-content: center; }
@media (max-width: 1000px) { .pkg-grid { grid-template-columns: 1fr; max-width: 32rem; } .res-grid.two { grid-template-columns: 1fr; } }
.res-grid.two .thumb { aspect-ratio: 16 / 6; }

/* ===== About (company) ===== */
.about-lead { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600; line-height: 1.25; color: var(--navy); margin: 0 0 1rem; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.principles > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--navy); }
.principles .p-num { font-family: var(--head); font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: .1rem .5rem; font-size: .85rem; }
.principles h3 { margin: .9rem 0 .4rem; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }
.facts th { width: 40%; }
.leader { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); max-width: 60rem; box-shadow: var(--shadow); }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 2.4rem; }
.leader h3 { font-size: 1.5rem; margin: 0; }
.leader .role { color: var(--muted); font-weight: 600; margin: .2rem 0 1rem; }
.leader p { max-width: 42rem; }
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .leader { grid-template-columns: 1fr; } .avatar { width: 84px; height: 84px; font-size: 1.7rem; } }

/* ===== Motion ===== */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .rise { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.doc-card.rise { animation-name: rise-card; }
@keyframes rise-card { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }
.js .doc-card .bar-fill { width: 0; animation: fill 1.2s 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .doc-card .bar-fill { width: 100%; animation: none; }
}

/* ===== Product picker ===== */
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .intro { margin-inline: auto; }
.picker { max-width: 62rem; margin: 0 auto; }
.pick-opts { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.pick { font: inherit; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .5rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.pick .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--navy); transition: background .15s; }
.pick svg { width: 26px; height: 26px; }
.pick:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: var(--shadow); }
.pick[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.pick[aria-pressed="true"] .icon { background: var(--accent); color: var(--navy); }
.pick-panel { margin-top: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-height: 9rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.pick-empty { margin: 0; min-height: 5rem; display: grid; place-items: center; color: var(--muted); text-align: center; }
.pp-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); animation: rise .5s cubic-bezier(.2,.7,.2,1); }
.pp-grid h3 { font-size: 1.45rem; margin: .2rem 0 .6rem; }
.pp-grid p { color: var(--muted); margin: 0 0 1rem; }
.pp-label { font-size: .8rem; font-weight: 700; color: var(--navy); text-transform: none; }
.pp-list { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.pp-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.pp-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pp-list a:hover { color: var(--link); }
.pp-list small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.pp-price { font-family: var(--head); font-weight: 700; color: var(--navy); white-space: nowrap; }
.pp-coming { font-size: .88rem; background: #FFFBEA; border-left: 3px solid var(--accent); padding: .55rem .8rem; border-radius: 0 6px 6px 0; }

/* ===== Home tiles ===== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile { position: relative; display: block; padding: 2rem 1.75rem 2.25rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--navy); }
.tile:hover::after { transform: scaleX(1); }
.tile .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.25rem; }
.tile svg { width: 28px; height: 28px; }
.tile h3 { font-size: 1.35rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; max-width: 22rem; }
.tile-go { position: absolute; top: 1.75rem; right: 1.75rem; font-size: 1.4rem; color: var(--navy); transition: transform .2s; }
.tile:hover .tile-go { transform: translateX(5px); }
@media (max-width: 1000px) { .pick-opts { grid-template-columns: repeat(3, 1fr); } .pp-grid { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pick-opts { grid-template-columns: repeat(2, 1fr); } }

/* ===== Project request form ===== */
.pform { max-width: 56rem; margin: 0 auto; }
.pform fieldset { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: clamp(1.25rem, 3vw, 2rem); margin: 0 0 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.pform legend { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--ink); padding: 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.pform .sn { width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--navy); color: var(--accent); display: inline-grid; place-items: center; font-size: .95rem; }
.pform fieldset.cat { border: 2px solid var(--accent); background: #FFFDF3; animation: rise .45s cubic-bezier(.2,.7,.2,1); }
.pform fieldset.cat legend { font-size: 1.05rem; }
.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; }
.type-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; font-weight: 600; font-size: .9rem; transition: border-color .15s, background .15s, transform .15s; }
.type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-opt .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--bg); color: var(--navy); display: grid; place-items: center; }
.type-opt svg { width: 25px; height: 25px; }
.type-opt:hover { border-color: var(--navy); transform: translateY(-2px); }
.type-opt:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.type-opt:has(input:checked) .icon { background: var(--accent); }
.type-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.f { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.fl { font-weight: 600; font-size: .92rem; color: var(--ink); }
.f small { color: var(--muted); font-size: .8rem; }
.pform input[type=text], .pform input[type=email], .pform input[type=tel], .pform input[type=url], .pform input[type=date], .pform select, .pform textarea { font: inherit; font-size: .97rem; padding: .7rem .8rem; border: 1px solid #C9D3E1; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245,197,24,.45); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--navy); }
.opt:has(input:checked) { background: #E7F1FB; border-color: var(--navy); font-weight: 600; }
.opt input { accent-color: var(--navy); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fsubmit { display: grid; gap: .75rem; justify-items: start; padding: .5rem .25rem; }
.fsubmit .button { font-size: 1.05rem; padding: 1rem 1.6rem; border: 0; cursor: pointer; }
.fsubmit .button:disabled { opacity: .6; cursor: wait; }
.fsubmit .small { color: var(--muted); font-size: .85rem; margin: 0; }
.fstatus { margin: 0; font-weight: 600; }
.fstatus.err { color: #A12C2C; }
.fthanks { max-width: 40rem; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(2rem, 5vw, 3.5rem); animation: rise .6s cubic-bezier(.2,.7,.2,1); }
.fthanks h2 { margin: 1rem 0 .5rem; }
.fthanks p { color: var(--muted); }
@media (max-width: 1000px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .type-grid { grid-template-columns: repeat(2, 1fr); } .fgrid { grid-template-columns: 1fr; } }
.newsletter small.ok { color: #7CE0B0; font-weight: 600; }
.newsletter small.err { color: #FFB4A8; font-weight: 600; }
.newsletter button:disabled { opacity: .75; cursor: default; }

/* ===== Dynamic blog ===== */
.blog-empty { color: var(--muted); padding: 2rem 0; }
.post-wrap { display: grid; grid-template-columns: minmax(0, 2fr) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: .5rem; }
.post .back { font-size: .92rem; }
.post .back::after { content: none; }
.post .back::before { content: "←"; }
.post-title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; margin: 1rem 0 .6rem; }
.post-meta { color: var(--muted); font-size: .92rem; margin: 0 0 1.25rem; }
.post-lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.prose blockquote { margin: 1.5rem 0; padding: .6rem 1rem; border-left: 4px solid var(--accent); background: #FFFBEA; border-radius: 0 8px 8px 0; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }

/* Admin dot + panel */
.admin-dot { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 12px; height: 12px; border-radius: 50%; background: #D7263D; border: 0; padding: 0; cursor: pointer; z-index: 60; opacity: .85; box-shadow: 0 0 0 3px rgba(215,38,61,.15); }
.admin-dot:hover { opacity: 1; transform: scale(1.2); }
.admin-modal { position: fixed; inset: 0; z-index: 100; background: rgba(11,27,46,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; }
.admin-modal[hidden] { display: none; }
.admin-box { position: relative; background: var(--white); border-radius: 16px; width: min(56rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.admin-x { position: absolute; top: .6rem; right: .8rem; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); }
.admin-box h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.admin-login { display: grid; gap: .6rem; max-width: 22rem; }
.admin-login input, .admin-editor input:not([type=checkbox]), .admin-editor textarea { font: inherit; font-size: .97rem; padding: .7rem .8rem; border: 1px solid #C9D3E1; border-radius: 8px; width: 100%; }
.admin-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; }
.admin-login .button { justify-self: start; border: 0; cursor: pointer; }
.admin-msg { color: #A12C2C; font-weight: 600; margin: .5rem 0 0; }
.admin-msg.ok { color: #187A4E; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-top .button { padding: .55rem 1rem; font-size: .92rem; cursor: pointer; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .5rem; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .8rem; color: var(--muted); }
.admin-acts { white-space: nowrap; text-align: right; }
.admin-acts button { font: inherit; font-size: .85rem; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .3rem .7rem; margin-left: .35rem; cursor: pointer; color: var(--navy); }
.admin-acts button[data-act=del] { color: #A12C2C; }
.admin-acts button:hover { border-color: currentColor; }
.admin-editor .fgrid { margin-bottom: 1rem; }
.admin-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; position: sticky; bottom: -2rem; background: var(--white); padding: .75rem 0; border-top: 1px solid var(--line); }
.admin-bar .button { padding: .6rem 1.1rem; font-size: .95rem; cursor: pointer; }
.admin-bar .admin-msg { margin: 0; }
.admin-preview { border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
@media (max-width: 1000px) { .post-wrap { grid-template-columns: 1fr; } }
