/* Notary site (CONTENT v10; own domain in v12). Loaded after site.css on the notary pages only
   (front matter `css: notary`); written to dist-notary/ only. 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 /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);
  }
}

/* Home page tiles (v12): a text-only grid, one column on a phone, two or three on a wide screen.
   Each tile is the service name and a "Pricing" button styled as a secondary button. */
.tiles {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0 var(--space-5);
  padding: 0;
  max-width: none;
  list-style: none;
}
.tiles > li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.tiles h3 {
  margin: 0;
  font-size: var(--fs-lead);
}
.tiles .button {
  align-self: flex-start;
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.button--secondary {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.button--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* "Book an appointment" band (v12): full width, in the page flow above the footer, ink with
   paper-colored text and underlined links. Focus ring in paper so it shows on the ink. */
.band {
  padding: var(--space-7) 0;
  background: var(--ink);
  color: var(--paper);
}
.band h2 {
  margin-bottom: var(--space-3);
  color: var(--paper);
  font-size: var(--fs-h3);
}
.band p {
  margin: 0;
  font-size: var(--fs-lead);
}
.band a {
  color: var(--paper);
  text-decoration: underline;
}
.band a:hover {
  color: var(--paper);
  text-decoration-thickness: 2px;
}
.band a:focus-visible {
  outline-color: var(--paper);
}

/* 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;
  }
}
