/* Research studies (/research/*): each study set as a paper. Layout: partials/research-study.blade.php. */
.w-phead__title em { color: var(--w-yellow); }

/* masthead line, like a journal's running head */
.w-st__mast { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-bottom: 18px; margin-bottom: clamp(36px, 5vw, 64px); border-bottom: 3px double var(--w-line-2); font: 700 12px/1.4 var(--w-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--w-mute); }
.w-st__mast b { color: var(--w-crimson); font-weight: 800; }
.w-st__mast .w-link { margin-left: auto; letter-spacing: .02em; text-transform: none; }

.w-st__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

/* contents: sticky, the current section marked */
.w-st__toc { position: sticky; top: calc(var(--w-head-h) + 24px); }
.w-st__toclabel { display: block; font: 800 11px/1 var(--w-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--w-crimson); padding-bottom: 14px; border-bottom: 2px solid var(--w-ink); }
.w-st__toc ol { list-style: none; margin: 0; padding: 0; }
.w-st__toc a { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 11px 0 11px 0; border-bottom: 1px solid var(--w-line); font: 600 14px/1.35 var(--w-sans); color: var(--w-body); transition: color .3s, padding .4s var(--w-ease); }
.w-st__toc a span { font: 400 15px/1.2 var(--w-serif); color: var(--w-mute); }
.w-st__toc a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 7px; height: 7px; background: var(--w-crimson); transform: translateY(-50%) rotate(45deg) scale(0); transition: transform .4s var(--w-ease); }
.w-st__toc a:hover { color: var(--w-crimson); }
.w-st__toc a[aria-current="true"] { color: var(--w-ink); padding-left: 6px; }
.w-st__toc a[aria-current="true"]::before { transform: translateY(-50%) rotate(45deg) scale(1); }
.w-st__toc a[aria-current="true"] span { color: var(--w-crimson); }

/* the paper */
.w-st__paper { min-width: 0; max-width: 880px; }
.w-st__abs { position: relative; padding: clamp(26px, 3.4vw, 44px); background: var(--w-white); border: 1px solid var(--w-line); border-top: 4px solid var(--w-crimson); margin-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-st__abslabel { font: 800 12px/1 var(--w-sans) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--w-crimson) !important; margin: 0 0 18px; }
.w-st__ruled { margin: 0; font: 400 clamp(18px, 1.5vw, 21px)/2em var(--w-serif); color: var(--w-ink); background-image: repeating-linear-gradient(transparent 0 calc(2em - 1px), var(--w-line) calc(2em - 1px) 2em); background-position: 0 -.35em; padding-left: 22px; border-left: 2px solid var(--w-crimson-tint); }
.w-st__obj { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--w-line-2); }
.w-st__objlabel { font: 800 11px/1 var(--w-sans) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--w-mute) !important; margin: 0 0 12px; }
.w-st__obj ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.w-st__obj li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; color: var(--w-ink); line-height: 1.55; }
.w-st__obj li span { font: italic 400 17px/1.4 var(--w-serif); color: var(--w-crimson); }

.w-st__sec { padding: 0 0 clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-st__h { display: flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--w-line-2); }
.w-st__hn { font-style: italic; color: var(--w-crimson); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }

/* term + definition rows */
.w-st__defs { margin: 0; }
.w-st__defs > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--w-line); }
.w-st__defs dt { display: flex; gap: 12px; font: 600 17px/1.4 var(--w-serif); color: var(--w-ink); }
.w-st__defs dt span { flex: none; min-width: 34px; font: 700 12px/1.9 var(--w-sans); letter-spacing: .06em; color: var(--w-crimson); }
.w-st__defs dd { margin: 0; font-size: 15.5px; line-height: 1.65; }
.w-st__defs > div.is-plain { grid-template-columns: 46px minmax(0, 1fr); gap: 0; }
.w-st__defs > div.is-plain dd { font-size: 16.5px; color: var(--w-ink); }
@media (max-width: 767px) { .w-st__defs > div:not(.is-plain) { grid-template-columns: minmax(0, 1fr); } .w-st__defs > div:not(.is-plain) dd { padding-left: 46px; } }

/* research questions */
.w-st__qs { list-style: none; margin: 0; padding: 0; }
.w-st__qs li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--w-line); }
.w-st__qn { font: 400 clamp(30px, 3vw, 42px)/1 var(--w-serif); color: var(--w-crimson); font-style: italic; letter-spacing: -.02em; }
.w-st__qs p { margin: 0; font: 400 clamp(18px, 1.5vw, 21px)/1.45 var(--w-serif); color: var(--w-ink); }

/* key areas of focus: ruled tags */
.w-st__focus { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.w-st__focus li { position: relative; padding: 12px 16px 12px 34px; background: var(--w-white); border: 1px solid var(--w-line-2); font: 600 15px/1.4 var(--w-sans); color: var(--w-ink); border-radius: 2px; transition: border-color .3s, transform .5s var(--w-ease); }
.w-st__focus li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; background: var(--w-crimson); transform: translateY(-50%) rotate(45deg); }
.w-st__focus li:hover { border-color: var(--w-ink); transform: translateY(-2px); }

/* expected outcomes: a ledger */
.w-st__ledger { width: 100%; border-collapse: collapse; margin-top: 8px; }
.w-st__ledger th { padding: 12px 0; text-align: left; font: 800 11px/1 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-mute); border-bottom: 2px solid var(--w-ink); }
.w-st__ledger td { padding: 16px 0; border-bottom: 1px solid var(--w-line); vertical-align: top; color: var(--w-ink); line-height: 1.55; }
.w-st__ledger td:first-child, .w-st__ledger th:first-child { width: 72px; }
.w-st__ledger td:first-child { font: 400 22px/1.1 var(--w-serif); color: var(--w-crimson); }
.w-st__ledger tr:nth-child(even) td { background: linear-gradient(90deg, transparent, rgba(243, 237, 227, .7) 12%, rgba(243, 237, 227, .7)); }

/* significance */
.w-st__sig { position: relative; margin: 18px 0 0; padding: clamp(24px, 3vw, 36px); background: var(--w-navy); color: rgba(255, 255, 255, .86); font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--w-serif); border-left: 6px solid var(--w-yellow); }

/* figures */
.w-st__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 clamp(40px, 5vw, 64px); }
.w-st__fig { margin: 0; }
.w-st__fig .w-frame { aspect-ratio: 798 / 480; }
.w-st__fig--wide { margin: -16px 0 clamp(40px, 5vw, 64px); }
.w-st__fig--wide .w-frame { aspect-ratio: 798 / 247; }
.w-st__fig figcaption { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--w-line-2); font: 700 11.5px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-mute); }
@media (max-width: 575px) { .w-st__figs { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 991px) {
    .w-st__grid { grid-template-columns: minmax(0, 1fr); }
    .w-st__toc { position: static; }
    .w-st__toc ol { columns: 2; column-gap: 24px; }
    .w-st__toc li { break-inside: avoid; }
}
@media (max-width: 575px) {
    .w-st__toc ol { columns: 1; }
    .w-st__mast .w-link { margin-left: 0; }
    .w-st__abs { padding: 22px 18px; }
    .w-st__ruled { padding-left: 14px; }
    .w-st__qs li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
}

/* collaborating units */
.w-st-units__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.w-st-units__list > li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.w-st-unit { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 34px) clamp(70px, 7vw, 90px); color: rgba(255, 255, 255, .74); transition: background .5s var(--w-ease); }
.w-st-unit:hover { background: rgba(255, 255, 255, .05); }
.w-st-unit__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.w-st-unit__top img { width: 56px; height: auto; }
.w-st-unit__no { font: 400 clamp(40px, 4vw, 56px)/1 var(--w-serif); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.w-st-unit__title { color: #fff; font-size: clamp(21px, 1.9vw, 27px); margin-bottom: 10px; }
.w-st-unit p { margin: 0; }
.w-st-unit__go { position: absolute; left: clamp(18px, 2.4vw, 34px); bottom: clamp(22px, 2.6vw, 32px); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; transition: background .4s, color .4s, transform .5s var(--w-ease); }
.w-st-unit:hover .w-st-unit__go { background: var(--w-yellow); border-color: var(--w-yellow); color: var(--w-night); transform: rotate(-45deg); }
@media (max-width: 767px) {
    .w-st-units__list { grid-template-columns: minmax(0, 1fr); }
    .w-st-units__list > li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}
