/* Interior spreads. Content stays on the same grid as the masthead. */
.in-page, .fee-page, .sx, .ed-main {
  --field: #e7e5dc;
  --sheet: #f7f6f2;
  --wine: #52282f;
  --wine-link: #76373f;
  --pale-ink: #e7dcd7;
  --band-space: clamp(32px, 4.7vw, 78px);
}
.in-page { --in-accent: var(--wine-link); --in-ink: #282724; --in-subtle: #55554e; }
.ed-main { --ed-accent: var(--wine-link); }

/* Bleed the surface to the edge of the viewport, independently of its reading measure. */
.in-directory, .in-dossier, .in-related, .in-story, .in-profile, .in-contact-layout,
.sx-team, .sx-facts, .sx-directory, .sx-form-layout, .sx-banners, .sx-features, .fee-columns,
.ed-catalogue, .ed-detail, .ed-home, .ed-contact, .ed-partners, .ed-main > .ed-directory,
.ed-main > .ed-split {
  position: relative;
  isolation: isolate;
}
.in-directory::before, .in-dossier::before, .in-related::before, .in-story::before,
.in-profile::before, .in-contact-layout::before, .sx-team::before, .sx-facts::before,
.sx-directory::before, .sx-form-layout::before, .sx-banners::before, .sx-features::before,
.fee-columns::before, .ed-catalogue::before, .ed-detail::before, .ed-home::before,
.ed-contact::before, .ed-partners::before, .ed-main > .ed-directory::before, .ed-main > .ed-split::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--spread, var(--field));
  box-shadow: 0 0 0 100vmax var(--spread, var(--field));
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.in-index-head, :where(body:not([data-page="news"],[data-page="registrations"])) .sx-intro, .ed-intro, .fee-intro { border: 0; }
.in-index-head, .ed-intro, .fee-intro {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(24px, 6vw, 105px);
  padding-block: clamp(42px, 6vw, 98px);
  max-width: none;
}
.in-index-head p, .ed-intro > p, .fee-intro p { margin: 0; max-width: 39ch; }
.in-index-head h1, :where(body:not([data-page="news"],[data-page="registrations"])) .sx-intro h1, .ed-intro h1 {
  font-size: clamp(52px, 7.5vw, 124px);
  line-height: .99;
}
.in-page:has(> .in-directory), .ed-main:has(> .ed-catalogue) { padding-bottom: 0; }
.in-directory, .ed-catalogue { padding-block: var(--band-space); align-items: start; }
.in-rail, .in-search { padding-top: 0; }
.in-list, .ed-catalogue > div { min-width: 0; }
.in-rail .in-label { font-size: 1.2rem; color: var(--in-ink); }
.in-filter { border-top: 0; border-bottom: 1px solid #c5c3b9; }
.in-page .in-filter[aria-current] { color: var(--wine); text-decoration: underline; text-underline-offset: .22em; }
.in-search { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.in-search label, .ed-search { color: #41423c; font-size: .9rem; }
.in-search-box, .ed-search input { background: var(--sheet); border: 1px solid #96958c; }
.ed-search input { padding: 12px; }
.in-group, .ed-group { padding-top: clamp(38px, 4.4vw, 70px); }
.in-group-head h2, .ed-group h2 { font-size: clamp(33px, 3.25vw, 57px); }
.in-service-row, .ed-catalogue .ed-list-row { grid-template-columns: minmax(0, 1fr) auto; }
.in-group .in-service-row, .ed-group .ed-list-row {
  background: var(--sheet);
  border-top: 1px solid #d5d3c9;
  border-bottom: 0;
  padding: clamp(16px, 1.7vw, 27px) clamp(16px, 2vw, 34px);
}
.in-group .in-service-row:last-child, .ed-group .ed-list-row:last-child { border-bottom: 0; }
.in-group .in-service-row:hover, .ed-group .ed-list-row:hover { background: #fff; }
.in-row-main strong { font-size: clamp(19px, 1.6vw, 27px); font-weight: 450; }
.in-row-main > span { max-width: 54ch; }
.in-row-price, .ed-list-row strong { text-align: right; }

.in-page:has(> .in-dossier) .in-crumbs, .ed-main:has(> .ed-detail) .ed-crumb {
  background: var(--field);
  box-shadow: 0 0 0 100vmax var(--field);
  clip-path: inset(0 -100vmax);
  margin: 0;
  padding-block: 22px 2px;
}
.in-dossier, .ed-detail {
  align-items: center;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: clamp(30px, 7.5vw, 130px);
  border: 0;
  padding-block: clamp(35px, 5vw, 90px);
}
.in-dossier h1, .ed-detail h1 { margin: 0; max-width: 17ch; }
.in-fee, .ed-fee, .fee-summary {
  border: 0;
  background: var(--wine);
  color: #fff8f1;
  padding: clamp(24px, 3.2vw, 52px);
}
.in-fee strong, .ed-fee > strong { color: #fff8f1; font-size: clamp(34px, 3.6vw, 62px); }
.in-fee p, .ed-fee p, .ed-fee h2 { color: var(--pale-ink); }
.in-fee a.text-link, .in-fee a.text-link:hover { color: #fff8f1; }
.in-fee .button, .edition .ed-fee a.ed-action { background: #f4ede3; color: #342027; border-color: #f4ede3; }
.in-fee .button:hover, .edition .ed-fee a.ed-action:hover { background: white; color: #342027; border-color: white; }
.in-service-body { grid-template-columns: minmax(0, 1.4fr) minmax(210px, .65fr); }
.in-reading-section { padding-top: clamp(42px, 4.5vw, 72px); }
.in-reading-section > p, .in-checks { max-width: 63ch; }
.in-checks li { padding-left: 0; }
.in-checks li::before { content: none; }
.in-brief-rule { border: 0; background: #eae8df; padding: 24px; }
.in-brief h2 { margin-top: 0; }
.in-related { padding-block: var(--band-space); }
.in-related-head h2, .ed-split > h2 { margin: 0; }
.in-page:has(> .in-related) { padding-bottom: 0; }
.ed-detail-body { border: 0; padding-block: var(--band-space); }
.ed-includes { padding-inline-start: 1em; }

.in-story-links { border: 0; padding: 0 0 clamp(27px, 3.4vw, 55px); }
.in-story-links a { text-decoration: underline; text-underline-offset: .23em; }
.in-story, .ed-split[id] {
  --spread: var(--sheet);
  align-items: start;
  border: 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 8vw, 140px);
  padding-block: clamp(45px, 6vw, 104px);
}
.in-story#plyvi, .ed-split#plyvi { --spread: var(--wine); color: #fff8f1; }
.in-story#mfcoin, .ed-split#mfcoin { --spread: var(--field); }
.in-story-title h2, .ed-split[id] > h2 { font-size: clamp(50px, 6vw, 95px); margin-top: 0; }
.in-story-body h3 { font-size: clamp(25px, 3vw, 48px); }
.in-story#plyvi h3, .ed-split#plyvi :is(h2,h3) { color: #fff8f1; }
.in-story#plyvi p, .ed-split#plyvi p { color: var(--pale-ink); }
.in-story#plyvi .in-fact { border-color: #805c62; }
.in-story#plyvi .in-fact > span, .in-story#plyvi .text-link, .ed-split#plyvi a { color: #fff8f1; }
.in-story .in-fact p { font-size: 1rem; line-height: 1.52; }
.in-fact { grid-template-columns: minmax(64px, .35fr) minmax(0, 1.65fr); }
.in-source { padding-block: 12px 0; }

.in-profile, .ed-profile { padding-block: var(--band-space); align-items: center; }
.in-profile { grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr); }
.in-profile figure, .ed-profile figure { background: transparent; }
.in-profile img, .ed-profile figure img, .ed-person img, .sx-team img, .ed-home:not(.ed-profile) figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
}
.in-profile img, .ed-profile figure img, .sx-team article:first-child img { filter: none; }
.in-bio h1 { margin-top: 0; }
.in-bio-facts > div { border-color: #bdbbb2; }
.in-expert-links { border: 0; margin: 0; padding-block: var(--band-space); }
.in-expert-links a { text-decoration: underline; text-underline-offset: .2em; }
.in-page:has(> .in-profile), .in-page:has(> .in-contact-layout) { padding-bottom: 0; }
.in-contact-layout, .ed-contact { padding-block: var(--band-space); }
.in-contact-aside, .ed-contact aside { background: var(--sheet); border: 0; padding: clamp(26px, 3vw, 50px); }
.in-method:first-child { padding-top: 0; }
.in-method { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.in-method strong { font-size: clamp(28px, 3.1vw, 52px); }

/* These blocks belong to the directory, staff and journal templates only. */
.sx:has(> :is(.sx-team,.sx-facts,.sx-directory,.sx-form-layout,.sx-banners,.sx-features)) {
  padding-top: 0;
  padding-bottom: 0;
}
.sx:has(> :is(.sx-team,.sx-facts,.sx-directory,.sx-form-layout,.sx-banners,.sx-features)) .sx-intro {
  padding-block: clamp(44px, 6.5vw, 105px);
}
.sx:has(> .sx-form-layout) .sx-back { padding-top: 22px; margin: 0; }
.sx-team, .sx-facts, .sx-directory, .sx-form-layout, .sx-banners, .sx-features {
  border-top: 0;
  padding-block: var(--band-space);
}
:where(body:not([data-page="news"],[data-page="registrations"])) .sx-footrow { border: 0; margin: 0; padding-block: clamp(24px, 3vw, 44px); }
.sx-team { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(35px, 5vw, 85px); }
.sx-team > article {
  display: grid;
  grid-template-columns: minmax(75px, .6fr) minmax(0, 1.4fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: clamp(17px, 2vw, 32px);
}
.sx-team img { grid-area: 1 / 1 / 4 / 2; margin: 0; }
.sx-team > article:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: clamp(30px, 7vw, 120px);
}
.sx-team > article:first-child img { grid-row: 1 / -1; }
.sx-team > article:first-child h2 { grid-row: 2; font-size: clamp(36px, 4.6vw, 76px); }
.sx-team > article:first-child p { grid-row: 3; max-width: 40ch; font-size: clamp(16px,1.35vw,22px); }
.sx-team > article:first-child a { grid-row: 4; }
.sx-team article a { justify-self: start; }
.sx-facts > article:first-child, .sx-directory > a:first-child, .ed-main > .ed-directory > article:first-child { padding-top: 0; }
.sx-facts > article:last-child, .sx-directory > a:last-child, .sx-banners article:last-child { border-bottom: 0; padding-bottom: 0; }
.sx-directory > a, .sx-facts > article {
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  gap: clamp(30px,10vw,170px);
  border-color: #bcbcb1;
  padding-block: clamp(23px,3vw,48px);
}
.sx-directory h2, .sx-facts h2 { font-size: clamp(26px, 3vw, 48px); }
.sx-form-layout { gap: clamp(28px,6vw,100px); }
.sx-form-layout > :first-child { padding: clamp(24px, 3vw, 46px); background: var(--sheet); }
.sx-form-layout > :last-child { align-self: center; }
.sx-form-layout p { max-width: 45ch; }
.sx-banners article { align-items: start; padding-block: clamp(28px,3vw,48px); }
.sx-banners article:first-child { padding-top: 0; }
.sx-banners textarea, .ed-partners textarea { background: var(--sheet); }
.sx-features {
  --spread: var(--wine);
  grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr);
  gap: clamp(36px,9vw,150px);
  align-items: end;
}
.sx-features h2 { color: #fff8f1; line-height: 1.06; }
.sx-features > :first-child h2 { font-size: clamp(34px, 4.55vw, 75px); }
.sx-features > :last-child h2 { font-size: clamp(26px, 2.85vw, 46px); }
.sx-features p { color: var(--pale-ink); max-width: 49ch; }
.sx .sx-features a:hover { color: white; }
.sx-features + .sx-archive { border: 0; padding-block: var(--band-space); }
.sx-features + .sx-archive .sx-archive-head { padding-top: 0; }
.sx-features + .sx-archive .sx-publications li { grid-template-columns: minmax(90px,.35fr) minmax(0,1.65fr); }
.sx-features + .sx-archive .sx-publications a { font-size: clamp(20px,1.6vw,27px); max-width: 56ch; }
:where([data-page="blog"]) .sx-article:has(> .sx-lead) h1 { text-wrap: balance; }
:where([data-page="blog"]) .sx-article:has(> .sx-lead) .sx-lead { color: #363630; font-size: clamp(20px, 1.8vw, 29px); }
:where([data-page="blog"]) .sx-article:has(> .sx-lead) .sx-readmore { background: var(--field); padding: clamp(20px, 3vw, 40px); }

.fee-columns { padding-block: var(--band-space); }
.fee-settings legend { padding-right: 20px; }
.fee-settings fieldset { border-color: #aaa99d; }
.fee-summary { position: sticky; top: 24px; }
.fee-summary output { color: white; font-size: clamp(40px, 4.5vw, 76px); }
.fee-summary .fee-lines > div { border-color: #825e65; }
.fee-summary :is(.fee-assumption,.fee-lines small) { color: var(--pale-ink); }
.fee-summary .fee-invalid { color: #fff1bd; }
.fee-source { border-top: 0; margin-top: 0; padding-top: var(--band-space); }
.ed-main > .ed-directory, .ed-partners { padding-block: var(--band-space); border: 0; }
.ed-main > .ed-directory article { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 8%; }
.ed-main > .ed-directory article p { margin: 0; }
.ed-partners { margin-bottom: 24px; gap: clamp(22px, 4vw, 65px); }
.ed-partners > div { border: 0; padding: 0; }
.ed-partner-preview { display: grid; gap: 12px; justify-items: start; width: fit-content; }
.ed-partner-preview img { max-width: 100%; height: auto; }
.ed-catalogue .ed-sections { gap: 0; }
.ed-catalogue .ed-sections a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid #c5c3b9; }
.ed-main > .ed-split { border-top: 0; }
.ed-main > .ed-split + .ed-split { --spread: var(--sheet); }
.ed-main > .ed-split#mfcoin { --spread: var(--field); }
.ed-main > .ed-split#polygro { --spread: var(--sheet); }
.ed-home { --spread: var(--sheet); padding-block: var(--band-space); }
.ed-home.ed-profile { --spread: var(--field); }
.ed-profile + .ed-split { --spread: var(--sheet); }
.ed-main > .ed-directory > article:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-person img { width: 78px; }
.ed-home:not(.ed-profile) figure { max-width: 460px; justify-self: center; }
.ed-main:not(:has(> .ed-partners)) { padding-bottom: 0; }

@media (max-width: 820px) {
  .in-dossier, .ed-detail { grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); gap: 24px; }
  .in-index-head, :where(body:not([data-page="news"],[data-page="registrations"])) .sx-intro, .ed-intro, .fee-intro { column-gap: 24px; }
}
@media (max-width: 720px) {
  .in-index-head, :where(body:not([data-page="news"],[data-page="registrations"])) .sx-intro, .ed-intro, .fee-intro,
  .in-directory, .in-dossier, .in-service-body, .in-profile, .in-story, .in-contact-layout,
  .sx-team, .sx-directory > a, .sx-facts > article, .sx-form-layout, .sx-features,
  .ed-catalogue, .ed-detail, .ed-contact, .ed-main > .ed-directory article, .ed-split[id] {
    grid-template-columns: minmax(0,1fr);
  }
  .in-index-head, .ed-intro, .fee-intro { padding-block: 36px; gap: 15px; }
  .in-index-head h1, :where(body:not([data-page="news"],[data-page="registrations"])) .sx-intro h1, .ed-intro h1 { font-size: clamp(44px, 10.1vw, 66px); }
  .in-directory, .ed-catalogue { gap: 25px; padding-block: 25px 40px; }
  .in-search { grid-template-columns: minmax(0,1fr); }
  .in-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ed-catalogue .ed-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .in-rail .in-label { font-size: 1.05rem; }
  .in-rail .in-sticky { position: static; }
  .in-service-row, .ed-catalogue .ed-list-row { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .in-row-price, .ed-catalogue .ed-list-row strong { grid-column: 1; text-align: start; }
  .in-group .in-service-row, .ed-group .ed-list-row { padding: 16px; }
  .in-brief { padding-top: 28px; }
  .in-dossier h1, .ed-detail h1 { font-size: clamp(40px, 8.8vw, 62px); }
  .in-bio h1 { font-size: clamp(40px, 9.5vw, 66px); }
  .in-profile figure { width: min(100%, 340px); }
  .in-profile img, .ed-profile figure img { aspect-ratio: 4/5; max-height: none; }
  .in-contact-aside { align-self: stretch; }
  .sx-team > article:first-child {
    grid-template-columns: minmax(0,1fr); grid-template-rows: auto; gap: 0;
  }
  .sx-team > article:first-child > :is(img,h2,p,a) { grid-row: auto; grid-column: auto; }
  .sx-team > article:first-child img { max-width: 340px; margin-bottom: 18px; }
  .sx-team > article:not(:first-child) { grid-template-columns: minmax(72px,.43fr) minmax(0,1fr); }
  .sx-directory > a, .sx-facts > article, .ed-main > .ed-directory article { gap: 9px; }
  .sx-banners article { gap: 16px; }
  .sx-features { align-items: start; gap: 35px; }
  .sx-features > :first-child h2 { font-size: clamp(35px,8vw,46px); }
  .sx-features + .sx-archive .sx-publications li { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .fee-summary { position: static; }
  .ed-home:not(.ed-profile) figure, .ed-home.ed-profile figure { width: min(100%, 340px); justify-self: start; }
}

.in-story .case-figure, .ed-split .case-figure { margin: clamp(18px, 2.1vw, 36px) 0 0; }
.case-pool img { width: 100%; height: auto; }
.case-mark { display: grid; place-items: center; min-height: clamp(125px, 13vw, 200px); background: white; }
.case-mark img { width: min(60%, 222px); height: auto; }
.ed-split[id] .ed-case-title h2 { font-size: clamp(46px, 5.2vw, 87px); }
.journal-figure {
  position: relative; overflow: hidden; aspect-ratio: 2.17;
  margin: 0 0 clamp(16px, 1.9vw, 29px);
}
.journal-figure img { position: absolute; bottom: 0; max-width: none; height: auto; }
.journal-name img { width: 216%; right: 0; transform: translateY(15%); }
.journal-invention img { width: 150%; left: 0; }
.sx-features:has(.journal-figure) { align-items: start; }
.sx-features .journal-invention { aspect-ratio: 1.82; }
.sx-article .journal-figure { width: 100%; margin: clamp(24px, 3vw, 45px) 0; }
@media (max-width: 720px) {
  .case-pool, .case-mark { width: min(100%, 460px); }
  .ed-split[id] .ed-case-title h2 { font-size: clamp(43px, 9.5vw, 62px); }
  .sx-features .journal-invention { aspect-ratio: 2.17; }
}
