/* Long-form reading layer. The homepage's colors, type, and figures carry through. */
.case-page { font-size: 17px; }
.case-page .masthead { max-width: 1360px; margin-inline: auto; padding-inline: 0; width: calc(100% - 88px); }
.study-cover { max-width: 1240px; margin: auto; padding: 0 44px; }
.study-breadcrumb { display: flex; gap: 24px; align-items: center; padding: 25px 0 54px; font: 10px/1.6 var(--mono); color: #566570; }
.study-breadcrumb a { color: var(--ink); }
.study-breadcrumb a:hover, .study-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.study-breadcrumb span:last-child { margin-left: auto; white-space: nowrap; }
.study-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; }
.study-kicker, .study-eyebrow { font: 10px/1.6 var(--mono); letter-spacing: .06em; }
.study-kicker { margin-bottom: 22px; color: #526675; }
.study-hero h1 { font: 600 clamp(42px, 4.9vw, 68px)/1.06 var(--display); letter-spacing: -.055em; max-width: 16ch; text-wrap: balance; }
.study-dek { font-size: 20px; line-height: 1.65; margin-top: 28px; max-width: 58ch; color: #45535e; }
.study-overview { border-top: 3px solid var(--accent); padding-top: 16px; margin-top: 5px; }
.study-overview > p { margin-top: 17px; font-size: 15px; line-height: 1.8; }
.study-metric { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.study-metric strong { display: block; font: 500 40px/1.12 var(--display); letter-spacing: -.05em; color: var(--accent); white-space: nowrap; }
.study-metric > span { display: block; font: 10px/1.6 var(--mono); margin-top: 9px; }
.study-metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; border-block: 1px solid var(--line); margin: 50px 0 0; padding: 25px 0; }
.study-metadata div { min-width: 0; }
.study-metadata dt { font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #53626d; margin-bottom: 8px; }
.study-metadata dd { font-size: 14px; line-height: 1.7; margin: 0; }
.study-layout { max-width: 1240px; margin: 0 auto; padding: 68px 44px 80px; display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 72px; align-items: start; }
.study-sidebar { position: sticky; top: 35px; }
.study-toc > .study-eyebrow { color: #60717f; }
.study-toc ol { list-style: none; margin: 20px 0 0; padding: 0; }
.study-toc li { margin: 0; }
.study-toc a { display: grid; grid-template-columns: 23px 1fr; gap: 10px; font-size: 12px; line-height: 1.6; padding: 11px 7px 11px 0; border-bottom: 1px solid #d7dddf; color: #65717a; transition: color .15s; }
.study-toc a > span { font: 9px/1.9 var(--mono); padding-top: 1px; }
.study-toc a.active { color: var(--accent); font-weight: 600; }
.study-toc a.active > span { color: var(--accent); }
.study-toc a:hover { color: var(--ink); }
.study-back { display: inline-block; font: 10px/1.6 var(--mono); margin-top: 32px; }
.study-content { min-width: 0; max-width: 760px; }
.study-section { position: relative; margin-bottom: 52px; scroll-margin-top: 30px; }
.study-section-number { display: block; font: 10px/1.6 var(--mono); color: #6b7d8a; margin-bottom: 10px; }
.study-section h2 { font: 500 clamp(27px, 2.6vw, 35px)/1.2 var(--display); letter-spacing: -.04em; margin: 0 0 23px; max-width: 25ch; text-wrap: balance; }
.study-section p { font-size: 17px; line-height: 1.9; margin: 0 0 20px; color: #37464f; }
.study-section p:last-child { margin-bottom: 0; }
.study-list { margin: 24px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.study-list li { font-size: 16px; line-height: 1.8; padding: 17px 0 17px 25px; border-bottom: 1px solid var(--line); position: relative; }
.study-list li:before { content: '↗'; position: absolute; left: 0; color: var(--focus); }
.study-figure { margin: 34px 0 12px; }
.study-figure .interactive-artifact { transform: none; box-shadow: none; }
.study-figure figcaption { font: 11px/1.8 var(--mono); color: #64737e; margin-top: 15px; max-width: 66ch; }
.study-figure .artifact-topline, .study-figure .artifact-bottomline { font-size: 8px; padding: 15px 23px; }
.study-figure .route-heading > .small-label { font-size: 10px; }
.study-figure .state-control button { font-size: 10px; padding: 9px 16px; }
.study-figure .route-map { height: 245px; margin-inline: 30px; }
.study-figure .route-readout > div > span { font-size: 10px; }
.study-figure .route-readout p { font-size: 14px; line-height: 1.7; max-width: 340px; margin: 6px 0 0; }
.study-figure .form-action button, .study-figure .knowledge-controls button { font-size: 11px; padding: 15px 20px; }
.study-figure .form-action p, .study-figure .knowledge-controls p { font: 10px/1.8 var(--mono); margin: 16px 0 0; }
.study-figure .knowledge-controls p { color: #c4d1db; }
.study-figure .guardrails { font-size: 9px; gap: 10px; padding-bottom: 24px; color: #c4d1db; }
.study-figure .cost-toggle { font-size: 12px; }
.study-figure .cost-table th, .study-figure .cost-table td { font-size: 13px; padding-block: 17px; }
.study-figure .cost-table thead th { font-size: 9px; }
.study-figure .winner-label { font-size: 7px; }
.study-figure .cost-explanation p { font-size: 14px; line-height: 1.7; margin: 0; }
.study-outcome { background: var(--accent); color: var(--cream); padding: 34px 36px 38px; margin-top: 12px; margin-bottom: 26px; }
.study-outcome > .study-eyebrow { display: block; color: #c0d1dc; margin-bottom: 20px; }
.study-outcome h2 { max-width: 27ch; margin-bottom: 21px; }
.study-outcome p { color: #e5edf2; font-size: 16px; line-height: 1.9; }
.study-end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; font: 9px/1.8 var(--mono); color: #64737d; }
.study-end button { background: transparent; font: 10px/1.8 var(--mono); padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.study-end button > span { margin-left: 10px; }
#share-status { display: block; min-height: 18px; font: 9px/1.8 var(--mono); }
.study-next { background: #e5ebee; border-block: 1px solid var(--line); padding: 42px 44px 46px; }
.study-next > div { max-width: 1152px; margin: auto; }
.study-next a { display: flex; align-items: center; justify-content: space-between; gap: 45px; font: 500 clamp(28px, 3.2vw, 43px)/1.2 var(--display); letter-spacing: -.045em; margin: 18px 0 16px; }
.study-next a > span:first-child { max-width: 24ch; }
.study-next a > span:last-child { font-size: 58px; transition: transform .2s; }
.study-next a:hover > span:last-child { transform: translate(4px, -4px); }
.study-next p { font: 10px/1.8 var(--mono); }
.study-contact { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; max-width: 1240px; margin: auto; padding: 47px 44px; }
.study-contact p { font-size: 20px; }
.study-contact a { font: 500 29px/1.3 var(--display); letter-spacing: -.04em; border-bottom: 1px solid var(--ink); }
.study-contact a > span { margin-left: 30px; }
.case-page footer { border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .study-hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .study-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 40px; }
  .study-hero h1 { font-size: 49px; }
  .study-dek { font-size: 18px; }
  .study-section p { font-size: 16px; }
}
@media (max-width: 760px) {
  .case-page .masthead { width: calc(100% - 40px); }
  .study-cover { padding: 0 20px; }
  .study-breadcrumb { gap: 15px; flex-wrap: wrap; padding: 22px 0 37px; font-size: 9px; }
  .study-breadcrumb > span:nth-child(2) { margin-left: auto; }
  .study-breadcrumb > span:last-child { flex-basis: 100%; margin: -4px 0 0; color: #6c7982; }
  .study-hero { grid-template-columns: 1fr; gap: 30px; }
  .study-hero h1 { font-size: clamp(39px, 8.6vw, 59px); max-width: 19ch; }
  .study-kicker { margin-bottom: 18px; font-size: 9px; }
  .study-dek { font-size: 18px; margin-top: 23px; }
  .study-overview { display: grid; grid-template-columns: 1fr auto; gap: 14px 25px; padding-top: 18px; }
  .study-overview > .study-eyebrow { grid-column: 1 / -1; }
  .study-overview > p { margin: 0; font-size: 14px; }
  .study-metric { border: 0; padding: 0; margin: 0; max-width: 160px; }
  .study-metric strong { font-size: 31px; }
  .study-metric > span { font-size: 9px; }
  .study-metadata { grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; padding-block: 22px; }
  .study-metadata dd { font-size: 13px; }
  .study-layout { display: block; padding: 0 20px 44px; }
  .study-sidebar { position: static; margin-bottom: 38px; padding: 23px 0 24px; border-bottom: 1px solid var(--line); }
  .study-toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: 12px; }
  .study-toc a { font-size: 11px; gap: 5px; }
  .study-back { display: none; }
  .study-content { max-width: none; }
  .study-section { margin-bottom: 40px; scroll-margin-top: 18px; }
  .study-section h2 { font-size: 29px; }
  .study-section p { font-size: 16px; line-height: 1.85; }
  .study-list li { font-size: 15px; }
  .study-outcome { padding: 27px 24px; }
  .study-outcome h2 { font-size: 28px; }
  .study-outcome p { font-size: 15px; }
  .study-figure .artifact-topline, .study-figure .artifact-bottomline { font-size: 7px; padding-inline: 15px; }
  .study-figure .route-heading { padding-inline: 15px; }
  .study-figure .route-heading > .small-label { font-size: 8px; max-width: 125px; }
  .study-figure .state-control button { padding: 8px 10px; font-size: 9px; }
  .study-figure .route-map { margin-inline: 16px; height: 205px; }
  .study-figure .route-readout { padding: 22px 17px; gap: 15px; }
  .study-figure .route-readout > div > span { font-size: 8px; }
  .study-figure .route-readout p { font-size: 12px; }
  .study-figure .form-action p, .study-figure .knowledge-controls p { font-size: 9px; }
  .study-figure .cost-toggle { font-size: 10px; }
  .study-figure .cost-table th, .study-figure .cost-table td { font-size: 11px; }
  .study-figure .cost-table thead th { font-size: 8px; }
  .study-figure .winner-label { font-size: 6px; }
  .study-figure .cost-explanation p { font-size: 12px; }
  .study-figure .guardrails { font-size: 8px; }
  .study-figure figcaption { font-size: 10px; }
  .study-end { font-size: 8px; }
  .study-next { padding: 30px 20px; }
  .study-next a { gap: 22px; font-size: 30px; }
  .study-next a > span:last-child { font-size: 43px; }
  .study-next .study-eyebrow { font-size: 8px; }
  .study-contact { padding: 30px 20px; align-items: flex-start; flex-direction: column; gap: 15px; }
  .study-contact p { font-size: 18px; }
  .study-contact a { font-size: 25px; }
}
@media (max-width: 400px) {
  .study-breadcrumb { font-size: 8px; }
  .study-hero h1 { font-size: 38px; }
  .study-overview { grid-template-columns: 1fr; }
  .study-metric { margin-top: 3px; max-width: none; }
  .study-metric strong { font-size: 35px; }
  .study-metric > span { margin-top: 4px; }
  .study-toc ol { column-gap: 16px; }
  .study-toc a { font-size: 10px; grid-template-columns: 18px 1fr; }
  .study-figure .cost-table th, .study-figure .cost-table td { font-size: 10px; }
  .study-figure .cost-table thead th { font-size: 7px; }
}
@media print {
  .case-page .masthead, .study-breadcrumb, .study-sidebar, .study-end, .study-next, .study-contact, .case-page footer, .reading-line { display: none; }
  .study-cover, .study-layout { max-width: none; padding: 0; display: block; }
  .study-hero { display: block; }
  .study-hero h1 { font-size: 32pt; max-width: none; }
  .study-overview { margin-top: 24px; }
  .study-metric { border: 0; }
  .study-metadata { margin-bottom: 30px; }
  .study-section, .study-figure { break-inside: avoid; }
  .study-section p { font-size: 11pt; }
  .study-outcome { background: #e5ebee; color: #25313b; }
  .study-outcome p, .study-outcome .study-eyebrow { color: #25313b; }
}
