/* CloudC4 Newsroom — DevX */

.newsroom-page { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 0 3rem; }
.newsroom-page .card { margin-bottom: 1rem; }
.newsroom-page .section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.nr-eic { padding: 1.1rem 1.15rem 1.2rem; }
.nr-eic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.nr-eic-id {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}
.nr-eic-photo {
  display: block;
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.nr-bio {
  margin: 0 0 0.45rem;
  line-height: 1.45;
  font-size: 0.95rem;
}
.nr-persona {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.nr-j-head {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}
.nr-j-photo {
  display: block;
  width: 3.6rem;
  height: 4.8rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.nr-j-photo-sm {
  width: 2.4rem;
  height: 3.2rem;
}
.nr-author-day-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.nr-author-day-link {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.nr-author-day-link:hover .nr-author-name { color: var(--accent); }
.nr-eic-name a,
.nr-j-name a {
  color: inherit;
  text-decoration: none;
}
.nr-eic-name a:hover,
.nr-j-name a:hover { color: var(--accent); }
.nr-eic-photo-link { display: block; min-width: 0; }
.nr-search { display: flex; min-width: min(100%, 14rem); }
.nr-search .news-search { width: 100%; }
.nr-journalist.is-deputy {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.nr-journalist.is-eic .nr-j-photo {
  width: 4.4rem;
  height: 5.85rem;
}
.nr-masthead-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.nr-masthead-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.nr-masthead-card img {
  display: block;
  width: 4.5rem;
  height: 6rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.nr-masthead-name {
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
}
.nr-masthead-role {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
@media (max-width: 560px) {
  .nr-eic-grid { grid-template-columns: 1fr; }
  .nr-eic-id { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .nr-masthead-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nr-date { white-space: nowrap; }
.nr-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.nr-eic-name {
  margin: 0;
  font-family: "Newsreader", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nr-eic-role {
  margin: 0.2rem 0 0.65rem;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
}
.nr-voice {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
  max-width: 42rem;
}
.nr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin: 0;
}
.nr-stats dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.nr-stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nr-today-list { display: flex; flex-direction: column; gap: 0; }
.nr-author-day {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nr-author-day:last-child { border-bottom: 0; }
.nr-author-day-head { margin-bottom: 0.45rem; }
.nr-author-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.nr-desk-pill,
.nr-role-pill,
.nr-beat {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.72rem;
  font-weight: 650;
}
.nr-role-pill.subtle { font-weight: 600; color: var(--muted); }
.nr-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.nr-article-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.nr-article-list a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.35;
}
.nr-article-list a:hover { color: var(--accent); }
.nr-article-sum {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.nr-panel-prose {
  max-width: 48rem;
  line-height: 1.55;
  font-size: 0.95rem;
}
.nr-panel-prose h1,
.nr-panel-prose h2,
.nr-panel-prose h3,
.nr-panel-prose h4 {
  margin: 1.1rem 0 0.4rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.nr-panel-prose h1 { font-size: 1.35rem; }
.nr-panel-prose h2 { font-size: 1.15rem; }
.nr-panel-prose h3 { font-size: 1.02rem; }
.nr-panel-prose p { margin: 0.45rem 0; }
.nr-panel-prose ul,
.nr-panel-prose ol { margin: 0.4rem 0 0.6rem; padding-left: 1.25rem; }
.nr-panel-prose li { margin: 0.2rem 0; }
.nr-panel-prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.nr-panel-prose blockquote {
  margin: 0.6rem 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.nr-panel-prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.nr-pre {
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.82rem;
}

.nr-desks { display: flex; flex-direction: column; gap: 1.35rem; }
.nr-desk-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.nr-desk-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.nr-journalist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.65rem;
}
.nr-journalist {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.8rem 0.7rem;
  background: var(--bg);
  min-width: 0;
}
.nr-journalist.is-eic {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.nr-j-head {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.4rem;
}
.nr-journalist:not(:has(.nr-j-photo)) .nr-j-head {
  grid-template-columns: minmax(0, 1fr);
}
.nr-j-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.nr-assign-wrap {
  overflow-x: auto;
  margin: 0 -0.15rem;
}
.nr-assign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.nr-assign-table th,
.nr-assign-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.nr-assign-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.nr-assign-table td strong { font-weight: 650; }
.nr-assign-select {
  width: 100%;
  min-width: 10rem;
  max-width: 22rem;
}
.nr-assign-table .nr-role-pill { margin-left: 0.4rem; }
.action-result {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.action-result-ok { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.action-result-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.action-result-head { font-weight: 650; }
.action-result-body { margin-top: 0.2rem; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 720px) {
  .nr-assign-table thead { display: none; }
  .nr-assign-table,
  .nr-assign-table tbody,
  .nr-assign-table tr,
  .nr-assign-table td {
    display: block;
    width: 100%;
  }
  .nr-assign-table tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nr-assign-table td {
    border: 0;
    padding: 0.2rem 0;
  }
  .nr-assign-select { max-width: none; }
}

.nr-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
}
.nr-beat {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.nr-journalist .nr-voice {
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}
.nr-aid { margin: 0; font-size: 0.72rem; opacity: 0.85; }

#sec-eic,
#sec-today,
#sec-panel,
#sec-desks,
.nr-desk {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 720px) {
  .nr-eic-grid { grid-template-columns: 1fr; }
  .nr-eic-id {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .nr-eic-photo {
    max-width: 9rem;
    width: 9rem;
  }
  .nr-stats { grid-template-columns: 1fr 1fr; }
  .nr-voice { max-width: none; }
}

.author-page { max-width: 48rem; }
.author-back { margin: 0 0 0.85rem; }
.author-hero {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.author-hero-photo {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.author-name {
  margin: 0;
  font-family: "Newsreader", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.author-wire { margin-top: 0.35rem; }
.author-wire-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}
.author-wire-thumb img {
  display: block;
  width: 5.5rem;
  height: 3.6rem;
  object-fit: contain;
  background: #d7dee8;
  border-radius: 4px;
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .author-wire-item { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .author-wire-thumb img { width: 4.4rem; height: 2.9rem; }
}
@media (max-width: 640px) {
  .author-hero {
    grid-template-columns: 1fr;
  }
  .author-hero-photo {
    max-width: 9.5rem;
  }
}

/* Search — session only */
.nr-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  width: 100%;
  margin: 0 0 1rem;
}
.nr-search-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nr-search-input {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 28rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.nr-search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.is-search-hidden { display: none !important; }
.nr-search-empty { margin: 0 0 1rem; }

/* Profile + roster name links */
.nr-eic-name a,
.nr-j-name a,
.nr-author-name a,
.nr-assign-table td a {
  color: inherit;
  text-decoration: none;
}
.nr-eic-name a:hover,
.nr-j-name a:hover,
.nr-author-name a:hover,
.nr-assign-table td a:hover { color: var(--accent); }
.nr-j-photo-link {
  display: block;
  line-height: 0;
}
.nr-j-photo-link .nr-j-photo { width: 100%; }

/* Author profile */
.nr-author-page { width: 100%; }
.nr-author-hero { padding: 1.15rem 1.2rem 1.3rem; }
.nr-author-hero-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 1.35rem 1.75rem;
  align-items: start;
}
.nr-author-portrait {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.nr-author-name {
  margin: 0 0 0.55rem;
  font-family: "Newsreader", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.nr-author-id .nr-role-pill,
.nr-author-id .nr-desk-pill { margin: 0 0.25rem 0.55rem 0; }
.nr-author-id .nr-beats { margin-top: 0.55rem; }
.nr-author-id .nr-bio {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  max-width: 42rem;
}
.nr-profile-arts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nr-profile-art {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7.5rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.nr-profile-arts li:last-child .nr-profile-art { border-bottom: 0; }
.nr-profile-art img {
  display: block;
  width: 100%;
  height: 5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.nr-profile-art h4 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.nr-profile-art:hover h4 { color: var(--accent); }
.nr-author-missing { padding: 1.25rem; }

@media (max-width: 720px) {
  .nr-author-hero-grid { grid-template-columns: 1fr; }
  .nr-author-portrait {
    max-width: 11rem;
    width: 11rem;
  }
  .nr-search-input { max-width: none; }
  .nr-profile-art {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.7rem;
  }
  .nr-profile-art img { height: 4.25rem; }
}
