/* Chronicles phone document stack
   Triggers: .dd-layout--phone-stack · phone/tablet tokens · head boot · ≤720px portrait
   DOM order: Stage → q100 → q300 → Topics → Paw
   Avoid display:contents (Safari drops children). */

/* ── Viewport becomes a column ──
   Real phones scroll the document (html), not a nested viewport — nested
   overflow-y:auto + height:100% freezes touch scroll in Chrome / DDG.
   Desktop Phone/Tablet-P preview stays letterboxed and scrolls inside the hull. */
.dd-viewport.dd-layout--phone-stack,
body[data-dd-token='phone'] .dd-viewport,
body[data-dd-token='tablet-portrait'] .dd-viewport,
html.dd-chr-phone-boot .dd-viewport {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none;
  grid-template-rows: none;
  overflow: visible;
  font-size: 1rem; /* phone text baseline — scale children from here */
}

/* Letterboxed RP (desktop monitor + Phone token): scroll inside the scaled hull */
body.dd-shell:not(.dd-layout--phone-fill) .dd-viewport.dd-layout--phone-stack,
body.dd-shell:not(.dd-layout--phone-fill)[data-dd-token='phone'] .dd-viewport,
body.dd-shell:not(.dd-layout--phone-fill)[data-dd-token='tablet-portrait'] .dd-viewport {
  height: var(--dd-h);
  max-height: var(--dd-h);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Force readable stack copy to the 1rem baseline (override clamps / rem stacks) */
.dd-viewport.dd-layout--phone-stack :where(
  p, h1, h2, h3, h4, li, span, time, em, strong, a, button, label, small, figcaption
),
body[data-dd-token='phone'] .dd-viewport :where(
  p, h1, h2, h3, h4, li, span, time, em, strong, a, button, label, small, figcaption
),
body[data-dd-token='tablet-portrait'] .dd-viewport :where(
  p, h1, h2, h3, h4, li, span, time, em, strong, a, button, label, small, figcaption
),
html.dd-chr-phone-boot .dd-viewport :where(
  p, h1, h2, h3, h4, li, span, time, em, strong, a, button, label, small, figcaption
):not(.chr-welcome__mast):not(.chr-welcome__phrase) {
  font-size: 1rem;
}

/* Welcome intro — rem lock (no vw — matches authored phone on real devices) */
.dd-viewport.dd-layout--phone-stack .chr-welcome__mast,
body[data-dd-token='phone'] .dd-viewport .chr-welcome__mast,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-welcome__mast,
html.dd-chr-phone-boot .dd-viewport .chr-welcome__mast {
  font-size: var(--chr-phone-welcome-mast);
}

.dd-viewport.dd-layout--phone-stack .chr-welcome__phrase,
body[data-dd-token='phone'] .dd-viewport .chr-welcome__phrase,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-welcome__phrase,
html.dd-chr-phone-boot .dd-viewport .chr-welcome__phrase {
  font-size: var(--chr-phone-welcome-phrase);
}

/* Phone typed scale — values live in dd-phone-scale.css (do not redefine per token) */
.dd-viewport.dd-layout--phone-stack,
body[data-dd-token='phone'] .dd-viewport,
body[data-dd-token='tablet-portrait'] .dd-viewport,
html.dd-chr-phone-boot .dd-viewport {
  font-size: 1rem;
}

.dd-viewport.dd-layout--phone-stack .chr-masthead__title,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__title,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__title,
html.dd-chr-phone-boot .dd-viewport .chr-masthead__title {
  font-size: var(--chr-phone-title) !important;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.dd-viewport.dd-layout--phone-stack .chr-masthead__tagline,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__tagline,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__tagline,
html.dd-chr-phone-boot .dd-viewport .chr-masthead__tagline {
  font-size: var(--chr-phone-tagline);
}

.dd-viewport.dd-layout--phone-stack .chr-masthead__issue-line,
.dd-viewport.dd-layout--phone-stack .chr-masthead__issue-line .chr-rail__issue-num,
.dd-viewport.dd-layout--phone-stack .chr-masthead__issue-line .chr-rail__issue-date,
.dd-viewport.dd-layout--phone-stack .chr-masthead__issue-line .chr-rail__issue-sep,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__issue-line,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__issue-line,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__issue-line .chr-rail__issue-num,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__issue-line .chr-rail__issue-num,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__issue-line .chr-rail__issue-date,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__issue-line .chr-rail__issue-date,
html.dd-chr-phone-boot .dd-viewport .chr-masthead__issue-line {
  font-size: var(--chr-phone-dispatch);
}

.dd-viewport.dd-layout--phone-stack .chr-masthead__stage-title,
body[data-dd-token='phone'] .dd-viewport .chr-masthead__stage-title,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-masthead__stage-title,
html.dd-chr-phone-boot .dd-viewport .chr-masthead__stage-title {
  font-size: var(--chr-phone-stage-title);
}

.dd-viewport.dd-layout--phone-stack .chr-stage__title,
body[data-dd-token='phone'] .dd-viewport .chr-stage__title,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-stage__title,
html.dd-chr-phone-boot .dd-viewport .chr-stage__title {
  font-size: var(--chr-phone-article-title);
}

.dd-viewport.dd-layout--phone-stack .chr-stage__lede,
.dd-viewport.dd-layout--phone-stack .chr-stage__article p,
.dd-viewport.dd-layout--phone-stack .chr-desk__item,
body[data-dd-token='phone'] .dd-viewport .chr-stage__lede,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-stage__lede,
body[data-dd-token='phone'] .dd-viewport .chr-stage__article p,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-stage__article p,
body[data-dd-token='phone'] .dd-viewport .chr-desk__item,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__item,
html.dd-chr-phone-boot .dd-viewport .chr-stage__lede,
html.dd-chr-phone-boot .dd-viewport .chr-stage__article p,
html.dd-chr-phone-boot .dd-viewport .chr-desk__item {
  font-size: var(--chr-phone-body);
}

.dd-viewport.dd-layout--phone-stack .chr-desk__title,
body[data-dd-token='phone'] .dd-viewport .chr-desk__title,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__title,
html.dd-chr-phone-boot .dd-viewport .chr-desk__title {
  font-size: var(--chr-phone-slot-h);
}

.dd-viewport.dd-layout--phone-stack .chr-q400-bar__topics-label,
body[data-dd-token='phone'] .dd-viewport .chr-q400-bar__topics-label,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-q400-bar__topics-label,
html.dd-chr-phone-boot .dd-viewport .chr-q400-bar__topics-label {
  font-size: var(--chr-phone-topics-label);
}

.dd-viewport.dd-layout--phone-stack .chr-tag-cloud__tag,
body[data-dd-token='phone'] .dd-viewport .chr-tag-cloud__tag,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-tag-cloud__tag,
html.dd-chr-phone-boot .dd-viewport .chr-tag-cloud__tag {
  font-size: var(--chr-phone-topic);
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    grid-template-rows: none;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 100dvh;
    transform: none;
    font-size: 1rem;
    /* typed scale: inherit from body (dd-phone-scale.css) — do not redefine here */
  }

  body.dd-shell .dd-viewport .chr-welcome__mast {
    font-size: var(--chr-phone-welcome-mast);
  }

  body.dd-shell .dd-viewport .chr-welcome__phrase {
    font-size: var(--chr-phone-welcome-phrase);
  }

  body.dd-shell .dd-viewport .chr-masthead__title {
    font-size: var(--chr-phone-title) !important;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  body.dd-shell .dd-viewport .chr-masthead__tagline {
    font-size: var(--chr-phone-tagline);
  }

  body.dd-shell .dd-viewport .chr-masthead__issue-line,
  body.dd-shell .dd-viewport .chr-masthead__issue-line .chr-rail__issue-num,
  body.dd-shell .dd-viewport .chr-masthead__issue-line .chr-rail__issue-date {
    font-size: var(--chr-phone-dispatch);
  }

  body.dd-shell .dd-viewport .chr-masthead__stage-title {
    font-size: var(--chr-phone-stage-title);
  }

  body.dd-shell .dd-viewport .chr-stage__title {
    font-size: var(--chr-phone-article-title);
  }

  body.dd-shell .dd-viewport .chr-desk__title {
    font-size: var(--chr-phone-slot-h);
  }

  body.dd-shell .dd-viewport .chr-desk__item,
  body.dd-shell .dd-viewport .chr-stage__lede,
  body.dd-shell .dd-viewport .chr-stage__article p {
    font-size: var(--chr-phone-body);
  }

  body.dd-shell .dd-viewport .chr-q400-bar__topics-label {
    font-size: var(--chr-phone-topics-label);
  }

  body.dd-shell .dd-viewport .chr-tag-cloud__tag {
    font-size: var(--chr-phone-topic);
  }

  body.dd-shell .dd-frame {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    background: var(--drydock-hull-dark);
  }

  /* Scroll only on html — body overflow:auto + html overflow:auto freezes touch. */
  html:has(body.dd-shell) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.dd-shell {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
  }
}

/* Document scroll lock unlock — html is the only scrollport */
html.dd-phone-scroll,
html.dd-chr-phone-boot {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

html.dd-phone-scroll body,
html.dd-chr-phone-boot body,
body.dd-layout--phone-fill {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

html.dd-phone-scroll:has(body.chr-hub-open),
html.dd-chr-phone-boot:has(body.chr-hub-open),
body.dd-layout--phone-fill.chr-hub-open {
  overflow: hidden !important;
}

body.dd-layout--phone-fill .dd-frame,
html.dd-phone-scroll .dd-frame,
html.dd-chr-phone-boot .dd-frame {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--drydock-hull-dark);
}

body.dd-layout--phone-fill .dd-viewport,
html.dd-phone-scroll .dd-viewport,
html.dd-chr-phone-boot .dd-viewport {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
  transform: none !important;
  background: var(--drydock-hull-dark);
}

.dd-layout--phone-stack > .dd-hub-shell {
  order: 99;
}

/* Rails wrapper = column of desk slots (not display:contents) */
.dd-viewport.dd-layout--phone-stack .dd-stack-row--rails,
body[data-dd-token='phone'] .dd-viewport .dd-stack-row--rails,
body[data-dd-token='tablet-portrait'] .dd-viewport .dd-stack-row--rails,
html.dd-chr-phone-boot .dd-viewport .dd-stack-row--rails {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex: 0 0 auto;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport .dd-stack-row--rails {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Phone stack — no rail head logos (q100 paw / q300 issue live on stage masthead) */
.dd-viewport.dd-layout--phone-stack .chr-rail__head,
body[data-dd-token='phone'] .chr-rail__head,
body[data-dd-token='tablet-portrait'] .chr-rail__head,
html.dd-chr-phone-boot .chr-rail__head {
  display: none !important;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .chr-rail__head {
    display: none !important;
  }
}

body.dd-shell .dd-viewport.dd-layout--phone-stack #q100,
body.dd-shell .dd-viewport.dd-layout--phone-stack #q300,
body.dd-shell[data-dd-token='phone'] .dd-viewport #q100,
body.dd-shell[data-dd-token='tablet-portrait'] .dd-viewport #q100,
body.dd-shell[data-dd-token='phone'] .dd-viewport #q300,
body.dd-shell[data-dd-token='tablet-portrait'] .dd-viewport #q300,
html.dd-chr-phone-boot body.dd-shell .dd-viewport #q100,
html.dd-chr-phone-boot body.dd-shell .dd-viewport #q300 {
  display: flex !important;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: stretch;
  grid-column: auto;
  grid-row: auto;
  width: 100% !important;
  max-width: none !important;
  min-height: 0;
  height: auto !important;
  overflow: visible !important;
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--drydock-rail-edge);
  background: linear-gradient(180deg, var(--drydock-hull-light) 0%, var(--drydock-hull) 100%);
  z-index: auto;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport #q100,
  body.dd-shell .dd-viewport #q300 {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--drydock-rail-edge);
    background: linear-gradient(180deg, var(--drydock-hull-light) 0%, var(--drydock-hull) 100%);
  }
}

.dd-viewport.dd-layout--phone-stack .chr-rail__inner,
body[data-dd-token='phone'] .dd-viewport .chr-rail__inner,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-rail__inner,
html.dd-chr-phone-boot .dd-viewport .chr-rail__inner {
  height: auto !important;
  min-height: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  box-sizing: border-box;
}

.dd-viewport.dd-layout--phone-stack .chr-rail__desks,
body[data-dd-token='phone'] .dd-viewport .chr-rail__desks,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-rail__desks,
html.dd-chr-phone-boot .dd-viewport .chr-rail__desks {
  flex: 0 0 auto;
  overflow: visible !important;
  gap: 1.35rem;
  padding-top: 0;
}

.dd-viewport.dd-layout--phone-stack .chr-desk__title,
body[data-dd-token='phone'] .dd-viewport .chr-desk__title,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__title,
html.dd-chr-phone-boot .dd-viewport .chr-desk__title {
  text-align: left;
  font-size: var(--chr-phone-slot-h);
  padding: 0;
}

/* Thin divider between SLOT sections */
.dd-viewport.dd-layout--phone-stack .chr-desk + .chr-desk,
body[data-dd-token='phone'] .dd-viewport .chr-desk + .chr-desk,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk + .chr-desk,
html.dd-chr-phone-boot .dd-viewport .chr-desk + .chr-desk {
  margin-top: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--drydock-rail-edge) 85%, var(--drydock-icon) 15%);
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport .chr-desk + .chr-desk {
    margin-top: 0.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--drydock-rail-edge) 85%, var(--drydock-icon) 15%);
  }
}

.dd-viewport.dd-layout--phone-stack .chr-desk__byline,
body[data-dd-token='phone'] .dd-viewport .chr-desk__byline,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__byline,
html.dd-chr-phone-boot .dd-viewport .chr-desk__byline {
  text-align: left;
  padding: 0;
  margin-bottom: 0.65rem;
  font-size: var(--chr-phone-byline, 2rem);
}

.dd-viewport.dd-layout--phone-stack .chr-desk__list,
body[data-dd-token='phone'] .dd-viewport .chr-desk__list,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__list,
html.dd-chr-phone-boot .dd-viewport .chr-desk__list {
  align-items: stretch;
  gap: 0.55rem;
  list-style: disc;
  padding-left: 1.35rem;
}

.dd-viewport.dd-layout--phone-stack .chr-desk__list > li,
body[data-dd-token='phone'] .dd-viewport .chr-desk__list > li,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__list > li,
html.dd-chr-phone-boot .dd-viewport .chr-desk__list > li {
  display: list-item;
  margin: 0;
  color: var(--drydock-icon);
}

.dd-viewport.dd-layout--phone-stack .chr-desk__item,
body[data-dd-token='phone'] .dd-viewport .chr-desk__item,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-desk__item,
html.dd-chr-phone-boot .dd-viewport .chr-desk__item {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: var(--chr-phone-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: left;
  text-transform: none;
  color: inherit;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport .chr-rail__inner {
    height: auto !important;
    padding: 1.15rem 1.25rem 1.35rem;
  }

  body.dd-shell .dd-viewport .chr-rail__desks {
    flex: 0 0 auto;
    overflow: visible !important;
    gap: 1.35rem;
    padding-top: 0;
  }

  body.dd-shell .dd-viewport .chr-desk__title {
    text-align: left;
    font-size: var(--chr-phone-slot-h);
    padding: 0;
  }

  body.dd-shell .dd-viewport .chr-desk__byline {
    text-align: left;
    padding: 0;
    margin-bottom: 0.55rem;
    font-size: var(--chr-phone-byline, 2rem);
  }

  body.dd-shell .dd-viewport .chr-desk__list > li {
    display: list-item;
    color: var(--drydock-icon);
  }

  body.dd-shell .dd-viewport .chr-desk__item {
    display: inline;
    font-size: var(--chr-phone-body);
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    color: inherit;
  }
}

/* Stage */
.dd-viewport.dd-layout--phone-stack #q200,
body[data-dd-token='phone'] .dd-viewport #q200,
body[data-dd-token='tablet-portrait'] .dd-viewport #q200,
html.dd-chr-phone-boot .dd-viewport #q200 {
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: 0;
  height: auto;
  overflow: visible;
  background: var(--drydock-stage-bg);
}

.dd-viewport.dd-layout--phone-stack .dd-stage-scroll,
body[data-dd-token='phone'] .dd-viewport .dd-stage-scroll,
body[data-dd-token='tablet-portrait'] .dd-viewport .dd-stage-scroll,
html.dd-chr-phone-boot .dd-viewport .dd-stage-scroll {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dd-viewport.dd-layout--phone-stack .chr-dispatch,
body[data-dd-token='phone'] .dd-viewport .chr-dispatch,
body[data-dd-token='tablet-portrait'] .dd-viewport .chr-dispatch,
html.dd-chr-phone-boot .dd-viewport .chr-dispatch {
  min-height: 0;
  padding-bottom: 1.25rem;
}

.dd-viewport.dd-layout--phone-stack .chr-masthead__phone-meta,
body[data-dd-token='phone'] .chr-masthead__phone-meta,
body[data-dd-token='tablet-portrait'] .chr-masthead__phone-meta,
html.dd-chr-phone-boot .chr-masthead__phone-meta {
  display: block;
  margin-top: 0.85rem;
}

.dd-viewport.dd-layout--phone-stack .chr-stage,
body[data-dd-token='phone'] .chr-stage,
body[data-dd-token='tablet-portrait'] .chr-stage,
html.dd-chr-phone-boot .chr-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dd-viewport.dd-layout--phone-stack .chr-dispatch__body,
body[data-dd-token='phone'] .chr-dispatch__body,
body[data-dd-token='tablet-portrait'] .chr-dispatch__body,
html.dd-chr-phone-boot .chr-dispatch__body {
  max-width: none;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport #q200 {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    overflow: visible;
    background: var(--drydock-stage-bg);
  }

  body.dd-shell .dd-stage-scroll {
    height: auto;
    overflow: visible;
  }

  body.dd-shell .chr-masthead__phone-meta {
    display: block;
    margin-top: 0.85rem;
  }

  body.dd-shell .chr-stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Topics + Paw (Archives hidden) */
.dd-viewport.dd-layout--phone-stack #q400,
body[data-dd-token='phone'] .dd-viewport #q400,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400,
html.dd-chr-phone-boot .dd-viewport #q400 {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  height: auto !important;
  overflow: visible;
  border-top: 0;
  box-shadow: none;
}

.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar {
  display: flex !important; /* beat rails display:contents */
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

/* Outtakes + On Deck are desktop columns 4–5 (right of paw). Stack each as its own full-width row. */
.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar__pixer,
.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar__slot,
.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar__preview,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar__pixer,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar__slot,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar__preview,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar__pixer,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar__slot,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar__preview,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar__pixer,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar__slot,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar__preview {
  grid-column: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  justify-self: stretch;
}

.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar__preview,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar__preview,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar__preview,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar__preview {
  padding: 0.85rem 1.25rem 0.65rem;
  border-top: 1px solid var(--drydock-rail-edge);
}

.dd-viewport.dd-layout--phone-stack #q400 .chr-q400-bar__keywords,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-q400-bar__keywords,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-q400-bar__keywords,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-q400-bar__keywords {
  padding: 0.85rem 1.25rem 0.65rem;
  border-top: 1px solid var(--drydock-rail-edge);
}

.dd-viewport.dd-layout--phone-stack #q400 .chr-mini__card,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-mini__card,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-mini__card,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-mini__card {
  height: auto;
  max-height: none;
  min-height: 5.5rem;
}

.dd-viewport.dd-layout--phone-stack #q400 .chr-mini__thumb,
body[data-dd-token='phone'] .dd-viewport #q400 .chr-mini__thumb,
body[data-dd-token='tablet-portrait'] .dd-viewport #q400 .chr-mini__thumb,
html.dd-chr-phone-boot .dd-viewport #q400 .chr-mini__thumb {
  width: 5.5rem;
  height: 5.5rem;
}

.dd-viewport.dd-layout--phone-stack .chr-q400-bar__archives,
body[data-dd-token='phone'] .chr-q400-bar__archives,
body[data-dd-token='tablet-portrait'] .chr-q400-bar__archives,
html.dd-chr-phone-boot .chr-q400-bar__archives {
  display: none !important;
}

.dd-viewport.dd-layout--phone-stack .chr-q400-bar__topics,
body[data-dd-token='phone'] .chr-q400-bar__topics,
body[data-dd-token='tablet-portrait'] .chr-q400-bar__topics,
html.dd-chr-phone-boot .chr-q400-bar__topics {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  box-sizing: border-box;
  overflow: visible;
  border-top: 1px solid var(--drydock-rail-edge);
  background: linear-gradient(180deg, var(--drydock-hull-light) 0%, var(--drydock-hull) 100%);
  order: 1;
}

.dd-viewport.dd-layout--phone-stack .chr-q400-bar__topics-label,
body[data-dd-token='phone'] .chr-q400-bar__topics-label,
body[data-dd-token='tablet-portrait'] .chr-q400-bar__topics-label,
html.dd-chr-phone-boot .chr-q400-bar__topics-label {
  font-size: var(--chr-phone-topics-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--drydock-icon);
}

.dd-viewport.dd-layout--phone-stack .chr-tag-cloud,
body[data-dd-token='phone'] .chr-tag-cloud,
body[data-dd-token='tablet-portrait'] .chr-tag-cloud,
html.dd-chr-phone-boot .chr-tag-cloud {
  flex-wrap: wrap;
  overflow: visible;
  gap: 0.45rem 0.65rem;
}

.dd-viewport.dd-layout--phone-stack .dd-paw-wrap,
.dd-viewport.dd-layout--phone-stack #q400.chr-q400 .dd-paw-wrap,
body[data-dd-token='phone'] #q400.chr-q400 .dd-paw-wrap,
body[data-dd-token='tablet-portrait'] #q400.chr-q400 .dd-paw-wrap,
html.dd-chr-phone-boot #q400.chr-q400 .dd-paw-wrap {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 0 0 auto;
  min-height: 13rem;
  padding: 1.1rem 0 1.6rem;
  background: var(--drydock-hull);
  border-top: 1px solid var(--drydock-rail-edge);
  box-sizing: border-box;
  z-index: 25;
  order: 2;
}

.dd-viewport.dd-layout--phone-stack .dd-paw-btn img,
body[data-dd-token='phone'] .dd-paw-btn img,
body[data-dd-token='tablet-portrait'] .dd-paw-btn img,
html.dd-chr-phone-boot .dd-paw-btn img {
  width: var(--chr-phone-paw) !important;
  height: var(--chr-phone-paw) !important;
}

.dd-viewport.dd-layout--phone-stack .dd-paw-btn img.dd-paw-logo,
body[data-dd-token='phone'] .dd-paw-btn img.dd-paw-logo,
body[data-dd-token='tablet-portrait'] .dd-paw-btn img.dd-paw-logo,
html.dd-chr-phone-boot .dd-paw-btn img.dd-paw-logo {
  filter: none;
}

@media (max-width: 720px) and (orientation: portrait) {
  body.dd-shell .dd-viewport #q400 {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto !important;
    overflow: visible;
    border-top: 0;
    box-shadow: none;
  }

  body.dd-shell #q400 .chr-q400-bar {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.dd-shell #q400 .chr-q400-bar__pixer,
  body.dd-shell #q400 .chr-q400-bar__slot,
  body.dd-shell #q400 .chr-q400-bar__preview {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
  }

  body.dd-shell #q400 .chr-q400-bar__preview {
    padding: 0.85rem 1.25rem 0.65rem;
    border-top: 1px solid var(--drydock-rail-edge);
  }

  body.dd-shell #q400 .chr-q400-bar__keywords {
    padding: 0.85rem 1.25rem 0.65rem;
    border-top: 1px solid var(--drydock-rail-edge);
  }

  body.dd-shell #q400 .chr-mini__card {
    height: auto;
    max-height: none;
    min-height: 5.5rem;
  }

  body.dd-shell #q400 .chr-mini__thumb {
    width: 5.5rem;
    height: 5.5rem;
  }

  body.dd-shell .chr-q400-bar__archives {
    display: none !important;
  }

  body.dd-shell .chr-q400-bar__topics {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding: 1.15rem 1.25rem 1.25rem;
    border-top: 1px solid var(--drydock-rail-edge);
    background: linear-gradient(180deg, var(--drydock-hull-light) 0%, var(--drydock-hull) 100%);
    order: 1;
  }

  body.dd-shell .chr-q400-bar__topics-label {
    font-size: var(--chr-phone-topics-label);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--drydock-icon);
  }

  body.dd-shell .chr-tag-cloud {
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
  }

  body.dd-shell .chr-tag-cloud__tag {
    font-size: var(--chr-phone-topic);
  }

  body.dd-shell #q400.chr-q400 .dd-paw-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 13rem;
    padding: 1.1rem 0 1.6rem;
    background: var(--drydock-hull);
    border-top: 1px solid var(--drydock-rail-edge);
    order: 2;
  }

  body.dd-shell .dd-paw-btn img {
    width: var(--chr-phone-paw) !important;
    height: var(--chr-phone-paw) !important;
  }
}

body.dd-layout--phone-fill .dd-hub-shell,
html.dd-chr-phone-boot .dd-hub-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
}

body.dd-layout--phone-fill[data-dd-hub-layout='full-viewport'] .dd-hub-panel {
  left: 0;
  width: 100%;
  max-width: 100%;
  bottom: 0;
  height: 100%;
  max-height: none;
  border-radius: 0;
}

