/* AGUARA-PORTALHOME: styles for the custom landing and unified login (not vendor code). */

:root {
  --brand: #e63a00;
  --brand-strong: #cc3400;      /* text-bearing brand surfaces: 5.1:1 against --cream */
  --brand-deep: #a32a00;
  --brand-soft: oklch(0.965 0.022 55);
  --brand-ring: oklch(0.62 0.2 38 / 0.28);

  --ink: oklch(0.23 0.02 40);
  --ink-2: oklch(0.44 0.02 40);
  --bg: oklch(0.99 0.004 70);
  --surface: oklch(0.998 0.002 70);
  --cream: oklch(0.975 0.012 75);
  --line: oklch(0.9 0.012 55);
  --line-strong: oklch(0.8 0.015 50);
  --muted-bg: oklch(0.955 0.01 55);

  --danger-bg: oklch(0.96 0.03 30);
  --danger-ink: oklch(0.45 0.16 30);
  --danger-line: oklch(0.86 0.07 30);
  --ok-bg: oklch(0.96 0.04 150);
  --ok-ink: oklch(0.4 0.1 150);
  --ok-line: oklch(0.85 0.07 150);

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}

@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .section--ink :focus-visible, .cta-band :focus-visible, .footer :focus-visible { outline-color: var(--cream); }

.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;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 16px;
}
.eyebrow--light { color: var(--cream); opacity: 0.9; }
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 18ch; text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin-bottom: 6px; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 58ch; margin-top: 20px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--solid { background: var(--brand-strong); color: var(--cream); }
.btn--solid:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--cream); color: var(--brand-deep); }
.btn--light:hover { background: oklch(0.93 0.03 70); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: oklch(0.975 0.012 75 / 0.7); }
.btn--outline-light:hover { border-color: var(--cream); background: oklch(0.975 0.012 75 / 0.1); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: oklch(0.32 0.02 40); }

.text-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand-strong); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--brand-deep); }
.text-link--light { color: var(--cream); }
.text-link--light:hover { color: var(--cream); text-decoration-thickness: 2.5px; }
.text-link--muted { color: var(--ink-2); font-weight: 500; }
.text-link--sm { font-size: 0.875rem; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav__brand img { height: 36px; width: auto; object-fit: contain; }
.nav__links { display: none; gap: 28px; margin-inline: auto; }
.nav__links a { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 8px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}
@media (max-width: 380px) {
  .nav__brand img { height: 30px; }
  .nav__cta .btn--sm { padding: 0 10px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--brand-strong); color: var(--cream); overflow: hidden; }
.hero__grid {
  display: grid; gap: 48px; align-items: center;
  padding-block: clamp(56px, 9vw, 112px);
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 1; letter-spacing: -0.03em;
  max-width: 12ch; text-wrap: balance;
}
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 46ch; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__art { max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero__art { justify-self: end; }
}

.route-map__blocks rect { fill: oklch(0.975 0.012 75 / 0.1); }
.route-map__path {
  fill: none; stroke: var(--cream); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2 14;
}
.route-map__pin--start circle:first-child { fill: var(--cream); }
.route-map__pin--start .route-map__dot { fill: var(--brand-strong); }
.route-map__pin--end path { fill: var(--ink); }
.route-map__pin--end .route-map__dot { fill: var(--cream); }
.route-map__rider circle { fill: var(--ink); stroke: var(--cream); stroke-width: 3; }
.route-map__glyph { fill: none; stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .route-map__path { animation: route-flow 1.4s linear infinite; }
  .route-map__rider { animation: rider-in 900ms var(--ease-out) both 200ms; }
}
@keyframes route-flow { to { stroke-dashoffset: -32; } }
@keyframes rider-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tint { background: var(--brand-soft); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .lead, .section--ink p { color: oklch(0.975 0.012 75 / 0.82); }
.section--ink .h2, .section--ink .h3 { color: var(--cream); }

.split { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .split__head { position: sticky; top: 108px; }
  .split--reverse { grid-template-columns: 6fr 5fr; }
  .split--reverse .split__head { order: 2; }
}

.kinds__item {
  display: grid; gap: 4px; padding: 22px 0;
  border-top: 1px solid var(--line);
}
.kinds__item:last-child { border-bottom: 1px solid var(--line); }
.kinds__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em;
}
.kinds__item:nth-child(odd) .kinds__name { color: var(--brand-strong); }
.kinds__note { color: var(--ink-2); }
@media (min-width: 600px) {
  .kinds__item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

.steps__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--line-strong);
}
.steps__item:first-child { border-top: 0; padding-top: 0; }
.steps__num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--brand-strong); }
.steps__item p { color: var(--ink-2); max-width: 52ch; }
.steps__item a { color: var(--brand-strong); font-weight: 600; text-underline-offset: 3px; }

.facts__item { padding: 28px 0; border-top: 1px solid oklch(0.975 0.012 75 / 0.16); }
.facts__item:first-child { border-top: 0; padding-top: 0; }

.coverage { display: grid; gap: 48px; }
@media (min-width: 900px) { .coverage { grid-template-columns: 7fr 5fr; align-items: end; gap: 80px; } }
.contact { display: grid; gap: 20px; }
.contact__row { display: grid; gap: 2px; }
.contact dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.contact dd { font-size: 1.125rem; overflow-wrap: anywhere; }
.contact a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--brand); }

.cta-band { background: var(--brand-strong); color: var(--cream); }
.cta-band__inner { padding-block: clamp(64px, 9vw, 104px); text-align: left; }
.cta-band__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 16ch; text-wrap: balance;
}
.cta-band__text { font-size: 1.15rem; margin-top: 16px; max-width: 48ch; }

.footer { background: var(--ink); color: oklch(0.975 0.012 75 / 0.78); font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { text-decoration: none; padding: 4px 0; }
.footer__links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Login ---------- */
.page-login { background: var(--bg); }
.auth { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(360px, 5fr) 7fr; } }

.auth__side {
  display: none; background: var(--brand-strong); color: var(--cream);
  padding: 48px; flex-direction: column; justify-content: space-between; gap: 48px;
}
@media (min-width: 960px) { .auth__side { display: flex; } }
.auth__logo { display: inline-flex; align-self: flex-start; }
.auth__logo img { height: 40px; width: auto; object-fit: contain; }
.auth__side .auth__logo { background: var(--cream); padding: 10px 14px; border-radius: var(--radius); }
.auth__side-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 14ch;
}
.auth__route { width: 100%; max-width: 320px; }
.auth__route path { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 12; }
.auth__route circle { fill: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .auth__route path { animation: route-flow 1.4s linear infinite; }
}

.auth__main { display: flex; flex-direction: column; align-items: center; padding: 20px var(--gutter) 32px; }
.auth__top { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.auth__top .auth__logo img { height: 34px; }
@media (min-width: 960px) {
  .auth__top { justify-content: flex-end; }
  .auth__logo--mobile { display: none; }
}

.auth__card {
  width: 100%; max-width: 460px; margin-block: auto; margin-top: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 1px 2px oklch(0.23 0.02 40 / 0.04), 0 12px 32px -12px oklch(0.23 0.02 40 / 0.12);
}
@media (min-width: 960px) { .auth__card { margin-top: auto; } }
.auth__title { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; }
.auth__subtitle { color: var(--ink-2); margin-top: 6px; }
.auth__foot { color: var(--ink-2); margin-top: 24px; text-align: center; font-size: 0.95rem; }

.segmented {
  position: relative; border: 0; margin: 24px 0 20px; padding: 4px; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  background: var(--muted-bg); border-radius: 14px;
}
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 6px 8px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; line-height: 1.2; color: var(--ink-2); cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.segmented label:hover { color: var(--ink); }
.segmented input:checked + label {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px oklch(0.23 0.02 40 / 0.14);
}
.segmented input:focus-visible + label { outline: 3px solid var(--brand-strong); outline-offset: 1px; }

.notices > * { margin-bottom: 16px; }
.notice { padding: 12px 14px; border-radius: var(--radius); font-size: 0.95rem; border: 1px solid; list-style: none; }
.notice li + li { margin-top: 4px; }
.notice--error { background: var(--danger-bg); color: var(--danger-ink); border-color: var(--danger-line); }
.notice--success { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); margin-bottom: 16px; }
.notice--info { background: var(--muted-bg); color: var(--ink); border-color: var(--line); }

.field { margin-bottom: 18px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__label { display: inline-block; font-weight: 600; font-size: 0.925rem; margin-bottom: 6px; }
.field__input {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field__input::placeholder { color: oklch(0.6 0.015 50); }
.field__input:hover { border-color: oklch(0.7 0.02 50); }
.field__input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 4px var(--brand-ring); }
.field__password { position: relative; }
.field__password .field__input { padding-right: 56px; }
.field__toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink-2);
}
.field__toggle:hover { color: var(--ink); background: var(--muted-bg); }
.field__toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field__toggle .eye-slash { display: none; }
.field__toggle[aria-pressed="true"] .eye-slash { display: inline; }

.captcha__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.captcha__image { display: flex; align-items: center; gap: 4px; }
.captcha__image img { height: 50px; width: auto; max-width: 150px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); }
.captcha__reload {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink-2);
}
.captcha__reload:hover { background: var(--muted-bg); color: var(--ink); }
.captcha__reload svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.captcha__reload.is-spinning svg { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 360px) { .captcha__row { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; cursor: pointer; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand-strong); }

.rider { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: 8px; }
.rider__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.rider__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--brand-strong); stroke-width: 3; stroke-linecap: round; }
.rider__text { color: var(--ink-2); max-width: 36ch; }
.rider__text strong { color: var(--ink); }

.dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg);
  width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px -16px oklch(0.23 0.02 40 / 0.35);
}
.dialog::backdrop { background: oklch(0.23 0.02 40 / 0.5); }
.dialog__body { padding: 28px; }
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.dialog__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.dialog__text { color: var(--ink-2); margin-bottom: 20px; }
.dialog__close {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink-2);
}
.dialog__close:hover { background: var(--muted-bg); color: var(--ink); }
.dialog__close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialog-in 220ms var(--ease-out); }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Toasts (session messages on pages without a #notices box) ---------- */
.toasts {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: 16px;
  display: grid; gap: 8px; justify-items: end; pointer-events: none;
}
.toasts .notice { pointer-events: auto; max-width: 420px; margin: 0; box-shadow: 0 12px 32px -12px oklch(0.23 0.02 40 / 0.3); }

.footer__links a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Document pages ---------- */
.doc__hero { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.doc__hero .wrap { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.doc__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 20ch; text-wrap: balance;
}
.doc__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; margin-top: 16px; }
.doc-updated { font-size: 0.9rem; color: var(--ink-2); margin-top: 16px; }
.doc-updated::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); margin-right: 8px; vertical-align: 1px;
}

.doc__layout { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 112px); }
.doc__toc { display: none !important; }
@media (min-width: 1100px) {
  .doc__layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
  .doc__layout.has-toc .doc__toc:not([hidden]) { display: block !important; position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; }
}
.doc__toc-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.doc__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc__toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 0.9rem; line-height: 1.35;
}
.doc__toc a:hover { color: var(--ink); }
.doc__toc a[aria-current="true"] { color: var(--brand-strong); border-left-color: var(--brand-strong); font-weight: 600; }

/* Long-form article */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1.1em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2; letter-spacing: -0.015em; margin: 2.2em 0 0.6em; scroll-margin-top: 96px; text-wrap: balance;
}
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 1.8em 0 0.5em; scroll-margin-top: 96px; }
.prose h4, .prose h5, .prose h6 { font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 0.4em; }
.prose h2 + h3 { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--brand-strong); font-weight: 700; }
.prose li > ul, .prose li > ol { margin: 0.4em 0 0.6em; }
.prose strong, .prose b { font-weight: 700; color: var(--ink); }
.prose a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--brand-deep); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { height: auto; border-radius: var(--radius); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose blockquote { border: 1px solid var(--line); background: var(--muted-bg); border-radius: var(--radius); padding: 16px 20px; }
.prose .doc-updated { margin: 0 0 2em; }

/* Defensive rules for legacy editor HTML */
.prose p:empty, .prose div:empty, .prose span:empty { display: none; }
.prose :is(p, span, li, div, font, strong, b, em, i, u, a, td)[style] {
  font-family: inherit !important; font-size: inherit !important; line-height: inherit !important;
  color: inherit !important; background: transparent !important;
}
.prose :is(h1, h2, h3, h4, h5, h6)[style] { font-family: var(--font-display) !important; color: inherit !important; background: transparent !important; }
.prose h1 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; margin: 2em 0 0.6em; }
.prose font { font: inherit; color: inherit; }
.prose [style*="margin-left"], .prose [style*="text-indent"] { margin-left: 0 !important; text-indent: 0 !important; }
.prose [align] { text-align: left; }

/* ---------- Contact page ---------- */
.contact-page { display: grid; gap: 56px; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 112px); }
@media (min-width: 900px) { .contact-page { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; } }
.contact-page__heading { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; margin-bottom: 24px; }
.contact-page__aside { margin-top: 32px; color: var(--ink-2); }
.contact-page__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form__pair { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form__pair { grid-template-columns: 1fr 1fr; } }
.field__textarea { min-height: 150px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.contact-page__form .btn { margin-top: 8px; }

/* NicosDev credit */
.footer__credit { flex-basis: 100%; margin: 0; padding-top: 16px; border-top: 1px solid oklch(0.975 0.012 75 / 0.12); font-size: 0.8rem; opacity: 0.7; }
.footer__credit a, .auth__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--cream); }
.auth__credit { margin: 12px 0 0; text-align: center; font-size: 0.8rem; opacity: 0.6; }
