/* Consent Dock V1 — scoped to Home and its native top-layer legal reader. */
body.dcd-has-dock { padding-bottom: var(--dcd-reserve, 220px); }
body.dcd-reader-open { overflow: hidden; }
.dcd-dock, .dcd-reader { color: #f1f0ec; font-family: inherit; color-scheme: dark; text-align: start; }
.dcd-dock *, .dcd-reader * { box-sizing: border-box; }
.dcd-dock[hidden], .dcd-reader:not([open]), .dcd-feedback[hidden] { display: none !important; }
.dcd-dock {
  position: fixed; inset-inline: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 9000; width: min(1040px, calc(100% - 36px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 17px 20px; border: 1px solid #bba37155; border-radius: 20px;
  background: rgba(23, 27, 33, .97); box-shadow: 0 16px 54px #0006;
}
@supports (backdrop-filter: blur(12px)) {
  .dcd-dock { background: rgba(23, 27, 33, .94); backdrop-filter: blur(16px); }
}
.dcd-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dcd-heading h2 { margin: 0; color: #f1f0ec; font: inherit; font-size: 15px; font-weight: 650; line-height: 1.4; }
.dcd-mark { color: #cfb782; display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; }
.dcd-mark svg { width: 21px; height: 21px; }
.dcd-badge { color: #d9c392; font-size: 10px; font-weight: 650; letter-spacing: .025em; line-height: 1.5; }
.dcd-copy > p { max-width: 58ch; margin: 6px 0 0; color: #c7c8ca; font-size: 12px; line-height: 1.6; }
.dcd-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.dcd-actions button, .dcd-reader button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 10px 12px; border: 1px solid #a4a7ab42; border-radius: 11px;
  color: #f1f0ec; background: #ffffff05; font: inherit; font-size: 12px; font-weight: 600;
  line-height: 1.4; text-align: center; cursor: pointer;
}
.dcd-actions button svg, .dcd-reader button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.dcd-actions .dcd-agree { color: #171b21; border-color: #c9af7c; background: #c9af7c; }
.dcd-actions button:hover, .dcd-reader button:hover { border-color: #d9c392; }
.dcd-actions button:focus-visible, .dcd-reader :is(button, a, summary):focus-visible {
  outline: 2px solid #e5cd98; outline-offset: 3px;
}
.dcd-feedback { grid-column: 1 / -1; margin: 0; color: #e9c497; font-size: 12px; line-height: 1.5; }
.dcd-reader {
  width: min(860px, calc(100% - 40px)); max-width: none;
  height: min(860px, 88dvh); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid #bba37155; border-radius: 22px; background: #191e25;
  box-shadow: 0 28px 90px #0008; overflow: hidden;
}
.dcd-reader[open] { display: flex; flex-direction: column; }
.dcd-reader::backdrop { background: rgba(6, 9, 13, .76); }
.dcd-reader-head { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 10px; }
.dcd-reader-head h2 { margin: 7px 0 0; color: #f1f0ec; font: inherit; font-size: 23px; font-weight: 650; line-height: 1.4; }
.dcd-reader-head button { max-width: 46%; flex-shrink: 0; }
.dcd-reader-notice { flex-shrink: 0; margin: 0; padding: 0 24px 18px; color: #c7c8ca; font-size: 12px; line-height: 1.65; }
.dcd-reader-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px; border-block: 1px solid #c6c9ce26; scroll-behavior: auto; }
.dcd-reader-content :is(p, li, summary) { color: #dedfdf; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.dcd-reader-content h3 { margin: 0 0 16px; color: #f1f0ec; font: inherit; font-size: 20px; font-weight: 650; line-height: 1.5; }
.dcd-reader-content p { margin: 0 0 16px; }
.dcd-reader-content :is(ul, ol) { margin: 20px 0; padding-inline-start: 24px; }
.dcd-reader-content li { margin-block: 12px; }
.dcd-reader-content summary { cursor: pointer; font-weight: 650; }
.dcd-reader-content .ae-terms-num { color: #d9c392; margin-inline-end: 8px; }
.dcd-reader-content .ae-terms-draft { padding: 12px; border: 1px solid #bba37155; border-radius: 9px; color: #e0cb9e; }
.dcd-reader-foot { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 24px 18px; color: #bdc0c5; font-size: 11px; line-height: 1.6; }
.dcd-reader-foot p { flex-basis: 100%; order: 2; margin: 0; }
.dcd-reader-foot a { color: #e0cb9e; text-decoration: underline; text-underline-offset: 3px; }
.dcd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .dcd-dock { grid-template-columns: 1fr; gap: 12px; width: min(580px, calc(100% - 20px)); padding: 15px 16px; }
  .dcd-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dcd-dock { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 16px); border-radius: 18px; padding: 13px 14px; gap: 10px; }
  .dcd-heading { gap: 5px 8px; }
  .dcd-heading .dcd-badge { flex-basis: 100%; padding-inline-start: 35px; }
  .dcd-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcd-reader { position: fixed; inset: auto 0 0; margin: 0; width: 100%; height: 92dvh; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px); border-radius: 20px 20px 0 0; }
  .dcd-reader-head { padding: 18px 16px 10px; gap: 10px; }
  .dcd-reader-head h2 { font-size: 21px; }
  .dcd-reader-notice { padding: 0 16px 14px; }
  .dcd-reader-content { padding: 18px 16px; }
  .dcd-reader-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@supports not (height: 100dvh) {
  .dcd-reader { height: 88vh; max-height: calc(100vh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .dcd-dock *, .dcd-reader * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
