/* Shared website finish. Account, administration and reader styles follow this file. */
:root {
  --navy-950: #101f2d;
  --navy-900: #182b40;
  --navy-800: #203b4d;
  --navy-700: #314e60;
  --navy-600: #436075;
  --gold: #82662b;
  --gold-2: #d9c292;
  --gold-soft: #f3eddf;
  --ink: #182b40;
  --text: #485862;
  --muted: #657078;
  --line: #e2e3da;
  --tint: #eeeee6;
  --paper: #f6f4ee;
  --site-header-offset: 96px;
  --radius: 10px;
  --shadow: 0 6px 22px #192c3f07;
}
body {
  background: var(--paper);
  font-size: 15px;
  line-height: 1.8;
}
h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h3 {
  font-weight: 600;
  line-height: 1.35;
}
.lead {
  font-size: 1.06rem;
  line-height: 1.85;
}
.kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  line-height: 1.6;
}
.rule {
  height: 2px;
  width: 48px;
  background: var(--gold);
  border-radius: 0;
}
a {
  text-underline-offset: 4px;
}
p a:not(.btn),
.doc li a,
.hint a {
  text-decoration: underline;
  text-decoration-color: #b8b09e;
}
a:hover {
  color: #70551d;
}
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 16px;
  transform: translateY(-160%);
  z-index: 200;
  background: white;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 5px;
}
.skip-link:focus {
  transform: none;
}

/* Navigation and footer share the same clear hierarchy on every page. */
.topbar {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px #192c3f04;
}
.topbar .brand b {
  color: var(--ink);
}
.topbar .brand small {
  color: var(--gold);
}
.mainnav {
  border-top-color: var(--line);
}
.mainnav > a,
.nav-account > a:not(.btn) {
  color: #536370;
  font-size: 13px;
  border-radius: 4px;
}
.mainnav > a:hover,
.nav-account > a:not(.btn):hover,
.mainnav a.active {
  color: var(--ink);
  background: #f1eee5;
}
.mainnav a.active {
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 4px 4px 0 0;
}
.menu span {
  background: var(--ink);
}
.langpick > button {
  color: var(--text);
  border-color: var(--line);
  border-radius: 5px;
}
.langpick > button:hover {
  color: var(--ink);
  border-color: #a69a7d;
}
.langmenu {
  background: #fffefa;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px #192c3f12;
}
.langmenu a {
  color: var(--text);
  border-radius: 4px;
}
.langmenu a:hover {
  background: #f1eee5;
  color: var(--ink);
}
.langmenu a.active {
  color: #70551d;
  background: var(--gold-soft);
  box-shadow: none;
}
.footer {
  background: var(--navy-950);
  padding-top: 60px;
  color: #b1bdc5;
  font-size: 13px;
}
.footer .brand b {
  font-size: 20px;
}
.footer .brand small {
  color: var(--gold-2);
}
.footgrid {
  gap: 36px;
}
.footgrid > div > b {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7ded0;
  margin-bottom: 20px;
}
.footgrid a:not(.brand):not(.btn),
.footbase a {
  color: #c1cbd1;
}
.footbrand .btn {
  margin: 0 8px 10px 0;
}
.footbase {
  font-size: 11px;
  line-height: 1.9;
}

/* Quiet buttons, borders and form controls; strong colour marks the main action. */
.btn {
  border-radius: 5px;
  padding: 11px 19px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 42px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  transform: none;
  box-shadow: none;
  background: var(--navy-700);
}
.btn.gold {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.btn.gold:hover {
  background: var(--navy-700);
  color: #fff;
  border-color: var(--navy-700);
}
.btn.light {
  color: var(--navy-800);
  border-color: #dce1da;
}
.btn.light:hover {
  background: #faf8f1;
  border-color: #a69a7d;
}
.btn.ghost {
  border-color: #a99a76;
}
.btn.ghost:hover {
  background: #82662b12;
  color: inherit;
}
.btn.sm {
  border-radius: 5px;
  padding: 8px 13px;
  font-size: 12px;
  min-height: 36px;
}
.btn[disabled]:hover {
  background: inherit;
}
.btn.gold[disabled]:hover {
  background: var(--navy-800);
}
.panel {
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 32px;
}
label {
  font-size: 12px;
  line-height: 1.65;
  font-weight: 500;
}
input,
select,
textarea {
  border-radius: 5px;
  border-color: #dce1da;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #a69a7d;
  box-shadow: 0 0 0 3px #82662b10;
}
textarea {
  min-height: 150px;
}
.form {
  gap: 21px;
}
.form > .btn {
  justify-self: start;
}
.form [data-msg]:empty {
  display: none;
}
.hint {
  font-size: 12px;
  line-height: 1.8;
}
.msg {
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.8;
}

/* Page introductions and the home-page masthead. */
.hero {
  background: var(--paper);
  color: var(--text);
  padding: 78px 0 66px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  display: none;
}
.hero .print {
  opacity: 0.035;
  right: -30px;
  top: 40px;
}
.hero h1 {
  color: var(--ink);
  max-width: 940px;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
}
.hero h1 em {
  color: var(--gold);
}
.hero .lead {
  color: var(--text);
  font-size: 1.12rem;
  margin: 26px 0 30px;
}
.hero .eyebrow {
  background: #fffefa;
  color: var(--gold);
  border-color: #ddd4be;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 26px;
  padding: 7px 12px 7px 8px;
}
.hero .eyebrow span {
  background: var(--gold-soft);
  color: #70551d;
  border-radius: 3px;
  font-size: 10px;
}
.hero-stats {
  gap: 26px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid #dcd7ca;
}
.hero-stats div {
  color: var(--ink);
  font-weight: 600;
}
.hero-stats small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.13em;
}
.hero-shot {
  margin-top: 48px;
}
.page-hero {
  background: var(--paper);
  color: var(--text);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
}
.page-hero.slim {
  padding: 48px 0 42px;
}
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.3rem);
}
.page-hero .lead {
  color: var(--text);
  margin: 18px 0 0;
}
.home-jump {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.home-jump a {
  color: #626452;
  font-size: 12px;
}
.home-jump a:hover {
  color: var(--gold);
  text-decoration: underline;
}
section.block {
  padding: 76px 0;
  background: #fffefa;
}
section.block.tint {
  background: var(--paper);
}
section.block.dark {
  background: var(--navy-900);
  color: #c3cdd4;
}
section.block.dark .kicker {
  color: var(--gold-2);
}
section.block.dark .lead {
  color: #c3cdd4;
}
.split {
  gap: 48px;
}
.card {
  padding: 28px;
  box-shadow: none;
  transition: border-color 0.15s;
}
.card:hover {
  transform: none;
  box-shadow: none;
  border-color: #c8bea7;
}
.card h3 {
  font-family: Playfair, Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}
.capability-grid .card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.card p {
  font-size: 14px;
  line-height: 1.85;
}
.card .btns {
  margin-top: 20px;
}
.dark .card {
  background: #ffffff04;
  border-color: #ffffff20;
}
.dark .card p {
  color: #c3cdd4;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}
.frame {
  border-color: #d8dacf;
  border-radius: 8px;
  box-shadow: 0 8px 30px #192c3f0d;
  margin-inline: 0;
}
.frame .chrome {
  background: #f2f1ea;
}
.gallery figure img,
.scene-art {
  box-shadow: 0 5px 22px #192c3f0c;
  border-radius: 8px;
}
.gallery figure:hover img {
  transform: none;
}
.gallery figcaption {
  font-size: 12px;
  line-height: 1.8;
  padding: 4px 2px;
}
.gallery figcaption b {
  font-size: 14px;
  margin-bottom: 4px;
}
.camera-card,
.detection-image {
  border-radius: 8px;
}
.camera-copy h3 {
  font-size: 21px;
}
.camera-copy p {
  font-size: 13px;
  line-height: 1.85;
}
.say {
  box-shadow: none;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.65;
}
.say.sys {
  background: var(--navy-900);
  border-width: 1px;
}
.say.hq {
  background: #eef2f3;
  border-color: #dce2e3;
}
.case {
  box-shadow: 0 4px 18px #192c3f04;
}
.case .body {
  padding: 34px;
}
.case .media {
  background: #eeeee6;
  padding: 28px;
}
.case .tag {
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.6;
  color: #70551d;
}
.case .facts b {
  font-size: 10px;
  color: #70551d;
}
.case .steps li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.case .steps li::before {
  border-radius: 4px;
}
.notice {
  border-left-width: 2px;
  border-radius: 0 5px 5px 0;
  background: #f5f0e3;
  color: #5a513c;
  font-size: 13px;
  line-height: 1.85;
}
.tabbar {
  gap: 4px 22px;
  border-bottom: 1px solid var(--line);
}
.tabbar button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 13px 3px;
  margin-bottom: -1px;
  font-size: 13px;
  line-height: 1.5;
}
.tabbar button.active {
  background: transparent;
  border-bottom-color: var(--gold);
  color: var(--ink);
}
.cta {
  background: #eeeee6;
  border: 1px solid #dcdacb;
  border-radius: 10px;
  padding: 40px;
  gap: 28px;
}
.cta h2 {
  color: var(--ink);
}
.cta p {
  color: var(--text);
}
.cta .btn {
  background: var(--navy-800);
}
.price-card {
  background: var(--navy-900);
  border-radius: 10px;
  padding: 38px;
}
.price-card .from {
  color: var(--gold-2);
}
.tier {
  padding: 28px;
}
.tier.featured {
  border-color: #aa9260;
  box-shadow: inset 0 3px 0 #aa9260;
}
.tier h3 {
  font:
    600 24px/1.3 Playfair,
    Georgia,
    serif;
}
.tier .btn {
  margin-top: 14px;
}
.strip div {
  padding: 26px;
}
.strip b,
.calc-big b {
  font-weight: 600;
}

/* Tables and sizing tools keep long values within their own scroll area. */
.table-wrap {
  border-radius: 8px;
}
th {
  background: #f1f1e9;
  color: #586963;
  font-size: 10px;
  font-weight: 500;
  padding: 15px 18px;
  line-height: 1.65;
}
td {
  padding: 15px 18px;
  font-size: 13px;
  line-height: 1.8;
}
.table-wrap table {
  min-width: 560px;
}
.calc-inputs {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 10px;
  background: #fff;
}
.calc-head output {
  font-size: 25px;
  font-weight: 600;
}
.calc-head label {
  font-size: 13px;
}
.calc-facts li {
  border-radius: 5px;
  font-size: 12px;
}
.calc td[data-out] {
  font-size: 15px;
}
.calc input[type="range"] {
  accent-color: var(--gold);
  min-height: 28px;
}

/* Sign-in and registration sit within a compact, consistent account frame. */
.auth {
  width: calc(100% - 48px);
  max-width: 1152px;
  margin: 48px auto 72px;
  min-height: 590px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.auth .side {
  background: #eeeee6;
  color: var(--text);
  padding: 48px 42px;
  border-inline-end: 1px solid var(--line);
}
.auth .side h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}
.auth .side p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
}
.auth .side .ticks {
  font-size: 13px;
}
.auth .main {
  background: #fff;
  padding: 44px;
}
.auth .panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  max-width: 440px;
}
.auth .panel h2 {
  font-size: 28px;
  margin-bottom: 4px;
}
.auth .form > .btn {
  width: 100%;
  justify-content: center;
}
.auth .hint {
  margin-bottom: 0;
}

/* Documentation and the authenticated book use the same reading surface. */
.docs {
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 64px;
}
.docnav {
  padding-inline-end: 20px;
  border-inline-end: 1px solid var(--line);
  scrollbar-width: thin;
}
.docnav-group b {
  color: var(--gold);
  font-size: 10px;
  line-height: 1.7;
}
.docnav-group a {
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  padding: 7px 10px;
}
.docnav-group a.active {
  background: var(--gold-soft);
  color: #70551d;
}
.doc {
  min-width: 0;
  font-size: 14px;
  line-height: 1.9;
}
.doc h2 {
  font-size: 28px;
  margin-top: 36px;
}
.doc h3 {
  font-size: 22px;
  margin-top: 28px;
}
.doc pre {
  border-radius: 6px;
  background: var(--navy-900);
  font-size: 12px;
  padding: 22px;
}
.doc code {
  overflow-wrap: anywhere;
}
.doc pre code {
  overflow-wrap: normal;
}
.doc table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.doc blockquote {
  background: #f5f0e3;
  border-color: var(--gold);
}
.doc-prevnext {
  font-size: 12px;
  gap: 20px;
}
@media screen {
  .user-guide .book-heading,
  .user-guide .book-sidebar {
    border-color: var(--line);
  }
  .user-guide .book-chapter,
  .user-guide .book-overview {
    background: #fffefa;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
  }
  .user-guide .book-contents a,
  .user-guide .book-nav a {
    border-radius: 5px;
  }
}

/* Breakpoints preserve touch targets and natural reading order. */
@media (max-width: 1100px) {
  .split {
    gap: 32px;
  }
  .auth .main,
  .auth .side {
    padding: 34px;
  }
}
@media (max-width: 900px) {
  .topbar .mainnav.open {
    background: #fffefa;
  }
  .mainnav > a,
  .nav-account > a:not(.btn) {
    font-size: 15px;
  }
  .langpick > button {
    min-height: 42px;
  }
  .hero {
    padding-top: 54px;
  }
  .hero .print {
    width: 420px;
    right: -120px;
  }
}
@media (max-width: 860px) {
  section.block {
    padding: 54px 0;
  }
  .page-hero {
    padding: 44px 0 36px;
  }
  .hero-stats {
    gap: 28px 20px;
  }
  .auth {
    grid-template-columns: minmax(0, 1fr);
    margin: 28px auto 48px;
  }
  .auth .side {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding: 30px;
  }
  .auth .side p {
    max-width: 100%;
    margin-bottom: 0;
  }
  .auth .side h1 {
    font-size: 32px;
  }
  .auth .main {
    padding: 30px;
  }
  .auth .panel {
    max-width: none;
  }
  .docs {
    gap: 28px;
  }
  .docnav {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    padding-inline-end: 0;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 14px;
  }
  .hero {
    padding: 42px 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .lead {
    font-size: 15px;
  }
  .hero .eyebrow {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .page-hero.slim {
    padding: 36px 0 30px;
  }
  .lead {
    font-size: 15px;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }
  .card,
  .panel,
  .capability-grid .card {
    padding: 24px;
  }
  .case .body,
  .case .media {
    padding: 22px;
  }
  .case h2 {
    font-size: 25px;
  }
  .cta,
  .price-card {
    padding: 26px 22px;
  }
  .auth {
    width: calc(100% - 32px);
    margin-top: 22px;
  }
  .auth .main,
  .auth .side {
    padding: 26px 22px;
  }
  .auth .side h1 {
    font-size: 29px;
  }
  .calc-inputs {
    padding: 22px;
  }
  .calc-facts li {
    flex-wrap: wrap;
  }
  .footer {
    padding-top: 44px;
  }
  .footgrid {
    gap: 26px;
  }
  .footbase {
    margin-top: 30px;
  }
  .user-guide .book-chapter,
  .user-guide .book-overview {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
  }
  .skip-link {
    display: none;
  }
}

/* Keep reading controls below the full desktop navigation. */
.calc-inputs,
.docnav {
  top: var(--site-header-offset);
}
@media screen and (min-width: 901px) {
  .user-guide .book-sidebar {
    top: var(--site-header-offset);
    max-height: calc(100dvh - var(--site-header-offset) - 22px);
  }
}
@media (min-width: 901px) and (max-width: 1319px) {
  :root {
    --site-header-offset: 160px;
  }
}
@media screen {
  .user-guide .book-sidebar a:hover,
  .user-guide .book-sidebar a[aria-current="page"] {
    background: var(--gold-soft);
    color: #70551d;
  }
  .user-guide .book-reader h1 {
    color: var(--ink);
    font-weight: 600;
  }
  .user-guide .book-goal {
    font-size: 17px;
    color: var(--text);
  }
}
