/* Project Dynasty Analyst Wire band (2026-10-10).
 *
 * Fixed dark editorial room for the four persona voices (design §4). Scoped
 * entirely under .pd-aw so it never reaches other site surfaces. Single
 * column below 1100px, two columns above; the 390 layout never scrolls
 * horizontally and filter chips sit in a contained rail.
 */

.pd-aw {
  --aw-bg: #0b0b0d;
  --aw-panel: #121216;
  --aw-panel-2: #16161b;
  --aw-line: #26262e;
  --aw-line-soft: #1e1e25;
  --aw-ink: #f4f2ec;
  --aw-muted: #9a97a0;
  --aw-muted-2: #6e6b75;
  --aw-breaking: #d4552a;
  --aw-gold: #e8bd55;
  --aw-display: "Arial Narrow", "Helvetica Neue Condensed", Impact, "Helvetica Neue", Arial, sans-serif;
  --aw-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(232, 189, 85, 0.06), transparent 60%),
    radial-gradient(760px 420px at 92% 112%, rgba(59, 110, 168, 0.07), transparent 62%),
    var(--aw-bg);
  border: 1px solid var(--aw-line);
  color: var(--aw-ink);
  font-family: var(--aw-body);
  isolation: isolate;
}

.pd-aw::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 9px);
  mix-blend-mode: overlay;
}

.pd-aw > * { position: relative; }

/* ---------- head ---------- */

.pd-aw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--aw-line);
}

.pd-aw-title { min-width: 0; }

.pd-aw-eyebrow {
  display: block;
  margin: 0 0 2px;
  font-family: var(--aw-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--aw-gold);
}

.pd-aw-head h2 {
  margin: 0;
  font-family: var(--aw-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--aw-ink);
}

.pd-aw-count {
  flex: 0 0 auto;
  font-family: var(--aw-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aw-muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

/* ---------- filters ---------- */

.pd-aw-filters {
  display: flex;
  gap: 8px;
  padding: 14px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pd-aw-filters::-webkit-scrollbar { display: none; }

.pd-aw-chip-filter {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--aw-line);
  background: var(--aw-panel);
  color: var(--aw-muted);
  font-family: var(--aw-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pd-aw-chip-filter em {
  font-style: normal;
  margin-left: 5px;
  color: var(--aw-muted-2);
}

.pd-aw-chip-filter:hover { border-color: var(--aw-muted-2); color: var(--aw-ink); }

.pd-aw-chip-filter.is-active {
  border-color: var(--aw-gold);
  color: #101014;
  background: var(--aw-gold);
}

.pd-aw-chip-filter.is-active em { color: #4d3c10; }

.pd-aw-chip-filter:focus-visible,
.pd-aw-more:focus-visible,
.pd-aw-link:focus-visible {
  outline: 2px solid var(--aw-gold);
  outline-offset: 2px;
}

/* ---------- feed ---------- */

.pd-aw-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.pd-aw-card {
  position: relative;
  border: 1px solid var(--aw-line-soft);
  border-left: 3px solid var(--aw-line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--aw-panel-2), var(--aw-panel));
  padding: 13px 15px 11px;
  min-width: 0;
}

.pd-aw-card.is-breaking { border-left-color: var(--aw-breaking); }

.pd-aw-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pd-aw-badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--aw-accent, #d98e32) 22%, #0b0b0d);
  border: 1px solid color-mix(in srgb, var(--aw-accent, #d98e32) 62%, #0b0b0d);
  color: var(--aw-accent, #d98e32);
  font-family: var(--aw-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.pd-aw-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-aw-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.pd-aw-who strong {
  font-family: var(--aw-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aw-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-aw-who small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-aw-chip {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aw-muted);
  border: 1px solid var(--aw-line);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.pd-aw-chip.is-breaking {
  color: #ffd9c9;
  border-color: color-mix(in srgb, var(--aw-breaking) 62%, #0b0b0d);
  background: color-mix(in srgb, var(--aw-breaking) 24%, #0b0b0d);
}

.pd-aw-body {
  margin: 10px 0 9px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--aw-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-aw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--aw-line-soft);
  padding-top: 8px;
  min-width: 0;
}

.pd-aw-prov {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aw-muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pd-aw-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pd-aw-stamp {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aw-muted);
  white-space: nowrap;
}

.pd-aw-mark { display: inline-flex; }

.pd-aw .pd-aw-mark .team-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pd-aw .pd-aw-mark .team-mark span {
  font-size: 0;
}

.pd-aw-link {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aw-gold);
  text-decoration: none;
  white-space: nowrap;
}

.pd-aw-link:hover { color: #f8e8b0; }

/* ---------- actions ---------- */

.pd-aw-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--aw-line);
}

.pd-aw-more {
  appearance: none;
  border: 1px solid var(--aw-line);
  background: var(--aw-panel);
  color: var(--aw-ink);
  font-family: var(--aw-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.pd-aw-more:hover { border-color: var(--aw-gold); color: var(--aw-gold); }

.pd-aw-disclosure {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--aw-muted-2);
  text-align: right;
}

@media (min-width: 1100px) {
  .pd-aw-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-aw-card { padding: 15px 18px 12px; }
  .pd-aw-body { font-size: 15px; }
}

@media (max-width: 560px) {
  .pd-aw-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pd-aw-head h2 { font-size: 24px; }
  .pd-aw-count { padding-bottom: 0; }
  .pd-aw-badge { width: 32px; height: 32px; font-size: 13px; }
  .pd-aw-body { font-size: 14px; }
  .pd-aw-stamp { display: none; }
  .pd-aw-actions { flex-direction: column; align-items: stretch; }
  .pd-aw-disclosure { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-aw-chip-filter, .pd-aw-more, .pd-aw-link { transition: none; }
}

html[data-theme="light"] .pd-aw { box-shadow: 0 18px 44px rgba(9, 9, 11, 0.18); }
