/* PulmoCrit interior pages — conditions, procedures and tests, articles, people, forms and legal pages.
   One editorial system: a white page head (breadcrumb, serif title, lede, actions, photograph), a reading column
   with an "On this page" guide, related links, and a navy close. Tokens and components come from family.css. */

/* ---------- page head ---------- */

.page-head { background: var(--white); padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-head-grid.no-media { grid-template-columns: minmax(0, 1fr); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.9rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--violet); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(27, 44, 81, 0.3); }
.page-head h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }
.page-head .lede { margin-top: clamp(16px, 2.4vw, 24px); max-width: 56ch; color: var(--ink-2); }
.page-head .lede strong { color: var(--ink); font-weight: 600; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 34px); }
.page-media { margin: 0; }
.page-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.page-media figcaption, .article-media figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--ink-2); }
.page-media figcaption a, .article-media figcaption a { color: inherit; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } }

/* ---------- body: an "On this page" guide beside the reading column ---------- */

.page-body { background: var(--white); padding-block: 0 clamp(72px, 9vw, 130px); }
.page-body.tinted { background: var(--paper); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.page-body-grid { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.page-body-grid.single { grid-template-columns: minmax(0, 1fr); }
.page-aside { position: sticky; top: calc(var(--header-now) + 28px); display: grid; gap: 28px; font-size: 0.95rem; }
.aside-title { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.toc { display: grid; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color 160ms ease, border-color 160ms ease; }
.toc a:hover { color: var(--navy); }
.toc a[aria-current="true"] { color: var(--navy); border-left-color: var(--blue); }
.aside-cta { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.aside-cta p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
.aside-cta .btn { width: 100%; }
.aside-cta a.tel { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--navy); text-decoration: none; }
@media (max-width: 1000px) { .page-body-grid { grid-template-columns: 1fr; } .page-aside { position: static; order: 2; } .page-aside .toc-wrap { display: none; } }

/* ---------- the reading column ---------- */

.prose { max-width: 70ch; color: var(--ink-2); font-size: 1.1rem; line-height: 1.68; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.7rem, 2.4vw, 2.15rem); line-height: 1.15; color: var(--ink); max-width: none; scroll-margin-top: calc(var(--header-compact) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: 1.22rem; color: var(--ink); scroll-margin-top: calc(var(--header-compact) + 24px); }
.prose h4 { margin-top: 1.6em; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.55em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--navy); }
.prose ul, .prose ol { display: grid; gap: 0.5em; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li::before { content: ""; position: absolute; left: 0.1em; top: 0.8em; width: 0.7em; height: 1.5px; background: var(--blue); }
.prose ol { counter-reset: item; }
.prose ol > li { position: relative; padding-left: 2em; counter-increment: item; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; top: 0; font-family: var(--font-serif); font-size: 1.1em; color: var(--blue); }
.prose blockquote { padding-left: 1.2em; border-left: 2px solid var(--blue); font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.table-scroll { overflow-x: auto; }
.prose figure img { border-radius: var(--radius); }
.prose figure { margin: 0.4em 0 0.6em; }
.prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }

/* a note set apart from the text: a summary, a key point, an option worth knowing */
.callout { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; line-height: 1.6; }
.callout > * + * { margin-top: 0.7em; }
.callout-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.callout ul.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.callout-key { background: #eef3fd; box-shadow: inset 0 0 0 1px rgba(43, 97, 209, 0.22); }
.callout-cta { display: grid; gap: 12px; background: var(--navy); color: var(--ink-inv-2); box-shadow: none; }
.callout-cta .callout-title, .callout-cta h3, .callout-cta strong { color: #fff; }
.callout-cta a:not(.btn) { color: #fff; }
.callout-cta .btn { justify-self: start; }
ul.checks > li { padding-left: 1.6em; }
ul.checks > li::before { left: 0; top: 0.32em; width: 1em; height: 1em; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- related ---------- */

.related { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 100px); }
.related h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: clamp(24px, 3vw, 40px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.related-grid li { display: grid; align-content: start; gap: 10px; padding-block: 24px; border-top: 1px solid var(--line-strong); }
.related-grid h3 { font-size: 1.15rem; }
.related-grid h3 a { color: var(--ink); text-decoration: none; }
.related-grid h3 a:hover { color: var(--violet); }
.related-grid p { color: var(--ink-2); font-size: 1rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(28px, 3vw, 40px); padding-top: 20px; border-top: 1px solid var(--line); }
.related-links-title { width: 100%; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.related-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-family: var(--font-display); font-weight: 500; color: var(--navy); text-decoration: none; }
.related-links a::after { content: "→"; color: var(--violet); transition: transform 200ms var(--ease-out); }
.related-links a:hover::after { transform: translateX(3px); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- close ---------- */

.page-close { background: var(--navy); color: var(--ink-inv); padding-block: clamp(64px, 8vw, 112px); --focus: #fff; }
.page-close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-close h2 { color: #fff; max-width: 18ch; }
.page-close p { color: var(--ink-inv-2); max-width: 52ch; }
.page-close .page-actions { margin-top: 22px; }
.page-close .fine { margin-top: 14px; font-size: 0.92rem; color: var(--ink-inv-2); }
.page-close .fine a { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .page-close-grid { grid-template-columns: 1fr; } }

/* ---------- articles ---------- */

.article-head { background: var(--white); padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.article-head .wrap, .article-media-wrap, .article-body .wrap { max-width: 1120px; }
.article-head h1 { font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 0.95rem; color: var(--ink-2); }
.article-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: rgba(27, 44, 81, 0.3); vertical-align: middle; }
.article-category { display: inline-block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--blue); text-decoration: none; }
.article-media { margin: 0; }
.article-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.article-body { background: var(--white); padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.article-body .page-body-grid { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .article-media img { aspect-ratio: 16 / 10; } }

/* the blog's index */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 3vw, 40px); }
.post-card a { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--paper-2); transition: transform 600ms var(--ease-out); }
.post-card .post-media { overflow: hidden; border-radius: var(--radius-sm); }
.post-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -0.01em; }
.post-card p { color: var(--ink-2); font-size: 1rem; }
.post-card .post-meta { font-size: 0.88rem; color: var(--blue); font-weight: 600; }
@media (hover: hover) { .post-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; } .post-card a:hover img { transform: scale(1.03); } }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- people ---------- */

/* three across: six physicians make two even rows (2026-11-19, with Dr. Friedman) */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 3vw, 44px); }
.team-card a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius-sm); background: var(--portrait-bg); margin-bottom: 14px; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--violet); }
.team-card p:not(.role) { margin-top: 6px; font-size: 0.98rem; color: var(--ink-2); }
.team-card .more { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--navy); }
@media (hover: hover) { .team-card a:hover h3 { color: var(--violet); } }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; } }
.team-group + .team-group { margin-top: clamp(56px, 7vw, 96px); }
.team-group > h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: clamp(24px, 3vw, 36px); }

.profile-head { background: var(--white); padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 80px); }
.profile-grid { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; border-radius: var(--radius); background: var(--portrait-bg); }
.profile-head h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.025em; }
.profile-role { margin-top: 12px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--violet); }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; border-top: 1px solid var(--line); }
.profile-facts div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.profile-facts dt { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.profile-facts dd { margin-top: 4px; color: var(--ink); }
.profile-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 80px); }
.profile-sections section h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 14px; }
.profile-sections .prose { font-size: 1.05rem; }
.profile-note { margin-top: clamp(32px, 4vw, 48px); font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 900px) { .profile-grid, .profile-sections { grid-template-columns: 1fr; } .profile-photo { max-width: 360px; } .profile-facts { grid-template-columns: 1fr; } }

/* ---------- forms (the appointment and contact forms post through js/forms.js) ---------- */

.form-section { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form-panel { padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.form-panel > h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.form-panel > .form-intro { margin-top: 8px; color: var(--ink-2); }
.form-kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue); margin-bottom: 8px; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 28px; }
.form-fields .full { grid-column: 1 / -1; }
.form-fields .form-group-label { grid-column: 1 / -1; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.form-fields > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.form-fields label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-fields label .req { color: #b4232a; }
.form-fields input, .form-fields select, .form-fields textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font: 1.02rem var(--font-body);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 160ms ease;
}
.form-fields textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.form-fields input::placeholder, .form-fields textarea::placeholder { color: #6b7290; }
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.form-fields select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2c51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
#hmo-fields { grid-column: 1 / -1; }
#hmo-fields .form-fields { margin-top: 0; }
.form-note { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius-sm); background: #eef3fd; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.form-submit { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; }
.form-submit .btn { width: 100%; min-height: 56px; font-size: 1.02rem; }
.form-submit p { font-size: 0.92rem; color: var(--ink-2); text-align: center; }
.form-submit p a { color: var(--navy); font-weight: 600; }
#form-errors { padding: 12px 14px; border-radius: var(--radius-sm); background: #fbeeee; color: #8c1d22; font-size: 0.95rem; }
.form-success { padding: clamp(28px, 4vw, 48px) 12px; text-align: center; }
.form-success h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--navy); }
.form-success p { margin: 12px auto 0; max-width: 46ch; color: var(--ink-2); }
.form-success a { color: var(--navy); font-weight: 600; }
.form-side { display: grid; gap: 22px; position: sticky; top: calc(var(--header-now) + 28px); }
.form-side .callout { background: var(--white); }
.form-side .callout ul.checks { grid-template-columns: 1fr; gap: 10px; font-size: 0.98rem; }
.steps-list { display: grid; gap: 16px; counter-reset: step; }
.steps-list li { position: relative; padding-left: 2.2em; counter-increment: step; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: -0.1em; font-family: var(--font-serif); font-size: 1.45rem; color: var(--blue); }
.steps-list strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 1000px) { .form-grid { grid-template-columns: 1fr; } .form-side { position: static; } }
@media (max-width: 640px) { .form-fields { grid-template-columns: 1fr; } }

/* ---------- index pages: a list of links in rows ---------- */

.link-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.link-rows li { border-top: 1px solid var(--line); }
.link-rows a { display: grid; gap: 4px; padding-block: 20px; color: inherit; text-decoration: none; }
.link-rows a strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.link-rows a span { color: var(--ink-2); font-size: 0.98rem; }
@media (hover: hover) { .link-rows a:hover strong { color: var(--violet); } }
@media (max-width: 760px) { .link-rows { grid-template-columns: 1fr; } }

/* ---------- FAQ: each question opens in place ---------- */

.faq h2 { margin-bottom: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg); transition: transform 220ms var(--ease-out); }
.faq-item[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-item summary:hover { color: var(--violet); }
.faq-answer { padding-bottom: 20px; }
.faq-answer > * + * { margin-top: 0.8em; }

/* ---------- reviews ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.quote-grid li { display: grid; align-content: start; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.quote-grid .stars { color: var(--navy); letter-spacing: 2px; font-size: 0.95rem; }
.quote-grid blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.42; color: var(--ink); }
.quote-grid .who { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact-list { display: grid; }
.contact-list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink-2); }
.contact-list dd { color: var(--ink); line-height: 1.45; }
.contact-list a { color: var(--navy); font-weight: 600; }
.place-list { display: grid; gap: 12px; margin-top: 10px; font-size: 0.95rem; }
.place-list strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.place-list span { color: var(--ink-2); }
.form-fields .consent label.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.form-fields .consent input[type="checkbox"] { width: 20px; min-height: 0; height: 20px; margin-top: 2px; padding: 0; accent-color: var(--navy); box-shadow: none; }
.form-links { font-size: 0.9rem; color: var(--ink-2); }
.form-links a { color: var(--navy); }
.form-panel .callout-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ---------- misc ---------- */

.page-media img.contain, .article-media img.contain { object-fit: contain; background: var(--paper); padding: 12px; }
.post-card .post-date { font-size: 0.88rem; color: var(--ink-2); }

/* ---------- engaging blocks: specialists, a patient's words, photo cards, the three steps ---------- */

.page-team { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.page-team-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.page-team h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.page-team .link-arrow { color: var(--violet); }
.page-team-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px clamp(20px, 2.6vw, 36px); }
.page-team-list a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.page-team-list img { width: 84px; aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: var(--portrait-bg); }
.page-team-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.page-team-list span span { display: block; margin-top: 4px; font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); }
@media (hover: hover) { .page-team-list a:hover strong { color: var(--violet); text-decoration: underline; text-underline-offset: 0.18em; } }

.page-voice { background: var(--white); border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 120px); }
.page-voice-grid { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.page-voice-title { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-top: 14px; }
.page-voice figure { display: grid; gap: 22px; }
.page-voice .stars { display: flex; gap: 3px; color: var(--violet); }
.page-voice .stars .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.page-voice blockquote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.page-voice blockquote p::before { content: "\201C"; }
.page-voice blockquote p::after { content: "\201D"; }
.page-voice figcaption { font-size: 0.98rem; color: var(--ink-2); }
.page-voice figcaption a { font-weight: 600; color: var(--violet); }
@media (max-width: 760px) { .page-voice-grid { grid-template-columns: 1fr; } .page-voice-title { padding-top: 0; } }

/* related care as photo cards */
.related-grid li.has-media, .related-grid li:has(.related-card) { padding-top: 0; border-top: 0; }
.related-card { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.has-media .related-card { padding-top: 0; border-top: 0; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--paper-2); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
.related-card h3 { font-size: 1.15rem; color: var(--ink); }
.related-card p { color: var(--ink-2); font-size: 1rem; }
@media (hover: hover) {
  .related-card:hover h3 { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .related-card:hover .card-media img { transform: scale(1.03); }
}
.related .post-grid { margin-top: 4px; }
.related .post-card h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); }
@media (prefers-reduced-motion: reduce) { .card-media img, .post-card img { transition: none; } }

/* the three steps, under the closing call to action */
.close-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-inv); }
.close-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.close-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--signal); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: #fff; }
.close-steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.page-close .close-steps p { margin-top: 6px; font-size: 0.97rem; max-width: 40ch; }
@media (max-width: 900px) { .close-steps { grid-template-columns: 1fr; } }

/* the contact page's office list: the Santa Clarita office, opening January 2027 (owner, 2026-11-19) */
.contact-list .soon { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; color: var(--blue); }

/* a numbered list of steps inside an article (new patients, Spanish pages), owner 2026-11-19; scoped to .prose so the
   appointment sidebar's older numbered list keeps its own look */
.prose .steps-list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 36px); }
.prose .steps-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.prose .steps-list > li::before { content: none; display: none; }
.prose .steps-list > li::marker { content: none; }
.prose .step-num { font-family: var(--font-serif); font-weight: 400; font-size: 2.1rem; line-height: 0.9; color: var(--blue); font-variant-numeric: lining-nums; min-width: 1.1ch; }
.prose .steps-list .step-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.prose .steps-list p { margin: 0; }
.prose .steps-list .step-title + p { color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 640px) { .prose .steps-list { grid-template-columns: minmax(0, 1fr); } }

/* the blog's featured story: the first card runs the full width, photo beside the text (owner, 2026-11-19) */
.post-grid > .post-feature { grid-column: 1 / -1; }
.post-feature a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-feature .post-media { grid-row: 1 / span 4; }
.post-feature img { aspect-ratio: 16 / 10; margin-bottom: 0; object-position: 50% 35%; }
.post-feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; }
@media (max-width: 820px) { .post-feature a { grid-template-columns: minmax(0, 1fr); } .post-feature .post-media { grid-row: auto; } }

/* charts inside an article (the COVID-19 post's wave chart, tools/covid_chart.py), owner 2026-11-19 */
.prose .chart { margin: 0.6em 0 0.8em; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.chart-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.chart-sub { margin: 4px 0 10px; font-size: 0.88rem; color: var(--ink-2); }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ytick { fill: var(--ink-2); text-anchor: end; font-variant-numeric: tabular-nums; }
.ch-xtick { stroke: var(--line-strong); }
.ch-xlabel { fill: var(--ink-2); text-anchor: middle; }
.ch-area { fill: var(--blue); opacity: 0.12; }
.ch-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-dot { fill: var(--blue); }
.ch-peak circle { fill: var(--blue); stroke: var(--paper); stroke-width: 2; }
.ch-pname { font-family: var(--font-display); font-weight: 600; fill: var(--ink); }
.ch-pval { font-family: var(--font-serif); fill: var(--ink); font-variant-numeric: lining-nums; }
.prose .chart figcaption { margin-top: 10px; font-size: 0.8rem; }
.chart-table { margin-top: 10px; font-size: 0.9rem; }
.chart-table summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 0.85rem; }
.chart-table table { margin-top: 8px; }
.prose ul.sources { font-size: 0.88rem; color: var(--ink-2); gap: 0.35em; }
.chart-svg.chart-small { display: none; }
@media (max-width: 560px) { .chart-svg.chart-wide { display: none; } .chart-svg.chart-small { display: block; } }

/* a grid of short blocks that used to be stacked boxes (CPET measures, clinical capabilities, patient forms), owner 2026-11-20 */
.prose .block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 36px); margin: 0.4em 0 0.8em; }
.prose .block { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.prose .block h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.prose .block > * + * { margin-top: 8px; }
.prose .block p, .prose .block li { font-size: 0.98rem; }
.prose .block ul { gap: 0.3em; }
@media (max-width: 640px) { .prose .block-grid { grid-template-columns: minmax(0, 1fr); } }

/* "At a glance" at the top of a condition page (owner, 2026-11-20) */
.prose .glance { margin: 0 0 0.6em; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.glance-title { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); }
.glance dl { display: grid; gap: 12px; margin: 0; }
.glance dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.glance dt { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.glance dd { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 640px) { .glance dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }


/* Spanish pages: the link to the English page, and lists of links */
.lang-note { margin-top: 14px; font-size: 0.9rem; }
.lang-note a { color: var(--ink-2); }
.prose ul.es-links { display: grid; gap: 8px; margin-top: 4px; }
.prose ul.es-links > li { padding-left: 0; }
.prose ul.es-links > li::before { content: none; }

/* contact form: guidance under the topic picker (js/forms.js, live site 2026-11-26) */
.topic-hint { display: none; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.topic-hint.show { display: block; }
.topic-hint a { color: var(--violet); font-weight: 600; }
