/* Desmond: base color variables for ChipDamageCA peat-mint dark surface */
:root {
  --dphw-bg: #19201c;
  --dphw-panel: #2a312d;
  --dphw-panel-alt: #222925;
  --dphw-accent: #67ad7f;
  --dphw-accent-hover: #79be90;
  --dphw-btn-ink: #11161d;
  --dphw-ink: #eff3ef;
  --dphw-muted: #a4b3aa;
  --dphw-line: #3b463f;
  --dphw-warn: #e09f5a;
  --dphw-radius: 4px;
  --dphw-font-display: 'Gelasio', Georgia, serif;
  --dphw-font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --dphw-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body.dphw-body {
  margin: 0;
  background-color: var(--dphw-bg);
  color: var(--dphw-ink);
  font-family: var(--dphw-font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dphw-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--dphw-accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--dphw-font-display);
  color: var(--dphw-ink);
  line-height: 1.22;
  margin-top: 0;
}

code {
  font-family: var(--dphw-font-mono);
  font-size: 0.88em;
  background-color: var(--dphw-panel-alt);
  border: 1px solid var(--dphw-line);
  padding: 1px 5px;
  border-radius: var(--dphw-radius);
}

.dphw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dphw-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dphw-accent);
  color: var(--dphw-btn-ink);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 900;
}

.dphw-skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Nigel: left-rail desktop shell with sticky navigation column */
.dphw-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
}

.dphw-mobile-bar {
  display: none;
}

.dphw-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--dphw-panel-alt);
  border-right: 1px solid var(--dphw-line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 300;
}

.dphw-rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dphw-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dphw-ink);
  text-decoration: none;
  font-family: var(--dphw-font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

.dphw-brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dphw-brand-stack small {
  font-family: var(--dphw-font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--dphw-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dphw-rail-close {
  display: none;
}

/* Xavier: client-side lookup box in left rail */
.dphw-rail-search {
  position: relative;
}

.dphw-search-wrap {
  position: relative;
}

.dphw-search-wrap input {
  width: 100%;
  background-color: var(--dphw-bg);
  color: var(--dphw-ink);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 9px 34px 9px 11px;
  font-family: var(--dphw-font-body);
  font-size: 0.9rem;
}

.dphw-search-wrap input::placeholder {
  color: var(--dphw-muted);
}

.dphw-search-wrap input:focus {
  outline: 2px solid var(--dphw-accent);
  outline-offset: 1px;
}

.dphw-search-ico {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dphw-muted);
  pointer-events: none;
}

.dphw-lookup-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  background-color: var(--dphw-bg);
  border: 1px solid var(--dphw-accent);
  border-radius: var(--dphw-radius);
  max-height: 260px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 400;
}

.dphw-lookup-list li a {
  display: block;
  padding: 7px 9px;
  color: var(--dphw-ink);
  text-decoration: none;
  font-size: 0.86rem;
  border-radius: var(--dphw-radius);
}

.dphw-lookup-list li a:hover,
.dphw-lookup-list li a:focus {
  background-color: var(--dphw-panel);
  color: var(--dphw-accent);
}

.dphw-lookup-empty {
  padding: 8px 9px;
  font-size: 0.85rem;
  color: var(--dphw-muted);
}

.dphw-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dphw-nav-link {
  display: block;
  padding: 9px 12px;
  color: var(--dphw-ink);
  text-decoration: none;
  border-radius: var(--dphw-radius);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
}

.dphw-nav-link:hover {
  background-color: var(--dphw-panel);
  border-color: var(--dphw-line);
  color: var(--dphw-ink);
}

.dphw-nav-link.is-active {
  background-color: var(--dphw-accent);
  color: var(--dphw-btn-ink);
  font-weight: 700;
}

.dphw-rail-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--dphw-line);
  font-size: 0.82rem;
  color: var(--dphw-muted);
}

.dphw-rail-label {
  font-family: var(--dphw-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dphw-accent);
  margin: 0 0 6px;
  font-size: 0.74rem;
}

.dphw-rail-addr {
  margin: 0 0 8px;
  line-height: 1.45;
}

.dphw-rail-contact {
  display: block;
  margin-bottom: 4px;
  word-break: break-word;
}

.dphw-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dphw-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 40px 64px;
}

/* Meredith: button system with verified contrast ratio >= 4.7:1 */
.dphw-btn-primary,
.dphw-btn-secondary,
.dphw-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--dphw-radius);
  font-family: var(--dphw-font-body);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.dphw-btn-primary {
  background-color: var(--dphw-accent);
  color: var(--dphw-btn-ink);
  border-color: var(--dphw-accent);
}

.dphw-btn-primary:hover {
  background-color: var(--dphw-accent-hover);
  border-color: var(--dphw-accent-hover);
  color: var(--dphw-btn-ink);
}

.dphw-btn-secondary {
  background-color: var(--dphw-panel);
  color: var(--dphw-ink);
  border-color: var(--dphw-line);
}

.dphw-btn-secondary:hover {
  border-color: var(--dphw-accent);
  color: var(--dphw-ink);
}

.dphw-btn-ghost {
  background-color: transparent;
  color: var(--dphw-ink);
  border-color: var(--dphw-line);
}

.dphw-btn-ghost:hover {
  border-color: var(--dphw-accent);
  color: var(--dphw-accent);
}

/* Desmond: bento facts strip hero and offset editorial sections */
.dphw-hero {
  border: 1px solid var(--dphw-line);
  background-color: var(--dphw-panel-alt);
  border-radius: var(--dphw-radius);
  padding: 32px;
  margin-bottom: 44px;
}

.dphw-hero-kicker {
  font-family: var(--dphw-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dphw-accent);
  margin: 0 0 12px;
}

.dphw-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  margin-bottom: 16px;
  max-width: 24ch;
}

.dphw-hero-lead {
  font-size: 1.05rem;
  color: var(--dphw-muted);
  max-width: 68ch;
  margin: 0 0 24px;
}

.dphw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.dphw-bento-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--dphw-line);
  padding-top: 22px;
}

.dphw-bento-tile {
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 16px;
}

.dphw-bento-num {
  display: block;
  font-family: var(--dphw-font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dphw-accent);
  margin-bottom: 4px;
}

.dphw-bento-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dphw-muted);
}

.dphw-section {
  margin-bottom: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--dphw-line);
}

.dphw-section-offset {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dphw-sec-kicker {
  font-family: var(--dphw-font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dphw-accent);
  margin: 0 0 8px;
}

.dphw-sec-head h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  margin-bottom: 10px;
}

.dphw-sec-head p {
  color: var(--dphw-muted);
  margin: 0;
}

/* Nigel: numbered ledger rows for home top-10 ranking board */
.dphw-ledger {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.dphw-ledger-row {
  display: grid;
  grid-template-columns: 58px 180px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 16px;
}

.dphw-ledger-rank {
  font-family: var(--dphw-font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dphw-accent);
  text-align: center;
  border-right: 1px solid var(--dphw-line);
  padding-right: 12px;
}

.dphw-ledger-thumb {
  border-radius: var(--dphw-radius);
  overflow: hidden;
  border: 1px solid var(--dphw-line);
  aspect-ratio: 19 / 12;
  background-color: var(--dphw-bg);
}

.dphw-ledger-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dphw-ledger-info h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.dphw-ledger-info p {
  margin: 0 0 10px;
  color: var(--dphw-muted);
  font-size: 0.92rem;
}

.dphw-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dphw-tag {
  font-family: var(--dphw-font-mono);
  font-size: 0.74rem;
  padding: 2px 8px;
  border: 1px solid var(--dphw-line);
  background-color: var(--dphw-panel-alt);
  color: var(--dphw-ink);
  border-radius: var(--dphw-radius);
}

.dphw-ledger-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.dphw-score-box {
  font-family: var(--dphw-font-mono);
  font-size: 0.85rem;
  color: var(--dphw-muted);
}

.dphw-score-box strong {
  color: var(--dphw-accent);
  font-size: 1.1rem;
}

.dphw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dphw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dphw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dphw-card {
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 20px;
}

.dphw-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.dphw-card p {
  margin: 0;
  color: var(--dphw-muted);
  font-size: 0.93rem;
}

.dphw-card-cover {
  margin: -20px -20px 14px;
  border-bottom: 1px solid var(--dphw-line);
  aspect-ratio: 19 / 12;
  overflow: hidden;
  border-radius: var(--dphw-radius) var(--dphw-radius) 0 0;
}

.dphw-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dphw-meta-line {
  font-family: var(--dphw-font-mono);
  font-size: 0.78rem;
  color: var(--dphw-accent);
  margin-bottom: 6px;
  display: block;
}

/* Xavier: native details accordion for FAQ sections */
.dphw-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dphw-faq-item {
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
}

.dphw-faq-item summary {
  padding: 15px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dphw-faq-item summary::-webkit-details-marker {
  display: none;
}

.dphw-faq-item summary::after {
  content: '+';
  font-family: var(--dphw-font-mono);
  color: var(--dphw-accent);
  font-size: 1.15rem;
}

.dphw-faq-item[open] summary::after {
  content: '−';
}

.dphw-faq-body {
  padding: 0 18px 16px;
  color: var(--dphw-muted);
  border-top: 1px solid var(--dphw-line);
  padding-top: 12px;
  font-size: 0.94rem;
}

/* Meredith: filter tabs, data tables, and article prose layout */
.dphw-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.dphw-filter-btn {
  background-color: var(--dphw-panel);
  color: var(--dphw-ink);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 7px 14px;
  font-family: var(--dphw-font-mono);
  font-size: 0.82rem;
  cursor: pointer;
}

.dphw-filter-btn.is-active {
  background-color: var(--dphw-accent);
  color: var(--dphw-btn-ink);
  border-color: var(--dphw-accent);
  font-weight: 600;
}

.dphw-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  margin: 18px 0;
}

.dphw-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--dphw-panel);
  font-size: 0.92rem;
}

.dphw-table th,
.dphw-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dphw-line);
  vertical-align: top;
}

.dphw-table th {
  background-color: var(--dphw-panel-alt);
  font-family: var(--dphw-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dphw-accent);
}

.dphw-prose {
  max-width: 78ch;
}

.dphw-prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.dphw-prose h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.dphw-prose p,
.dphw-prose li {
  color: var(--dphw-muted);
}

.dphw-prose ul,
.dphw-prose ol {
  padding-left: 22px;
}

.dphw-toc {
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 18px 20px;
  margin: 20px 0 28px;
}

.dphw-toc-title {
  font-family: var(--dphw-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--dphw-accent);
  margin: 0 0 10px;
}

.dphw-toc ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

/* Desmond: contact form controls and validation alerts */
.dphw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 24px;
}

.dphw-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dphw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dphw-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dphw-ink);
}

.dphw-field input,
.dphw-field select,
.dphw-field textarea {
  width: 100%;
  background-color: var(--dphw-bg);
  color: var(--dphw-ink);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 10px 12px;
  font-family: var(--dphw-font-body);
  font-size: 0.95rem;
}

.dphw-field input[aria-invalid="true"],
.dphw-field textarea[aria-invalid="true"] {
  border-color: var(--dphw-warn);
}

.dphw-field-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.dphw-alert {
  background-color: var(--dphw-panel-alt);
  border: 1px solid var(--dphw-warn);
  border-left: 4px solid var(--dphw-warn);
  border-radius: var(--dphw-radius);
  padding: 14px 16px;
  color: var(--dphw-ink);
  font-size: 0.92rem;
}

.dphw-alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Nigel: footer and consent banner/dialog layout */
.dphw-footer {
  border-top: 1px solid var(--dphw-line);
  background-color: var(--dphw-panel-alt);
  padding: 40px 40px 32px;
}

.dphw-footer-grid {
  max-width: 1120px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  gap: 28px;
}

.dphw-footer-summary {
  color: var(--dphw-muted);
  font-size: 0.9rem;
  margin: 12px 0 16px;
}

.dphw-footer-heading {
  font-family: var(--dphw-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dphw-accent);
  margin: 0 0 12px;
}

.dphw-footer-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.dphw-contact-dl {
  margin: 0;
  font-size: 0.86rem;
}

.dphw-contact-dl dt {
  font-family: var(--dphw-font-mono);
  color: var(--dphw-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 8px;
}

.dphw-contact-dl dd {
  margin: 2px 0 0;
  color: var(--dphw-muted);
}

.dphw-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--dphw-line);
}

.dphw-footer-disclosure {
  font-size: 0.84rem;
  color: var(--dphw-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.dphw-copyright {
  font-family: var(--dphw-font-mono);
  font-size: 0.78rem;
  color: var(--dphw-muted);
  margin: 0;
}

.dphw-privacy-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 600;
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-accent);
  border-radius: var(--dphw-radius);
  padding: 18px 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.dphw-privacy-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dphw-privacy-bar-copy {
  flex: 1 1 420px;
  font-size: 0.88rem;
  color: var(--dphw-muted);
}

.dphw-privacy-bar-copy p {
  margin: 0;
}

.dphw-privacy-bar-title {
  color: var(--dphw-ink);
  font-weight: 700;
  margin-bottom: 4px !important;
}

.dphw-privacy-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dphw-prefs-dialog {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dphw-prefs-dialog[hidden] {
  display: none;
}

.dphw-tray-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 22, 29, 0.82);
}

.dphw-prefs-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background-color: var(--dphw-panel);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 24px;
}

.dphw-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dphw-panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.dphw-tray-exit {
  background: var(--dphw-panel-alt);
  color: var(--dphw-ink);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  padding: 6px 12px;
  cursor: pointer;
}

.dphw-prefs-intro {
  color: var(--dphw-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.dphw-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background-color: var(--dphw-panel-alt);
  border: 1px solid var(--dphw-line);
  border-radius: var(--dphw-radius);
  margin-bottom: 12px;
}

.dphw-pref-item p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--dphw-muted);
}

.dphw-state-tag {
  font-family: var(--dphw-font-mono);
  font-size: 0.74rem;
  color: var(--dphw-accent);
  white-space: nowrap;
}

.dphw-switch {
  width: 20px;
  height: 20px;
  accent-color: var(--dphw-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.dphw-prefs-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Xavier: responsive drawer and stacked layouts below 1040px */
@media (max-width: 1040px) {
  .dphw-shell {
    grid-template-columns: 1fr;
  }

  .dphw-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--dphw-panel-alt);
    border-bottom: 1px solid var(--dphw-line);
    position: sticky;
    top: 0;
    z-index: 350;
  }

  .dphw-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dphw-phone-mini {
    font-family: var(--dphw-font-mono);
    font-size: 0.78rem;
    text-decoration: none;
  }

  .dphw-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--dphw-panel);
    color: var(--dphw-ink);
    border: 1px solid var(--dphw-line);
    border-radius: var(--dphw-radius);
    padding: 7px 11px;
    font-weight: 600;
    cursor: pointer;
  }

  .dphw-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(310px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 500;
  }

  .dphw-rail.is-open {
    transform: translateX(0);
  }

  .dphw-rail-close {
    display: inline-block;
    background-color: var(--dphw-panel);
    color: var(--dphw-ink);
    border: 1px solid var(--dphw-line);
    border-radius: var(--dphw-radius);
    padding: 5px 10px;
    cursor: pointer;
  }

  .dphw-main {
    padding: 24px 18px 48px;
  }

  .dphw-section-offset {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dphw-ledger-row {
    grid-template-columns: 44px 130px minmax(0, 1fr);
  }

  .dphw-ledger-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--dphw-line);
    padding-top: 12px;
  }

  .dphw-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dphw-footer {
    padding: 32px 18px 28px;
  }

  .dphw-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dphw-phone-mini {
    display: none;
  }

  .dphw-hero {
    padding: 20px;
  }

  .dphw-bento-strip,
  .dphw-grid-2,
  .dphw-grid-3,
  .dphw-grid-4,
  .dphw-field-row,
  .dphw-toc ul {
    grid-template-columns: 1fr;
  }

  .dphw-ledger-row {
    grid-template-columns: 1fr;
  }

  .dphw-ledger-rank {
    border-right: 0;
    border-bottom: 1px solid var(--dphw-line);
    padding-right: 0;
    padding-bottom: 8px;
    text-align: left;
  }
}
