/* The daily-return rail is intentionally scoped to the homepage shell. */
body.homepage-layout .eg-return {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 clamp(18px, 2.5vw, 30px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--border-subtle, #39454b);
  border-radius: 17px;
  background: var(--surface-raised, #24292d);
  color: var(--text-primary, #e8eeeb);
  direction: inherit;
}
body.homepage-layout .eg-return *,
body.homepage-layout .eg-return *::before,
body.homepage-layout .eg-return *::after { box-sizing: border-box; }
body.homepage-layout .eg-return__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-bottom: 16px;
}
body.homepage-layout .eg-return__kicker {
  margin: 0 0 4px;
  color: var(--text-secondary, #b8c4bf);
  font-size: .78rem;
  font-weight: 650;
}
body.homepage-layout .eg-return h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.24rem, 1.7vw, 1.65rem);
  line-height: 1.5;
  font-weight: 800;
}
body.homepage-layout .eg-return__hint {
  max-width: 65ch;
  margin: 4px 0 0;
  color: var(--text-secondary, #b8c4bf);
  font-size: .88rem;
  line-height: 1.7;
}
body.homepage-layout .eg-return__notifications {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-muted, #2c3337);
  border: 1px solid var(--border-subtle, #39454b);
  color: var(--text-primary, #e8eeeb);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
}
body.homepage-layout .eg-return__notifications[hidden] { display: none; }
body.homepage-layout .eg-return__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
body.homepage-layout .eg-return__tabs button {
  min-height: 41px;
  padding: 7px 17px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle, #39454b);
  background: var(--surface-muted, #2c3337);
  color: var(--text-secondary, #b8c4bf);
  font: inherit;
  font-size: .92rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.homepage-layout .eg-return__tabs button[aria-selected="true"] {
  background: var(--surface-canvas, #171c20);
  border-color: var(--accent, #9ba5a0);
  color: var(--text-primary, #e8eeeb);
}
body.homepage-layout .eg-return a:focus-visible,
body.homepage-layout .eg-return button:focus-visible {
  outline: 2px solid var(--accent, #9ba5a0);
  outline-offset: 3px;
}
body.homepage-layout .eg-return__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
body.homepage-layout .eg-return__items[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.homepage-layout .eg-return__items[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
body.homepage-layout .eg-return__item,
body.homepage-layout .eg-return__empty {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--border-subtle, #39454b);
  border-radius: 12px;
  background: var(--surface-canvas, #171c20);
  color: var(--text-primary, #e8eeeb);
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.homepage-layout .eg-return__item:hover { border-color: var(--accent, #9ba5a0); }
body.homepage-layout .eg-return__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  margin-bottom: 7px;
  color: var(--text-secondary, #b8c4bf);
  font-size: .76rem;
}
body.homepage-layout .eg-return__item strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .94rem;
  line-height: 1.7;
  font-weight: 750;
}
body.homepage-layout .eg-return__item small {
  margin-top: auto;
  padding-top: 10px;
  color: var(--text-secondary, #b8c4bf);
  font-size: .76rem;
}
body.homepage-layout .eg-return__empty { grid-column: 1 / -1; min-height: 90px; }
body.homepage-layout .eg-return__empty p { margin: 0 0 8px; line-height: 1.7; }
body.homepage-layout .eg-return__empty a { color: var(--text-primary, #e8eeeb); text-underline-offset: 4px; }
body.homepage-layout .eg-return__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle, #39454b);
  font-size: .84rem;
}
body.homepage-layout .eg-return__footer a { color: var(--text-secondary, #b8c4bf); text-underline-offset: 4px; }
body.homepage-layout .eg-return__footer a:hover { color: var(--text-primary, #e8eeeb); }
@media (max-width: 900px) {
  body.homepage-layout .eg-return__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.homepage-layout .eg-return { padding: 14px; border-radius: 13px; }
  body.homepage-layout .eg-return__items { grid-template-columns: minmax(0, 1fr); }
  body.homepage-layout .eg-return__item { min-height: 100px; }
  body.homepage-layout .eg-return__tabs button { flex: 1 1 auto; padding-inline: 9px; }
  body.homepage-layout .eg-return__footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  body.homepage-layout .eg-return__tabs button { transition: none; }
}
