.weekly-digest {
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
}

.weekly-digest--launch {
  overflow: hidden;
  margin-bottom: 14px;
  border-left: 4px solid rgba(47, 111, 237, 0.92) !important;
}

.weekly-digest__launch {
  display: flex;
  gap: 20px;
}

.weekly-digest__launch--compact {
  align-items: center;
}

.weekly-digest__shell {
  width: 100%;
}

.weekly-digest__mainline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.weekly-digest__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.weekly-digest__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.weekly-digest-modal__eyebrow,
.weekly-digest-page__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.weekly-digest-page__eyebrow {
  margin-bottom: 8px;
}

.weekly-digest__kicker,
.weekly-digest-modal__period,
.weekly-digest-page__kicker,
.weekly-digest-archive__period {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f6fed;
}

.weekly-digest__badge {
  font-weight: 700;
}

.weekly-digest__beta-label,
.weekly-digest-modal__beta-label,
.weekly-digest-page__beta-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(47, 111, 237, 0.18);
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.08);
  color: #2f6fed;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.weekly-digest__period {
  font-size: 0.92rem;
  color: rgba(17, 24, 39, 0.66);
}

.weekly-digest__title,
.weekly-digest-modal__title,
.weekly-digest-page__title,
.weekly-digest-archive__title {
  margin: 0;
  color: rgba(17, 24, 39, 0.92);
  font-weight: 800;
  line-height: 1.15;
}

.weekly-digest__title {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.weekly-digest__subtitle,
.weekly-digest-page__subtitle,
.weekly-digest-archive__excerpt {
  margin: 6px 0 0 0;
  color: rgba(17, 24, 39, 0.74);
  font-size: 0.98rem;
  line-height: 1.5;
}

.weekly-digest__meta,
.weekly-digest-modal__meta,
.weekly-digest-archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.weekly-digest__meta-item {
  color: rgba(17, 24, 39, 0.66);
  font-size: 0.92rem;
}

.weekly-digest__meta-separator {
  color: rgba(17, 24, 39, 0.28);
  font-size: 0.9rem;
}

.weekly-digest__note,
.weekly-digest-page__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(17, 24, 39, 0.66);
  font-size: 0.93rem;
  line-height: 1.55;
}

.weekly-digest__empty-note,
.weekly-digest-archive__empty-text {
  color: rgba(17, 24, 39, 0.64);
  line-height: 1.55;
}

.weekly-digest__actions,
.weekly-digest-page__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  max-width: 280px;
}

.weekly-digest__actions--launch {
  min-width: 0;
  max-width: none;
  width: auto;
}

.weekly-digest__action-link {
  display: block;
  text-decoration: none;
}

.weekly-digest__action-link .btn {
  width: 100%;
}

.weekly-digest__action-btn,
.weekly-digest-page__action-btn,
.weekly-digest-modal__footer-btn {
  width: 100%;
  min-height: 46px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: none !important;
}

.weekly-digest--launch .weekly-digest__action-btn {
  min-width: 204px;
  width: auto;
}

.weekly-digest--launch .weekly-digest__meta {
  margin-top: 10px;
  gap: 6px;
}

.weekly-digest--launch .weekly-digest__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5f7fb;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.84rem;
}

.weekly-digest--launch .weekly-digest__meta-separator {
  display: none;
}

.weekly-digest--launch .weekly-digest__note {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.84rem;
  line-height: 1.45;
}

.weekly-digest__action-btn--secondary,
.weekly-digest-page__action-btn--secondary {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: rgba(17, 24, 39, 0.84) !important;
}

.weekly-digest-modal .modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.weekly-digest-modal .modal-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px 26px 18px 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 61, 0.20), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.weekly-digest-modal .modal-body {
  padding: 22px 26px 26px 26px;
  background: #f8fafc;
}

.weekly-digest-modal .modal-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 26px 24px 26px;
  background: #ffffff;
}

.weekly-digest-modal__header-copy {
  width: 100%;
}

.weekly-digest-modal__title {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  margin-top: 6px;
}

.weekly-digest-modal__headline {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #ffffff;
  color: rgba(17, 24, 39, 0.90);
  font-size: 1.04rem;
  line-height: 1.6;
  font-weight: 700;
}

.weekly-digest-modal__briefing {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #ffffff;
  padding: 18px 20px;
}

.weekly-digest-modal__story-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.weekly-digest-modal__story-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: #ffffff;
  padding: 17px 18px;
}

.weekly-digest-modal__story-card--status {
  grid-column: 1 / -1;
}

.weekly-digest-modal__story-card--drivers {
  border-color: rgba(47, 111, 237, 0.20);
}

.weekly-digest-modal__story-card--positive {
  border-color: rgba(16, 185, 129, 0.24);
}

.weekly-digest-modal__story-card--attention {
  border-color: rgba(245, 158, 11, 0.28);
}

.weekly-digest-modal__story-card--watch {
  border-color: rgba(99, 102, 241, 0.22);
}

.weekly-digest-modal__story-title {
  color: rgba(17, 24, 39, 0.92);
  font-size: 0.98rem;
  font-weight: 850;
  margin-bottom: 8px;
}

.weekly-digest-modal__story-intro {
  margin: 0 0 10px 0;
  color: rgba(17, 24, 39, 0.64);
  font-size: 0.9rem;
  line-height: 1.5;
}

.weekly-digest-modal__story-list {
  display: grid;
  gap: 9px;
}

.weekly-digest-modal__story-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: rgba(17, 24, 39, 0.73);
  line-height: 1.5;
}

.weekly-digest-modal__story-dot {
  color: rgba(47, 111, 237, 0.88);
  line-height: 1.5;
}

.weekly-digest-modal__story-card--status .weekly-digest-modal__story-dot,
.weekly-digest-modal__story-card--drivers .weekly-digest-modal__story-dot {
  color: rgba(47, 111, 237, 0.88);
}

.weekly-digest-modal__story-card--positive .weekly-digest-modal__story-dot {
  color: rgba(5, 150, 105, 0.92);
}

.weekly-digest-modal__story-card--attention .weekly-digest-modal__story-dot {
  color: rgba(217, 119, 6, 0.96);
}

.weekly-digest-modal__story-card--watch .weekly-digest-modal__story-dot {
  color: rgba(79, 70, 229, 0.92);
}

.weekly-digest-modal__story-detail,
.weekly-digest-modal__story-empty {
  min-width: 0;
}

.weekly-digest-modal__story-empty {
  color: rgba(17, 24, 39, 0.52);
  font-size: 0.92rem;
  line-height: 1.5;
}

.weekly-digest-modal__insights {
  display: grid;
  gap: 0;
}

.weekly-digest-modal__insight {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
}

.weekly-digest-modal__insight:first-child {
  padding-top: 2px;
}

.weekly-digest-modal__insight:not(:last-child) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.weekly-digest-modal__insight-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 237, 0.10);
  color: #2459d6;
  font-weight: 800;
  font-size: 0.9rem;
}

.weekly-digest-modal__insight-copy {
  min-width: 0;
}

.weekly-digest-modal__insight-label {
  color: rgba(17, 24, 39, 0.92);
  font-weight: 800;
  margin-bottom: 4px;
}

.weekly-digest-modal__insight-detail {
  color: rgba(17, 24, 39, 0.72);
  line-height: 1.58;
}

.weekly-digest-modal__next-step {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.weekly-digest-modal__next-step-copy {
  min-width: 0;
}

.weekly-digest-modal__next-step-label {
  color: rgba(17, 24, 39, 0.90);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.weekly-digest-modal__next-step-text {
  color: rgba(17, 24, 39, 0.66);
  font-size: 0.92rem;
  line-height: 1.5;
}

.weekly-digest-modal__next-step-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2459d6;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.weekly-digest-modal__next-step-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.weekly-digest-modal__footnote {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.86rem;
  line-height: 1.48;
}

.weekly-digest-modal__footnote-icon {
  margin-top: 2px;
  color: rgba(17, 24, 39, 0.42);
}

.weekly-digest-modal__footnote-label {
  color: rgba(17, 24, 39, 0.70);
  font-weight: 800;
}

.weekly-digest-modal__footnote-copy {
  min-width: 0;
}

.weekly-digest-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.weekly-digest-modal__section {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.weekly-digest-modal__section--full {
  margin-top: 18px;
}

.weekly-digest-archive__details > .weekly-digest-modal__section--full {
  grid-column: 1 / -1;
  margin-top: 0;
}

.weekly-digest-modal__section-heading {
  margin-bottom: 12px;
}

.weekly-digest-modal__section-title {
  margin-bottom: 12px;
  color: rgba(17, 24, 39, 0.92);
  font-size: 1rem;
  font-weight: 800;
}

.weekly-digest-modal__section-heading .weekly-digest-modal__section-title {
  margin-bottom: 3px;
}

.weekly-digest-modal__section-hint {
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.88rem;
  line-height: 1.45;
}

.weekly-digest-modal__markdown {
  color: rgba(17, 24, 39, 0.82);
  line-height: 1.7;
}

.weekly-digest-modal__markdown p:last-child,
.weekly-digest-modal__markdown ul:last-child {
  margin-bottom: 0;
}

.weekly-digest-modal__text {
  padding: 0;
  overflow: hidden;
}

.weekly-digest-modal__text-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.weekly-digest-modal__text summary::-webkit-details-marker {
  display: none;
}

.weekly-digest-modal__text-summary .weekly-digest-modal__section-title {
  margin-bottom: 3px;
}

.weekly-digest-modal__text-caret {
  color: rgba(17, 24, 39, 0.55);
  transition: transform 160ms ease;
}

.weekly-digest-modal__text[open] .weekly-digest-modal__text-caret {
  transform: rotate(180deg);
}

.weekly-digest-modal__text-body {
  padding: 0 18px 18px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.weekly-digest-modal__archive {
  margin-top: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.weekly-digest-modal__archive-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.weekly-digest-modal__archive summary::-webkit-details-marker {
  display: none;
}

.weekly-digest-modal__archive-label {
  color: rgba(17, 24, 39, 0.92);
  font-size: 0.98rem;
  font-weight: 800;
}

.weekly-digest-modal__archive-hint {
  color: rgba(17, 24, 39, 0.62);
  font-size: 0.88rem;
  text-align: right;
}

.weekly-digest-modal__archive-body {
  padding: 0 18px 18px 18px;
  display: grid;
  gap: 14px;
}

.weekly-digest-modal__archive-body .weekly-digest-archive__item {
  box-shadow: none;
  background: #f8fafc;
}

.weekly-digest-modal__archive-body .weekly-digest-archive__empty {
  background: #f8fafc;
  box-shadow: none !important;
}

.weekly-digest-list {
  display: grid;
  gap: 12px;
}

.weekly-digest-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.weekly-digest-list__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 237, 0.10);
  color: #2f6fed;
  flex: 0 0 auto;
}

.weekly-digest-list__copy {
  min-width: 0;
}

.weekly-digest-list__title {
  color: rgba(17, 24, 39, 0.90);
  font-weight: 700;
  margin-bottom: 3px;
}

.weekly-digest-list__detail {
  color: rgba(17, 24, 39, 0.72);
  line-height: 1.55;
}

.weekly-digest-list__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  color: #2f6fed;
  font-weight: 750;
  font-size: 0.9rem;
  text-decoration: none;
}

.weekly-digest-list__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.weekly-digest-page {
  background: #f6f8fb;
  border-radius: 14px;
  padding-top: 6px;
  padding-bottom: 26px;
}

.weekly-digest-page__content {
  display: grid;
  gap: 18px;
}

.weekly-digest-page__hero-card {
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.weekly-digest-page__hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.weekly-digest-page__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.weekly-digest-page__title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 6px;
}

.weekly-digest-archive__stack {
  display: grid;
  gap: 16px;
}

.weekly-digest-archive__item {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.weekly-digest-archive__summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}

.weekly-digest-archive__summary::-webkit-details-marker {
  display: none;
}

.weekly-digest-archive__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.weekly-digest-archive__caret {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 24, 39, 0.62);
  background: rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease;
}

.weekly-digest-archive__item[open] .weekly-digest-archive__caret {
  transform: rotate(180deg);
}

.weekly-digest-archive__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 20px 20px;
}

.weekly-digest-archive__details--briefing {
  grid-template-columns: 1fr;
}

.weekly-digest-archive__details--briefing .weekly-digest-modal__headline,
.weekly-digest-archive__details--briefing .weekly-digest-modal__briefing,
.weekly-digest-archive__details--briefing .weekly-digest-modal__story-grid,
.weekly-digest-archive__details--briefing .weekly-digest-modal__next-step {
  margin-top: 0;
}

.weekly-digest-archive__details--briefing .weekly-digest-modal__briefing,
.weekly-digest-archive__details--briefing .weekly-digest-modal__story-grid,
.weekly-digest-archive__details--briefing .weekly-digest-modal__next-step {
  margin-top: 14px;
}

.weekly-digest-archive__empty {
  padding: 22px;
}

.weekly-digest-archive__empty-title {
  color: rgba(17, 24, 39, 0.92);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .weekly-digest__launch,
  .weekly-digest__mainline,
  .weekly-digest-page__hero,
  .weekly-digest-archive__summary {
    flex-direction: column;
  }

  .weekly-digest__actions,
  .weekly-digest-page__actions {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .weekly-digest--launch .weekly-digest__action-btn {
    width: 100%;
    min-width: 0;
  }

  .weekly-digest-modal__grid,
  .weekly-digest-modal__story-grid,
  .weekly-digest-archive__details {
    grid-template-columns: 1fr;
  }

  .weekly-digest-archive__aside {
    width: 100%;
    justify-content: space-between;
  }

  .weekly-digest-modal__archive-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  .weekly-digest-modal__next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-digest-modal__next-step-link {
    white-space: normal;
  }

  .weekly-digest-modal__archive-hint {
    text-align: left;
  }
}
