.drydeck-article .dda-shell {
  width: min(calc(100% - 56px), 1260px);
}

.drydeck-article .dda-hero {
  padding: clamp(32px, 4.2vw, 66px) 0 clamp(40px, 5.3vw, 82px);
}

.drydeck-article .breadcrumbs { margin-bottom: clamp(26px, 3vw, 42px); }

.drydeck-article .dda-opening {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.drydeck-article .dda-heading h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.03;
  text-wrap: balance;
  margin: 14px 0 18px;
}

.drydeck-article .dda-heading .page-lead { line-height: 1.58; margin: 0 0 16px; }
.drydeck-article :is(.dda-text-link, .dda-credit) { color: var(--violet); font-weight: 750; }
.drydeck-article .dda-text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.drydeck-article :is(.dda-text-link, .dda-credit):hover { text-decoration: underline; text-underline-offset: .24em; }
.drydeck-article .dda-credit { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .82rem; }

.drydeck-article [hidden] { display: none !important; }
.drydeck-article :is(a, button, .dda-view-image):focus-visible,
.drydeck-article .dda-scene:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.drydeck-article .dda-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f1f8;
}

.drydeck-article .dda-tabs button {
  min-height: 44px;
  padding: 6px clamp(14px, 1.5vw, 24px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.drydeck-article .dda-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.drydeck-article .dda-tabs button[aria-selected="false"]:hover { background: #e9e2f0; }
.drydeck-article .dda-figure { min-width: 0; margin: 0; }
.drydeck-article .dda-scene + .dda-scene:not([role="tabpanel"]) { margin-top: 24px; }

.drydeck-article .dda-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  background: #f3f1f8;
}

.drydeck-article .dda-section-figure .dda-media { aspect-ratio: 880 / 510; border: 1px solid var(--line); }
.drydeck-article .dda-media > img { display: block; width: 100%; height: 100%; object-fit: contain; }

.drydeck-article .dda-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 12px;
  padding: 9px 0 2px;
  font-size: .88rem;
  line-height: 1.45;
  color: #5c5869;
}

.drydeck-article .dda-scene figcaption { min-height: 3.65em; }
.drydeck-article .dda-figure figcaption strong,
.drydeck-article .dda-legend strong { color: var(--ink); }

.drydeck-article :is(.dda-expand, .dda-close) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.drydeck-article .dda-expand { position: absolute; right: 12px; bottom: 12px; box-shadow: 0 3px 14px #23194224; }
.drydeck-article :is(.dda-expand, .dda-close):hover { background: #f2ebf7; }
.drydeck-article .dda-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; }
.drydeck-article :is(.dda-error button, .dda-zoom) {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

.drydeck-article .dda-error button[aria-disabled="true"] { opacity: .65; cursor: wait; }

.drydeck-article .dda-reading {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(180px, 246px);
  grid-template-areas: "body contents";
  justify-content: space-between;
  gap: clamp(30px, 6vw, 104px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.drydeck-article .dda-prose { grid-area: body; min-width: 0; }
.drydeck-article .dda-prose section { scroll-margin-top: calc(var(--shared-header-height, 85px) + 28px); }
.drydeck-article .dda-prose section + section { margin-top: clamp(34px, 4vw, 58px); }
.drydeck-article .dda-prose h2 { margin: 0 0 14px; font-size: clamp(29px, 3vw, 45px); line-height: 1.08; text-wrap: balance; }
.drydeck-article .dda-prose p { margin: 0; max-width: 69ch; font-size: clamp(1rem, 1.24vw, 1.18rem); line-height: 1.71; }
.drydeck-article .dda-contents { grid-area: contents; top: calc(var(--shared-header-height, 85px) + 22px); }
.drydeck-article .dda-contents a { font-size: .91rem; }
.drydeck-article .dda-contents a:hover { color: var(--violet); text-decoration: underline; }
.drydeck-article .dda-section-figure { margin-top: 23px; }

.drydeck-article .dda-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.drydeck-article .dda-legend li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #5c5869;
  font-size: .95rem;
  line-height: 1.5;
}

.drydeck-article .dda-legend li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #342458;
  color: #fff;
  font-weight: 800;
}

.drydeck-article .dda-project { padding-block: clamp(46px, 6vw, 86px); }
.drydeck-article .dda-project h2 { font-size: clamp(28px, 3.75vw, 48px); }
.drydeck-article .dda-project .button { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
.drydeck-article .dda-related { padding-block: clamp(36px, 5vw, 68px); }
.drydeck-article .dda-related .dda-shell { display: grid; grid-template-columns: .6fr 1.4fr; gap: 20px 50px; }
.drydeck-article .dda-related h2 { margin: 0; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.05; color: var(--ink); }
.drydeck-article .dda-related ul { list-style: none; padding: 0; margin: 0; }
.drydeck-article .dda-related li { border-top: 1px solid var(--line); }
.drydeck-article .dda-related li:last-child { border-bottom: 1px solid var(--line); }
.drydeck-article .dda-related a { display: grid; grid-template-columns: clamp(72px, 9vw, 128px) minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 10px 0; font-weight: 750; line-height: 1.35; }
.drydeck-article .dda-related a:hover { color: var(--violet); }
.drydeck-article .dda-related a span { color: var(--violet); }
.drydeck-article .dda-related img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 8px; }

.drydeck-article .dda-dialog {
  width: min(100% - 26px, 1110px);
  max-height: calc(100dvh - 26px);
  padding: clamp(12px, 2vw, 23px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
}

.drydeck-article .dda-dialog[open] { display: flex; flex-direction: column; gap: 9px; }
.drydeck-article .dda-dialog::backdrop { background: #181331cc; }
.drydeck-article .dda-view-head,
.drydeck-article .dda-view-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drydeck-article .dda-view-head h2 { margin: 0; font-size: clamp(20px, 3vw, 34px); line-height: 1.12; }
.drydeck-article .dda-view-caption { margin: 0; color: #5c5869; font-size: .88rem; line-height: 1.4; }
.drydeck-article .dda-close { flex-shrink: 0; font-size: 25px; line-height: 1; }
.drydeck-article .dda-zoom { flex-shrink: 0; }
.drydeck-article .dda-view-image { overflow: auto; overscroll-behavior: contain; border-radius: 11px; background: #f3f1f8; max-height: 70dvh; }
.drydeck-article .dda-view-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 69dvh; object-fit: contain; margin-inline: auto; }
.drydeck-article .dda-view-image[data-zoomed] img { width: max(100%, var(--dda-zoom-width)); max-width: none; max-height: none; }

@media (max-width: 960px) {
  .drydeck-article .dda-opening { grid-template-columns: 1fr; }
  .drydeck-article .dda-heading h1 { max-width: 20ch; }
  .drydeck-article .dda-expand { inset: 12px auto auto 12px; }
  .drydeck-article .dda-reading { grid-template-columns: minmax(0, 1fr); grid-template-areas: "contents" "body"; gap: 32px; }
  .drydeck-article .dda-contents { position: static; }
  .drydeck-article .dda-contents a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 17px; border: 0; padding: 3px 0; }
  .drydeck-article .dda-contents strong { display: block; }
}

@media (max-width: 600px) {
  .drydeck-article .dda-shell { width: calc(100% - 32px); }
  .drydeck-article .dda-opening { gap: 13px; }
  .drydeck-article .dda-heading h1 { font-size: clamp(34px, 9.5vw, 49px); }
  .drydeck-article .dda-heading .page-lead { margin-bottom: 4px; }
  .drydeck-article .dda-media { border-radius: 15px; }
  .drydeck-article .dda-scene figcaption { min-height: 4.5em; }
  .drydeck-article .dda-contents { padding: 13px 15px; }
  .drydeck-article .dda-legend,
  .drydeck-article .dda-related .dda-shell { grid-template-columns: 1fr; }
  .drydeck-article .dda-view-foot { flex-wrap: wrap; }
}
