/* Notary subsite (CONTENT v10). Loaded after site.css on the notary pages only (front matter
   `css: notary`), so main-site pages and site.css stay unchanged. Existing tokens only (D9). */

:root {
  --cta-top: var(--space-3);
  --cta-right: var(--space-3);
  --cta-w: 15rem;          /* fixed request button width; the header reserves this much room */
  --cta-h: var(--touch-min);
}

/* Anything scrolled to (jump-list targets, keyboard focus) stops below the fixed button (WCAG 2.4.11). */
html {
  scroll-padding-top: calc(var(--cta-top) + var(--cta-h) + var(--space-4));
}

/* Fixed "Request an appointment" button: the third navigation item, one link, not a copy.
   On /notary/request it is an ordinary navigation item (aria-current) and none of this applies. */
.site-nav .nav-cta {
  position: fixed;
  top: var(--cta-top);
  right: var(--cta-right);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cta-w);
  min-height: var(--cta-h);
  padding: 0 var(--space-4);
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(20, 33, 61, 0.18);
}
.site-nav .nav-cta:hover {
  background: var(--paper);
  color: var(--accent);
  text-decoration: none;
}
.site-nav li.nav-cta-item {
  border-top: 0;
}
/* The skip link, when focused, is drawn above the fixed button, never beneath it. */
.skip-link:focus {
  z-index: 30;
}

/* Room for the button so it never covers the wordmark or the other navigation items:
   a band above the header row on phones, a reserved right margin from 640px up. */
.site-header.has-cta .wrap {
  padding-top: calc(var(--cta-top) + var(--cta-h) + var(--space-2));
}
@media (min-width: 640px) {
  .site-header.has-cta .wrap {
    padding-top: var(--space-4);
    padding-right: calc(var(--cta-w) + var(--cta-right) + var(--space-4));
  }
}

/* Services page: H3s (service names, "How the total works", the questions) sit one step below
   the page's H2s, which .prose already sets at the H3 size. */
.prose h3 {
  font-size: var(--fs-lead);
}

/* Services page: jump list */
.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: 0 0 var(--space-6);
  padding: 0;
  max-width: none;
  list-style: none;
}
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
}

/* Services page: one block per service, three labeled parts side by side on wide screens */
.service {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}
.service h3 {
  margin-bottom: var(--space-3);
}
.service-parts {
  display: grid;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
  max-width: none;
}
.service-parts dt {
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.service-parts dd {
  margin: 0;
}
@media (min-width: 900px) {
  .service-parts {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* Request form: the service choice matches the other fields */
.field select {
  display: block;
  width: 100%;
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
}
.field select:focus-visible {
  border-color: var(--focus);
}

@media print {
  .site-nav .nav-cta {
    display: none;
  }
  html {
    scroll-padding-top: 0;
  }
}
