/* The "newsroom" home layout. Pages link this sheet wherever the layout renders,
   so it loads after app.css. A shared rule restated below a layout rule keeps
   its cascade win; css_ratchet_test keeps the copy identical to its source. */

.theme-face[data-layout="newsroom"] .theme-face__mast {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-bottom-width: calc(0.28 * var(--face-unit, 1cqw));
  border-bottom-style: solid;
  --face-border-bottom-color: currentColor;
  --face-font-size: calc(6.2 * var(--face-unit, 1cqw));
  --face-font-weight: 500;
  --face-letter-spacing: -0.04em;
  --face-line-height: 1.05;
  text-align: center;
  white-space: pre-line;
  padding-bottom: calc(1 * var(--face-unit, 1cqw));
}

.theme-face[data-layout="newsroom"] .theme-face__block--list .theme-face__label {
  --face-font-size: calc(1.7 * var(--face-unit, 1cqw));
}

.theme-face[data-layout="newsroom"] .theme-face__block--list .theme-face__rows span {
  width: auto;
  --face-font-family: "Iowan Old Style", Palatino, Georgia, serif;
  --face-font-size: calc(2.8 * var(--face-unit, 1cqw));
  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-face[data-layout="newsroom"] .theme-face__block--list .theme-face__rows span:first-child {
  --face-font-size: calc(3.3 * var(--face-unit, 1cqw));
}

.theme-face[data-layout="newsroom"] .theme-face__block--story {
  border-bottom-width: 0;
  border-bottom-style: none;
  --face-border-bottom-color: currentColor;
  padding-top: calc(0.8 * var(--face-unit, 1cqw));
}

.theme-face[data-layout="newsroom"] .theme-face__block--story .theme-face__lead {
  --face-font-size: calc(5.4 * var(--face-unit, 1cqw));
  --face-line-height: 1.02;
  -webkit-line-clamp: 3;
}

.theme-face[data-layout="newsroom"] .theme-face__block--list,
.theme-face[data-layout="newsroom"] .theme-face__block--card {
  box-sizing: border-box;
  --face-border-radius: 0;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  --face-border-bottom-color: color-mix(in oklab, currentColor 28%, transparent);
  --face-background: transparent;
  padding: 0 0 calc(1.6 * var(--face-unit, 1cqw));
}

.theme-face[data-layout="newsroom"] .theme-face__block--card .theme-face__rest {
  order: -1;
  --face-font-family: "Iowan Old Style", Palatino, Georgia, serif;
  --face-font-size: calc(2.8 * var(--face-unit, 1cqw));
  --face-font-weight: 500;
  --face-line-height: 1.2;
  --face-letter-spacing: -0.02em;
  --face-opacity: 1;
  white-space: normal;
}

.theme-face[data-layout="newsroom"] .theme-face__block--card .theme-face__label {
  order: 1;
  --face-font-family: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --face-font-size: calc(1.6 * var(--face-unit, 1cqw));
  --face-font-weight: 600;
  --face-letter-spacing: 0.12em;
  --face-text-transform: uppercase;
  --face-opacity: 0.55;
}

.theme-face[data-background="education"] .theme-face__block--list:where([data-layout="newsroom"], [data-layout="newsroom"] *),
.theme-face[data-background="education"] .theme-face__block--card:where([data-layout="newsroom"], [data-layout="newsroom"] *),
.theme-face[data-background="family"] .theme-face__block--list:where([data-layout="newsroom"], [data-layout="newsroom"] *),
.theme-face[data-background="family"] .theme-face__block--card:where([data-layout="newsroom"], [data-layout="newsroom"] *),
.theme-face[data-background="community"] .theme-face__block--list:where([data-layout="newsroom"], [data-layout="newsroom"] *),
.theme-face[data-background="community"] .theme-face__block--card:where([data-layout="newsroom"], [data-layout="newsroom"] *) {
  --face-background: rgb(8 6 4 / 48%);
}

.theme-store__device--phone .theme-face .theme-face__mast:where([data-layout="newsroom"], [data-layout="newsroom"] *) {
  font-size: 1.35rem;
  line-height: 1.15;
  white-space: normal;
}

.theme-store__device--phone .theme-face .theme-face__block--story .theme-face__lead:where([data-layout="newsroom"], [data-layout="newsroom"] *) {
  font-size: 0.95rem;
  line-height: 1.3;
  -webkit-line-clamp: 4;
}

:is(#launcher-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__piece--mast,
:is(#launcher-design-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__piece--mast {
  align-items: center;
  padding-bottom: 0.7rem;
  border-width: 0;
  border-style: none;
  --face-border-color: currentColor;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  --face-border-bottom-color: currentColor;
  --face-border-radius: 0;
  font-family: inherit;
  text-align: center;
}

:is(#launcher-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__piece--mast[data-radius],
:is(#launcher-design-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__piece--mast[data-radius] {
  --face-border-radius: 0;
}

:is(#launcher-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__view-row:has(.launcher-canvas__view-when),
:is(#launcher-design-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__view-row:has(.launcher-canvas__view-when) {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.75rem;
}

:is(#launcher-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__view-row:has(.launcher-canvas__view-when) .launcher-canvas__view-title,
:is(#launcher-design-canvas, .theme-face).theme-face[data-layout="newsroom"] .launcher-canvas__view-row:has(.launcher-canvas__view-when) .launcher-canvas__view-title {
  flex: 1 1 auto;
}

:is(#launcher-canvas, #launcher-design-canvas, .theme-face).theme-face
  .launcher-canvas__block--story[data-app-id="chat"]
  .launcher-canvas__view-row:where([data-layout="newsroom"], [data-layout="newsroom"] *) {
  display: grid;
  grid-template-columns: 2.05rem minmax(0, 1fr);
  grid-template-areas: "face name" "face preview";
  column-gap: 0.7rem;
  row-gap: 0.08rem;
  align-items: center;
  width: 100%;
  padding: 0.42rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
