/* LifeWorks theme: calm lakeside medical practice. Marker: 20261120-lakes */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-600.woff2") format("woff2");
}

:root {
  --ink: #1a2c32;
  --lake: #14404c;
  --lake-deep: #0d2c36;
  --pine: #1c4a42;
  --mist: #eef3f4;
  --paper: #ffffff;
  --foam: #e5f1f3;
  --sand: #f6f3ee;
  --copper: #8d5340;
  --muted: #5c6c72;
  --line: #d5e0e3;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(13, 44, 54, 0.06);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #d7e6ea 0, var(--mist) 220px);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--lake); text-underline-offset: 0.15em; }
a:hover { color: var(--pine); }
:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lake);
  color: white;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.utility {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  background: var(--lake-deep);
  color: #f4f8f7;
  padding: 0.45rem 4vw;
  font-size: 0.92rem;
}
.utility p { margin: 0; }
.utility p:first-child {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.utility p:first-child::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9dcdb4;
}
.utility a { color: #f4f8f7; text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.7rem 4vw;
  min-height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--lake-deep);
  min-width: 14rem;
}
.brand img {
  width: 58px;
  height: auto;
}
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand em {
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--pine);
  margin-top: 0.2rem;
}
.menu-toggle {
  margin-left: auto;
  display: none;
  background: var(--lake);
  color: white;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--pine); }
.site-nav { margin-left: auto; }
.nav-root, .nav-list, .footer-links, .side-nav .nav-root {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-root {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
  justify-content: flex-end;
}
.nav-root > li { position: relative; }
.nav-root > li > a {
  display: inline-block;
  color: var(--lake-deep);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}
.nav-root > li > a:hover { background: var(--foam); }
.nav-root a[aria-current="page"] {
  background: var(--foam);
  color: var(--lake);
  box-shadow: inset 0 0 0 1px #c5dbe0;
}
.nav-root .nav-list {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
}
.nav-root li:hover > .nav-list,
.nav-root li:focus-within > .nav-list { display: block; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--lake-deep);
  font-weight: 600;
}
.nav-list a:hover { background: var(--foam); }

.frame {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.6rem auto 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.4vw, 2.5rem);
  box-shadow: var(--shadow);
  min-width: 0;
}
main h1, main h2, main h3, .sidebar h2 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--lake-deep);
  font-weight: 600;
}
main h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
main h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.45rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
main h1 + h2,
main h1 + .book-grid .book:first-child h2,
.book h2 {
  border-top: 0;
  padding-top: 0;
}
main h3 { font-size: 1.15rem; }
main h5 {
  margin: 1.8rem 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
}
main p { margin: 0.75rem 0; max-width: 68ch; }
.sidebar {
  position: sticky;
  top: calc(var(--header) + 0.9rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.1rem 1rem;
  box-shadow: var(--shadow);
}
.sidebar img {
  width: 112px;
  display: block;
  margin: 0 auto 0.9rem;
}
.sidebar h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 1rem 0 0.35rem;
  text-align: center;
}
.sidebar p {
  margin: 0.4rem 0;
  text-align: center;
  color: var(--ink);
  font-size: 0.98rem;
}
.sidebar a[href^="tel"] {
  display: inline-block;
  margin-top: 0.2rem;
  background: var(--lake);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
}
.sidebar a[href^="tel"]:hover { background: var(--pine); color: white; }
.side-nav {
  margin-top: 0.8rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.side-nav .nav-root { display: block; }
.side-nav a {
  display: block;
  padding: 0.28rem 0.2rem;
  text-align: left;
  text-decoration: none;
  border-radius: 8px;
}
.side-nav a:hover { background: var(--foam); }
.side-nav .nav-list {
  position: static;
  display: block;
  border: 0;
  box-shadow: none;
  padding: 0 0 0.25rem 0.75rem;
  background: transparent;
  min-width: 0;
}
.side-nav .nav-list a { font-weight: 500; color: var(--muted); }

.site-footer {
  background: var(--lake-deep);
  color: #e7eeea;
  padding: 1.5rem 4vw 2rem;
}
.site-footer a { color: #e7eeea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.footer-links a { padding: 0.2rem 0; }
.site-footer p { margin: 0.9rem 0 0; color: #b7c6c0; font-size: 0.88rem; }

.page-logo { margin: 0 0 1.1rem; }
.page-logo img {
  width: min(240px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
}

.practice-form, .book, details { border: 1px solid var(--line); }
.practice-form {
  margin: 1.4rem 0;
  padding: 1.15rem;
  display: grid;
  gap: 0.85rem;
  background: var(--sand);
  border-radius: 16px;
}
.practice-form label, .name-row label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}
.practice-form input, .practice-form textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c5d2d6;
  border-radius: 12px;
  background: white;
  font-weight: 400;
  width: 100%;
}
.practice-form input:focus, .practice-form textarea:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(20, 64, 76, 0.14);
}
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 0.45rem; }
button, .button {
  display: inline-block;
  background: var(--lake);
  color: white;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  justify-self: start;
}
button:hover, .button:hover { background: var(--pine); color: white; }
.turnstile-missing {
  margin: 0;
  color: var(--copper);
  font-weight: 600;
}

.faq-group { margin: 1.6rem 0 2rem; }
.group-label {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pine);
}
details {
  margin: 0.45rem 0;
  padding: 0 1rem;
  border-radius: 14px;
  background: white;
}
details[open] { background: #f7fbfb; }
summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  color: var(--lake);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
.answer { padding: 0 0 0.85rem; max-width: 68ch; }

.book-grid { display: grid; gap: 1rem; }
.book {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  border-radius: 16px;
  background: white;
}
.book.no-cover { grid-template-columns: 1fr; }
.book img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(13, 44, 54, 0.14);
}
.book h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.book p { max-width: none; }
.book-sub, .book-author, .book-note { color: var(--muted); }
.book-note { font-size: 0.95rem; }
.sheet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.2rem 0 0.4rem;
  list-style: none;
}
.sheet-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--lake);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  background: var(--foam);
  font-weight: 600;
}

.result-card {
  max-width: 40rem;
  margin: 10vh auto;
  background: var(--paper);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .site-header { flex-wrap: wrap; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1rem 1rem;
    box-shadow: 0 18px 30px rgba(13, 44, 54, 0.08);
  }
  .site-nav.open { display: block; }
  .nav-root, .nav-root .nav-list {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .nav-root > li > a, .nav-list a {
    display: block;
    border-radius: 10px;
    padding: 0.75rem 0.7rem;
  }
  .nav-list a { padding-left: 1.2rem; font-weight: 500; }
  .frame {
    grid-template-columns: 1fr;
    width: min(1120px, calc(100% - 1.2rem));
    margin-top: 1rem;
  }
  .sidebar { position: static; }
  .book, .name-row { grid-template-columns: 1fr; }
  .book img { width: min(180px, 60%); }
}

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