.d2d-page {
  padding-block: 38px 110px;
}

.d2d-hero {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.d2d-title-row { display: flex; align-items: center; gap: 13px; }
.d2d-title-icon { flex: none; color: var(--green); font-size: clamp(27px, 2.7vw, 36px); }
.d2d-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.05em;
}
.d2d-hero-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-top: 13px;
}
.d2d-hero-intro > p:not(.d2d-update) {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.d2d-update {
  flex: none;
  margin: 0;
  color: #777a72;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.d2d-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.d2d-stat {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px 23px 19px;
  background: #10110f;
}
.d2d-stat > span,
.d2d-stat small {
  color: #777a72;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.d2d-stat strong {
  color: #f0f1ec;
  font-family: var(--display);
  font-size: clamp(35px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -.05em;
}
.d2d-stat-yes strong { color: var(--green); }
.d2d-stat-no strong { color: #ee7772; }
.d2d-stat-pending strong { color: #d5b66b; }

.d2d-insight {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(300px, .8fr) minmax(280px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}
.d2d-insight h2,
.d2d-catalogue-heading h2 {
  margin: 10px 0 15px;
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.048em;
}
.d2d-insight-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.d2d-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; }
.d2d-donut {
  --d2d-yes: 0deg;
  --d2d-no: 0deg;
  width: 150px;
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--d2d-yes), #e45f5a var(--d2d-yes) var(--d2d-no), #c5a450 var(--d2d-no) 360deg);
  position: relative;
}
.d2d-donut::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #0d0d0d; }
.d2d-donut > span { position: relative; z-index: 1; display: grid; text-align: center; }
.d2d-donut b { font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.d2d-donut small { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.d2d-legend { min-width: 132px; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.d2d-legend li { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.d2d-legend i { width: 7px; height: 7px; border-radius: 50%; background: #777; }
.d2d-legend i.is-yes { background: var(--green); }
.d2d-legend i.is-no { background: #e45f5a; }
.d2d-legend i.is-pending { background: #c5a450; }
.d2d-legend b { color: var(--paper); font-family: var(--mono); font-size: 9px; }
.d2d-years { display: grid; gap: 9px; }
.d2d-year-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; align-items: center; gap: 9px; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.d2d-year-row b { color: var(--paper); font-size: 8px; text-align: right; }
.d2d-year-track { height: 6px; overflow: hidden; border-radius: 99px; background: #23251f; }
.d2d-year-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); transform-origin: left; animation: d2d-bar .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes d2d-bar { from { transform: scaleX(0); } }

.d2d-catalogue { padding-top: 56px; }
.d2d-catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.d2d-catalogue-heading h2 { margin-bottom: 0; }
.d2d-catalogue-heading > p { margin: 0 0 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.d2d-controls {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(500px, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.d2d-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #10110f;
  transition: border-color .2s, box-shadow .2s;
}
.d2d-search:focus-within { border-color: rgba(139, 240, 0, .55); box-shadow: 0 0 0 3px rgba(139, 240, 0, .06); }
.d2d-search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.d2d-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: 14px; }
.d2d-search input::placeholder { color: #676a62; }
.d2d-search kbd { min-width: 22px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: #777a72; background: #171814; font-family: var(--mono); font-size: 8px; text-align: center; }
.d2d-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.d2d-selects label { min-width: 0; position: relative; }
.d2d-selects label > span { position: absolute; z-index: 1; left: 13px; top: 7px; color: #6f726a; font-family: var(--mono); font-size: 6px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.d2d-selects select {
  width: 100%;
  min-height: 52px;
  padding: 17px 30px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #10110f;
  color: var(--paper);
  font-size: 11px;
  cursor: pointer;
}
.d2d-selects select:focus { border-color: rgba(139, 240, 0, .55); }

.d2d-filterbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 11px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.d2d-statuses, .d2d-view { display: flex; align-items: center; gap: 7px; }
.d2d-statuses button,
.d2d-view button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: #686b63;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.d2d-statuses button i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d2d-statuses button.is-active { color: #d8dad3; border-color: #4a4c45; background: #171814; }
.d2d-statuses button.is-active.is-yes { color: var(--green); border-color: rgba(139, 240, 0, .32); }
.d2d-statuses button.is-active.is-no { color: #ee7772; border-color: rgba(238, 119, 114, .3); }
.d2d-statuses button.is-active.is-pending { color: #d5b66b; border-color: rgba(213, 182, 107, .3); }
.d2d-view button { width: 34px; padding: 0; border-radius: 5px; }
.d2d-view button.is-active { border-color: rgba(139, 240, 0, .3); color: var(--green); background: rgba(139, 240, 0, .06); }
.d2d-view svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.d2d-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  padding-top: 27px;
}
.d2d-card { min-width: 0; display: flex; flex-direction: column; position: relative; }
.d2d-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: #151613;
  position: relative;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .3s;
}
.d2d-cover img { height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s; }
.d2d-card:hover .d2d-cover { transform: translateY(-3px); border-color: rgba(139, 240, 0, .42); box-shadow: 0 17px 34px rgba(0, 0, 0, .3), 0 0 22px rgba(139, 240, 0, .05); }
.d2d-card:hover .d2d-cover img { transform: scale(1.025); filter: saturate(1.07); }
.d2d-cover-fallback { height: 100%; display: grid; place-items: center; color: var(--green); font-family: var(--mono); font-size: 24px; background: repeating-linear-gradient(135deg, #141612 0 18px, #181b15 18px 36px); }
.d2d-badge { position: absolute; top: 9px; left: 9px; min-height: 23px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 99px; background: rgba(6, 7, 6, .84); backdrop-filter: blur(7px); color: #ddd; font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 5px 14px rgba(0,0,0,.2); }
.d2d-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.d2d-badge.is-yes { color: var(--green); }
.d2d-badge.is-no { color: #ff8580; }
.d2d-badge.is-pending { color: #e2c576; }
.d2d-card-copy { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; }
.d2d-card h3 { margin: 0; color: #eceee8; font-size: 14px; font-weight: 650; line-height: 1.25; letter-spacing: -.018em; transition: color .2s; }
.d2d-card:hover h3 { color: var(--green); }
.d2d-card-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 8px; color: #71746c; font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.d2d-card-platform { display: inline-flex; align-items: center; gap: 6px; }
.d2d-platform-icon { color: var(--green); font-size: 14px; letter-spacing: 0; }
.d2d-card-meta span + span::before { content: "·"; margin-right: 8px; color: #454740; }
.d2d-card-note { display: none; }

.d2d-grid.is-list { display: block; padding-top: 14px; }
.d2d-grid.is-list .d2d-card { min-height: 104px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.d2d-grid.is-list .d2d-cover { width: 64px; border-radius: 4px; }
.d2d-grid.is-list .d2d-badge { position: static; align-self: center; justify-self: end; min-width: 108px; justify-content: center; box-shadow: none; background: #171814; }
.d2d-grid.is-list .d2d-card-copy { padding: 0; }
.d2d-grid.is-list .d2d-card h3 { font-size: 16px; }
.d2d-grid.is-list .d2d-card-note { max-width: 720px; display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }

.d2d-more {
  min-width: 190px;
  min-height: 42px;
  display: block;
  margin: 38px auto 0;
  padding: 0 20px;
  border: 1px solid #50524b;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.d2d-more:hover { border-color: var(--green); background: var(--green); color: #0d0d0d; }
.d2d-empty, .d2d-error { min-height: 280px; display: grid; place-content: center; gap: 7px; text-align: center; }
.d2d-empty strong { font-size: 23px; }
.d2d-empty span, .d2d-error { color: var(--muted); font-size: 13px; }
.d2d-empty[hidden], .d2d-error[hidden] { display: none; }

.d2d-sources { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 38px; padding-top: 45px; margin-top: 66px; border-top: 1px solid var(--line); }
.d2d-sources p { max-width: 740px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.d2d-source-links { display: flex; gap: 18px; }
.d2d-source-links a { color: #aaa; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.d2d-source-links a:hover { color: var(--green); }

html[data-theme="light"] .d2d-stat,
html[data-theme="light"] .d2d-search,
html[data-theme="light"] .d2d-selects select { background: #fff; }
html[data-theme="light"] .d2d-hero-intro > p:not(.d2d-update) { color: #4f554c; }
html[data-theme="light"] .d2d-stat strong,
html[data-theme="light"] .d2d-legend b,
html[data-theme="light"] .d2d-year-row b,
html[data-theme="light"] .d2d-card h3 { color: #20251e; }
html[data-theme="light"] .d2d-stat-yes strong { color: var(--green-readable); }
html[data-theme="light"] .d2d-stat-no strong { color: #b42318; }
html[data-theme="light"] .d2d-stat-pending strong { color: #8b6500; }
html[data-theme="light"] .d2d-donut::before { background: #fff; }
html[data-theme="light"] .d2d-year-track { background: #e6e9e2; }
html[data-theme="light"] .d2d-year-track i { background: var(--green-readable); }
html[data-theme="light"] .d2d-search input,
html[data-theme="light"] .d2d-selects select { color: #20251e; }
html[data-theme="light"] .d2d-search kbd,
html[data-theme="light"] .d2d-statuses button.is-active,
html[data-theme="light"] .d2d-grid.is-list .d2d-badge { background: #f1f3ee; }
html[data-theme="light"] .d2d-statuses button.is-active.is-yes,
html[data-theme="light"] .d2d-view button.is-active { color: var(--green-readable); }
html[data-theme="light"] .d2d-cover { border-color: #d9dcd5; background: #eef0eb; }
html[data-theme="light"] .d2d-card:hover h3 { color: var(--green-readable); }

@media (max-width: 1000px) {
  .d2d-hero { padding-block: 26px 27px; }
  .d2d-hero-intro > p:not(.d2d-update) { max-width: 680px; }
  .d2d-insight { grid-template-columns: 1fr 1fr; }
  .d2d-insight-copy { grid-column: 1 / -1; }
  .d2d-controls { grid-template-columns: 1fr; }
  .d2d-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .d2d-page { width: min(calc(100% - 28px), var(--max)); padding-block: 24px 72px; }
  .d2d-hero { padding-block: 18px 24px; }
  .d2d-title-row { gap: 10px; }
  .d2d-title-icon { font-size: 25px; }
  .d2d-hero h1 { font-size: clamp(38px, 12vw, 50px); }
  .d2d-hero-intro { display: block; margin-top: 10px; }
  .d2d-hero-intro > p:not(.d2d-update) { font-size: 12px; line-height: 1.55; }
  .d2d-update { margin-top: 10px; }
  .d2d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d2d-stat { min-height: 125px; padding: 17px; }
  .d2d-insight { display: block; padding: 42px 0; }
  .d2d-donut-wrap { justify-content: flex-start; margin-top: 30px; }
  .d2d-years { margin-top: 32px; }
  .d2d-catalogue { padding-top: 42px; }
  .d2d-catalogue-heading { display: block; }
  .d2d-catalogue-heading > p { margin-top: 12px; }
  .d2d-controls { margin-top: 22px; }
  .d2d-selects { grid-template-columns: 1fr 1fr; }
  .d2d-selects label:last-child { grid-column: 1 / -1; }
  .d2d-filterbar { align-items: flex-start; }
  .d2d-statuses { flex-wrap: wrap; }
  .d2d-statuses button { min-height: 30px; padding-inline: 10px; font-size: 7px; }
  .d2d-view { padding-top: 1px; }
  .d2d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .d2d-card h3 { font-size: 13px; }
  .d2d-grid.is-list .d2d-card { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .d2d-grid.is-list .d2d-cover { width: 54px; }
  .d2d-grid.is-list .d2d-badge { position: absolute; top: 12px; right: 0; min-width: 0; padding-inline: 7px; }
  .d2d-grid.is-list .d2d-badge span { display: none; }
  .d2d-grid.is-list .d2d-card-copy { padding-right: 31px; }
  .d2d-grid.is-list .d2d-card h3 { font-size: 14px; }
  .d2d-sources { display: block; margin-top: 52px; }
  .d2d-source-links { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .d2d-year-track i { animation: none; }
  .d2d-card:hover .d2d-cover { transform: none; }
}
