/* Due process orders — public records database */

:root {
  --dp-navy: #182743;
  --dp-yellow: #ffef4b;
  --dp-yellow-hover: #ffe820;
  --dp-white: #ffffff;
  --dp-beige: #faf8f4;
  --dp-gray-50: #f7f8fa;
  --dp-gray-100: #eef0f3;
  --dp-gray-200: #e2e5ea;
  --dp-gray-500: #6b7280;
  --dp-gray-700: #374151;
  --dp-max: 1080px;
  --dp-doc: 720px;
  --dp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dp-sticky: calc(var(--fpa-site-nav-bar-height, 56px) + 16px);
}

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

body.dp-page {
  margin: 0;
  background: var(--dp-white);
  color: var(--dp-navy);
  font-family: var(--dp-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dp-wrap {
  width: 100%;
  max-width: var(--dp-max);
  margin: 0 auto;
  padding: 0 24px;
}

.dp-main :where(h1, h2, h3, p, ul, ol, dl) {
  margin: 0;
}

/* ─── Index: yellow band + search ─── */
.dp-index-hero {
  background: var(--dp-yellow);
  padding: 48px 0 72px;
  position: relative;
  overflow: hidden;
}

.dp-index-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(24 39 67 / 0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.dp-index-hero .dp-wrap {
  position: relative;
  z-index: 1;
}

.dp-index-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.dp-index-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: none;
}

.dp-search-wrap {
  width: 100%;
  max-width: 720px;
  margin-top: 20px;
}

.dp-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px 8px 18px;
  background: var(--dp-white);
  border: 1px solid var(--dp-gray-200);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgb(17 17 17 / 0.1);
}

.dp-search-icon {
  flex-shrink: 0;
  font-size: 26px;
  color: var(--dp-gray-500);
  line-height: 1;
}

.dp-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--dp-navy);
  outline: none;
  padding: 10px 0;
}

.dp-search-input::placeholder {
  color: var(--dp-gray-500);
}

.dp-search-clear {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dp-gray-500);
  cursor: pointer;
  padding: 0;
}

.dp-search-clear .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.dp-search-clear:hover {
  background: var(--dp-gray-50);
  color: var(--dp-navy);
}

.dp-search-clear[hidden] {
  display: none;
}

/* ─── Index: order list ─── */
.dp-index-body {
  padding: 0 0 80px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.dp-index-panel {
  background: var(--dp-white);
  border: 1px solid var(--dp-gray-200);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgb(24 39 67 / 0.06);
  overflow: hidden;
}

.dp-index-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--dp-gray-200);
  background: var(--dp-gray-50);
}

.dp-index-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-index-filter:first-child {
  flex: 1 1 auto;
}

.dp-index-filter:last-child {
  flex: 0 0 auto;
  min-width: 7rem;
}

.dp-index-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dp-gray-500);
  line-height: 1.2;
}

.dp-index-filter-select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--dp-gray-200);
  border-radius: 8px;
  background: var(--dp-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  padding: 10px 36px 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-navy);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-index-filter-select:hover {
  border-color: var(--dp-gray-500);
}

.dp-index-filter-select:focus-visible {
  outline: none;
  border-color: var(--dp-navy);
  box-shadow: 0 0 0 3px rgb(24 39 67 / 0.12);
}

.dp-orders {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-order {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  gap: 4px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dp-gray-200);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s ease;
}

.dp-order-case {
  font-size: 13px;
  font-weight: 600;
  color: var(--dp-gray-500);
  grid-column: 1 / -1;
}

.dp-order-district {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dp-navy);
  line-height: 1.3;
  grid-column: 1;
  grid-row: 2;
}

.dp-order-blurb {
  font-size: 14px;
  color: var(--dp-gray-700);
  line-height: 1.55;
  grid-column: 1;
  grid-row: 3;
}

.dp-order-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: start;
}

.dp-order:last-child {
  border-bottom: none;
}

.dp-order:hover {
  background: var(--dp-gray-50);
}

.dp-order[hidden] {
  display: none;
}

.dp-order-date {
  font-size: 14px;
  color: var(--dp-gray-500);
  white-space: nowrap;
}

.dp-index-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--dp-gray-200);
}

.dp-index-pagination[hidden] {
  display: none;
}

.dp-pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--dp-gray-200);
  border-radius: 8px;
  background: var(--dp-white);
  color: var(--dp-navy);
  font-family: var(--dp-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dp-pagination-btn:hover:not(:disabled) {
  background: var(--dp-gray-50);
  border-color: var(--dp-gray-500);
}

.dp-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dp-pagination-range {
  font-size: 14px;
  color: var(--dp-gray-500);
  white-space: nowrap;
}

.dp-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.dp-pagination-page {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--dp-gray-700);
  font-family: var(--dp-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dp-pagination-page:hover {
  background: var(--dp-gray-50);
  color: var(--dp-navy);
}

.dp-pagination-page.is-active {
  background: var(--dp-navy);
  color: #fff;
  font-weight: 600;
}

.dp-pagination-page.is-active:hover {
  background: var(--dp-navy);
  color: #fff;
}

.dp-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--dp-gray-500);
  font-size: 15px;
}

/* ─── Index: stats map (WIP) ─── */
.dp-map-tool {
  padding: 72px 0 96px;
  background: var(--dp-beige);
  border-top: 1px solid var(--dp-gray-200);
}

.dp-map-tool-intro {
  max-width: 40rem;
  margin-bottom: 24px;
}

.dp-wip-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--dp-yellow);
  color: var(--dp-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dp-map-tool-intro h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--dp-navy);
  margin-bottom: 12px;
}

.dp-map-tool-intro p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dp-gray-700);
}

.dp-map-tool-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dp-map-metric-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--dp-gray-200);
  border-radius: 10px;
  background: var(--dp-white);
}

.dp-map-metric-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dp-gray-700);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dp-map-metric-btn.is-active {
  background: var(--dp-navy);
  color: var(--dp-white);
}

.dp-map-year-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 7rem;
}

.dp-map-year-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dp-gray-500);
}

.dp-map-year-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--dp-gray-200);
  border-radius: 10px;
  background: var(--dp-white);
  color: var(--dp-navy);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
}

.dp-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: stretch;
}

.dp-map-canvas-wrap {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--dp-gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--dp-white);
  box-shadow: 0 4px 20px rgb(24 39 67 / 0.05);
}

.dp-map-canvas {
  width: 100%;
  height: 420px;
}

.dp-map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  margin: 0;
  padding: 24px;
  color: var(--dp-gray-500);
  text-align: center;
}

.dp-map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: min(200px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.96);
  border: 1px solid var(--dp-gray-200);
  box-shadow: 0 2px 12px rgb(24 39 67 / 0.1);
}

.dp-map-legend-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-navy);
  line-height: 1.3;
}

.dp-map-legend-scale {
  display: block;
}

.dp-map-legend-bar {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
}

.dp-map-legend-bar--volume {
  background: linear-gradient(90deg, #e8eaee 0%, #fff3b0 20%, #182743 100%);
}

.dp-map-legend-bar--prevail {
  background: linear-gradient(90deg, #b91c1c 0%, #f59e0b 50%, #15803d 100%);
}

.dp-map-legend-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--dp-gray-500);
  line-height: 1;
}

.dp-map-detail {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dp-gray-200);
  border-radius: 12px;
  background: var(--dp-white);
  box-shadow: 0 2px 16px rgb(24 39 67 / 0.06);
  overflow: hidden;
  align-self: start;
}

.dp-map-detail-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--dp-gray-200);
}

.dp-map-detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dp-navy);
  margin: 0 0 10px;
  line-height: 1.25;
}

.dp-map-prevail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-map-prevail-track {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 5rem;
  flex-shrink: 0;
}

.dp-map-prevail-seg {
  flex: 1;
  height: 7px;
  border-radius: 2px;
  background: #e8eaee;
}

.dp-map-prevail-seg.is-filled {
  opacity: 1;
}

.dp-map-prevail-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--dp-gray-500);
}

.dp-map-prevail-pct {
  font-weight: 700;
  color: var(--dp-navy);
}

.dp-map-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.dp-map-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dp-gray-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.dp-map-detail-list li:last-child .dp-map-detail-row {
  border-bottom: none;
}

.dp-map-detail-row:hover {
  background: var(--dp-gray-50);
}

.dp-map-detail-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dp-map-detail-row-district {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dp-navy);
  line-height: 1.35;
}

.dp-map-detail-row-meta {
  font-size: 13px;
  color: var(--dp-gray-500);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-map-detail-row-chevron {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--dp-gray-500);
}

.dp-map-detail-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  padding: 32px 24px;
  text-align: center;
}

.dp-map-detail-empty-icon {
  font-size: 32px;
  color: var(--dp-gray-200);
}

.dp-map-detail-empty {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dp-gray-500);
  margin: 0;
  max-width: 14rem;
}

.dp-map-detail > .dp-map-detail-empty,
.dp-map-detail-head + .dp-map-detail-empty {
  padding: 20px;
  margin: 0;
}

.dp-map-footnote {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dp-gray-500);
}

@media (max-width: 900px) {
  .dp-map-tool {
    padding: 56px 0 72px;
  }

  .dp-map-layout {
    grid-template-columns: 1fr;
  }

  .dp-map-detail {
    align-self: stretch;
  }

  .dp-map-detail-list {
    max-height: none;
  }

  .dp-map-canvas,
  .dp-map-canvas-wrap {
    min-height: 320px;
    height: 320px;
  }
}

/* ─── Outcome tags ─── */
.dp-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dp-tag--granted { background: #dcfce7; color: #166534; }
.dp-tag--denied { background: #fee2e2; color: #991b1b; }
.dp-tag--partial { background: #fef3c7; color: #92400e; }
.dp-tag--dismissed { background: var(--dp-gray-100); color: var(--dp-gray-700); }
.dp-tag--settled { background: #dbeafe; color: #1e40af; }

/* ─── Order detail page ─── */
.dp-order-header {
  background: var(--dp-beige);
  border-bottom: 1px solid var(--dp-gray-200);
  padding: 24px 0 28px;
}

.dp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dp-gray-500);
  margin-bottom: 20px;
}

.dp-crumb a {
  color: var(--dp-gray-700);
  text-decoration: none;
  font-weight: 500;
}

.dp-crumb a:hover {
  color: var(--dp-navy);
  text-decoration: underline;
  text-decoration-color: var(--dp-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.dp-order-type {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dp-gray-500);
  margin-bottom: 8px;
}

.dp-order-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dp-order-caption {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--dp-gray-700);
}

/* Outcome banner */
.dp-outcome-banner {
  width: 100%;
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}

.dp-outcome-banner-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.4;
}

.dp-outcome-banner-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  padding-right: 14px;
  margin-right: 12px;
  border-right: 1px solid rgb(255 255 255 / 0.45);
}

.dp-outcome-banner-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.4;
}

.dp-outcome-banner--denied {
  background: #b91c1c;
  color: #fff;
}

.dp-outcome-banner--granted {
  background: #15803d;
  color: #fff;
}

.dp-outcome-banner--partial {
  background: #b45309;
  color: #fff;
}

.dp-outcome-banner--dismissed {
  background: var(--dp-gray-700);
  color: #fff;
}

.dp-outcome-banner--settled {
  background: #1d4ed8;
  color: #fff;
}

.dp-outcome-banner + .dp-wrap.dp-order-layout {
  padding-top: 32px;
}

/* Document layout */
.dp-order-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 32px 24px 80px;
  align-items: start;
}

.dp-doc-nav {
  position: sticky;
  top: var(--dp-sticky);
  max-height: calc(100vh - var(--dp-sticky) - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dp-gray-200) transparent;
}

/* Mobile TOC (collapsible) */
.dp-toc--mobile {
  border: none;
  margin: 0;
  padding: 0;
}

.dp-toc-desktop {
  display: none;
}

.dp-doc-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dp-gray-500);
  margin-bottom: 12px;
}

.dp-toc-rail {
  position: relative;
}

.dp-toc-rail-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--dp-gray-200);
  border-radius: 1px;
}

.dp-toc-rail-indicator {
  position: absolute;
  left: -1px;
  width: 4px;
  background: var(--dp-navy);
  border-radius: 2px;
  transition: top 0.2s ease, height 0.2s ease;
  pointer-events: none;
}

.dp-toc-list,
.dp-toc--mobile > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-toc-link {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dp-gray-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Desktop sidebar links */
@media (min-width: 801px) {
  .dp-toc--mobile {
    display: none;
  }

  .dp-toc-desktop {
    display: block;
  }

  .dp-toc-rail .dp-toc-link {
    padding: 10px 0 10px 20px;
  }

  .dp-toc-rail .dp-toc-link:hover {
    color: var(--dp-navy);
  }

  .dp-toc-rail .dp-toc-link.is-active {
    color: var(--dp-navy);
    font-weight: 600;
  }
}

.dp-toc-trigger {
  display: none;
}

.dp-doc {
  max-width: var(--dp-doc);
}

.dp-doc-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dp-gray-700);
  padding: 14px 16px;
  background: var(--dp-gray-50);
  border-left: 3px solid var(--dp-yellow);
  margin-bottom: 40px;
}

.dp-doc-section {
  margin-bottom: 48px;
  scroll-margin-top: var(--dp-sticky);
}

.dp-doc-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dp-gray-200);
}

#caption h2 {
  margin-top: 32px;
}

.dp-doc-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dp-gray-700);
  margin-bottom: 14px;
}

.dp-doc-section p:last-child {
  margin-bottom: 0;
}

.dp-doc-section ol {
  padding-left: 1.25rem;
  margin: 0;
}

.dp-doc-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dp-gray-700);
  margin-bottom: 12px;
}

.dp-doc-section li:last-child {
  margin-bottom: 0;
}

.dp-doc-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--dp-gray-200);
  font-size: 14px;
  color: var(--dp-gray-500);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Share ─── */
.dp-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--dp-gray-200);
}

.dp-share-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-navy);
  margin-bottom: 16px;
}

.dp-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dp-gray-200);
  border-radius: 10px;
  background: var(--dp-white);
  color: var(--dp-navy);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dp-share-btn:hover {
  background: var(--dp-gray-50);
  border-color: var(--dp-gray-500);
}

.dp-share-btn:active {
  transform: translateY(1px);
}

.dp-share-btn--copy {
  min-width: 7.75rem;
  padding-right: 18px;
}

.dp-share-btn--copy.is-copied {
  background: var(--dp-beige);
  border-color: var(--dp-navy);
}

.dp-share-btn-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dp-share-btn-icon .dp-share-svg {
  position: absolute;
  inset: 0;
  transition: opacity 0.15s ease;
}

.dp-share-icon-check {
  opacity: 0;
}

.dp-share-btn--copy.is-copied .dp-share-icon-copy {
  opacity: 0;
}

.dp-share-btn--copy.is-copied .dp-share-icon-check {
  opacity: 1;
}

.dp-share-btn--icon {
  width: 44px;
  padding: 0;
}

.dp-share-svg {
  display: block;
  flex-shrink: 0;
}

.dp-share-btn-label {
  white-space: nowrap;
}

.dp-doc-footer a {
  color: var(--dp-navy);
  font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 800px) {
  .dp-order-header {
    padding: 18px 0 20px;
  }

  .dp-crumb {
    font-size: 13px;
    margin-bottom: 14px;
    gap: 6px;
    line-height: 1.35;
  }

  .dp-order-type {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .dp-order-header h1 {
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .dp-order-caption {
    margin-top: 6px;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .dp-outcome-banner-inner {
    align-items: center;
    padding: 16px 20px !important;
  }

  .dp-outcome-banner-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding-right: 12px;
    margin-right: 12px;
  }

  .dp-outcome-banner-text {
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
  }

  .dp-outcome-banner + .dp-wrap.dp-order-layout {
    padding-top: 28px;
  }

  .dp-order-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 64px;
  }

  .dp-doc-nav {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
  }

  .dp-toc-desktop {
    display: none;
  }

  .dp-toc--mobile {
    display: block;
    border: 1px solid var(--dp-gray-200);
    border-radius: 12px;
    background: var(--dp-white);
    box-shadow: 0 4px 16px rgb(24 39 67 / 0.06);
    overflow: hidden;
  }

  .dp-toc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dp-navy);
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  .dp-toc-trigger::-webkit-details-marker {
    display: none;
  }

  .dp-toc-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dp-gray-500);
    border-bottom: 2px solid var(--dp-gray-500);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-top: -4px;
  }

  .dp-toc--mobile[open] .dp-toc-trigger::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .dp-toc--mobile > ul {
    padding: 0 8px 8px;
    max-height: min(50vh, 320px);
    overflow-y: auto;
  }

  .dp-toc--mobile .dp-toc-link {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dp-gray-700);
  }

  .dp-toc--mobile .dp-toc-link:hover,
  .dp-toc--mobile .dp-toc-link.is-active {
    background: var(--dp-gray-50);
    color: var(--dp-navy);
    font-weight: 600;
  }

  .dp-toc--mobile li + li .dp-toc-link {
    border-top: 1px solid var(--dp-gray-100);
  }

  .dp-order {
    grid-template-columns: 1fr;
  }

  .dp-order-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .dp-index-hero {
    padding: 36px 0 64px;
  }

  .dp-wrap {
    padding: 0 20px;
  }

  .dp-order-header {
    padding: 16px 0 18px;
  }

  .dp-outcome-banner + .dp-wrap.dp-order-layout {
    padding-top: 24px;
  }

  .dp-doc-note {
    margin-bottom: 32px;
    font-size: 13px;
    padding: 12px 14px;
  }
}
