/* NightShift's editorial layer; shared case studies retain their own styles. */
body.nightshift-case {
  --night-accent: #243f7a;
  --night-accent-2: #526f9f;
  --night-ink: #202637;
  --night-muted: #626978;
  --night-line: #dde1e6;
  --night-wash: #edf1f7;
  background: #fbfbf8;
}

body.nightshift-case .nightshift-shell {
  width: calc(100% - 200px);
  max-width: 1120px;
  margin-inline: auto;
}

body.nightshift-case .nightshift-shell * { min-width: 0; letter-spacing: 0 !important; }
body.nightshift-case .nightshift-shell > .case-section { scroll-margin-top: 108px; }
body.nightshift-case .nightshift-shell > .case-section:not(.nightshift-cover) { margin-bottom: 88px !important; }
body.nightshift-case .nightshift-shell .kicker,
body.nightshift-case .nightshift-shell .research-card-meta,
body.nightshift-case .nightshift-shell .research-root-label {
  margin: 0 0 18px;
  color: var(--night-accent) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  text-transform: uppercase;
}

body.nightshift-case .nightshift-shell .case-section-title { max-width: 800px; margin-bottom: 36px; }
body.nightshift-case .nightshift-shell .case-section-title h2,
body.nightshift-case .nightshift-shell .night-synthesis-copy h2,
body.nightshift-case .nightshift-shell .research-editorial-wrap > h2,
body.nightshift-case .nightshift-shell .night-insight-card h2,
body.nightshift-case .nightshift-shell .night-strategy-split h2 {
  max-width: 800px;
  margin: 0 0 18px !important;
  color: var(--night-ink);
  font-family: var(--serif) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

body.nightshift-case .nightshift-shell .case-section-title > p:not(.kicker),
body.nightshift-case .nightshift-shell .research-intro,
body.nightshift-case .nightshift-shell .night-synthesis-copy > p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--night-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

body.nightshift-case .nightshift-shell h3 { font-weight: 500 !important; line-height: 1.35 !important; }
body.nightshift-case .nightshift-shell p { text-wrap: pretty; }
body.nightshift-case .nightshift-shell :is(p, li, dd) { overflow-wrap: break-word; }
body.nightshift-case .nightshift-shell :is(button, a):focus-visible { outline: 2px solid var(--night-accent); outline-offset: 5px; }

/* The cover stays aligned with PlantPal, with a lighter metadata strip. */
body.nightshift-case .nightshift-cover { padding-top: 62px !important; margin-bottom: 34px !important; }
body.nightshift-case .plantpal-cover-copy h1 { max-width: 940px !important; font-size: 36px !important; line-height: 1.28 !important; font-weight: 500; }
body.nightshift-case .nightshift-project-name { color: var(--night-accent) !important; font-weight: 600; }
body.nightshift-case .plantpal-cover-copy .case-lead { max-width: 820px; margin-top: 20px; font-family: var(--sans); font-size: 14px !important; font-style: normal; line-height: 1.75 !important; }
body.nightshift-case .case-meta-grid { margin-top: 30px !important; }
body.nightshift-case .case-meta-grid > div { padding: 20px 20px 20px 0 !important; border-right: 0; min-height: 76px !important; }
body.nightshift-case .case-meta-grid dt { font-size: 10px; font-weight: 500; }
body.nightshift-case .case-meta-grid dd { max-width: 200px; font-size: 12px !important; line-height: 1.65; }
body.nightshift-case .nightshift-overview-lab { gap: 28px !important; width: 100%; }
body.nightshift-case .overview-text-grid { gap: 48px; }
body.nightshift-case .overview-text-grid h2 { font-size: 23px !important; font-weight: 500 !important; line-height: 1.3 !important; margin-bottom: 15px; }
body.nightshift-case .overview-text-grid p { font-size: 13px !important; line-height: 1.75 !important; }
body.nightshift-case .nightshift-core-showcase { width: 100%; max-width: 100%; }
body.nightshift-case .night-overview-track { gap: 28px; padding: 16px 4px 24px; max-width: 100%; overscroll-behavior-x: contain; scrollbar-color: #9baac1 #e8ebee; }
body.nightshift-case .nightshift-shell .night-core-phone { flex-basis: 174px; }
body.nightshift-case .night-phone-shell { border-width: 5px !important; padding: 0 !important; border-radius: 27px !important; box-shadow: 0 12px 24px #172a4812; }
body.nightshift-case .night-phone-caption strong { font-size: 17px; font-weight: 500; line-height: 1.3; }
body.nightshift-case .night-phone-caption small { font-size: 11px !important; line-height: 1.55; color: var(--night-muted); }
body.nightshift-case .night-overview-track:has(.night-core-phone:hover) .night-core-phone:not(:hover) { opacity: .8; filter: none; }
body.nightshift-case .nightshift-shell .night-gallery-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
body.nightshift-case .night-gallery-tools output { margin-right: auto; font: 11px var(--mono); color: var(--night-muted); }
body.nightshift-case .night-icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--night-line); border-radius: 50%; background: transparent; color: var(--night-accent); transition: background 180ms, color 180ms; }
body.nightshift-case .night-icon-button:hover { background: var(--night-accent); color: white; }
body.nightshift-case .night-icon-button:disabled { opacity: .3; cursor: default; }
body.nightshift-case .night-icon-button svg { width: 17px; height: 17px; }
body.nightshift-case .night-icon-button img { width: 17px; height: 17px; opacity: .8; }
body.nightshift-case .night-icon-button:hover img { filter: invert(1); }

/* Images and captions read as a sequence rather than a stack of cards. */
body.nightshift-case .night-story-heading { grid-template-columns: 180px 1fr; gap: 32px; }
body.nightshift-case .night-story-heading h3 { font-size: 21px; }
body.nightshift-case .night-story-grid { gap: 30px 24px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
body.nightshift-case .night-story-grid figure { padding: 0; background: transparent; }
body.nightshift-case .night-story-grid img { border-radius: 4px; aspect-ratio: 16 / 10; transition: transform 400ms ease, filter 400ms ease; }
body.nightshift-case .night-story-grid figure:hover img { transform: translateY(-4px); filter: brightness(1.06); }
body.nightshift-case .night-story-grid figcaption { padding: 14px 0 0; font-size: 12px !important; }
body.nightshift-case .night-story-grid figcaption span { min-width: 24px; font-weight: 500; }
body.nightshift-case .night-journey-track article { border-radius: 0; box-shadow: none; }
body.nightshift-case .night-emotion-journey { padding-top: 44px; margin-top: 44px; }

body.nightshift-case .night-research-editorial { min-height: 0; padding: 56px 0; background: transparent; }
body.nightshift-case .research-editorial-wrap { width: 100%; max-width: 100%; }
body.nightshift-case .night-research-chart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; margin-top: 42px; }
body.nightshift-case .night-research-chart-panel { min-height: 0; padding: 24px 0 0; border-top: 1px solid var(--night-line); }
body.nightshift-case .night-research-chart-panel > p:not(.research-card-meta) { font-size: 12px !important; line-height: 1.7 !important; }
body.nightshift-case .night-research-chart-panel > small { display: block; font-size: 9px; line-height: 1.65; }
body.nightshift-case .night-sleep-stat-row { grid-template-columns: .92fr 1.08fr; gap: 16px; min-height: 270px; }
body.nightshift-case .night-donut-chart { width: 100%; max-width: 205px; }
body.nightshift-case .night-donut-chart strong { font-size: 38px !important; font-weight: 500; }
body.nightshift-case .night-split-bars { gap: 12px; }
body.nightshift-case .night-split-bar { border-radius: 6px 6px 0 0; box-shadow: none; padding: 16px 10px; }
body.nightshift-case .night-split-bar.stress { background: #526f9f; }
body.nightshift-case .night-split-bar.other { background: #e0e6ef; }
body.nightshift-case .night-split-bar span { font-size: 31px !important; font-weight: 500; }
body.nightshift-case .night-split-bar small { font-size: 10px !important; line-height: 1.5; }
body.nightshift-case .night-pie-wrap { display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 270px; padding: 0; }
body.nightshift-case .night-pie-chart { width: 270px; max-width: 100%; overflow: visible; }
body.nightshift-case .night-pie-legend { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; justify-self: end; margin: 8px 0 12px; }
body.nightshift-case .night-pie-legend li { font-size: 9px; }

/* A consistent open-column rhythm across research and evaluation. */
body.nightshift-case :is(.night-method-grid, .night-test-goals, .night-launch-ecosystem > div, .night-flow-columns, .night-reflection-grid) { gap: 26px; border-bottom: 0; }
body.nightshift-case :is(.night-method-grid, .night-test-goals, .night-launch-ecosystem, .night-flow-columns, .night-reflection-grid) article { padding: 26px 0; border-right: 0; background: transparent; }
body.nightshift-case :is(.night-method-grid, .night-test-goals, .night-launch-ecosystem, .night-flow-columns, .night-reflection-grid) h3 { font-size: 19px !important; }
body.nightshift-case .night-objective-grid { gap: 64px; }
body.nightshift-case .night-objective-grid li { padding: 5px 0; }
body.nightshift-case .night-objective-grid li::marker { color: var(--night-accent); }
body.nightshift-case .night-screener-flow span { border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0; padding: 12px 0; background: transparent; }
body.nightshift-case .night-screener-flow strong { margin-top: 10px; border: 0; border-radius: 4px; background: var(--night-wash); font-weight: 500; }
body.nightshift-case .night-interview-guide h3 { font-size: 22px; }
body.nightshift-case .night-interview-evidence img { max-height: 360px; object-fit: contain; box-shadow: none; border-radius: 4px; }
body.nightshift-case .night-smw-table { border-bottom: 1px solid var(--night-line); }
body.nightshift-case .night-smw-head { gap: 28px; }
body.nightshift-case .night-smw-head span { padding: 16px 0; font-size: 10px; font-weight: 500; }
body.nightshift-case .night-smw-table article { gap: 28px; transition: background 240ms; }
body.nightshift-case .night-smw-table article:hover { background: #edf1f77a; }
body.nightshift-case .night-smw-table article > * { padding: 24px 0; border: 0; align-self: center; }
body.nightshift-case .night-smw-table blockquote { font-family: var(--serif) !important; font-size: 17px !important; line-height: 1.6; }
body.nightshift-case .night-smw-table strong { font-weight: 500; padding-left: 18px; border-left: 2px solid #bac8dc; }
body.nightshift-case .night-pain-list article { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 22px 0; }
body.nightshift-case .night-pain-list h3 { font-size: 20px !important; }
body.nightshift-case .night-pain-list span { font-weight: 500; }
body.nightshift-case .night-research-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; border: 0; border-radius: 0; padding: 24px 0; background: transparent; box-shadow: none; }
body.nightshift-case .night-research-summary::after { content: none; }
body.nightshift-case .night-research-summary h3 { margin: 0 0 22px; font-family: var(--serif); font-size: 36px !important; font-weight: 500; line-height: 1.3 !important; transform: none !important; }
body.nightshift-case .night-research-summary .research-data { color: var(--night-accent) !important; }
body.nightshift-case .nightshift-shell .case-section .kicker { letter-spacing: 0 !important; }
body.nightshift-case .night-summary-copy > p:not(.kicker) { font-size: 14px !important; line-height: 1.75 !important; }
body.nightshift-case .night-research-summary .research-tags span { font-size: 10px; font-weight: 500; border: 0; border-radius: 4px; padding: 10px 12px; transform: none !important; }
body.nightshift-case .night-research-summary .research-root-label { transform: none !important; }

/* Process artifacts have stable dimensions; originals remain available on click. */
body.nightshift-case .night-evidence-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 28px; }
body.nightshift-case .night-evidence-grid > article,
body.nightshift-case .night-evidence-grid > article.large { grid-column: auto; display: block; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
body.nightshift-case .night-evidence-grid > article > img { width: 100%; height: 280px; max-height: 280px; object-fit: contain; background: #f0f1f2; border-radius: 4px; }
body.nightshift-case .night-evidence-grid > article > div { padding: 22px 0 0; border: 0; }
body.nightshift-case .night-evidence-grid h3 { font-size: 20px !important; }
body.nightshift-case .night-prototype-gallery { gap: 24px; }
body.nightshift-case .night-midfi-gallery figure { opacity: 1; transform: none; }
body.nightshift-case .night-midfi-gallery img { max-height: 290px; border-radius: 4px; box-shadow: 0 8px 18px #18283c08; }
body.nightshift-case .night-midfi-gallery figcaption { font-size: 10px; font-weight: 500; line-height: 1.5; }
body.nightshift-case .night-test-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; border: 0; background: transparent; }
body.nightshift-case .night-test-quotes blockquote { padding: 20px 0 4px; border-top: 1px solid #c5cfdc; background: transparent; font-family: var(--serif); font-size: 17px !important; font-style: normal; line-height: 1.65; }
body.nightshift-case .night-before-after { gap: 50px; }
body.nightshift-case .night-before-after > article { padding: 28px 0; border: 0; border-top: 1px solid var(--night-line); border-radius: 0; background: transparent; }
body.nightshift-case .night-before-after img { height: 300px; max-height: 300px; width: 100%; object-fit: contain; }
body.nightshift-case .night-before-after > article > p { padding-top: 14px; }
body.nightshift-case .night-feature-results { gap: 34px 48px; border: 0; }
body.nightshift-case .night-feature-results > article { padding: 28px 0 0; border: 0; border-top: 1px solid var(--night-line); }
body.nightshift-case .night-feature-results h3 { font-size: 22px !important; min-height: 60px; }
body.nightshift-case .night-feature-results dl { gap: 18px; background: transparent; }
body.nightshift-case .night-feature-results dl div { padding: 0; background: transparent; }
body.nightshift-case .night-feature-results dt { font-size: 10px !important; }
body.nightshift-case .night-feature-results dd { font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
body.nightshift-case .night-metric-track { display: block; height: 3px; margin-top: 13px; background: #e4e8ee; overflow: hidden; }
body.nightshift-case .night-metric-track i { display: block; height: 100%; width: var(--metric); background: var(--night-accent-2); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.75,.25,1); }
body.nightshift-case .night-feature-results article.metric-visible .night-metric-track i { transform: scaleX(1); }
body.nightshift-case .night-feature-results > article > p:last-child { border-left: 2px solid #bac8dc; padding-left: 14px; }
body.nightshift-case .night-refinement-source { margin: 28px 0 0; max-width: 900px; color: var(--night-muted); font-size: 12px !important; line-height: 1.7 !important; }
body.nightshift-case .night-feature-demo .case-section-title { margin-bottom: 8px; }
body.nightshift-case .night-feature-demo .feature-switcher-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; background: transparent; }
body.nightshift-case .night-feature-image-frame { width: auto; height: min(660px, calc(100svh - 190px)); max-height: none; aspect-ratio: 393 / 852; border: 5px solid #111626; border-radius: 28px; background: #111626; box-shadow: 0 16px 32px #172a4815; }
body.nightshift-case .night-feature-image-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
body.nightshift-case .night-feature-image-frame:hover { transform: translateY(-4px); box-shadow: 0 20px 36px #172a481c; }
body.nightshift-case .night-feature-demo .feature-switch-copy h3 { font-size: 30px !important; line-height: 1.35 !important; font-weight: 500 !important; }
body.nightshift-case .night-feature-demo .feature-switch-copy p:not(.kicker) { font-size: 14px !important; line-height: 1.75 !important; }
body.nightshift-case .night-testing-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
body.nightshift-case .night-testing-gallery figure { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.nightshift-case .night-testing-gallery img { width: 100%; height: 330px; object-fit: contain; background: transparent; }
body.nightshift-case .night-testing-gallery figcaption { padding: 14px 0; text-align: center; font-size: 11px; }
body.nightshift-case .night-reflection-section { margin-top: 64px; }

body.nightshift-case .night-zoom-image { cursor: zoom-in; transition: filter 220ms, transform 220ms; }
body.nightshift-case .night-zoom-image:hover { filter: brightness(.97); transform: translateY(-3px); }
body.nightshift-case .night-zoom-image:focus-visible { outline: 2px solid var(--night-accent); outline-offset: 5px; }
body.nightshift-case .night-artifact-dialog { width: min(1100px, calc(100vw - 72px)); max-height: calc(100svh - 72px); padding: 48px 36px 28px; border: 1px solid #dce1e9; border-radius: 8px; background: #fbfbf8; color: var(--night-ink); }
body.nightshift-case .night-artifact-dialog::backdrop { background: #182132aa; backdrop-filter: blur(8px); }
body.nightshift-case .night-artifact-dialog > button { position: absolute; top: 12px; right: 12px; }
body.nightshift-case .night-artifact-dialog figure { margin: 0; }
body.nightshift-case .night-artifact-dialog img { display: block; width: 100%; height: auto; max-height: calc(100svh - 220px); object-fit: contain; }
body.nightshift-case .night-artifact-dialog figcaption { margin-top: 20px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--night-muted); }
body.nightshift-case:has(.night-artifact-dialog[open]) { overflow: hidden; }
body.nightshift-case .night-screen-modal { z-index: 180; }
body.nightshift-case .night-screen-modal > button { position: fixed; inset: 24px 24px auto auto; width: 40px; height: 40px; border-radius: 50%; background: #fbfbf8; color: var(--night-accent); }
body.nightshift-case .night-screen-modal > button::before { content: '\00d7'; font: 28px var(--sans); }

/* Persona centering is layout-only, independent of entrance transforms. */
body.nightshift-case .nightshift-shell .night-persona-section {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow: visible;
  transform: none !important;
}
body.nightshift-case .night-persona-section > .case-section-title {
  max-width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 0 44px;
  padding-bottom: 28px;
}
body.nightshift-case .night-persona-grid.night-persona-editorial {
  grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
  gap: 32px 44px;
  padding-top: 32px;
}
body.nightshift-case .night-persona-portrait { width: 100%; max-width: 380px; min-height: 0; aspect-ratio: 1; align-self: start; }
body.nightshift-case .night-persona-portrait::after { content: none; }
body.nightshift-case .night-persona-portrait img,
body.nightshift-case .night-persona-section.in-view .night-persona-portrait img { opacity: 1; mask: none; -webkit-mask: none; animation: none; }
body.nightshift-case .night-primary-persona { padding: 0 !important; }
body.nightshift-case .night-persona-identity { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 24px; }
body.nightshift-case .night-persona-grid h3 { font-size: 24px !important; line-height: 1.35 !important; }
body.nightshift-case .night-persona-meta { margin-top: 10px; font-size: 12px !important; }
body.nightshift-case .night-persona-identity blockquote { padding: 0 0 0 16px; border-left: 2px solid #bac8dc; color: var(--night-accent); font-family: var(--serif) !important; font-size: 17px !important; line-height: 1.55 !important; }
body.nightshift-case .night-persona-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; padding-top: 24px; }
body.nightshift-case .night-persona-facts > section { padding: 0; border: 0; }
body.nightshift-case .night-persona-facts :is(p:not(.kicker), li) { font-size: 13px !important; line-height: 1.65 !important; }
body.nightshift-case .night-persona-facts .kicker { margin-bottom: 10px; }
body.nightshift-case .night-persona-facts ul { margin: 0; padding-left: 16px; }
body.nightshift-case .night-persona-facts li + li { margin-top: 6px; }
body.nightshift-case .night-persona-facts li::marker { color: #8498b8; }
body.nightshift-case .night-persona-editorial .night-secondary-persona {
  grid-template-columns: 128px minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px 30px;
  padding: 28px 0 !important;
  border-radius: 0;
  background: transparent;
}
body.nightshift-case .night-secondary-identity { padding: 0; }
body.nightshift-case .night-secondary-notes { display: grid; gap: 8px; }
body.nightshift-case .night-secondary-notes p { margin: 0; color: var(--night-muted); font-size: 13px; line-height: 1.65; }
body.nightshift-case .night-secondary-persona blockquote { grid-column: 2 / -1; margin: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--night-line); color: var(--night-accent); font-family: var(--serif) !important; font-size: 17px !important; line-height: 1.6 !important; }
body.nightshift-case .night-persona-implication { justify-self: start; max-width: 100%; margin: 0; padding: 0; }

/* Readable synthesis replaces the spreadsheet thumbnail; full evidence stays available. */
body.nightshift-case .night-notes-synthesis { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--night-line); }
body.nightshift-case .night-notes-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 36px; }
body.nightshift-case .night-notes-heading h3 { margin: 0 0 12px; font: 500 26px/1.3 var(--serif); }
body.nightshift-case .night-notes-heading p:not(.kicker) { margin: 0; color: var(--night-muted); font-size: 13px; line-height: 1.65; }
body.nightshift-case .night-notes-counts { display: flex; flex: 0 0 auto; gap: 38px; margin: 0; }
body.nightshift-case .night-notes-counts > div { display: flex; flex-direction: column-reverse; gap: 7px; }
body.nightshift-case .night-notes-counts dd { margin: 0; color: var(--night-accent); font: 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
body.nightshift-case .night-notes-counts dt { color: var(--night-muted); font: 10px/1.6 var(--mono); }
body.nightshift-case .night-note-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 52px; }
body.nightshift-case .night-note-themes > article { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid #c8d2e0; }
body.nightshift-case .night-note-number { color: #748aab; font: 11px/1.6 var(--mono); }
body.nightshift-case .night-note-themes .kicker { margin-bottom: 12px; }
body.nightshift-case .night-note-themes h4 { margin: 0 0 16px; color: var(--night-ink); font: 500 22px/1.35 var(--serif); transition: color 240ms ease; }
body.nightshift-case .night-note-themes article:hover h4 { color: var(--night-accent-2); }
body.nightshift-case .night-note-themes blockquote { margin: 0 0 16px; color: var(--night-accent); font: italic 17px/1.55 var(--serif); }
body.nightshift-case .night-note-themes p:not(.kicker) { margin: 0; color: var(--night-muted); font-size: 13px; line-height: 1.75; }
body.nightshift-case .night-note-themes p.night-note-priority { margin-top: 20px; padding-left: 14px; border-left: 2px solid #bac8dc; }
body.nightshift-case .night-note-priority > span { display: block; margin-bottom: 5px; color: #73839b; font: 10px/1.6 var(--mono); text-transform: uppercase; }
body.nightshift-case .night-note-priority strong { color: var(--night-accent); font-weight: 500; }
body.nightshift-case .night-source-notes { margin-top: 36px; border-block: 1px solid var(--night-line); }
body.nightshift-case .night-source-notes summary { display: flex; align-items: center; gap: 20px; padding: 18px 0; color: var(--night-accent); font-size: 13px; cursor: pointer; list-style: none; }
body.nightshift-case .night-source-notes summary::-webkit-details-marker { display: none; }
body.nightshift-case .night-source-notes summary small { margin-left: auto; color: var(--night-muted); font-size: 11px; }
body.nightshift-case .night-source-notes summary img { flex: 0 0 18px; opacity: .6; transition: transform 220ms ease; }
body.nightshift-case .night-source-notes[open] summary img { transform: rotate(90deg); }
body.nightshift-case .night-source-notes summary:focus-visible { outline: 2px solid var(--night-accent); outline-offset: 4px; }
body.nightshift-case .night-source-notes .night-interview-evidence { width: 100%; margin: 10px 0 20px; }
body.nightshift-case .night-source-notes .night-interview-evidence img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; filter: none; box-shadow: none; transform: none; }
body.nightshift-case .night-source-link { display: inline-block; margin-bottom: 24px; padding-bottom: 4px; border-bottom: 1px solid #bac8dc; color: var(--night-accent); font-size: 12px; }

@media (max-width: 1100px) {
  body.nightshift-case .nightshift-shell { width: calc(100% - 144px); }
  body.nightshift-case .nightshift-shell .case-section-title h2 { font-size: 25px !important; }
  body.nightshift-case .night-research-chart-grid { gap: 32px; }
  body.nightshift-case .night-sleep-stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.nightshift-case .night-donut-chart strong { font-size: 30px !important; }
  body.nightshift-case .night-split-bar span { font-size: 24px !important; }
  body.nightshift-case .night-test-goals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.nightshift-case .night-evidence-grid { gap: 20px; }
  body.nightshift-case .night-research-summary { gap: 32px; }
  body.nightshift-case .night-research-summary h3 { font-size: 30px !important; }
  body.nightshift-case .night-persona-grid.night-persona-editorial { grid-template-columns: minmax(0, .32fr) minmax(0, .68fr); gap: 28px; }
  body.nightshift-case .night-persona-section > .case-section-title { gap: 28px; }
  body.nightshift-case .night-persona-editorial .night-secondary-persona { gap: 20px; }
  body.nightshift-case .night-note-themes { gap: 28px; }
}

@media (max-width: 760px) {
  body.nightshift-case .nightshift-shell { width: calc(100% - 48px); }
  body.nightshift-case .plantpal-cover-copy h1 { font-size: 30px !important; }
  body.nightshift-case .nightshift-shell > .case-section:not(.nightshift-cover) { margin-bottom: 56px !important; }
  body.nightshift-case .overview-text-grid,
  body.nightshift-case .night-research-chart-grid,
  body.nightshift-case .night-research-summary,
  body.nightshift-case .night-evidence-grid,
  body.nightshift-case .night-story-heading,
  body.nightshift-case .night-smw-table article { grid-template-columns: 1fr; }
  body.nightshift-case .night-story-grid,
  body.nightshift-case .night-test-quotes,
  body.nightshift-case .night-testing-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.nightshift-case .night-smw-head { display: none; }
  body.nightshift-case .night-smw-table article { gap: 0; padding: 18px 0; }
  body.nightshift-case .night-smw-table article > * { padding: 10px 0; border: 0; }
  body.nightshift-case .night-pain-list article { grid-template-columns: 28px 1fr; gap: 10px; }
  body.nightshift-case .night-pain-list p { grid-column: 2; }
  body.nightshift-case .night-artifact-dialog { width: calc(100vw - 24px); padding-inline: 18px; }
  body.nightshift-case .night-persona-section > .case-section-title,
  body.nightshift-case .night-persona-grid.night-persona-editorial,
  body.nightshift-case .night-note-themes { grid-template-columns: minmax(0, 1fr); }
  body.nightshift-case .night-persona-section > .case-section-title p:not(.kicker) { grid-column: 1; grid-row: auto; }
  body.nightshift-case .night-persona-portrait,
  body.nightshift-case .night-primary-persona { grid-column: 1; grid-row: auto; }
  body.nightshift-case .night-persona-editorial .night-secondary-persona { grid-template-columns: 128px minmax(0, 1fr); }
  body.nightshift-case .night-secondary-notes,
  body.nightshift-case .night-secondary-persona blockquote { grid-column: 1 / -1; }
  body.nightshift-case .night-notes-heading { align-items: flex-start; flex-direction: column; }
  body.nightshift-case .night-source-notes summary { flex-wrap: wrap; gap: 10px; }
  body.nightshift-case .night-source-notes summary small { order: 3; width: 100%; margin-left: 0; }
  body.nightshift-case .night-source-notes summary img { margin-left: auto; }
}

/* One motion rhythm: small travel, short stagger, and no moving sticky ancestors. */
body.nightshift-case.night-motion-ready {
  --night-motion-ease: cubic-bezier(.2, .7, .25, 1);
}
body.nightshift-case.night-motion-ready .nightshift-shell .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
body.nightshift-case.night-motion-ready .nightshift-shell .night-motion-item {
  opacity: 0 !important;
  translate: 0 18px;
  transition: opacity 620ms var(--night-motion-ease), translate 620ms var(--night-motion-ease) !important;
  transition-delay: var(--night-enter-delay, 0ms) !important;
}
body.nightshift-case.night-motion-ready .nightshift-shell .night-motion-visible {
  opacity: 1 !important;
  translate: 0 0;
}

body.nightshift-case.night-motion-ready :is(.night-evidence-grid > article, .night-midfi-gallery > figure, .night-testing-gallery > figure, .night-fragment-illustration) {
  transform: none !important;
  filter: none;
}
body.nightshift-case.night-motion-ready :is(.night-zoom-image, .night-story-grid img, .night-fragment-illustration img) {
  transition: transform 320ms var(--night-motion-ease), filter 320ms ease, box-shadow 320ms ease;
}
body.nightshift-case.night-motion-ready .nightshift-shell .night-core-phone { transition: transform 320ms var(--night-motion-ease), opacity 240ms ease; }
body.nightshift-case.night-motion-ready .night-donut-chart { transition: transform 300ms var(--night-motion-ease), filter 300ms ease; }
body.nightshift-case.night-motion-ready .night-donut-value { filter: none; }
body.nightshift-case.night-motion-ready .night-split-bar { transition: transform 420ms var(--night-motion-ease), opacity 420ms ease, box-shadow 300ms ease; transition-delay: 0ms; }
body.nightshift-case.night-motion-ready .night-pie-piece { transition: opacity 280ms ease, transform 320ms var(--night-motion-ease), filter 280ms ease; transition-delay: 0ms; }
body.nightshift-case.night-motion-ready .night-pie-piece.night-chart-active {
  transform: translate(calc(var(--pop-x) * .45), calc(var(--pop-y) * .45)) scale(1.025) !important;
  filter: drop-shadow(0 4px 6px #243f7a1f);
}
body.nightshift-case.night-motion-ready .night-pie-piece.night-chart-muted { opacity: .55 !important; }
body.nightshift-case.night-motion-ready .night-pie-piece:hover { transform: translate(calc(var(--pop-x) * .45), calc(var(--pop-y) * .45)) scale(1.025) !important; filter: drop-shadow(0 4px 6px #243f7a1f); }
body.nightshift-case .night-chart-key { display: flex; align-items: center; gap: 7px; width: 100%; border-radius: 4px; padding: 7px 8px; background: transparent; color: var(--night-muted); font: inherit; text-align: left; transition: background 220ms ease, color 220ms ease; }
body.nightshift-case .night-chart-key:is(:hover, :focus-visible, .night-chart-active) { background: var(--night-wash); color: var(--night-accent); }
body.nightshift-case .night-chart-caption { width: 100%; min-height: 20px; margin: 6px 0 0; text-align: right; color: var(--night-accent); font: 12px/1.6 var(--sans); font-variant-numeric: tabular-nums; }
body.nightshift-case .night-pie-legend { gap: 0 8px; }
body.nightshift-case .night-pie-percent.anxiety { fill: #fff; }
body.nightshift-case :is(.night-donut-chart, .night-split-bar):focus-visible { outline: 2px solid #748bb2; outline-offset: 7px; }
body.nightshift-case.night-motion-ready .night-donut-chart:focus-visible { transform: scale(1.035); }
body.nightshift-case.night-motion-ready .night-research-editorial .night-split-bar:focus-visible { transform: translateY(-4px) scale(1.02); }
body.nightshift-case.night-motion-ready .night-emotion-points circle { transition: stroke-width 240ms ease, fill 240ms ease, filter 240ms ease; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.nightshift-case.night-motion-ready .night-zoom-image:is(:hover, :focus-visible),
  body.nightshift-case.night-motion-ready .night-story-grid figure:hover img,
  body.nightshift-case.night-motion-ready .night-fragment-illustration:hover img {
    transform: translateY(-4px) scale(1.01);
    filter: brightness(1.02);
    box-shadow: 0 12px 28px #243f7a10;
  }
  body.nightshift-case.night-motion-ready .nightshift-shell .night-core-phone:hover { transform: translateY(-4px) scale(1.01) !important; }
  body.nightshift-case.night-motion-ready .night-overview-track:has(.night-core-phone:hover) .night-core-phone:not(:hover) { opacity: .94; }
  body.nightshift-case.night-motion-ready .night-donut-chart:hover { transform: scale(1.035); filter: none; }
  body.nightshift-case.night-motion-ready .night-donut-chart:hover .night-donut-value { stroke-width: 20; filter: none; }
  body.nightshift-case.night-motion-ready .night-donut-chart:hover strong { transform: none; }
  body.nightshift-case.night-motion-ready .night-research-editorial .research-editorial-wrap.in-view .night-split-bar:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 20px #243f7a12; filter: none; }
  body.nightshift-case.night-motion-ready .night-split-bar:hover :is(span, small) { transform: none; }
  body.nightshift-case.night-motion-ready .night-emotion-points g:hover circle { stroke-width: 3; fill: #edf1f7; filter: drop-shadow(0 3px 6px #243f7a1f); }
  body.nightshift-case.night-motion-ready .night-feature-results dl > div:hover dd { color: var(--night-accent-2); }
  body.nightshift-case.night-motion-ready .night-feature-results dl > div:hover .night-metric-track i { background: var(--night-accent); }
}

@media (prefers-reduced-motion: reduce) {
  body.nightshift-case .nightshift-shell *,
  body.nightshift-case .nightshift-shell *::before,
  body.nightshift-case .nightshift-shell *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  body.nightshift-case .nightshift-shell .reveal { opacity: 1 !important; transform: none !important; }
  body.nightshift-case .night-metric-track i { transform: none; }
  body.nightshift-case.night-motion-ready .nightshift-shell .night-motion-item { opacity: 1 !important; translate: none !important; transition: none !important; }
  body.nightshift-case.night-motion-ready :is(.night-zoom-image, .night-core-phone, .night-donut-chart, .night-split-bar, .night-pie-piece):is(:hover, :focus-visible, .night-chart-active) { transform: none !important; }
  body.nightshift-case.night-motion-ready .night-pie-piece.night-chart-active .night-pie-slice { stroke: var(--night-accent); stroke-width: 1; }
  body.nightshift-case.night-motion-ready .night-story-grid figure:hover img,
  body.nightshift-case.night-motion-ready .night-fragment-illustration:hover img,
  body.nightshift-case.night-motion-ready .night-feature-image-frame:hover { transform: none !important; }
}
