:root {
  --stories-ink: var(--ui-ink);
  --stories-muted: var(--ui-muted);
  --stories-paper: var(--ui-paper);
  --stories-card: #f7f9f8;
  --stories-border: rgba(23, 70, 47, 0.12);
  --stories-line: var(--ui-line);
  --stories-green: var(--ui-green);
  --stories-green-dark: var(--ui-green-dark);
  --stories-green-wash: var(--ui-green-wash);
  --stories-control-height: 38px;
}
.stories-page,
.stories-page * { box-sizing: border-box; }

html,
body {
  min-width: 320px;
  background: var(--stories-paper);
  color: var(--stories-ink);
}

.stories-page {
  min-height: calc(100vh - 80px);
  padding-top: 10px;
  font-family: var(--ui-font-body);
}

.stories-shell {
  width: min(1000px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.stories-page--public .stories-page__intro h1 {
  position: relative;
  isolation: isolate;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.8rem, 3.4vw, 2.2rem);
  line-height: 1.04;
}

.stories-page--public {
  padding-top: 0;
}

@media screen {
  .public-shell.public-shell--news {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .public-shell--news > .site-header.public-header.top-bar {
    grid-row: 1;
    position: relative;
    inset: auto;
  }

  .public-shell--news > main.public-main.site-scroll-area {
    grid-row: 2;
    position: relative;
    inset: auto;
    padding: 0;
  }
}

.stories-page--public .stories-shell { width: 100%; padding: 0 0 72px; }

.stories-page--public #stories-content {
  --stories-feed-max-width: 1000px;
  --stories-feed-gutter: 18px;
}

.stories-feed-controls__inner,
.stories-page--public #stories-content > :not(.stories-feed-controls) {
  width: min(var(--stories-feed-max-width), calc(100% - 2 * var(--stories-feed-gutter)));
  margin-inline: auto;
}

.stories-public-masthead {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0 auto 10px;
  padding: 32px 24px 10px;
  border: 0;
  border-bottom: 0;
  background: #fff;
}

/* Keep the story cards and controls crisp white, with neutral borders. */
.stories-page {
  --stories-card: #ffffff;
  --stories-border: rgba(23, 32, 27, 0.14);
}

.stories-page .stories-search__field,
.stories-page .story-panel {
  box-shadow: 0 4px 16px rgba(23, 32, 27, 0.04);
}

.stories-page__intro {
  max-width: 680px;
  margin: 0 auto 14px;
  text-align: center;
}

.stories-page--public .stories-page__intro { margin-bottom: 22px; }

.stories-page__eyebrow {
  margin: 0 0 8px;
  color: var(--stories-green-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.stories-page--public .stories-page__eyebrow { font-size: 0.76rem; }

.stories-page__intro h1 {
  margin: 0;
  color: var(--stories-ink);
  font-family: var(--ui-font-headline);
  font-size: clamp(2.3rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 0.98;
}

.stories-page__title-copy {
  position: relative;
  z-index: 1;
}

.stories-page__title-highlight-word {
  color: var(--stories-green-dark);
  font-weight: 700;
}

.stories-page__intro p:last-child {
  margin: 12px 0 0;
  color: var(--stories-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.stories-state {
  display: grid;
  min-height: 48vh;
  place-items: center;
  align-content: center;
  color: var(--stories-muted);
  text-align: center;
}

.stories-state.page-loading { gap: 14px; }

.stories-state .page-loading__spinner {
  width: 44px;
  height: 44px;
  border-width: 3px;
}

.stories-state .page-loading__message {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.stories-state[hidden],
#stories-content[hidden] { display: none; }

.stories-results-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--stories-muted);
  text-align: center;
}

.stories-results-loading .stories-loader {
  width: 44px;
  height: 44px;
  border-width: 3px;
}

.stories-results-loading p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.stories-loader {
  width: 34px;
  height: 34px;
  border: 2px solid var(--stories-line);
  border-top-color: var(--stories-green);
  border-radius: 50%;
  animation: stories-spin 0.85s linear infinite;
}

@keyframes stories-spin { to { transform: rotate(360deg); } }

.stories-state--error h2 {
  margin: 7px 0 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.stories-state--error button {
  margin-top: 15px;
  padding: 9px 15px;
  border: 1px solid var(--stories-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--stories-ink);
  cursor: pointer;
}

.stories-search {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 6px 0 8px;
}

.stories-search__row {
  display: block;
}

.stories-search__field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  height: var(--stories-control-height);
  min-width: 0;
  border: 1px solid var(--stories-border);
  border-radius: 7px;
  background: var(--stories-card);
  box-shadow: 0 8px 24px rgba(26, 39, 30, 0.05);
}

.stories-search__field:focus-within {
  border-color: var(--stories-border);
}

.stories-search__row:has(.stories-search__popup:not([hidden])) .stories-search__field {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

.stories-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 6px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stories-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
}

.stories-search input::placeholder { color: var(--stories-muted); }

.stories-search input:focus-visible {
  outline: none;
}

.stories-search input::-webkit-search-cancel-button {
  display: none;
}

.stories-search__clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d8580;
  cursor: pointer;
}

.stories-search__field:has(input:not(:placeholder-shown)) .stories-search__clear {
  display: flex;
}

.stories-search__clear span {
  position: relative;
  width: 16px;
  height: 16px;
}

.stories-search__clear span::before,
.stories-search__clear span::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.stories-search__clear span::before { transform: rotate(45deg); }
.stories-search__clear span::after { transform: rotate(-45deg); }

.stories-search__clear:hover,
.stories-search__clear:focus-visible { color: var(--stories-ink); }

.stories-search__clear:focus-visible {
  outline: 2px solid rgba(26, 155, 97, 0.3);
  outline-offset: -2px;
}

.stories-search__options {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--stories-muted);
  cursor: pointer;
}

.stories-search__options svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.stories-search__options:hover,
.stories-search__options:focus-visible,
.stories-search__options[aria-expanded="true"] { color: var(--stories-ink); }

.stories-search__options:hover svg,
.stories-search__options:focus-visible svg,
.stories-search__options[aria-expanded="true"] svg { stroke-width: 2.1; }

.stories-search__options:focus-visible {
  outline: 2px solid rgba(26, 155, 97, 0.3);
  outline-offset: -2px;
}

.stories-search__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--stories-ink);
  cursor: pointer;
}

.stories-search__submit-icon {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.stories-search__submit:hover,
.stories-search__submit:focus-visible {
  color: var(--stories-ink);
}

.stories-search__submit:hover svg,
.stories-search__submit:focus-visible svg { stroke-width: 2.1; }

.stories-search__submit:focus-visible {
  outline: 2px solid rgba(26, 155, 97, 0.3);
  outline-offset: 2px;
}

.stories-search__submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.stories-search__popup {
  position: static;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--stories-border);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: var(--stories-card);
  box-shadow: none;
}

.stories-search__popup[hidden] { display: none; }

.stories-search__suggestions {
  flex: 0 1 auto;
  max-height: min(250px, 38vh);
  overflow-y: auto;
  margin: 0;
  padding: 8px 6px 6px;
  list-style: none;
}

.stories-search__suggestions[hidden] { display: none; }

.stories-search__suggestion {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--stories-ink);
  font: inherit;
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.stories-search__suggestion-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stories-search__suggestion-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: var(--stories-green-dark);
}

.stories-search__suggestion-icon--story,
.stories-search__suggestion-icon--event { color: var(--stories-green-dark); }

.stories-search__suggestion-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.stories-search__suggestion:hover,
.stories-search__suggestion:focus-visible,
.stories-search__suggestion--active {
  background: var(--stories-green-wash);
  color: var(--stories-green-dark);
  outline: none;
}

.stories-search__feedback {
  margin: 7px 3px 0;
  color: var(--stories-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.stories-search__feedback--error { color: #9c2f2f; }

.stories-public-masthead .stories-search__feedback {
  margin-inline: auto;
  max-width: 480px;
  text-align: center;
}

.stories-filters {
  width: min(80%, 384px);
  height: calc(var(--stories-control-height) - 2px);
  margin: 4px auto 0;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--stories-border);
  border-radius: 13px;
  overflow: visible;
  background: var(--stories-card);
  box-shadow: none;
}

.stories-feed-controls .stories-filter-panel {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  width: calc((100% - 18px) / 3);
  border: 1px solid var(--stories-border);
  border-radius: var(--ui-wire-radius);
  background: var(--stories-paper);
  box-shadow: 0 4px 14px rgba(23, 32, 27, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.stories-feed-controls .stories-filter-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .stories-feed-controls .stories-filter-panel { transition: none; }
}

.stories-filter-panel[hidden] { display: none; }

.stories-filters--additional { margin-top: 8px; }
.stories-date-menu {
  min-width: 0;
  padding: 24px 12px 12px;
  font-size: 0.76rem;
}
.stories-date-menu label { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin-bottom: 10px; }
.stories-date-menu label[hidden] { display: none; }
.stories-date-menu input[type="date"] {
  min-width: 0;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--stories-border);
  border-radius: 5px;
  background: #fff;
  color: var(--stories-ink);
  font: inherit;
}
.stories-date-menu__clear { padding: 0; border: 0; background: transparent; color: var(--stories-green-dark); font: inherit; cursor: pointer; }
.stories-extra-filters__checkbox { display: flex; align-items: center; gap: 6px; width: min(80%, 384px); margin: 9px auto 0; color: var(--stories-muted); font-size: 0.75rem; }

.stories-filter-control {
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
  position: relative;
}

.stories-filter-control:has(> .stories-filter-menu:not([hidden])) {
  z-index: 3;
}

.stories-filter-control + .stories-filter-control {
  border-left: 1px solid var(--stories-border);
}

.stories-trending {
  width: min(100%, 480px);
  padding-inline: 8px;
  margin: 10px auto 0;
}

.stories-trending[hidden] { display: none; }

.stories-trending__bubbles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.stories-trending__bubbles[hidden] { display: none; }

.stories-trending__skeleton {
  flex-direction: column;
  flex-wrap: nowrap;
}

.stories-trending__skeleton-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.stories-trending__skeleton-row span:not(.stories-trending__label) {
  flex: 0 1 70px;
  height: 22px;
  border-radius: var(--ui-wire-radius);
  background: #edf1ee;
  animation: trending-skeleton-pulse 1.6s ease-in-out infinite;
}

.stories-trending__skeleton-row span:nth-child(3n):not(.stories-trending__label) { flex-basis: 96px; }
.stories-trending__skeleton-row span:nth-child(4n):not(.stories-trending__label) { flex-basis: 52px; }
.stories-trending__skeleton-row:first-child span:last-child { flex-basis: 52px; }

@keyframes trending-skeleton-pulse {
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .stories-trending__skeleton-row span:not(.stories-trending__label) { animation: none; }
}

.stories-trending__label {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--stories-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.stories-trending__bubble {
  display: inline-flex;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--stories-border);
  border-radius: 3px;
  background: #fff;
  color: var(--stories-ink);
  font: inherit;
  font-size: 0.69rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.stories-trending__bubble:hover,
.stories-trending__bubble[aria-pressed="true"] {
  border-color: #aeb7b1;
  background: #f4f6f5;
  color: var(--stories-ink);
  box-shadow: none;
}

.stories-trending__bubble:focus-visible {
  border-color: #7d8982;
  outline: 2px solid #7d8982;
  outline-offset: 2px;
}

.stories-filter-control[hidden] { display: none; }

.stories-filter-control__native { display: none; }

.stories-filter-control__trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 9px 38px 9px 12px;
  border: 0;
  border-radius: 0;
  background: var(--stories-card);
  color: var(--stories-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  text-align: left;
}

.stories-filter-control:first-child .stories-filter-control__trigger {
  border-radius: 12px 0 0 12px;
}

.stories-filter-control:not([hidden]):not(:has(~ .stories-filter-control:not([hidden]))) .stories-filter-control__trigger {
  border-radius: 0 12px 12px 0;
}

/* When only Type is visible (public News), it is both the first and last
   control. Keep the outer left corners rounded instead of letting the
   last-control rule above square them off. */
.stories-filter-control:first-child:not(:has(~ .stories-filter-control:not([hidden]))) .stories-filter-control__trigger {
  border-radius: 12px;
}
.stories-filter-control__trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stories-filter-control__label { flex: 0 0 auto; color: var(--stories-muted); }
.stories-filter-control__value { min-width: 0; color: var(--stories-ink); font-weight: 500; }
.stories-filter-control__value:empty { display: none; }

.stories-filter-control__trigger svg {
  position: absolute;
  top: calc(50% + 1px);
  right: 12px;
  width: 12px;
  height: 8px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--stories-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  pointer-events: none;
}

.stories-filter-control__trigger:disabled {
  color: var(--stories-muted);
  cursor: default;
}

.stories-filter-menu {
  position: absolute;
  z-index: 1;
  /* Tuck the popup behind the rounded trigger so its edge emerges beneath it. */
  top: calc(100% - 16px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--stories-border);
  padding-top: 16px;
  border-radius: 12px;
  background: var(--stories-card);
  box-shadow: none;
}

.stories-filter-menu[hidden] { display: none; }

.stories-filter-control.stories-filter-control:not([hidden]):has(> .stories-filter-menu:not([hidden])) .stories-filter-control__trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.stories-filters:has(> .stories-filter-control:first-child > .stories-filter-menu:not([hidden])) {
  border-bottom-left-radius: 0;
}

.stories-filters:has(> .stories-filter-control:not([hidden]):not(:has(~ .stories-filter-control:not([hidden]))) > .stories-filter-menu:not([hidden])) {
  border-bottom-right-radius: 0;
}

/* Align each popup with its cell's visible edges, including the outer border
   or center divider where the cell meets them. */
.stories-filter-control:first-child .stories-filter-menu {
  left: -1px;
  right: -1px;
}

.stories-filter-control + .stories-filter-control .stories-filter-menu {
  left: -1px;
  right: -1px;
}

.stories-filter-menu__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--stories-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.stories-filter-menu__option:hover,
.stories-filter-menu__option:focus-visible,
.stories-filter-menu__option[aria-selected="true"] {
  background: var(--stories-green-wash);
  outline: 0;
}

/* Unselected controls use the muted color; selected values use ink. */
.stories-filter-control__trigger[data-empty="true"] {
  color: var(--stories-muted);
}

.stories-filter-control__trigger:focus-visible {
  outline: 0;
  box-shadow: none;
}

.stories-heading {
  position: sticky;
  top: 70px;
  z-index: 5;
  background: var(--stories-paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  margin-bottom: 10px;
  color: var(--stories-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.stories-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--stories-paper);
  box-shadow: 0 0 0 100vmax var(--stories-paper);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.stories-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--stories-line);
  box-shadow: 0 3px 6px -5px rgba(23, 32, 27, 0.24);
  opacity: 0;
  pointer-events: none;
}

.stories-heading.is-stuck::after { opacity: 1; }

.stories-heading a {
  color: inherit;
  text-decoration: none;
}

.stories-heading a:hover,
.stories-heading a:focus-visible {
  color: var(--stories-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.stories-page--public {
  --stories-feed-controls-height: 38px;
}

.stories-page--public .stories-heading {
  position: relative;
  top: auto;
  z-index: auto;
  min-height: var(--stories-feed-controls-height);
  padding-block: 8px;
  line-height: 1.6;
}

.stories-page--public .stories-heading::before {
  content: none;
}

.stories-page--public .stories-day:nth-child(1 of .stories-day:not([hidden])) > .stories-heading {
  display: none;
}

.stories-page--public .stories-day > .stories-heading.is-in-sticky-bar {
  visibility: hidden;
}

.stories-page--public .stories-day > .stories-heading {
  margin-block-end: 0;
}

.stories-feed-controls {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--stories-paper);
}

.stories-feed-controls__inner {
  position: relative;
}

.stories-page--public .stories-feed-heading {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.stories-page--public .stories-feed-heading::after {
  content: none;
}

.stories-feed-date {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: var(--stories-feed-controls-height);
  overflow: hidden;
  white-space: nowrap;
}

.stories-feed-date__current {
  transform: translateY(var(--stories-date-offset, 0px));
}

.stories-feed-date__next {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  transform: translateY(var(--stories-next-date-offset, 100%));
}

@media (prefers-reduced-motion: reduce) {
  .stories-feed-date__current { transform: none; }
  .stories-feed-date__next { visibility: hidden; }
}

.stories-feed-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: var(--stories-paper);
  color: var(--stories-muted);
  font: inherit;
  cursor: pointer;
}

.stories-feed-filter-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.stories-feed-filter-toggle:hover,
.stories-feed-filter-toggle:focus-visible,
.stories-feed-filter-toggle[aria-expanded="true"] {
  color: var(--stories-green-dark);
}

.stories-feed-filter-toggle:is(:hover, :focus-visible) span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stories-feed-filter-toggle:focus-visible {
  outline: none;
}

.stories-feed-controls .stories-filters {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--stories-border);
  border-radius: 0;
}

.stories-feed-controls .stories-filter-panel:not(:has(> .stories-feed-clear-topic:not([hidden]))) {
  border-bottom: 0;
}

.stories-feed-controls .stories-filters > .stories-filter-control {
  flex: none;
  height: var(--stories-control-height);
  border: 0;
  border-top: 1px solid var(--stories-border);
}

.stories-page--public .stories-feed-controls .stories-filters .stories-filter-control__trigger {
  border-radius: 0;
}

.stories-feed-controls .stories-filter-menu {
  top: 100%;
  left: -1px;
  right: -1px;
  padding-top: 0;
  border-radius: var(--ui-wire-radius);
  box-shadow: 0 4px 10px rgba(23, 32, 27, 0.09);
}

.stories-feed-date-editor:not([hidden]) {
  position: absolute;
  z-index: 3;
  inset-block-start: 100%;
  inset-inline-start: -1px;
  inset-inline-end: -1px;
  display: grid;
  gap: 8px;
  width: auto;
  min-width: 152px;
  padding: 10px;
  border: 1px solid var(--stories-border);
  border-top: 0;
  border-bottom: 1px solid var(--stories-border);
  border-radius: 0 0 var(--ui-wire-radius) var(--ui-wire-radius);
  background: var(--stories-paper);
  box-shadow: 0 4px 10px rgba(23, 32, 27, 0.09);
}

.stories-feed-date-editor label {
  margin-bottom: 0;
}

.stories-feed-date-editor .stories-date-menu__clear {
  justify-self: start;
  min-height: 24px;
}

.stories-feed-impact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 8px 12px;
  border: 0;
  color: var(--stories-muted);
  font: 500 12px/1.4 var(--ui-font-interface);
}

.stories-feed-impact__heading {
  grid-column: 1 / -1;
}

.stories-feed-impact output {
  color: var(--stories-ink);
}

.stories-feed-impact input,
.stories-feed-impact__scale {
  grid-column: 1 / -1;
}

.stories-feed-impact input {
  width: 100%;
  margin: 0;
  accent-color: var(--stories-impact-green);
}

.stories-feed-impact__scale {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stories-feed-clear-topic {
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--stories-green-dark);
  font: 500 12px/1.2 var(--ui-font-interface);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.stories-page:not(.stories-page--public) .stories-day + .stories-day {
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid var(--stories-line);
}

.stories-page--public .stories-day {
  padding-block-end: 18px;
  border-block-end: 1px solid var(--stories-line);
}

.stories-page--public .stories-day:not([hidden]) ~ .stories-day {
  padding-block-start: 4px;
}

.stories-grid {
  --stories-columns: 2;
  --stories-gap: 18px;
  display: grid;
  grid-template-columns: repeat(var(--stories-columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--stories-gap);
}

.stories-grid--masonry {
  position: relative;
  display: block;
}

.stories-grid--masonry > .stories-grid__item {
  position: absolute;
}

.stories-grid__item {
  min-width: 0;
  position: relative;
}

/* Keep the visible top rule with its card as the sticky controls cover it. */
@media screen {
  .stories-page--public .stories-grid__item::before {
    content: "";
    display: block;
    position: sticky;
    z-index: 4;
    top: var(--stories-feed-controls-height);
    height: 1px;
    margin-block-end: -1px;
    border-radius: var(--ui-wire-radius) var(--ui-wire-radius) 0 0;
    background: var(--stories-line);
    pointer-events: none;
  }

  .stories-page--public .stories-grid__item:has(> .story-panel:is(:hover, :focus-visible))::before {
    background: var(--ui-line-hover);
  }
}

.story-image-suggestion-badge {
  position: absolute;
  z-index: 2;
  right: 1px;
  bottom: 1px;
  width: 30px;
  height: 30px;
  text-decoration: none;
}

.story-image-suggestion-badge::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: #e8e055;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.story-image-suggestion-badge:focus-visible {
  outline: 2px solid #39443d;
  outline-offset: 3px;
}

.story-image-suggestion-badge:hover::before,
.story-image-suggestion-badge:focus-visible::before {
  background: #d6ce36;
}

.stories-grid__item[hidden] { display: none; }

.story-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--stories-border);
  border-radius: 7px;
  background: var(--stories-card);
  box-shadow: 0 3px 14px rgba(23, 70, 47, 0.035);
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stories-page--public .story-panel--with-image {
  overflow: hidden;
}

.story-panel:hover,
.story-panel:focus-visible {
  border-color: rgba(11, 102, 64, 0.38);
  box-shadow: 0 10px 28px rgba(23, 70, 47, 0.09);
  outline: none;
}


.story-panel[hidden],
.stories-day[hidden],
.stories-filter-empty[hidden] { display: none; }

.story-panel__image {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f3f2;
}

.story-panel__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-panel__price-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  order: -1;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--stories-border);
  border-radius: 7px;
  background: #fff;
  pointer-events: none;
}

.story-panel__price-preview-chart {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.story-panel__meta,
.story-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--stories-muted);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Keep card titles aligned whether or not a story has ticker logos. */
.story-panel__meta { min-height: 38px; }

.story-panel--with-image {
  position: relative;
  border-radius: 7px;
}

.story-panel--with-image .story-panel__image {
  order: -1;
  border-radius: 7px;
}

:where(.internal-search) .story-panel--with-image .story-panel__image {
  width: calc(100% + 40px);
  margin: -20px -20px 12px;
  border-radius: 0;
}

.story-panel--with-image .story-panel__meta,
.story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__meta {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  right: 20px;
  flex-wrap: nowrap;
  align-items: flex-start;
  pointer-events: none;
}

.story-panel--with-image .story-panel__meta-leading,
.story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__meta-leading {
  padding: 8px 10px;
  border: 1px solid var(--stories-border);
  border-radius: 4px;
  background: var(--stories-paper);
  box-shadow: 0 1px 4px rgba(23, 32, 27, 0.08);
}

.story-panel--with-image .story-panel__logo,
.story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__logo {
  border-radius: 4px;
  background: var(--stories-paper);
}

.story-panel--with-image .story-panel__meta + .story-panel__theme,
.story-panel--with-price-preview .story-panel__meta + .story-panel__theme {
  margin-top: 0;
}

.story-panel--with-image .story-panel__story-reference,
.story-panel--with-image:not(:has(.story-panel__story-reference)) .story-panel__theme,
.story-panel--with-price-preview .story-panel__story-reference,
.story-panel--with-price-preview:not(:has(.story-panel__story-reference)) .story-panel__theme,
.story-panel__story-reference:last-child,
.story-panel__theme:last-child {
  margin-bottom: 0;
}

.story-panel__meta-leading {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-right: auto;
}

.story-panel__indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--stories-green-dark);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.story-panel__indicator-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.story-panel__indicator-icon svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.story-panel__indicator-icon .story-panel__indicator-icon-filled {
  fill: currentColor;
  opacity: 0;
}

.story-panel__type {
  color: var(--stories-green-dark);
  font-weight: 600;
}

.story-panel__logos {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 10px;
  pointer-events: auto;
}

.story-panel__logos--multiple {
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.story-panel__logo:focus-visible {
  outline: 2px solid var(--stories-green-dark);
  outline-offset: 3px;
  position: relative;
  z-index: 1;
}

.story-panel__logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stories-border);
  border-radius: 4px;
  background: var(--stories-paper);
  box-shadow: 0 1px 4px rgba(23, 32, 27, 0.07);
}

/* Keep the stack hidden until missing icons have been removed. */
.story-panel__logos[inert] {
  visibility: hidden;
}

.story-panel__logo ~ .story-panel__logo {
  margin-left: -25px;
  transition: margin-left 180ms ease;
}

.story-panel__logos.is-expanded .story-panel__logo ~ .story-panel__logo {
  margin-left: -7px;
}

.story-panel__logos:has(.story-panel__logo:focus-visible) .story-panel__logo ~ .story-panel__logo {
  margin-left: -7px;
}

@media (hover: hover) and (pointer: fine) {
  .story-panel__logos--multiple:hover .story-panel__logo ~ .story-panel__logo {
    margin-left: -7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-panel__logo ~ .story-panel__logo { transition: none; }
}

.story-panel__logo img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.story-panel__theme {
  margin: 0 0 20px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.story-panel__meta + .story-panel__theme { margin-top: 12px; }

.story-panel__story-reference:hover,
.story-panel__story-reference:focus-visible,
.story-panel--event-space:hover .story-panel__story-reference,
.story-panel--event-space:focus-visible .story-panel__story-reference {
  color: var(--stories-green-dark);
}

.story-panel__story-reference:focus-visible {
  outline: 2px solid rgba(11, 102, 64, 0.55);
  outline-offset: 2px;
}

.story-panel--event-space { cursor: pointer; }

.story-panel__story-reference {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -8px 0 16px;
  padding: 9px 11px;
  border-left: 2px solid var(--stories-green-dark);
  border-radius: 0 6px 6px 0;
  background: rgba(11, 102, 64, 0.045);
  color: var(--stories-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.story-panel__story-reference .story-panel__indicator {
  margin-top: 1px;
}

.story-panel__story-reference-label {
  color: inherit;
}

.story-panel__footer {
  padding-top: 13px;
}

.stories-empty {
  grid-column: 1 / -1;
  padding: 54px 0;
  color: var(--stories-muted);
  text-align: center;
}

.stories-filter-empty {
  margin: 38px 0 0;
  padding: 38px 0;
  color: var(--stories-muted);
  text-align: center;
}

.stories-load-more {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.stories-load-more button {
  padding: 10px 17px;
  border: 1px solid var(--stories-ink);
  border-radius: 4px;
  background: var(--stories-paper);
  color: var(--stories-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.stories-load-more button:hover,
.stories-load-more button:focus-visible {
  border-color: var(--stories-green-dark);
  color: var(--stories-green-dark);
  outline: none;
}

.stories-load-more button:disabled {
  cursor: default;
  pointer-events: none;
  padding: 10px 0;
  border-color: transparent;
  background: transparent;
  color: var(--stories-muted);
  font-size: 0.8rem;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 860px) {
  .stories-page--public #stories-content { --stories-feed-max-width: 500px; }
  .stories-page--public .stories-feed-controls .stories-filter-panel { width: 66.6667%; }

  .stories-grid {
    --stories-columns: 1;
    max-width: 500px;
    margin-inline: auto;
  }
}

@media (max-width: 580px) {
  .stories-shell { width: min(100% - 24px, 1000px); padding-top: 18px; }
  .stories-page--public .stories-shell { width: 100%; padding-top: 0; }
  .stories-public-masthead { margin-bottom: 8px; padding: 27px 14px 8px; }
  .stories-page--public #stories-content { --stories-feed-gutter: 12px; }
  .stories-search__row { flex-wrap: wrap; }
  .stories-search__field { flex-basis: 100%; }
  .stories-filters { justify-content: space-between; }
  .stories-filters select { min-width: 0; max-width: 65%; }
  .stories-grid { --stories-columns: 1; }
  .story-panel { padding: 17px 17px 20px; }
  :where(.internal-search) .story-panel--with-image .story-panel__image {
    width: calc(100% + 34px);
    margin: -17px -17px 12px;
  }
  .story-panel--with-image .story-panel__meta,
  .story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__meta { top: 17px; left: 17px; right: 17px; }
  .story-panel__logo { width: 36px; height: 36px; flex-basis: 36px; }
}
/* Public news presentation. */
.stories-page--public {
  --stories-border: var(--ui-line);
}

.stories-page--public .stories-search__field,
.stories-page--public .stories-search__popup,
.stories-page--public .stories-filter-menu,
.stories-page--public .stories-filter-control__trigger,
.stories-page--public .stories-trending__bubble,
.stories-page--public .story-panel,
.stories-page--public .story-panel__image,
.stories-page--public .story-panel__price-preview,
.stories-page--public .story-panel__meta-leading,
.stories-page--public .story-panel__logo,
.stories-page--public .story-panel__story-reference,
.stories-page--public .stories-load-more button {
  border-radius: var(--ui-wire-radius);
}

.stories-page--public .stories-search__field,
.stories-page--public .story-panel {
  box-shadow: none;
}

/* Match the expanded search filters to the squared search field. */
.stories-page--public .stories-filters,
.stories-page--public .stories-filter-control:first-child .stories-filter-control__trigger,
.stories-page--public .stories-filter-control:not([hidden]):not(:has(~ .stories-filter-control:not([hidden]))) .stories-filter-control__trigger,
.stories-page--public .stories-filter-control:first-child:not(:has(~ .stories-filter-control:not([hidden]))) .stories-filter-control__trigger,
.stories-page--public .stories-date-menu input[type="date"] {
  border-radius: var(--ui-wire-radius);
}

.stories-page--public .stories-feed-controls .stories-filters .stories-filter-control__trigger {
  border-radius: 0 !important;
}

.stories-page--public .stories-filter-menu__option:hover,
.stories-page--public .stories-filter-menu__option:focus-visible,
.stories-page--public .stories-filter-menu__option[aria-selected="true"] {
  background: #f2f4f2;
}

.stories-page--public .story-panel {
  padding: 22px 24px;
  border-width: 1.5px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.stories-page--public .story-panel:hover,
.stories-page--public .story-panel:focus-visible {
  border-color: var(--ui-line-hover);
  background: var(--stories-card);
  box-shadow: none;
}

.stories-page--public .story-panel__image,
.stories-page--public .story-panel__price-preview {
  margin-bottom: 16px;
}

.stories-page--public .story-panel--with-image .story-panel__meta {
  top: 30px;
  left: 32px;
  right: 32px;
}

.stories-page--public .story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__meta {
  top: 22px;
  left: 14px;
  right: 24px;
}

.stories-page--public .story-panel__meta-leading {
  box-shadow: none;
}

.stories-page--public .story-panel__story-reference {
  margin-top: -5px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid #d4d8d4;
  border-bottom: 1px solid #d4d8d4;
  border-radius: 0;
  background: transparent;
}

.stories-page--public .story-panel__story-reference .story-panel__indicator {
  color: #72787a;
}

.stories-page--public .story-panel__story-reference:hover,
.stories-page--public .story-panel__story-reference:focus-visible,
.stories-page--public .story-panel--event-space:hover .story-panel__story-reference,
.stories-page--public .story-panel--event-space:focus-visible .story-panel__story-reference {
  color: #495154;
  border-color: #8e9690;
}

.stories-page--public :is(.stories-heading, .stories-feed-filter-toggle) {
  font-family: var(--ui-font-mono);
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stories-page--public .stories-trending__label {
  margin-right: 7px;
  font-family: var(--ui-font-mono);
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

@media (max-width: 580px) {
  .stories-page--public .story-panel { padding: 18px; }
  .stories-page--public .story-panel--with-image .story-panel__meta {
    top: 26px;
    left: 26px;
    right: 26px;
  }
  .stories-page--public .story-panel--with-price-preview:not(.story-panel--with-image) .story-panel__meta {
    top: 18px;
    left: 8px;
    right: 18px;
  }
}
/* Public news masthead and sector selector. */
.stories-page--public {
  --stories-impact-green: #279316;
}

.stories-page--public .stories-page__intro h1 {
  max-width: none;
  font-family: var(--ui-font-interface);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.stories-page--public .story-panel__meta .story-panel__indicator {
  color: var(--stories-impact-green);
  font-family: var(--ui-font-interface);
  font-weight: 700;
}

.stories-page--public .stories-page__intro .stories-page__title-subject {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: .02em .15em .08em .03em;
}

.stories-page--public .stories-page__intro .stories-page__title-subject::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .19em .04em .08em 0;
  background: var(--ui-highlight);
  transform: scaleX(0);
  transform-origin: left center;
  animation: news-highlight-draw .48s cubic-bezier(.22, 1, .36, 1) .08s forwards;
}

@keyframes news-highlight-draw {
  to { transform: scaleX(1); }
}

.stories-public-masthead:has(.stories-masthead-sector__options:not([hidden])) {
  z-index: 16;
}

.stories-masthead-sector {
  position: relative;
  display: inline-block;
}

.stories-masthead-sector__toggle {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.stories-masthead-sector__toggle svg {
  position: absolute;
  right: calc(100% + .12em);
  top: 50%;
  width: .24em;
  height: .16em;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--stories-green-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.stories-masthead-sector__toggle[aria-expanded="true"] svg {
  transform: translateY(-50%) rotate(180deg);
}

.stories-masthead-sector__toggle:is(:hover, :focus-visible) svg {
  stroke: var(--stories-ink);
}

.stories-masthead-sector__toggle:focus-visible {
  outline: 1px solid var(--stories-green-dark);
  outline-offset: 4px;
}

.stories-masthead-sector__options {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: max-content;
  min-width: 152px;
  max-width: calc(100vw - 48px);
  padding: 0;
  border: 1px solid var(--stories-border);
  border-radius: var(--ui-wire-radius);
  overflow: hidden;
  background: var(--stories-paper);
  box-shadow: 0 4px 12px rgba(23, 32, 27, 0.1);
}

.stories-masthead-sector__options [aria-pressed="true"] { display: none; }

.stories-masthead-sector__current {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 35px;
  padding: 9px 38px 9px 12px;
  border-bottom: 1px solid var(--stories-border);
  color: var(--stories-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.stories-masthead-sector__current svg {
  position: absolute;
  top: calc(50% + 1px);
  right: 12px;
  width: 12px;
  height: 8px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--stories-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .stories-page--public .stories-page__intro .stories-page__title-subject::before {
    animation: none;
    transform: none;
  }
}

@media (max-width: 580px) {
  .stories-page--public .stories-page__intro .stories-page__title-subject { padding-right: .12em; }
}
