/* Articles Library: search and full-width Precision Deck module rows. */
.articles-search-panel {
  max-width: 54rem;
  margin-top: var(--articles-space-7);
  padding: var(--articles-space-4);
  border: 1px solid var(--articles-line);
  border-radius: var(--articles-radius-md);
  background: var(--articles-panel-glass);
  box-shadow: var(--articles-shadow-sm);
}

.articles-search-panel label {
  display: block;
  margin-bottom: var(--articles-space-2);
  color: #d7e1ee;
  font-size: var(--articles-text-xs);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.articles-search-panel__field {
  display: flex;
  gap: var(--articles-space-2);
}

.articles-search-panel input[type="search"],
input[data-articles-search] {
  flex: 1 1 20rem;
  min-width: 0;
  min-height: 3.25rem;
  border: 1px solid rgba(195, 206, 222, 0.4);
  border-radius: var(--articles-radius-sm);
  padding: 0.78rem 1rem;
  color: var(--articles-ink-strong);
  background: var(--articles-navy-950);
  caret-color: var(--articles-gold);
  line-height: 1.35;
}

.articles-search-panel input[type="search"]::-webkit-search-cancel-button,
input[data-articles-search]::-webkit-search-cancel-button {
  cursor: pointer;
}

.articles-search-panel input[type="search"]::placeholder,
input[data-articles-search]::placeholder { color: #8295ae; }

.articles-search-panel__hint {
  margin: 0.65rem 0 0;
  color: var(--articles-muted-soft);
  font-size: var(--articles-text-xs);
}

.articles-search-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--articles-space-3);
  min-height: 1.5rem;
  margin: 0 0 var(--articles-space-4);
  color: var(--articles-muted-soft);
  font-size: var(--articles-text-sm);
}

.articles-module-list {
  width: min(100%, var(--articles-container));
  margin-inline: auto;
  padding: 0 var(--articles-space-page) var(--articles-space-8);
}

.articles-module-row {
  --module-accent: var(--articles-gold-light);
  --module-glow: rgba(244, 170, 37, 0.15);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(19rem, 0.95fr) minmax(20rem, 1.05fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 5.5rem);
  min-height: 27rem;
  margin-bottom: var(--articles-space-5);
  padding: clamp(2.25rem, 6vw, 4.75rem);
  border: 1px solid var(--articles-line-soft);
  border-radius: var(--articles-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 52%, var(--module-glow), transparent 48%),
    linear-gradient(135deg, var(--articles-navy-750), var(--articles-navy-950));
  box-shadow: var(--articles-shadow-lg);
}

.articles-module-row:nth-child(even) {
  background:
    radial-gradient(ellipse at 28% 52%, var(--module-glow), transparent 48%),
    linear-gradient(225deg, #0f2734, var(--articles-navy-950));
}

.articles-module-row::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -55%;
  width: 70%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--module-glow), transparent 70%);
  content: "";
  pointer-events: none;
}

.articles-module-row > .articles-image-deck,
.articles-module-row__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.articles-module-row__content,
.articles-module-row__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.articles-module-row h2 {
  margin: 0;
  color: var(--articles-ink-strong);
  font-family: var(--articles-font-serif);
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.articles-module-row h2 a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.articles-module-row h2 a:hover,
.articles-module-row h2 a:focus-visible {
  text-decoration-color: var(--module-accent);
}

.articles-module-row__promise,
.articles-module-row__summary {
  max-width: 39rem;
  margin: var(--articles-space-4) 0 0;
  color: var(--articles-muted);
  font-size: var(--articles-text-lg);
  line-height: 1.65;
  text-wrap: pretty;
}

.articles-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: var(--articles-space-4) 0;
  padding: 0;
  list-style: none;
}

.articles-topic-chips li {
  padding: 0.36rem 0.64rem;
  border: 1px solid rgba(244, 170, 37, 0.26);
  border-radius: var(--articles-radius-pill);
  color: #d4dfec;
  background: rgba(5, 11, 22, 0.24);
  font-size: 0.72rem;
  line-height: 1.35;
}

@supports (color: color-mix(in srgb, white, black)) {
  .articles-topic-chips li {
    border-color: color-mix(in srgb, var(--module-accent) 28%, transparent);
  }
}

.articles-module-row__count {
  display: block;
  margin: 0 0 var(--articles-space-3);
  color: var(--articles-muted-soft);
  font-size: var(--articles-text-xs);
}

.articles-module-row__count strong { color: var(--articles-ink); }

.articles-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--articles-space-3);
  margin: 0 0 var(--articles-space-7);
}

.articles-search-result {
  min-width: 0;
  padding: var(--articles-space-4);
  border: 1px solid var(--articles-line-soft);
  border-radius: var(--articles-radius-md);
  background: var(--articles-panel);
}

.articles-search-result :where(h2, h3) {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--articles-font-serif);
  font-size: 1.3rem;
  line-height: 1.25;
}

.articles-search-result p {
  margin: 0;
  color: var(--articles-muted);
  font-size: var(--articles-text-sm);
}

.articles-search-result a {
  text-decoration-line: underline;
  text-decoration-color: rgba(244, 170, 37, 0.55);
  text-underline-offset: 0.2em;
}

@media (max-width: 56rem) {
  .articles-module-row {
    grid-template-columns: 1fr;
    gap: var(--articles-space-5);
    min-height: 0;
    padding: clamp(1.35rem, 5vw, 2.5rem);
  }

  .articles-module-row > .articles-image-deck,
  .articles-module-row__visual {
    width: min(100%, 38rem);
    margin-inline: auto;
  }
}

@media (max-width: 42rem) {
  .articles-search-panel { padding: var(--articles-space-3); }
  .articles-search-panel__field { flex-direction: column; }

  .articles-search-panel input[type="search"],
  input[data-articles-search] { flex-basis: auto; }

  .articles-module-list { padding-inline: 0.75rem; }

  .articles-module-row {
    gap: var(--articles-space-4);
    border-radius: var(--articles-radius-md);
    padding: 1.2rem;
  }

  .articles-module-row h2 { font-size: clamp(2rem, 11vw, 2.8rem); }

  .articles-module-row__promise,
  .articles-module-row__summary { font-size: 1rem; }

  .articles-search-results { grid-template-columns: 1fr; }
}
