/* Academic editorial system for CubeDynamics documentation. */

:root {
  --cd-ink: #17242c;
  --cd-navy: #203640;
  --cd-paper: #f3f1eb;
  --cd-paper-bright: #fbfaf7;
  --cd-teal: #3f6f72;
  --cd-teal-pale: #dfe8e6;
  --cd-rust: #8b543c;
  --cd-line: #c9ceca;
  --cd-code-bg: #edf1ef;
  --cd-code-fg: #132a32;
  --cd-code-border: #b8c5c2;
  --cd-code-inline-bg: #e3e9e7;
  --cd-display: Georgia, "Times New Roman", serif;
  --cd-body: Inter, "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --md-primary-fg-color: var(--cd-navy);
  --md-accent-fg-color: var(--cd-teal);
  --md-typeset-a-color: #2f6267;
  --md-default-bg-color: var(--cd-paper-bright);
  --md-default-fg-color: var(--cd-ink);
  --md-code-bg-color: var(--cd-code-bg);
  --md-code-fg-color: var(--cd-code-fg);
}

[data-md-color-scheme="slate"] {
  --cd-paper: #1d282d;
  --cd-paper-bright: #152027;
  --cd-line: #46565b;
  --cd-code-bg: #0c1c23;
  --cd-code-fg: #f4f7f4;
  --cd-code-border: #516970;
  --cd-code-inline-bg: #25383f;
  --md-default-bg-color: #152027;
  --md-default-fg-color: #edf0ed;
  --md-typeset-a-color: #9bc3c1;
  --md-code-bg-color: var(--cd-code-bg);
  --md-code-fg-color: var(--cd-code-fg);
  --md-code-hl-comment-color: #b7c3c7;
  --md-code-hl-constant-color: #c4b5fd;
  --md-code-hl-function-color: #e1a6ed;
  --md-code-hl-keyword-color: #9fc1ff;
  --md-code-hl-number-color: #ff9b9b;
  --md-code-hl-operator-color: #c5d0d3;
  --md-code-hl-punctuation-color: #c5d0d3;
  --md-code-hl-special-color: #ff9fbd;
  --md-code-hl-string-color: #8fd4a9;
  --md-code-hl-variable-color: #dce4e2;
}

html {
  scroll-behavior: smooth;
}

body,
input {
  font-family: var(--cd-body);
}

.md-header,
.md-tabs {
  background: var(--cd-navy);
  box-shadow: none;
}

.md-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.md-header::after {
  display: none;
}

.md-header__title,
.md-header__topic,
.md-header__button,
.md-tabs__link {
  color: #f8f7f3;
}

.md-header__title {
  font-family: var(--cd-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.md-logo img {
  width: 7.2rem;
  height: 2.3rem;
  object-fit: contain;
}

.md-search__form {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.md-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.md-tabs__link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #c7dcda;
}

.md-main {
  background: var(--cd-paper-bright);
}

.md-content__inner {
  padding-top: 2.2rem;
}

.md-typeset {
  color: var(--cd-ink);
  font-size: 0.82rem;
  line-height: 1.72;
}

[data-md-color-scheme="slate"] .md-typeset {
  color: #edf0ed;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: inherit;
  font-family: var(--cd-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.md-typeset h1 {
  max-width: 22ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.md-typeset h2 {
  margin-top: 3rem;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.md-typeset h3 {
  font-size: 1.25rem;
}

.md-typeset a {
  color: #2f6267;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: #9bc3c1;
}

.md-typeset a:hover {
  color: #1c4449;
}

.md-typeset code {
  border-radius: 0.14rem;
  background: var(--cd-code-inline-bg);
  color: var(--cd-code-fg);
}

.md-typeset pre {
  border: 1px solid var(--cd-code-border);
  border-radius: 0.18rem;
  background: var(--cd-code-bg);
  color: var(--cd-code-fg);
  box-shadow: none;
}

.md-typeset pre > code {
  background: transparent;
  color: var(--cd-code-fg);
}

/* Keep generated notebook inputs on the same high-contrast reading surface. */
[data-md-color-scheme] .jupyter-wrapper {
  --jp-cell-editor-background: #f1f4f2;
  --jp-cell-editor-active-background: #f1f4f2;
  --jp-cell-editor-border-color: #b8c5c2;
  --jp-mirror-editor-variable-color: #132a32;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--cd-line);
  border-radius: 0;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background: #e6e9e6;
  color: var(--cd-ink);
  font-family: var(--cd-body);
  font-weight: 700;
}

.md-nav__title,
.md-nav__link {
  color: inherit;
}

.md-nav__title {
  font-family: var(--cd-display);
  letter-spacing: -0.01em;
}

.md-nav__link--active {
  color: #2f6267;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #9bc3c1;
}

.md-footer {
  background: var(--cd-navy);
  color: #edf0ed;
}

/* Full-width research landing page. */

.md-content:has(.cd-home) .md-content__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.md-content:has(.cd-home) .md-content__inner::before,
.md-content:has(.cd-home) .md-content__inner::after {
  display: none;
}

.md-main__inner:has(.cd-home) {
  max-width: none;
  margin: 0;
}

.cd-home {
  --home-gutter: clamp(1.5rem, 5vw, 5.5rem);
  margin: 0;
  overflow: hidden;
  color: var(--cd-ink);
  font-family: var(--cd-body);
}

.cd-home *,
.cd-home *::before,
.cd-home *::after {
  box-sizing: border-box;
}

.cd-home h1,
.cd-home h2,
.cd-home h3,
.cd-home p,
.cd-home pre {
  margin-top: 0;
}

/* Small decorative studies of the layered cube logo. */

.cd-data-cube {
  position: absolute;
  z-index: 0;
  width: 4.6rem;
  height: 4.6rem;
  pointer-events: none;
  transform: rotate(-7deg) skewY(-4deg);
}

.cd-data-cube span {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #67866d;
  background: rgba(100, 142, 91, 0.07);
}

.cd-data-cube span:nth-child(1) {
  left: 0;
  bottom: 0;
}

.cd-data-cube span:nth-child(2) {
  left: 0.62rem;
  bottom: 0.62rem;
  border-color: #47776d;
  background: rgba(63, 111, 114, 0.08);
}

.cd-data-cube span:nth-child(3) {
  left: 1.24rem;
  bottom: 1.24rem;
  border-color: #9aa548;
  background: rgba(181, 195, 72, 0.1);
}

.cd-data-cube--manifesto {
  top: 2.2rem;
  right: max(1.5rem, 5vw);
}

.cd-data-cube--grammar {
  right: max(1.5rem, 5vw);
  bottom: 1.7rem;
  opacity: 0.7;
}

.cd-data-cube--stories {
  top: 2.2rem;
  right: max(1.5rem, 5vw);
  transform: rotate(8deg) skewY(4deg);
}

.cd-data-cube--final {
  right: max(1.5rem, 7vw);
  bottom: 2rem;
  transform: rotate(-12deg) scale(1.15);
}

.cd-editorial-hero {
  display: grid;
  min-height: 42rem;
  grid-template-columns: minmax(0, 1.16fr) minmax(22rem, 0.84fr);
  background: var(--cd-navy);
  color: #f8f7f3;
}

.cd-hero-copy {
  display: flex;
  min-height: 42rem;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--home-gutter);
}

.cd-kicker,
.cd-section-label,
.cd-story-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cd-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #bad1cf;
}

.cd-kicker span {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
}

.cd-hero-copy h1 {
  max-width: 12ch;
  margin: 2.5rem 0 1.7rem;
  color: inherit;
  font-family: var(--cd-display);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.cd-hero-deck {
  max-width: 40rem;
  margin-bottom: 2.3rem;
  color: rgba(248, 247, 243, 0.84);
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  line-height: 1.48;
}

.cd-hero-copy > p:not(.cd-kicker):not(.cd-hero-deck) {
  color: rgba(248, 247, 243, 0.72);
  font-size: 0.76rem;
  line-height: 1.55;
}

.cd-hero-copy > p:not(.cd-kicker):not(.cd-hero-deck) a {
  color: #d7e3e1 !important;
  font-weight: 700;
  text-decoration-color: rgba(215, 227, 225, 0.7) !important;
}

.cd-hero-actions,
.cd-final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.cd-action {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.18rem;
  color: inherit !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.cd-action--acid {
  border-color: #d7e3e1;
  background: #d7e3e1;
  color: var(--cd-ink) !important;
}

.cd-action--acid:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.cd-action--ghost {
  border-color: rgba(255, 255, 255, 0.42);
}

.cd-action--ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.cd-hero-art {
  position: relative;
  display: grid;
  min-height: 42rem;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(23, 36, 44, 0.18);
  background: var(--cd-teal-pale);
  color: var(--cd-ink);
}

.cd-html-cube-hero {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
}

.cd-html-cube-frame {
  width: 100%;
  height: 34rem;
  overflow: hidden;
  border: 1px solid #aab9b8;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.4rem rgba(23, 36, 44, 0.1);
}

/* The general embed rule uses min-height:100%. In this flex column that
   would consume the entire hero and push the selector outside its clip. */
.cd-html-cube-frame.cd-deferred-embed {
  min-height: 25rem;
  flex: 0 0 auto;
}

.cd-cube-picker {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.cd-cube-picker label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #213e46;
}

.cd-cube-picker select {
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #aab9b8;
  border-radius: 4px;
  background: #f4f6f3;
  color: #213e46;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  color-scheme: light;
}

.cd-cube-picker select:focus-visible { outline: 2px solid #267c83; outline-offset: 3px; }
.cd-cube-links { display: grid; gap: 0.4rem; flex: 0 0 auto; }

.cd-html-cube-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #ffffff;
}

.cd-html-cube-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.5rem;
  border-bottom: 1px solid rgba(63, 111, 114, 0.25);
}

.cd-html-cube-meta p {
  margin-bottom: 0;
  color: #3f555a;
  font-size: 0.67rem;
  line-height: 1.45;
}

.cd-html-cube-meta strong,
.cd-html-cube-meta span {
  display: block;
}

.cd-html-cube-meta a {
  flex: 0 0 auto;
  color: #2f6267 !important;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none !important;
}

.cd-html-cube-instructions {
  margin: 0.55rem 0 0;
  color: #536a6e;
  font-size: 0.64rem;
  line-height: 1.45;
}

.cd-manifesto,
.cd-stories,
.cd-layers,
.cd-final-cta {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--home-gutter);
}

.cd-manifesto > :not(.cd-data-cube),
.cd-stories > :not(.cd-data-cube),
.cd-final-cta > :not(.cd-data-cube) {
  position: relative;
  z-index: 1;
}

.cd-manifesto {
  background: var(--cd-paper);
}

.cd-section-label {
  margin-bottom: 1.6rem;
  color: var(--cd-teal);
}

.cd-manifesto h2,
.cd-stories h2,
.cd-layers h2,
.cd-final-cta h2,
.cd-grammar-heading h2 {
  max-width: 15ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: inherit;
  font-family: var(--cd-display);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.cd-manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--cd-line);
}

.cd-manifesto-grid p {
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.62;
}

.cd-manifesto-grid .cd-manifesto-lead {
  font-family: var(--cd-display);
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.cd-grammar-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) var(--home-gutter);
  border-top: 1px solid var(--cd-line);
  border-bottom: 1px solid var(--cd-line);
  background: #e9eeec;
}

.cd-grammar-heading h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.3rem);
}

.cd-code-stage {
  --cd-code-fg: #f4f7f4;
  align-self: center;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid #435760;
  background: var(--cd-ink);
  color: #f4f5f2;
}

.cd-code-stage pre {
  margin: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cd-code-stage code {
  background: transparent;
  color: inherit;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  line-height: 1.8;
}

.cd-code-stage p {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  line-height: 1.55;
}

.cd-code-muted { color: #a8b8bc; }
.cd-code-acid { color: #a9d1ce; }
.cd-code-coral { color: #d4aa94; }

.cd-stories {
  background: var(--cd-paper-bright);
}

.cd-stories-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 3rem;
  align-items: end;
}

.cd-stories-head > p {
  max-width: 30rem;
  margin-bottom: 3.5rem;
  color: #526066;
  font-size: 1rem;
  line-height: 1.62;
}

.cd-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.cd-story {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--cd-line);
  background: #f7f6f2;
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cd-story:hover {
  border-color: #789093;
  box-shadow: 0 0.7rem 1.8rem rgba(23, 36, 44, 0.09);
  transform: translateY(-0.16rem);
}

.cd-story--feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
}

.cd-story-visual,
.cd-story-image {
  min-height: 18rem;
  border-bottom: 1px solid var(--cd-line);
}

.cd-story--feature .cd-story-visual {
  border-right: 1px solid var(--cd-line);
  border-bottom: 0;
}

.cd-story-visual--grammar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.2vw, 1.7rem);
  overflow: hidden;
  background:
    linear-gradient(168deg, transparent 0 44%, rgba(177, 194, 78, 0.16) 44.5% 48%, transparent 48.5%),
    repeating-linear-gradient(90deg, rgba(47, 98, 103, 0.04) 0 1px, transparent 1px 18px),
    #dbe6e4;
}

.cd-visual-word {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.8rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.cd-visual-word:last-child {
  color: var(--cd-teal);
}

.cd-visual-symbol {
  color: var(--cd-rust);
  font-family: var(--cd-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.cd-story-image {
  overflow: hidden;
  background: #e7ece9;
}

.cd-story-image--coral {
  background: #eee7e1;
}

.cd-story-image img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: saturate(70%) contrast(0.98);
  object-fit: cover;
  transition: filter 180ms ease;
}

.cd-story:hover .cd-story-image img {
  filter: saturate(92%) contrast(1);
}

.cd-story-copy {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: clamp(1.4rem, 2.7vw, 2.3rem);
}

.cd-story-tag {
  color: var(--cd-teal);
}

.cd-story-copy h3 {
  margin: 1rem 0 0.9rem;
  font-family: var(--cd-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.cd-story-copy > p:not(.cd-story-tag) {
  max-width: 34rem;
  color: #4e5c61;
  font-size: 0.9rem;
  line-height: 1.65;
}

.cd-story-link {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #2f6267;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cd-layers {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  background: var(--cd-navy);
  color: #f4f4f0;
}

.cd-layers .cd-section-label {
  color: #a9c8c5;
}

.cd-layers-intro {
  align-self: start;
}

.cd-layer-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  list-style: none;
}

.cd-layer-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cd-layer-list li > span {
  color: #a9c8c5;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cd-layer-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--cd-display);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cd-layer-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.cd-layer-list code {
  background: rgba(255, 255, 255, 0.08);
}

.cd-final-cta {
  border-top: 1px solid var(--cd-line);
  background: #e5ebe8;
}

.cd-final-cta h2 {
  max-width: 17ch;
}

.cd-action--dark {
  border-color: var(--cd-navy);
  background: var(--cd-navy);
  color: #f8f7f3 !important;
}

.cd-action--dark:hover {
  background: #2c4651;
}

.cd-text-link {
  color: #2f6267 !important;
  font-weight: 700;
  text-decoration-thickness: 0.07em !important;
}

@media (max-width: 62rem) {
  .cd-editorial-hero,
  .cd-grammar-strip,
  .cd-layers {
    grid-template-columns: 1fr;
  }

  .cd-editorial-hero,
  .cd-hero-copy,
  .cd-hero-art {
    min-height: auto;
  }

  .cd-hero-copy {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .cd-hero-art {
    min-height: 34rem;
    border-top: 1px solid rgba(23, 36, 44, 0.18);
    border-left: 0;
  }

  .cd-stories-head {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cd-stories-head > p {
    margin-top: -1.4rem;
  }
}

@media (max-width: 44rem) {
  .md-logo img {
    width: 5.8rem;
    height: 2rem;
  }

  .cd-data-cube {
    width: 3.8rem;
    height: 3.8rem;
    opacity: 0.65;
    transform: scale(0.82) rotate(-7deg) skewY(-4deg);
    transform-origin: top right;
  }

  .cd-data-cube--grammar {
    display: none;
  }

  .cd-hero-copy h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.8rem);
  }

  .cd-hero-art {
    min-height: auto;
  }

  .cd-html-cube-hero {
    padding: 0.75rem;
  }

  .cd-html-cube-frame {
    height: min(31rem, 72vh);
    min-height: 25rem;
  }

  .cd-html-cube-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cd-manifesto-grid,
  .cd-story-grid,
  .cd-story--feature {
    grid-template-columns: 1fr;
  }

  .cd-story--feature {
    grid-column: auto;
  }

  .cd-story--feature .cd-story-visual {
    border-right: 0;
    border-bottom: 1px solid var(--cd-line);
  }

  .cd-story-visual,
  .cd-story-image,
  .cd-story-image img {
    min-height: 13rem;
  }

  .cd-visual-word {
    font-size: clamp(1.5rem, 10vw, 3rem);
  }

  .cd-action {
    width: 100%;
  }

  .cd-final-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cd-action,
  .cd-story,
  .cd-story-image img { transition: none; }
}
