/* New Canaan Society Knoxville page. Hand-tuned dark rules live here so theme-dark.css stays generated. */
/* Horizontal inset matches theme.css .sr-wrap: 20px on a phone, 32px from 700px, 48px from 1100px. */
.ncs-page { --ncs-inset: max(var(--gs-gutter), calc((100% - var(--gs-content)) / 2)); overflow-x: hidden; }
.ncs-page .sr-wrap { box-sizing: border-box; min-width: 0; }
.ncs-section { padding-block: var(--gs-section); }
.ncs-section.section { padding-top: var(--gs-section); padding-bottom: var(--gs-section); padding-inline: 0; }
.ncs-section .section-label { margin-bottom: var(--gs-block); }
.ncs-prose { max-width: var(--gs-measure); min-width: 0; }
.ncs-prose p + p { margin-top: var(--gs-stack); }
.ncs-prose .large-copy { margin-bottom: var(--gs-block); }

.ncs-page .page-hero.ncs-open {
  display: block;
  min-height: 0;
  overflow: hidden;
}
.ncs-open .page-hero-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 64px var(--ncs-inset) 32px;
}
.ncs-open .ncs-lead-quote { margin: 0 0 24px; }
.ncs-open .ncs-lead-quote blockquote { margin: 0; }
.ncs-open .ncs-lead-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #e5cfaa;
  margin: 0;
  max-width: 34rem;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.ncs-open .ncs-lead-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdd5df;
}
.ncs-page .ncs-open h1 {
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  max-width: 22ch;
}
.ncs-open .page-hero-copy > p:last-child {
  max-width: 36rem;
  margin-top: 18px;
}
.ncs-lewis { margin: 0; }
.ncs-lewis img { width: 100%; height: auto; display: block; max-width: 100%; }
.ncs-lewis figcaption {
  padding: 12px var(--ncs-inset) 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bb0b8;
  line-height: 1.5;
}

.ncs-bio { display: grid; grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 5vw, 64px); align-items: start; min-width: 0; }
.ncs-bio .portrait { margin: 0; max-width: 420px; width: 100%; }
.ncs-bio .role { display: block; margin: 8px 0 20px; color: var(--muted); font-size: 15px; }
.ncs-bio h2 { margin: 0; }
.ncs-quote { margin: var(--gs-block) 0 0; padding: 0; min-width: 0; }
.ncs-quote + .ncs-quote { margin-top: var(--gs-section); }
.ncs-letter { max-width: 40rem; }
.ncs-quote blockquote { margin: 0; max-width: 36rem; font-size: clamp(1.25rem, 2.2vw, 2.05rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 400; }
.ncs-letter blockquote { font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 40rem; }
.ncs-quote-quiet blockquote { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; }
.ncs-quote cite { display: block; margin-top: var(--gs-stack); font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.45; }
.ncs-further { margin-top: var(--gs-section); font-size: 14px; color: var(--muted); max-width: var(--gs-measure); line-height: 1.6; }
.ncs-further cite { font-style: italic; text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; }
.ncs-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gs-stack);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.ncs-gallery li, .ncs-gallery figure { margin: 0; min-width: 0; }
.ncs-gallery img { width: 100%; height: auto; display: block; max-width: 100%; vertical-align: middle; }
.ncs-featured { margin: 0; max-width: 44rem; min-width: 0; }
.ncs-featured a { display: block; color: inherit; }
.ncs-featured img { width: 100%; height: auto; display: block; max-width: 100%; }
.ncs-featured figcaption { margin-top: 14px; font-size: 14px; }
.ncs-featured figcaption a { display: inline; text-underline-offset: 3px; }
.ncs-gallery-hero .page-hero-copy { padding-bottom: 36px; }
.ncs-gallery-hero .page-hero-copy > p:last-child { margin-top: 16px; }
.ncs-meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: start; min-width: 0; }
.ncs-meet dl { margin: 0; }
.ncs-meet dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: var(--gs-block); }
.ncs-meet dt:first-child { margin-top: 0; }
.ncs-meet dd { margin: 8px 0 0; }
.ncs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: var(--gs-block); }
.ncs-affiliates {
  margin: 0;
  padding: 20px var(--ncs-inset) 32px;
  font-size: 13px;
  color: var(--muted);
  max-width: none;
  line-height: 1.6;
  box-sizing: border-box;
}
.ncs-affiliates a { color: inherit; text-underline-offset: 3px; }

/* Phone: lock to the site’s 20px gutter, tighten stacked type, prevent overflow. */
@media (max-width: 699px) {
  .ncs-open .page-hero-copy { padding: 32px var(--ncs-inset) 22px; }
  .ncs-gallery-hero .page-hero-copy { padding-bottom: 22px; }
  .ncs-featured { max-width: none; }
  .ncs-featured figcaption { margin-top: 12px; }
  .ncs-open .ncs-lead-quote { margin-bottom: 20px; }
  .ncs-open .ncs-lead-quote p { font-size: 1.3rem; line-height: 1.4; max-width: none; }
  .ncs-page .ncs-open h1 { font-size: 1.75rem; line-height: 1.2; max-width: none; }
  .ncs-open .page-hero-copy > p:last-child { margin-top: 14px; font-size: 17px; }
  .ncs-lewis figcaption { padding: 10px var(--ncs-inset) 16px; }
  .ncs-bio, .ncs-meet, .ncs-gallery { grid-template-columns: 1fr; }
  .ncs-bio .portrait { max-width: 100%; }
  .ncs-quote { margin-top: var(--gs-block); }
  .ncs-quote + .ncs-quote { margin-top: 28px; }
  .ncs-quote blockquote,
  .ncs-letter blockquote,
  .ncs-quote-quiet blockquote { font-size: 1.15rem; line-height: 1.45; max-width: none; }
  .ncs-further { margin-top: 28px; }
  .ncs-gallery { gap: 12px; margin-top: 4px; }
  .ncs-affiliates { padding: 18px var(--ncs-inset) 24px; }
}

html[data-theme="dark"] .ncs-quote cite,
html[data-theme="dark"] .ncs-meet dt,
html[data-theme="dark"] .ncs-bio .role,
html[data-theme="dark"] .ncs-further,
html[data-theme="dark"] .ncs-affiliates { color: var(--dm-muted); }
