/* =========================================================
   Editorial Surfaces (News + Insights)
   ========================================================= */

.editorial-landing {
  padding-block: 44px 56px;
  display: block !important;
  grid-template-columns: none !important;
  max-width: var(--wwrof-content-max, 1152px);
  margin-inline: auto;
}

.editorial-landing__hero {
  margin: 0 0 18px;
}

.editorial-landing__hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.1vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.editorial-landing__hero p {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--wwrof-text-soft);
  font-size: clamp(17px, 1.2vw, 18px);
  line-height: 1.45;
}

.editorial-landing__toolbar {
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "topics topics"
    "sort search";
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
}

.editorial-landing__controls {
  display: contents;
}

.editorial-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.editorial-chip-row:first-child {
  grid-area: topics;
  flex: 1 1 auto;
  min-width: 0;
}

.editorial-chip-row--sort {
  grid-area: sort;
  min-width: 0;
}

.editorial-chip-row::-webkit-scrollbar {
  display: none;
}

.editorial-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--wwrof-btn-secondary-border);
  border-radius: 999px;
  background: transparent;
  color: var(--wwrof-text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  width: auto;
  max-width: max-content;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.editorial-chip:hover,
.editorial-chip:focus-visible {
  color: var(--wwrof-text);
  border-color: var(--wwrof-border);
  background: var(--wwrof-surface);
}

.editorial-chip.is-active {
  color: var(--wwrof-text);
  background: var(--wwrof-btn-secondary-bg);
  border-color: var(--wwrof-border);
  font-weight: 600;
}

.editorial-search {
  grid-area: search;
  min-width: 320px;
  width: 320px;
  flex: 0 0 320px;
  justify-self: end;
}

.editorial-search__field {
  position: relative;
}

.editorial-search input[type="search"],
.editorial-compact-filters input[type="search"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--wwrof-btn-secondary-border);
  border-radius: 999px;
  background: transparent;
  color: var(--wwrof-text);
  padding: 8px 40px 8px 14px;
}

.editorial-search input[type="search"]::placeholder,
.editorial-compact-filters input[type="search"]::placeholder {
  color: var(--wwrof-muted);
}

.editorial-search__submit {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--wwrof-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 0;
}

.editorial-search__submit::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask-image: var(--wwrof-icon-search-mask);
  mask-image: var(--wwrof-icon-search-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 22px 22px;
  mask-size: 22px 22px;
}

.editorial-search__submit svg {
  display: none;
}

.editorial-search__submit:hover,
.editorial-search__submit:focus-visible,
.editorial-search__submit:active {
  color: var(--wwrof-text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.editorial-search__submit:focus-visible {
  outline: none;
}

.editorial-list {
  border-top: 1px solid var(--wwrof-border);
}

.editorial-list__item {
  padding: clamp(7px, 0.8vw, 10px) 0 clamp(8px, 0.95vw, 12px);
  border-bottom: 1px solid var(--wwrof-border);
}

.editorial-list__meta {
  margin: 0 0 7px;
  color: var(--wwrof-muted);
  font-size: 13px;
  font-weight: 500;
}

.editorial-list__title {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.editorial-list__title a {
  color: var(--wwrof-text);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--wwrof-accent), var(--wwrof-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.18s ease;
}

.editorial-list__item:hover .editorial-list__title a,
.editorial-list__item:focus-within .editorial-list__title a {
  background-size: 100% 2px;
}

.editorial-list__excerpt {
  margin: 10px 0 0;
  max-width: 880px;
  color: var(--wwrof-text-soft);
  font-size: clamp(12px, 0.8vw, 13px);
  line-height: 1.4;
}

.editorial-pagination {
  margin-top: 22px;
}

.editorial-empty {
  margin: 12px 0 0;
  color: var(--wwrof-text-soft);
}

.editorial-compact-filters {
  display: none;
  gap: 8px;
  align-items: center;
}

.editorial-compact-filters select {
  min-height: 34px;
  border: 1px solid var(--wwrof-btn-secondary-border);
  border-radius: var(--wwrof-btn-radius);
  background: transparent;
  color: var(--wwrof-text);
  padding: 7px 10px;
}

.editorial-compact-filters input[type="search"] {
  min-height: 34px;
  border: 1px solid var(--wwrof-btn-secondary-border);
  border-radius: 999px;
  background: transparent;
  color: var(--wwrof-text);
  padding: 7px 36px 7px 10px;
  min-width: 180px;
}

.press-room-single {
  padding: 40px 0 60px;
}

.press-room-utility-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  min-height: 30px;
  justify-self: stretch;
  width: 100%;
}

.press-room-single .press-room-back,
.insight-single .press-room-back,
.press-room-sibling {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wwrof-muted);
  text-decoration: none;
  line-height: 1.2;
  min-width: 0;
}

.press-room-single .press-room-back:hover,
.insight-single .press-room-back:hover,
.press-room-sibling:hover {
  color: var(--wwrof-text);
}

.press-room-single .press-room-back:hover .press-room-nav__title,
.press-room-single .press-room-back:focus-visible .press-room-nav__title,
.insight-single .press-room-back:hover .press-room-nav__title,
.insight-single .press-room-back:focus-visible .press-room-nav__title {
  text-decoration: none;
}

.press-room-sibling-nav {
  position: static;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  pointer-events: none;
}

.press-room-nav__title {
  display: inline-block;
  position: relative;
  max-width: 26ch;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 3px;
}

.press-room-sibling .press-room-nav__title {
  max-width: min(34ch, 34vw);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.4;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.16s ease, color 0.16s ease;
}

.press-room-single .press-room-back,
.insight-single .press-room-back {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  z-index: 2;
  pointer-events: auto;
}

.press-room-sibling--prev {
  grid-column: 1;
  justify-self: start;
  pointer-events: auto;
}

.press-room-sibling--next {
  grid-column: 2;
  justify-self: end;
  pointer-events: auto;
}

.press-room-nav__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--wwrof-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s ease;
}

.press-room-single .press-room-back:hover .press-room-nav__title::after,
.press-room-sibling:hover .press-room-nav__title::after,
.press-room-single .press-room-back:focus-visible .press-room-nav__title::after,
.insight-single .press-room-back:hover .press-room-nav__title::after,
.insight-single .press-room-back:focus-visible .press-room-nav__title::after,
.press-room-sibling:focus-visible .press-room-nav__title::after {
  transform: scaleX(1);
}

.press-room-sibling .press-room-nav__title::after {
  display: none;
}

.press-room-sibling:hover .press-room-nav__title,
.press-room-sibling:focus-visible .press-room-nav__title {
  text-decoration-color: var(--wwrof-accent);
}

.press-room-nav__chevron {
  font-size: 15px;
  line-height: 1;
  position: relative;
  top: -3px;
  color: currentColor;
}

.press-room-sibling--next .press-room-nav__title {
  text-align: right;
}

.press-room-article {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 18px 32px;
  align-items: start;
}

.press-room-header {
  grid-column: 2;
  grid-row: 2;
  padding-top: 4px;
}

.press-room-utility-nav {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 2px;
  justify-self: stretch;
  width: 100%;
}

.press-room-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--wwrof-muted);
  margin-bottom: 10px;
}

.press-room-header h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0;
}

.press-room-factbox {
  grid-column: 1;
  grid-row: 3;
  font-size: 14px;
  line-height: 1.4;
  color: var(--wwrof-text-soft);
  padding-top: 4px;
}

.press-room-factline {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--wwrof-text);
}

.press-room-factgroup {
  margin-top: 14px;
}

.press-room-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wwrof-muted);
  margin-bottom: 4px;
}

.press-room-value {
  color: var(--wwrof-text);
}

.press-room-body {
  grid-column: 2;
  grid-row: 3;
  max-width: min(100%, var(--wwrof-reading-max, 750px));
}

.press-room-dek {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--wwrof-text);
  margin-bottom: 20px;
}

.press-room-body,
.press-room-body p,
.press-room-body li {
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.62;
}

/* =========================================================
   Insights single (centered column variant)
   ========================================================= */

.insight-single {
  padding: 40px 0 60px;
}

.insight-article {
  width: min(100%, var(--wwrof-reading-max, 750px));
  margin-left: auto;
  margin-right: auto;
}

.insight-article .press-room-utility-nav {
  margin-bottom: 14px;
}

.insight-header {
  margin-bottom: 18px;
}

.insight-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--wwrof-muted);
  margin-bottom: 10px;
}

.insight-header h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  margin: 0 0 10px;
}

.insight-meta {
  font-size: 13px;
  color: var(--wwrof-muted);
}

.insight-body {
  max-width: 100%;
}

.insight-dek {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--wwrof-text);
  margin-bottom: 20px;
}

.insight-body,
.insight-body p,
.insight-body li {
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.62;
}

@media (min-width: 1153px) {
  .editorial-landing__hero h1 {
    font-size: 40px;
  }

  .editorial-landing__hero p {
    font-size: 18px;
  }

  .editorial-list__title {
    font-size: 16px;
  }

  .editorial-list__excerpt {
    font-size: 13px;
  }

  .press-room-header h1 {
    font-size: 46px;
  }

  .press-room-dek {
    font-size: 21px;
  }

  .press-room-body,
  .press-room-body p,
  .press-room-body li {
    font-size: 18px;
  }

  .insight-header h1 {
    font-size: 42px;
  }

  .insight-dek {
    font-size: 22px;
  }

  .insight-body,
  .insight-body p,
  .insight-body li {
    font-size: 18px;
  }
}

@media (max-width: 922px) {
  .editorial-landing {
    padding-block: 30px 42px;
  }

  .editorial-landing__hero h1 {
    font-size: clamp(30px, 6.2vw, 36px);
  }

  .editorial-landing__hero p {
    font-size: 17px;
  }

  .editorial-chip-row {
    display: none;
  }

  .editorial-search {
    display: none;
  }

  .editorial-compact-filters {
    display: flex;
    flex-wrap: wrap;
  }

  .editorial-list__title {
    font-size: clamp(15px, 4.8vw, 18px);
  }

  .editorial-list__excerpt {
    font-size: 12px;
  }

  .press-room-utility-nav {
    margin-bottom: 12px;
  }

  .press-room-sibling-nav .press-room-nav__title {
    display: none;
  }

  .press-room-sibling-nav {
    gap: 10px;
  }

  .press-room-article {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .press-room-header,
  .press-room-utility-nav,
  .press-room-factbox,
  .press-room-body {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .press-room-filters {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .press-room-filters .press-room-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1120px) {
  .press-room-article {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .press-room-header,
  .press-room-utility-nav,
  .press-room-factbox,
  .press-room-body {
    grid-column: 1;
    grid-row: auto;
  }

  .press-room-body {
    max-width: min(100%, var(--wwrof-reading-max, 750px));
  }
}

@media (max-width: 640px) {
  .press-room-filters .press-room-actions {
    width: 100%;
    justify-content: space-between;
  }

  .press-room-filters .press-room-actions .ast-button {
    flex: 1;
  }
}
