/* Application introductions: white and olive, with a soft pool of colour behind the summary. */
.detail-head {
  position: relative;
  isolation: isolate;
  column-gap: clamp(24px, 3vw, 56px);
  background:
    linear-gradient(0deg, #fff 0%, rgb(255 255 255 / 0) 48%),
    radial-gradient(ellipse at 88% 30%, rgb(112 120 76 / .22), rgb(112 120 76 / .07) 38%, transparent 70%),
    linear-gradient(110deg, #fff 16%, #F2F4EA 100%);
}
.detail-head > .crumbs { padding-top: 20px; font-size: 12px; line-height: 1.5; }
.detail-head .dh-text { padding: clamp(24px, 3vw, 44px) 0 clamp(32px, 3.4vw, 48px); min-width: 0; }
.detail-head .dh-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font-size: 13px; font-weight: 500; }
.detail-head .dh-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.detail-head h1 { font-size: clamp(48px, 5.5vw, 88px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; }
.detail-head .dh-first { max-width: 57ch; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.detail-head .dh-actions { gap: 18px 24px; margin-top: 26px; }
.detail-head .dh-actions .btn { min-height: 46px; padding: 14px 22px; }
.detail-head > .dh-glance { width: 100%; max-width: 360px; justify-self: end; margin: 0; padding: 24px; border: 1px solid rgb(255 255 255 / .95); border-radius: 8px; background: rgb(255 255 255 / .84); box-shadow: 0 12px 36px rgb(112 120 76 / .08); }
.detail-head .dh-ico { width: 80px; height: 80px; margin-bottom: 18px; padding: 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.detail-head .dh-glance dl > div { grid-template-columns: minmax(74px, .65fr) minmax(0, 1fr); gap: 12px; padding: 11px 0; font-size: 14px; line-height: 1.5; border-color: #E0E4D7; }
.detail-head .dh-glance dt { font-size: 12px; }
.detail-head .dh-glance dd { overflow-wrap: break-word; }
.detail-head + .scale { opacity: .65; }
/* The fee article has no summary card, so its copy uses a comfortable reading width. */
.detail-head:not(:has(.dh-glance)) > .crumbs { grid-column: 1 / -1; }
.detail-head:not(:has(.dh-glance)) .dh-text { grid-column: 1 / 11; max-width: 960px; }
@media (min-width: 861px) and (max-width: 1100px) {
  .detail-head .dh-text { grid-column: 1 / 9; }
  .detail-head > .dh-glance { grid-column: 9 / 13; padding: 18px; }
  .detail-head .dh-glance dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .detail-head h1 { font-size: clamp(48px, 5.7vw, 64px); }
}
@media (max-width: 860px) {
  .detail-head { padding-bottom: 28px; background: linear-gradient(0deg, #fff, rgb(255 255 255 / 0) 75%), radial-gradient(ellipse at 100% 30%, rgb(112 120 76 / .16), transparent 72%), #fff; }
  .detail-head > .crumbs { padding-top: 16px; }
  .detail-head .dh-text, .detail-head:not(:has(.dh-glance)) .dh-text { grid-column: 1 / -1; padding: 24px 0; }
  .detail-head h1 { max-width: 20ch; font-size: clamp(36px, 7vw, 60px); line-height: 1.08; }
  .detail-head .dh-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .detail-head .dh-first { margin-top: 18px; font-size: 17px; line-height: 1.55; }
  .detail-head .dh-actions { margin-top: 22px; gap: 14px 22px; }
  .detail-head > .dh-glance { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; max-width: none; padding: 18px; background: rgb(255 255 255 / .9); border-color: #E4E7DA; box-shadow: 0 5px 20px rgb(112 120 76 / .05); }
  .detail-head .dh-ico { width: 64px; height: 64px; margin: 0; padding: 4px; }
  .detail-head .dh-glance dl > div { padding: 7px 0; }
  .detail-head .dh-glance dl > div:first-child { padding-top: 0; }
  .detail-head .dh-glance dl > div:last-child { padding-bottom: 0; }
}
@media (max-width: 420px) {
  .detail-head .dh-first { font-size: 16px; }
  .detail-head .dh-actions { display: grid; justify-items: start; gap: 12px; font-size: 14px; }
  .detail-head .dh-actions .btn { font-size: 14px; padding: 13px 20px; }
  .detail-head .dh-actions .ul { display: inline-flex; align-items: center; min-height: 40px; }
  .detail-head > .dh-glance { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .detail-head .dh-ico { width: 48px; height: 56px; padding: 0; background: none; }
  .detail-head .dh-glance dl > div { grid-template-columns: minmax(58px, .65fr) minmax(0, 1fr); gap: 8px; font-size: 13px; }
}
/* Related cards need a second metadata row before the page switches to its mobile layout. */
@media (min-width: 861px) and (max-width: 1100px) {
  .related .app-list-2 > li { min-width: 0; }
  .related .app-row { grid-template-columns: 40px minmax(0, 1fr); }
  .related .ar-meta { grid-column: 2; grid-row: 2; white-space: normal; text-align: left; }
  .related .ar-desc { grid-column: 2; grid-row: 3; }
}
/* Hidden archive image slots must not leave the first visible block with a section margin. */
html:not(.review) .article > :nth-child(1 of :not(.sr, .img-slot, .proto-only, .proto-flag)) { margin-top: 0; }
html:not(.review) .article > h2:nth-child(1 of :not(.sr, .img-slot, .proto-only, .proto-flag)) { border-top: 0; padding-top: 0; }
.detail-body { padding-top: clamp(28px, 2.2vw, 36px); }
@media (max-width: 1100px) {
  .detail-body { padding-top: 24px; }
  .detail-body > .toc { margin-bottom: 24px; }
}
@media (max-width: 760px) {
  .article h2 { margin-top: 28px; padding-top: 14px; }
  .article h3 { margin-top: 24px; }
  .article h4 { margin-top: 20px; }
}
