/* Clearsight Access: guides section
   Tokens copied from the homepage stylesheet, so guide pages match exactly. */
:root {
  --ink: #101e2b;
  --ink-2: #172a3a;
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --brass: #9c7c46;
  --brass-light: #c7a567;
  --brass-hover: #b18b4e;
  --brass-deep: #7c6238;
  --teal: #416572;
  --text: #1c2530;
  --muted: #5b6673;
  --muted-on-ink: #a9b7c2;
  --line: #e2dccc;
  --radius: 2px;
  --measure: 66ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family:
    "Atkinson Hyperlegible",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

a {
  color: var(--teal);
}

/* Same strong focus style as the homepage, on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

main:focus {
  outline: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Header and footer: replace the markup with your shared include if you have one */
.site-header {
  background: var(--ink);
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--paper);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--paper);
}

.site-footer {
  margin-top: 4rem;
  padding-block: 2.5rem;
  background: var(--ink);
  color: var(--muted-on-ink);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: var(--brass-light);
}

/* Bare element selectors, matching the homepage stylesheet, so real site
   header/footer markup you paste in is styled with no class required. */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted-on-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--paper);
}

footer {
  margin-top: 4rem;
  padding-block: 2.5rem;
  background: var(--ink);
  color: var(--muted-on-ink);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer nav ul {
  gap: 1.25rem;
}

footer a {
  color: var(--brass-light);
}

/* Page heading */
.breadcrumb {
  padding-top: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-head {
  padding-block: 2.75rem 1.5rem;
}

.page-head h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.lead {
  max-width: var(--measure);
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
}

.meta {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Guide body */
.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.55rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Short-answer box, styled like the homepage's dark approach section */
.answer {
  max-width: var(--measure);
  margin: 1rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--paper);
}

.answer h2 {
  margin: 0 0 0.75rem;
  color: var(--paper);
  font-size: 1.3rem;
}

.answer p {
  margin: 0 0 0.75rem;
  color: var(--muted-on-ink);
}

.answer p:last-child {
  margin-bottom: 0;
}

.answer a {
  color: var(--brass-light);
}

/* FAQ uses native details/summary: keyboard and screen reader support for free */
.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details p {
  margin: 0 0 1rem;
}

.cta {
  max-width: var(--measure);
  margin: 3rem 0 1rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.cta p {
  margin: 0 0 1rem;
  color: var(--text);
}

.button {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border: 2px solid var(--brass-light);
  border-radius: var(--radius);
  background: var(--brass-light);
  color: var(--ink);
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
}

.button:hover {
  background: var(--brass-hover);
  border-color: var(--brass-hover);
}

.sources {
  font-size: 0.98rem;
}

.note {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Guides index: one link per card, the whole card is clickable */
.card-list {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brass);
  border-radius: var(--radius);
  background: #fff;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover {
  border-top-color: var(--brass-hover);
}

.card:hover h2 a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.card p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.card .meta {
  margin: 0;
}

/* Show the focus ring around the whole card, not just the heading text */
.card a:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

@supports selector(:has(*)) {
  .card a:focus-visible {
    outline: none;
  }

  .card:has(a:focus-visible) {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }

  .answer,
  .cta,
  .card {
    padding: 1.25rem;
  }
}
