.digital-privacy-band {
  background: #003a5f;
  color: #fff;
}

.digital-privacy-band .section-shell {
  padding-block: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 70px);
}

.digital-privacy-band p {
  margin: 0;
  color: #dceef6;
  font-size: .88rem;
  line-height: 1.65;
}

.digital-privacy-band strong {
  color: #fff;
}

.digital-use-shell {
  padding-block: 34px 100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 900px);
  justify-content: center;
  gap: clamp(44px, 7vw, 90px);
  align-items: start;
}

.digital-reading-nav {
  top: 178px;
}

.digital-use-content {
  min-width: 0;
}

.digital-section {
  padding-block: 48px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 175px;
}

.digital-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.digital-section > p:not(.article-label),
.digital-section > ul {
  color: var(--muted);
}

.device-guide-grid,
.evidence-position-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.device-guide,
.evidence-position-grid article {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.device-guide {
  border-top: 4px solid var(--navy);
}

.device-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 8px;
  align-items: center;
  background: var(--pale-blue);
  color: var(--navy);
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.device-guide h3 {
  margin: 14px 0 12px;
}

.device-guide ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--ink);
}

.device-guide li {
  padding-left: .25rem;
  line-height: 1.55;
}

.device-guide li + li {
  margin-top: 7px;
}

.device-guide p,
.evidence-position-grid p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.62;
}

.device-guide a {
  font-size: .83rem;
  font-weight: 800;
}

.measurement-warning,
.no-risk-notice {
  margin-top: 20px;
  padding: 17px 18px;
  background: var(--pale-blue);
  border-left: 5px solid var(--blue);
  border-radius: 7px;
}

.measurement-warning strong,
.no-risk-notice strong {
  color: var(--ink);
}

.measurement-warning p,
.no-risk-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.62;
}

.digital-tool-section {
  margin-inline: clamp(-24px, -2vw, -12px);
  padding-inline: clamp(12px, 2vw, 24px);
  background: var(--subtle);
  border-radius: var(--radius);
}

.digital-use-form {
  margin-top: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-scope {
  margin: 0;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.entry-scope legend,
.time-fieldset legend,
.reference-field > span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.entry-scope legend {
  margin-bottom: 10px;
}

.entry-scope label {
  min-width: 0;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}

.entry-scope label:has(input:checked) {
  background: var(--pale-blue);
  border-color: var(--blue);
}

.entry-scope input {
  margin-top: .22rem;
}

.entry-scope label > span {
  display: grid;
  gap: 3px;
}

.entry-scope strong {
  color: var(--ink);
  font-size: .88rem;
}

.entry-scope small,
.field-note,
.time-fieldset small,
.reference-field small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.field-note {
  margin: 11px 0 0;
}

.digital-input-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.time-fieldset,
.reference-field,
.reference-fit {
  min-width: 0;
  margin: 0;
  padding: 15px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.time-pair {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.time-pair label {
  display: grid;
  gap: 5px;
}

.time-pair label > span {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 750;
}

.time-pair input,
.reference-field select {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.time-fieldset small,
.reference-field small {
  display: block;
  margin-top: 9px;
}

.reference-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.reference-fit {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
}

.reference-fit input {
  margin-top: .22rem;
  flex: 0 0 auto;
}

.reference-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.form-error {
  margin: 12px 0 0;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--burgundy) 13%, var(--surface));
  color: var(--ink);
  border-left: 5px solid var(--burgundy);
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 750;
}

.digital-form-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.digital-results {
  margin-top: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.results-heading-row,
.reference-result-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.results-heading-row h3,
.reference-result-heading h3 {
  margin: 0;
}

.results-heading-row > p,
.reference-result-heading > span {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
  text-align: right;
}

.digital-stat-grid {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.digital-stat-grid > div {
  min-height: 108px;
  padding: 16px;
  display: grid;
  align-content: center;
  background: var(--page);
}

.digital-stat-grid dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.digital-stat-grid dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.digital-stat-grid span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.composition-figure {
  margin-top: 20px;
}

.composition-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: .72rem;
}

.composition-labels span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.composition-labels i {
  width: 14px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
}

.legend-social,
.composition-social {
  background: var(--burgundy);
}

.legend-other,
.composition-other {
  background: var(--light-blue);
}

.composition-track {
  min-height: 22px;
  margin-top: 9px;
  display: flex;
  overflow: hidden;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.composition-track span {
  width: 0;
  transition: width .18s ease;
}

.composition-figure > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.reference-result {
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.reference-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.reference-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: .8rem;
}

.reference-table th,
.reference-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.reference-table thead th {
  background: var(--subtle);
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reference-table tbody tr:last-child th,
.reference-table tbody tr:last-child td {
  border-bottom: 0;
}

.reference-table tbody th {
  color: var(--ink);
}

.reference-interpretation {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.reference-provenance {
  margin-top: 13px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.reference-provenance summary {
  padding: 12px 14px;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
}

.reference-provenance[open] summary {
  border-bottom: 1px solid var(--border);
}

.reference-provenance > div {
  padding: 14px;
}

.reference-provenance dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reference-provenance dl > div {
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.reference-provenance dt {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-provenance dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: .78rem;
}

.reference-provenance p {
  margin: 12px 0 0;
  font-size: .78rem;
}

.reflection-grid {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.reflection-grid li {
  min-width: 0;
  padding: 17px;
  display: grid;
  gap: 6px;
  background: var(--surface);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
}

.reflection-grid strong {
  color: var(--ink);
}

.reflection-grid span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.health-boundary {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
}

.evidence-position-grid article {
  border-top: 4px solid var(--blue);
}

.evidence-position-grid h3 {
  margin-bottom: 8px;
}

.evidence-position-grid p {
  margin: 0;
}

.digital-source-list {
  margin: 22px 0 0;
  padding-left: 1.25rem;
}

.digital-source-list li {
  padding-left: .28rem;
  line-height: 1.65;
}

.digital-source-list li + li {
  margin-top: 10px;
}

.digital-source-list strong {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .composition-track span {
    transition: none;
  }
}

@media (max-width: 980px) {
  .digital-use-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .digital-reading-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .digital-reading-nav strong {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .digital-privacy-band .section-shell,
  .device-guide-grid,
  .evidence-position-grid,
  .digital-input-grid,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .entry-scope {
    grid-template-columns: 1fr;
  }

  .digital-stat-grid {
    grid-template-columns: 1fr;
  }

  .digital-stat-grid > div {
    min-height: 86px;
  }

  .reference-provenance dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .digital-use-shell {
    width: min(calc(100% - 28px), var(--content));
    padding-bottom: 70px;
  }

  .digital-section {
    padding-block: 38px;
  }

  .digital-tool-section {
    margin-inline: 0;
    padding-inline: 0;
    background: transparent;
  }

  .digital-use-form,
  .digital-results {
    padding: 16px;
  }

  .time-pair {
    grid-template-columns: 1fr;
  }

  .digital-form-actions {
    display: grid;
  }

  .results-heading-row,
  .reference-result-heading {
    display: grid;
  }

  .results-heading-row > p,
  .reference-result-heading > span {
    text-align: left;
  }
}
