* { box-sizing: border-box; }

html,
body,
button,
a {
  font-family: "Inter", Arial, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f3f2;
  color: #171717;
}

.news-page-header {
  border-bottom: 1px solid #d4d0cd;
  background: #fff;
}

.news-page-header-inner {
  width: 100%;
}

.news-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.news-page-button,
.news-page-refresh,
.news-page-empty a {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c4c0;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.news-page-button-primary,
.news-page-empty a {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.news-page-shell {
  width: 100%;
  margin: 0 0 64px;
  padding: 24px 46px 0;
}

.news-page-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d4d0cd;
}

.news-page-count {
  font-size: 12px;
  font-weight: 700;
}

.news-page-updated {
  margin-left: 10px;
  color: #77716d;
  font-size: 10px;
  font-weight: 500;
}

.news-page-refresh {
  min-height: 34px;
  height: 34px;
  padding-inline: 12px;
}

.news-page-grid {
  width: 100%;
  display: block;
}

.news-page-card {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 30px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 34px;
  align-items: start;
  border-bottom: 1px solid #d4d0cd;
  color: #171717;
}

.news-card-copy {
  min-width: 0;
  max-width: 920px;
}

.news-card-badge {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcac6;
  border-radius: 8px;
  color: #696460;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-page-card h2 {
  margin: 14px 0 0;
  color: #171717;
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.news-card-date {
  margin-top: 12px;
  display: block;
  color: #77716d;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.news-card-description {
  max-width: 900px;
  margin: 20px 0 0;
  color: #66615d;
  font-size: 15px;
  line-height: 1.65;
}

.news-card-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-card-action {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c4c0;
  border-radius: 999px;
  background: transparent;
  color: #171717;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.news-card-action-primary {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.news-card-action:hover,
.news-card-action:focus-visible {
  border-color: #171717;
  outline: none;
}

.news-card-action-primary:hover,
.news-card-action-primary:focus-visible {
  background: #2a2a2a;
}

.news-card-media {
  width: 230px;
  min-width: 230px;
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid #d7d2cf;
  border-radius: 8px;
  background: #ece9e6;
}

.news-card-media[hidden] {
  display: none !important;
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #efedeb;
}

.news-page-empty {
  margin-top: 22px;
  padding: 54px 22px;
  border-bottom: 1px solid #d4d0cd;
  text-align: center;
}

.news-page-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ebe8e5;
}

.news-page-empty-icon svg {
  width: 24px;
  fill: none;
  stroke: #df0038;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-page-empty h2 {
  margin: 0;
  font-size: 20px;
}

.news-page-empty p {
  width: min(520px, 100%);
  margin: 8px auto 16px;
  color: #6d6763;
  font-size: 12px;
  line-height: 1.55;
}

.news-page-loading {
  width: 100%;
  display: block;
}

.news-preview-card {
  height: 235px;
  border-bottom: 1px solid #d4d0cd;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.025) 42%, rgba(255,255,255,.55) 50%, rgba(0,0,0,.025) 58%, transparent 100%);
  background-size: 260% 100%;
  animation: news-shimmer 1.35s ease infinite;
}

@keyframes news-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

html.nexus-dark-gray body {
  background: #121212;
  color: #f3f1ef;
}

html.nexus-dark-gray .news-page-header {
  border-color: #333;
  background: #171717;
}

html.nexus-dark-gray .news-page-toolbar,
html.nexus-dark-gray .news-page-card,
html.nexus-dark-gray .news-page-empty,
html.nexus-dark-gray .news-preview-card {
  border-color: #333;
}

html.nexus-dark-gray .news-page-button,
html.nexus-dark-gray .news-page-refresh {
  border-color: #4a4a4a;
  background: #171717;
  color: #f3f1ef;
}

html.nexus-dark-gray .news-page-button-primary {
  border-color: #f3f1ef;
  background: #f3f1ef;
  color: #171717;
}

html.nexus-dark-gray .news-page-updated,
html.nexus-dark-gray .news-card-date,
html.nexus-dark-gray .news-card-description,
html.nexus-dark-gray .news-page-empty p {
  color: #9f9f9f;
}

html.nexus-dark-gray .news-page-card,
html.nexus-dark-gray .news-page-card h2 {
  color: #f4f4f4;
}

html.nexus-dark-gray .news-card-badge {
  border-color: #393939;
  color: #aaa;
}

html.nexus-dark-gray .news-card-action {
  border-color: #3d3d3d;
  color: #f4f4f4;
}

html.nexus-dark-gray .news-card-action-primary {
  border-color: #f4f4f4;
  background: #f4f4f4;
  color: #171717;
}

html.nexus-dark-gray .news-card-action-primary:hover,
html.nexus-dark-gray .news-card-action-primary:focus-visible {
  background: #dedede;
}

html.nexus-dark-gray .news-card-media {
  border-color: #333;
  background: #1e1e1e;
}

html.nexus-dark-gray .news-card-image {
  background: #1e1e1e;
}

html.nexus-dark-gray .news-page-empty-icon {
  background: #202020;
}

html.nexus-dark-gray .news-preview-card {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.02) 42%, rgba(255,255,255,.055) 50%, rgba(255,255,255,.02) 58%, transparent 100%);
  background-size: 260% 100%;
}

@media (max-width: 999px) {
  .news-page-shell {
    padding: 18px 18px 0;
  }

  .news-page-card {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 24px;
  }

  .news-card-media {
    width: 190px;
    min-width: 190px;
  }

  .news-page-card h2 {
    font-size: clamp(23px, 3.4vw, 32px);
  }
}

@media (max-width: 700px) {
  .news-page-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .news-page-actions .news-page-button {
    flex: 1 1 0;
  }

  .news-page-shell {
    padding: 12px 14px 0;
  }

  .news-page-toolbar {
    min-height: 52px;
  }

  .news-page-card {
    padding: 24px 0 26px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-card-copy {
    max-width: none;
  }

  .news-card-media {
    grid-row: 1;
    width: min(100%, 420px);
    min-width: 0;
  }

  .news-page-card h2 {
    margin-top: 12px;
    font-size: 25px;
  }

  .news-card-description {
    margin-top: 15px;
    font-size: 13.5px;
  }

  .news-card-actions {
    margin-top: 19px;
  }

  .news-card-action {
    min-height: 40px;
    padding-inline: 16px;
  }

  .news-page-updated {
    display: block;
    margin: 2px 0 0;
  }
}

.news-page-loading[hidden],
.news-page-empty[hidden],
.news-page-grid[hidden] {
  display: none !important;
}


/* Nuvio-inspired inline story expansion and archive pagination */
.news-card-expanded {
  max-width: 900px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dedad7;
  color: #4f4b48;
}

.news-card-expanded[hidden] {
  display: none !important;
}

.news-card-expanded p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.72;
}

.news-card-expanded p:last-child {
  margin-bottom: 0;
}

.news-card-expanded-note {
  color: #77716d;
  font-style: italic;
}

.news-card-action {
  appearance: none;
  cursor: pointer;
}

.news-load-more-wrap {
  padding: 30px 0 6px;
  display: flex;
  justify-content: center;
}

.news-load-more-wrap[hidden] {
  display: none !important;
}

.news-load-more {
  min-width: 132px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #c9c4c0;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font: 700 12px/1 "Inter", Arial, sans-serif;
  cursor: pointer;
}

.news-load-more:hover,
.news-load-more:focus-visible {
  border-color: #171717;
  outline: none;
}

html.nexus-dark-gray .news-card-expanded {
  border-color: #333;
  color: #c7c7c7;
}

html.nexus-dark-gray .news-card-expanded-note {
  color: #929292;
}

html.nexus-dark-gray .news-load-more {
  border-color: #3d3d3d;
  background: #171717;
  color: #f4f4f4;
}

html.nexus-dark-gray .news-load-more:hover,
html.nexus-dark-gray .news-load-more:focus-visible {
  border-color: #f4f4f4;
}

@media (max-width: 700px) {
  .news-card-expanded p {
    font-size: 13px;
    line-height: 1.65;
  }

  .news-load-more-wrap {
    padding-top: 24px;
  }
}


/* Mobile uses the shared Store News navigation as the only page header */
@media (max-width: 999px) {
  .news-page-header.site-page-header {
    display: none !important;
  }

  .news-page-shell {
    margin-top: 0 !important;
    padding-top: 12px !important;
  }
}

@media (max-width: 580px) {
  .news-page-shell {
    padding-top: 8px !important;
  }
}


/* Rich Spark article typography */
.news-card-expanded {
  font-size: 15px;
  line-height: 1.68;
}

.news-card-expanded p,
.news-card-expanded li,
.news-card-expanded blockquote,
.news-card-expanded td,
.news-card-expanded th {
  font-size: inherit;
  line-height: inherit;
}

.news-card-expanded p {
  margin: 0 0 16px;
}

.news-card-expanded h2,
.news-card-expanded h3,
.news-card-expanded h4 {
  margin: 24px 0 10px;
  color: #272421;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.news-card-expanded h2 {
  padding-bottom: 7px;
  border-bottom: 1px solid #9f9a96;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.news-card-expanded h3 {
  font-size: 17px;
}

.news-card-expanded h4 {
  font-size: 16px;
}

.news-card-expanded strong,
.news-card-expanded b {
  font-weight: 750;
}

.news-card-expanded em,
.news-card-expanded i {
  font-style: italic;
}

.news-card-expanded ul,
.news-card-expanded ol {
  margin: 10px 0 18px;
  padding-left: 28px;
}

.news-card-expanded li {
  margin: 5px 0;
}

.news-card-expanded blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid #c6c1bd;
  color: #5f5a56;
}

.news-card-expanded a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-card-rich-table-wrap {
  width: 100%;
  margin: 18px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-card-expanded table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
}

.news-card-expanded th,
.news-card-expanded td {
  padding: 8px 10px;
  border: 1px solid #8f8a86;
  vertical-align: top;
  text-align: left;
}

.news-card-expanded th {
  background: #f0eeec;
  font-weight: 750;
}

.news-card-expanded hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #cfcac6;
}

html.nexus-dark-gray .news-card-expanded h2,
html.nexus-dark-gray .news-card-expanded h3,
html.nexus-dark-gray .news-card-expanded h4 {
  color: #f1f1f1;
}

html.nexus-dark-gray .news-card-expanded h2 {
  border-color: #555;
}

html.nexus-dark-gray .news-card-expanded blockquote {
  border-color: #555;
  color: #bcbcbc;
}

html.nexus-dark-gray .news-card-expanded table {
  background: #171717;
}

html.nexus-dark-gray .news-card-expanded th,
html.nexus-dark-gray .news-card-expanded td {
  border-color: #555;
}

html.nexus-dark-gray .news-card-expanded th {
  background: #242424;
}

html.nexus-dark-gray .news-card-expanded hr {
  border-color: #444;
}

@media (max-width: 700px) {
  .news-card-expanded {
    font-size: 15px;
    line-height: 1.68;
  }

  .news-card-expanded p {
    margin-bottom: 15px;
  }

  .news-card-expanded h2 {
    font-size: 17px;
  }

  .news-card-expanded h3 {
    font-size: 16px;
  }

  .news-card-expanded h4 {
    font-size: 15px;
  }

  .news-card-expanded th,
  .news-card-expanded td {
    padding: 7px 8px;
  }
}


/* Store Home segmented sections and Spark promotions */
.home-section-tabs {
  width: min(680px, 100%);
  min-height: 52px;
  margin: 4px 0 18px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #d3ceca;
  border-radius: 14px;
  background: #e9e7e5;
}

.home-section-tab {
  min-width: 0;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6e6965;
  font: 700 12px/1 "Inter", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.home-section-tab:hover,
.home-section-tab:focus-visible {
  color: #171717;
  outline: none;
}

.home-section-tab.is-active {
  background: #ffffff;
  color: #171717;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.home-section-panel[hidden] {
  display: none !important;
}

.home-promo-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d4d0cd;
}

.home-promo-title {
  display: inline-block;
  color: #171717;
  font-size: 13px;
  font-weight: 800;
}

.home-promo-updated {
  margin-left: 10px;
  color: #77716d;
  font-size: 10px;
  font-weight: 500;
}

.home-promo-list {
  width: 100%;
}

.home-promo-card {
  width: 100%;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border-bottom: 1px solid #d4d0cd;
}

.home-promo-date {
  min-height: 58px;
  padding: 8px 9px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 999px;
  background: #8f999e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: pre-line;
}

.home-promo-content {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #d7d2cf;
  border-radius: 5px;
  background: #ffffff;
  transition: background-color .14s ease, border-color .14s ease;
}

.home-promo-card.is-link {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.home-promo-card.is-link .home-promo-content,
.home-promo-card.is-link .home-promo-content h3,
.home-promo-card.is-link .home-promo-content p {
  text-decoration: none !important;
}

.home-promo-card.is-link:hover,
.home-promo-card.is-link:focus-visible,
.home-promo-card.is-link:active {
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

.home-promo-card.is-link:hover .home-promo-content,
.home-promo-card.is-link:focus-visible .home-promo-content {
  border-color: #c5c0bc;
  background: #f1f1f1;
}

.home-promo-content h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.home-promo-content p {
  margin: 5px 0 0;
  color: #6c6763;
  font-size: 12px;
  line-height: 1.45;
}

.home-promo-empty {
  margin-top: 18px;
  padding: 28px 18px;
  border: 1px dashed #c9c4c0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .4);
  color: #77716d;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.home-promo-empty[hidden] {
  display: none !important;
}

html.nexus-dark-gray .home-section-tabs {
  border-color: #383838;
  background: #1a1a1a;
}

html.nexus-dark-gray .home-section-tab {
  color: #a9a9a9;
}

html.nexus-dark-gray .home-section-tab:hover,
html.nexus-dark-gray .home-section-tab:focus-visible {
  color: #f4f4f4;
}

html.nexus-dark-gray .home-section-tab.is-active {
  background: #f4f4f4;
  color: #171717;
}

html.nexus-dark-gray .home-promo-heading,
html.nexus-dark-gray .home-promo-card {
  border-color: #333333;
}

html.nexus-dark-gray .home-promo-title {
  color: #f4f4f4;
}

html.nexus-dark-gray .home-promo-updated,
html.nexus-dark-gray .home-promo-empty {
  color: #a9a9a9;
}

html.nexus-dark-gray .home-promo-content {
  border-color: #3b3b3b;
  background: #171717;
  color: #f4f4f4;
}

html.nexus-dark-gray .home-promo-card.is-link:hover .home-promo-content,
html.nexus-dark-gray .home-promo-card.is-link:focus-visible .home-promo-content {
  border-color: #555555;
  background: #252525;
}

html.nexus-dark-gray .home-promo-content p {
  color: #bdbdbd;
}

html.nexus-dark-gray .home-promo-empty {
  border-color: #424242;
  background: rgba(255, 255, 255, .02);
}

@media (max-width: 700px) {
  .home-section-tabs {
    width: 100%;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 4px;
    gap: 2px;
    border-radius: 12px;
  }

  .home-section-tab {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-promo-heading {
    min-height: 44px;
  }

  .home-promo-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .home-promo-date {
    min-height: 52px;
    padding: 7px 6px;
    font-size: 9px;
  }

  .home-promo-content {
    padding: 12px 13px;
  }

  .home-promo-content h3 {
    font-size: 14px;
  }

  .home-promo-content p {
    font-size: 11.5px;
  }
}

@media (max-width: 430px) {
  .home-section-tab {
    font-size: 10px;
    letter-spacing: -.01em;
  }

  .home-promo-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }
}


/* Spark story metadata inside expanded Home stories */
.news-card-expanded-meta {
  margin: 0 0 18px;
  padding: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border-bottom: 1px solid #dedad7;
  color: #716b67;
  font-size: 12px;
  line-height: 1.45;
}

.news-card-expanded-author {
  color: #4f4a47;
  font-weight: 700;
}

.news-card-expanded-published::before {
  content: "·";
  margin-right: 10px;
  color: #aaa39e;
}

html.nexus-dark-gray .news-card-expanded-meta {
  border-color: #3c3c3c;
  color: #aaa;
}

html.nexus-dark-gray .news-card-expanded-author {
  color: #dedede;
}

@media (max-width: 700px) {
  .news-card-expanded-meta {
    margin-bottom: 16px;
    padding-bottom: 14px;
    font-size: 12px;
  }
}


/* Home title search aligned with section tabs */
.home-section-controls {
  width: 100%;
  margin: 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.home-section-controls .home-section-tabs {
  margin: 0;
  flex: 0 1 680px;
}

.home-story-search {
  width: min(410px, 34vw);
  min-width: 260px;
  min-height: 48px;
  padding: 0 2px 3px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #c8c3bf;
  background: transparent;
  color: #8b8682;
  cursor: text;
  transition: border-color .16s ease, color .16s ease;
}

.home-story-search:hover {
  border-bottom-color: #a9a39f;
}

.home-story-search:focus-within {
  border-bottom-color: #171717;
  color: #5f5a56;
}

.home-story-search-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-story-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: 500 16px/1.2 "Inter", Arial, sans-serif;
  letter-spacing: -.01em;
  appearance: none;
  -webkit-appearance: none;
}

.home-story-search input::placeholder {
  color: #8f8a86;
  opacity: 1;
}

.home-story-search input::-webkit-search-decoration {
  display: none;
}

.home-story-search input::-webkit-search-cancel-button {
  opacity: .55;
  cursor: pointer;
}

.news-search-empty {
  padding: 44px 16px;
  border-bottom: 1px solid #d4d0cd;
  color: #77716d;
  font-size: 13px;
  text-align: center;
}

.news-search-empty[hidden] {
  display: none !important;
}

html.nexus-dark-gray .home-story-search {
  border-bottom-color: #45413f;
  color: #8f8a86;
}

html.nexus-dark-gray .home-story-search:hover {
  border-bottom-color: #625d59;
  color: #aaa49f;
}

html.nexus-dark-gray .home-story-search:focus-within {
  border-bottom-color: #8a837e;
  color: #c8c2bd;
}

html.nexus-dark-gray .home-story-search input {
  background: transparent !important;
  border: 0 !important;
  color: #f3f1ef !important;
}

html.nexus-dark-gray .home-story-search input::placeholder {
  color: #9d9792 !important;
  opacity: 1;
}

html.nexus-dark-gray .news-search-empty {
  border-color: #333;
  color: #9f9f9f;
}

@media (max-width: 999px) {
  .home-section-controls {
    gap: 22px;
  }

  .home-section-controls .home-section-tabs {
    flex-basis: 62%;
  }

  .home-story-search {
    width: min(350px, 35vw);
    min-width: 220px;
  }
}

@media (max-width: 760px) {
  .home-section-controls {
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-section-controls .home-section-tabs {
    width: 100%;
    flex: none;
    margin: 0;
  }

  .home-story-search {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-bottom: 3px;
  }

  .home-story-search input {
    height: 40px;
    font-size: 15px;
  }
}


/* Clickable Spark promotion story rows */
.home-promo-card.is-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-promo-card.is-link .home-promo-content {
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.home-promo-card.is-link:hover .home-promo-content,
.home-promo-card.is-link:focus-visible .home-promo-content {
  border-color: #aaa49f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
}

.home-promo-card.is-link:focus-visible {
  outline: none;
}

.home-promo-card.is-link h3 {
  text-decoration: none;
}

.home-promo-card.is-link:hover h3,
.home-promo-card.is-link:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.nexus-dark-gray .home-promo-card.is-link:hover .home-promo-content,
html.nexus-dark-gray .home-promo-card.is-link:focus-visible .home-promo-content {
  border-color: #666;
  background: #1c1c1c;
}


/* Combined Promotions + Upcoming Promotions layout */
.home-promo-section-divider {
  height: 26px;
}

.home-upcoming-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr);
  gap: 14px;
  align-items: start;
}

.home-upcoming-pane {
  overflow: hidden;
  border: 1px solid #d4d0cd;
  border-radius: 5px;
  background: #ffffff;
}

.home-upcoming-pane-heading {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d4d0cd;
  background: #8f999e;
}

.home-upcoming-pane-heading .home-promo-title {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: .01em;
}

.home-upcoming-pane-heading .home-promo-updated {
  color: rgba(255, 255, 255, .82);
}

.home-visual-task-list,
.home-upcoming-promo-list {
  padding: 6px 14px 12px;
}

.home-visual-task {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #e1ddda;
}

.home-visual-task:last-child,
.home-upcoming-promo:last-child {
  border-bottom: 0;
}

.home-visual-task-date {
  min-height: 54px;
  padding: 7px 6px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 999px;
  background: #8f999e;
  color: #fff;
  font: 750 9px/1.18 "Inter", Arial, sans-serif;
  text-align: center;
  white-space: pre-line;
}

.home-visual-task-content-stack {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.home-visual-task-content {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 4px;
  background: #f0efee;
}

.home-visual-task-content h3,
.home-upcoming-promo-content h3 {
  margin: 0;
  color: #171717;
  font: 650 13px/1.35 "Inter", Arial, sans-serif;
  letter-spacing: -.01em;
}

.home-visual-task-content p,
.home-upcoming-promo-content p {
  margin: 5px 0 0;
  color: #6d6763;
  font: 400 11px/1.45 "Inter", Arial, sans-serif;
}

.home-upcoming-promo {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #e1ddda;
}

.home-upcoming-promo-date {
  min-height: 42px;
  padding: 7px 8px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 4px;
  background: #8f999e;
  color: #ffffff;
  font: 750 9px/1.18 "Inter", Arial, sans-serif;
  text-align: center;
}

.home-upcoming-promo-content {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d7d2cf;
  border-radius: 4px;
  background: #f8f7f6;
}

.home-upcoming-pane > .home-promo-empty {
  margin: 14px;
}

.home-upcoming-signed-heading {
  justify-content: space-between;
  gap: 12px;
}

.home-upcoming-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 4px;
}

.home-upcoming-view-button {
  min-width: 62px;
  min-height: 30px;
  padding: 5px 11px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font: 750 10px/1 "Inter", Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-upcoming-view-button:last-child {
  border-right: 0;
}

.home-upcoming-view-button.is-active {
  background: #ffffff;
  color: #596267;
}

.home-upcoming-month[hidden],
.home-upcoming-promo-list[hidden] {
  display: none !important;
}

.home-upcoming-month {
  padding: 10px 12px 14px;
}

.home-calendar-toolbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.home-calendar-month-label {
  color: #333;
  font: 750 16px/1.2 "Inter", Arial, sans-serif;
  text-align: center;
}

.home-calendar-nav {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f666a;
  font: 400 28px/1 "Inter", Arial, sans-serif;
  cursor: pointer;
}

.home-calendar-nav:hover,
.home-calendar-nav:focus-visible {
  background: #f0efee;
  outline: none;
}

.home-calendar-grid {
  border-top: 1px solid #d9d6d3;
  border-left: 1px solid #d9d6d3;
}

.home-calendar-weekdays,
.home-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.home-calendar-weekday {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-right: 1px solid #d9d6d3;
  border-bottom: 1px solid #d9d6d3;
  background: #faf9f8;
  color: #5d5855;
  font: 700 10px/1 "Inter", Arial, sans-serif;
}

.home-calendar-week {
  position: relative;
  min-height: var(--calendar-week-height, 88px);
}

.home-calendar-day {
  position: relative;
  min-width: 0;
  min-height: var(--calendar-week-height, 88px);
  padding: 24px 4px 5px;
  overflow: hidden;
  border-right: 1px solid #d9d6d3;
  border-bottom: 1px solid #d9d6d3;
  background: #fff;
}

.home-calendar-day.is-outside-month {
  background: #f1f0ef;
}

.home-calendar-day-number {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #57514e;
  font: 650 10px/1 "Inter", Arial, sans-serif;
}

.home-calendar-day.is-outside-month .home-calendar-day-number {
  color: #aaa49f;
}

.home-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px #7fb9d0;
}

.home-calendar-day.is-today .home-calendar-day-number {
  font-weight: 800;
}

.home-calendar-event {
  position: relative;
  z-index: 2;
  align-self: start;
  min-width: 0;
  height: 16px;
  margin-inline: 4px;
  padding: 2px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #5fc0e8;
  color: #fff;
  font: 650 8px/12px "Inter", Arial, sans-serif;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  pointer-events: auto;
}

.home-calendar-event.continues-before {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.home-calendar-event.continues-after {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.home-calendar-event.continues-before::before,
.home-calendar-event.continues-after::after {
  position: absolute;
  top: 1px;
  color: rgba(255,255,255,.95);
  font-size: 11px;
  line-height: 12px;
}

.home-calendar-event.continues-before::before {
  left: 3px;
  content: "‹";
}

.home-calendar-event.continues-after::after {
  right: 3px;
  content: "›";
}

.home-calendar-more {
  margin-top: 3px;
  color: #7f7975;
  font: 650 8px/1.2 "Inter", Arial, sans-serif;
  text-align: center;
}

/* Cleaner month calendar polish */
.home-upcoming-month {
  padding: 12px 14px 16px;
}

.home-calendar-toolbar {
  min-height: 54px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
}

.home-calendar-month-label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.home-calendar-nav {
  width: 38px;
  height: 38px;
  font-size: 32px;
  line-height: 1;
}

.home-calendar-grid {
  border-color: #ddd9d6;
  border-radius: 2px;
  overflow: hidden;
}

.home-calendar-weekday {
  min-height: 36px;
  border-color: #ddd9d6;
  background: #fbfbfa;
  color: #5a5653;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.home-calendar-week {
  min-height: var(--calendar-week-height, 96px);
}

.home-calendar-day {
  min-height: var(--calendar-week-height, 96px);
  padding: 29px 5px 6px;
  border-color: #ddd9d6;
}

.home-calendar-day.is-outside-month {
  background: #f3f2f1;
}

.home-calendar-day-number {
  top: 8px;
  right: 9px;
  font-size: 12px;
  font-weight: 600;
}

.home-calendar-day.is-today {
  box-shadow: inset 0 0 0 1.5px #76aec4;
}

.home-calendar-day.is-today .home-calendar-day-number {
  font-weight: 800;
}

.home-calendar-event {
  height: 20px;
  margin-inline: 5px;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  line-height: 16px;
  letter-spacing: -.005em;
}

.home-calendar-event.continues-before,
.home-calendar-event.continues-after {
  border-radius: 5px;
}

.home-calendar-event.continues-before::before,
.home-calendar-event.continues-after::after {
  top: 2px;
  font-size: 13px;
  line-height: 14px;
}

.home-calendar-more {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 650;
}

.home-upcoming-view-toggle {
  border-radius: 4px;
}

.home-upcoming-view-button {
  min-width: 66px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: .025em;
}

html.nexus-dark-gray .home-upcoming-pane {
  border-color: #3a3a3a;
  background: #171717;
}

html.nexus-dark-gray .home-upcoming-pane-heading {
  border-color: #4b4b4b;
  background: #464c50;
}

html.nexus-dark-gray .home-visual-task,
html.nexus-dark-gray .home-upcoming-promo {
  border-color: #333333;
}

html.nexus-dark-gray .home-visual-task-content,
html.nexus-dark-gray .home-upcoming-promo-content {
  border-color: #3b3b3b;
  background: #222222;
}

html.nexus-dark-gray .home-visual-task-content h3,
html.nexus-dark-gray .home-upcoming-promo-content h3 {
  color: #f4f4f4;
}

html.nexus-dark-gray .home-visual-task-content p,
html.nexus-dark-gray .home-upcoming-promo-content p {
  color: #bdbdbd;
}

html.nexus-dark-gray .home-upcoming-view-toggle {
  border-color: #737a7e;
}

html.nexus-dark-gray .home-upcoming-view-button {
  border-color: #6a7074;
  background: rgba(255, 255, 255, .08);
  color: #f2f2f2;
}

html.nexus-dark-gray .home-upcoming-view-button.is-active {
  background: #f2f2f2;
  color: #232729;
}

html.nexus-dark-gray .home-calendar-month-label {
  color: #f4f4f4;
}

html.nexus-dark-gray .home-calendar-nav {
  color: #d0d0d0;
}

html.nexus-dark-gray .home-calendar-nav:hover,
html.nexus-dark-gray .home-calendar-nav:focus-visible {
  background: #262626;
}

html.nexus-dark-gray .home-calendar-grid {
  border-color: #3a3a3a;
}

html.nexus-dark-gray .home-calendar-weekday {
  border-color: #3a3a3a;
  background: #202020;
  color: #c6c6c6;
}

html.nexus-dark-gray .home-calendar-day {
  border-color: #3a3a3a;
  background: #171717;
}

html.nexus-dark-gray .home-calendar-day.is-outside-month {
  background: #202020;
}

html.nexus-dark-gray .home-calendar-day-number {
  color: #d6d6d6;
}

html.nexus-dark-gray .home-calendar-day.is-outside-month .home-calendar-day-number {
  color: #777;
}

html.nexus-dark-gray .home-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px #6da5bb;
}

html.nexus-dark-gray .home-calendar-more {
  color: #aaa;
}

@media (max-width: 860px) {
  .home-upcoming-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-upcoming-pane-heading {
    min-height: 48px;
    padding-inline: 13px;
  }

  .home-upcoming-pane-heading .home-promo-title {
    font-size: 14px;
  }

  .home-visual-task-list,
  .home-upcoming-promo-list {
    padding-inline: 11px;
  }

  .home-visual-task,
  .home-upcoming-promo {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 9px;
  }

  .home-visual-task-date,
  .home-upcoming-promo-date {
    font-size: 8.5px;
  }

  .home-upcoming-signed-heading {
    align-items: center;
  }

  .home-upcoming-view-button {
    min-width: 52px;
    min-height: 28px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .home-upcoming-month {
    padding-inline: 8px;
  }

  .home-calendar-day {
    min-height: 72px;
    padding: 21px 2px 3px;
  }

  .home-calendar-weekday,
  .home-calendar-day-number {
    font-size: 8px;
  }

  .home-calendar-event,
  .home-calendar-more {
    font-size: 7px;
  }
}


/* Calendar responsive readability */
@media (max-width: 860px) {
  .home-calendar-month-label {
    font-size: 20px;
  }

  .home-calendar-weekday {
    font-size: 11px;
  }

  .home-calendar-day-number {
    font-size: 11px;
  }

  .home-calendar-event {
    font-size: 9.5px;
  }
}

@media (max-width: 520px) {
  .home-upcoming-month {
    padding: 8px 6px 12px;
  }

  .home-calendar-toolbar {
    min-height: 46px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .home-calendar-month-label {
    font-size: 17px;
  }

  .home-calendar-nav {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }

  .home-calendar-weekday {
    min-height: 31px;
    font-size: 9px;
  }

  .home-calendar-day {
    min-height: var(--calendar-week-height, 78px);
    padding-top: 25px;
  }

  .home-calendar-day-number {
    top: 7px;
    right: 6px;
    font-size: 9px;
  }

  .home-calendar-event {
    height: 18px;
    margin-inline: 2px;
    padding-inline: 5px;
    font-size: 8px;
    line-height: 14px;
  }

  .home-upcoming-view-button {
    min-width: 54px;
    min-height: 29px;
    padding-inline: 8px;
    font-size: 9px;
  }
}


/* Spark-inspired calendar typography and selector */
.home-upcoming-promos-pane .home-promo-title,
.home-calendar-month-label,
.home-calendar-weekday,
.home-upcoming-view-button {
  font-family: "Poppins", "Inter", Arial, sans-serif;
}

.home-upcoming-promos-pane .home-promo-title {
  font-weight: 600;
  letter-spacing: -.02em;
}

.home-calendar-toolbar {
  min-height: 96px;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  padding: 12px 4px 18px;
  gap: 8px;
}

.home-calendar-month-label {
  color: #55514f;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.home-calendar-nav {
  position: relative;
  width: 58px;
  height: 58px;
  justify-self: center;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  background: transparent;
}

.home-calendar-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-left: 5px solid #5a5653;
  border-bottom: 5px solid #5a5653;
  border-radius: 1px;
}

#upcomingMonthPrev::before {
  transform: translate(-36%, -50%) rotate(45deg);
}

#upcomingMonthNext::before {
  transform: translate(-64%, -50%) rotate(-135deg);
}

.home-calendar-nav:hover,
.home-calendar-nav:focus-visible {
  background: transparent;
}

.home-calendar-weekday {
  min-height: 42px;
  background: #fff;
  color: #4e4a47;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.home-calendar-day-number {
  color: #575250;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.home-calendar-event {
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.home-calendar-more {
  font-family: "Inter", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

html.nexus-dark-gray .home-calendar-month-label {
  color: #efefef;
}

html.nexus-dark-gray .home-calendar-nav::before {
  border-color: #d5d5d5;
}

html.nexus-dark-gray .home-calendar-weekday {
  background: #171717;
  color: #d8d8d8;
}

@media (max-width: 860px) {
  .home-calendar-toolbar {
    min-height: 86px;
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .home-calendar-month-label {
    font-size: 30px;
  }

  .home-calendar-nav {
    width: 50px;
    height: 50px;
  }

  .home-calendar-nav::before {
    width: 19px;
    height: 19px;
    border-width: 0 0 4px 4px;
  }

  .home-calendar-weekday {
    min-height: 39px;
    font-size: 13px;
  }

  .home-calendar-day-number {
    font-size: 12px;
  }

  .home-calendar-event {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .home-calendar-toolbar {
    min-height: 74px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 8px 0 12px;
  }

  .home-calendar-month-label {
    font-size: 23px;
  }

  .home-calendar-nav {
    width: 42px;
    height: 42px;
  }

  .home-calendar-nav::before {
    width: 15px;
    height: 15px;
    border-width: 0 0 3px 3px;
  }

  .home-calendar-weekday {
    min-height: 34px;
    font-size: 10.5px;
  }

  .home-calendar-day-number {
    font-size: 10px;
  }

  .home-calendar-event {
    font-size: 8.5px;
  }
}
