/* Homepage-only editorial refinements; shared pages keep their existing styles. */
.home-refresh {
  --home-editorial-ink: #1b315f;
  --home-editorial-rose: #e9406b;
  --home-editorial-line: #dee7f2;
}
.home-refresh .default-hero {
  isolation: isolate;
  background: radial-gradient(ellipse at 82% 24%, rgba(255, 202, 217, .58), transparent 33%),
    radial-gradient(ellipse at 13% 90%, rgba(173, 211, 249, .38), transparent 38%),
    linear-gradient(120deg, #f0f7ff 5%, #fff7f7 100%);
}
.home-refresh .managed-hero__slider { padding: clamp(32px, 4vw, 58px) 0 clamp(48px, 5vw, 74px); }
.home-refresh .managed-hero__copy { padding: 18px 0; }
.home-refresh .managed-hero__copy::before { top: -4px; left: -14px; width: 78px; height: 78px; border-color: rgba(233,64,107,.16); }
.home-refresh .managed-hero__copy h1, .home-refresh .default-hero .banner__title h2 {
  max-width: 12em; margin: 18px 0; color: var(--home-editorial-ink);
  font-size: clamp(2.35rem, 4.2vw, 4.35rem); line-height: 1.2; overflow-wrap: anywhere;
}
.home-refresh .managed-hero__copy p, .home-refresh .default-hero .banner__title p { max-width: 34rem; color: #526580; line-height: 1.7; }
.home-refresh .managed-hero__cta { vertical-align: middle; }
.home-refresh .home-hero-read { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 12px 20px; color: var(--home-editorial-ink); font-weight: 700; }
.home-refresh .home-hero-read:hover { color: var(--home-editorial-rose); }
.home-refresh .managed-hero__visual img { border-width: 7px; border-radius: 110px 24px 110px 24px; object-fit: cover; }
.home-refresh .managed-hero__visual::before { border-radius: 110px 24px 110px 24px; }
.home-refresh .managed-hero__visual-note { max-width: 80%; padding: 12px 18px; line-height: 1.4; }
.home-refresh .managed-hero__controls[hidden] { display: none; }
.home-refresh .managed-hero__pause { min-width: 64px; min-height: 42px; padding: 8px 14px; border: 1px solid #d9e4f1; border-radius: 999px; background: #fff; color: var(--home-editorial-ink); font-size: .9rem; font-weight: 700; }
.home-refresh .managed-hero__pause:hover, .home-refresh .managed-hero__pause[aria-pressed=true] { background: #fce7ef; border-color: #efbdcd; color: #ab2e52; }
.home-refresh .default-hero-strip { padding: 24px 0 20px; }
.home-refresh .default-hero-strip__grid { gap: 16px; }
.home-refresh .default-hero-strip__item { min-height: 0; padding: 20px 22px; border-radius: 18px; background: #fff; }
.home-refresh .default-hero-strip__item i { flex-shrink: 0; }
.home-refresh .default-hero-strip__item h6 { margin-bottom: 3px; color: var(--home-editorial-ink); }
.home-refresh .default-hero-strip__item p { margin-bottom: 0; line-height: 1.5; }
.home-refresh .home-discover { padding: 16px 0 32px; }
.home-refresh .home-discover__inner {
  gap: clamp(18px, 4vw, 56px); padding: clamp(24px, 3vw, 38px);
  border: 1px solid #dbe5f2; border-radius: 24px;
  background: radial-gradient(circle at 92% 0, rgba(255, 210, 223, .48), transparent 34%), linear-gradient(115deg, #fff, #f4f8ff);
}
.home-refresh .home-discover__intro h2 { margin-top: 6px; line-height: 1.25; }
.home-refresh .home-discover__controls { box-shadow: 0 8px 22px rgba(30, 52, 92, .06); }
.home-refresh .home-topics { margin-top: 24px; min-width: 0; }
.home-refresh .home-topics__heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; color: var(--home-editorial-ink); font-weight: 700; }
.home-refresh .home-topics__heading small { color: #64748b; font-size: .82rem; font-weight: 400; }
.home-refresh .home-topics__list { display: flex; flex-wrap: wrap; gap: 9px; }
.home-refresh .home-topics__list a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 7px 13px; border: 1px solid #dce5f1; border-radius: 12px; color: #415773; background: #fff; font-size: .91rem; transition: border-color .2s, background-color .2s; }
.home-refresh .home-topics__list a:nth-child(3n+2) { background: #fff3f7; border-color: #f2dbe3; }
.home-refresh .home-topics__list a:nth-child(3n) { background: #edf5ff; border-color: #d6e5f6; }
.home-refresh .home-topics__list a:hover { background: #fce5ed; border-color: #e995ae; color: #a7284e; }
.home-refresh .home-topics__list small { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 7px; background: rgba(28,53,94,.06); font-size: .73rem; font-weight: 700; }
.home-refresh #stories-section.home-stories { padding: clamp(44px, 6vw, 80px) 0; background: #fff !important; }
.home-refresh .home-stories__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.home-refresh .home-stories__heading > div { max-width: 690px; }
.home-refresh .home-stories__heading h2 { margin: 8px 0; color: var(--home-editorial-ink); font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.25; }
.home-refresh .home-stories__heading p { margin: 0; color: #62718a; font-size: 1.05rem; line-height: 1.6; }
.home-refresh .home-stories__all { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 11px 18px; border: 1px solid #ead8e0; border-radius: 999px; color: #b73259; background: #fff8fa; font-weight: 700; }
.home-refresh .home-stories__all:hover { color: #fff; background: var(--home-editorial-rose); border-color: var(--home-editorial-rose); }
.home-refresh .home-stories__empty { display: block; padding: 24px; border: 1px solid var(--home-editorial-line); border-radius: 16px; background: #f5f9ff; color: #536783; }
.home-refresh #stories-section { scroll-margin-top: 105px; }
.home-refresh .home-feed-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; border: 1px solid #dee7f2; border-radius: 17px; background: #f4f7fc; }
.home-refresh .home-feed-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.home-refresh .home-feed-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border-radius: 10px; color: #51647f; font-size: .95rem; font-weight: 600; }
.home-refresh .home-feed-tab:hover { color: #ad2e51; background: #fce7ee; }
.home-refresh .home-feed-tab.is-active { color: #fff; background: var(--home-editorial-ink); box-shadow: 0 4px 10px rgba(27,49,95,.12); }
.home-refresh .home-feed-category { display: flex; align-items: center; gap: 10px; }
.home-refresh .home-feed-category label { margin: 0; font-size: .85rem; font-weight: 600; color: #536783; }
.home-refresh .home-feed-category select { width: 210px; min-height: 44px; padding: 8px 38px 8px 12px; border: 1px solid #cbd9e9; border-radius: 10px; appearance: none; color: var(--home-editorial-ink); font-size: .9rem; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23b63259' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.home-refresh .home-feed-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 14px 2px 22px; color: #66758b; font-size: .85rem; }
.home-refresh .home-feed-summary a { color: #b52f57; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.home-refresh .home-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-refresh .home-story-grid__item { min-width: 0; }
.home-refresh .home-story-grid__item:only-child { grid-column: 1 / -1; }
.home-refresh #stories-section .story-card { height: 100%; overflow: hidden; border: 1px solid #e2e9f3; border-radius: 20px; box-shadow: 0 12px 35px rgba(29, 50, 89, .07); }
.home-refresh #stories-section .story-card__image { display: block; aspect-ratio: 1.7; background: #e8f0fb; }
.home-refresh #stories-section .story-card__image img { display: block; }
.home-refresh #stories-section .story-card__body { display: flex; flex-direction: column; padding: 22px; }
.home-refresh .home-story-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.home-refresh #stories-section .story-card__category { margin: 0; padding: 4px 10px; color: #b52f57; font-size: .8rem; letter-spacing: 0; }
.home-refresh .home-story-time { color: #67758b; font-size: .75rem; white-space: nowrap; }
.home-refresh #stories-section .story-card__title { margin-bottom: 10px; font-size: clamp(1.17rem, 1.4vw, 1.4rem); line-height: 1.45; overflow-wrap: anywhere; }
.home-refresh #stories-section .story-card__title a { color: var(--home-editorial-ink); }
.home-refresh #stories-section .story-card__title a:hover { color: var(--home-editorial-rose); }
.home-refresh #stories-section .story-card__excerpt { flex: none; color: #5a6b83; line-height: 1.7; overflow-wrap: anywhere; }
.home-refresh .home-story-author { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: auto 0 8px; color: #526580; font-size: .83rem; }
.home-refresh .home-story-author i { color: #bc6b85; font-size: .72rem; }
.home-refresh .home-story-author:hover { color: #b52f57; text-decoration: underline; }
.home-refresh #stories-section .story-card__btn { margin: auto 0 12px; color: #c6325d; font-weight: 700; }
.home-refresh #stories-section .story-card__meta { gap: 7px 13px; margin-top: 0; border-top: 1px solid #edf0f5; padding-top: 13px; color: #687990; font-size: .75rem; }
.home-refresh #stories-section .story-card__meta i { width: auto; margin-right: 4px; color: #9a7290; }
.home-refresh #stories-section .home-story-grid__item:first-child .story-card { border-color: #efc2d0; }
.home-refresh #stories-section .home-story-grid__item:first-child .story-card__body { background: linear-gradient(145deg, #fff1f6, #fff 75%); }
@media (min-width: 768px) {
  .home-refresh #stories-section .home-story-grid__item:only-child .story-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .home-refresh #stories-section .home-story-grid__item:only-child .story-card__image { height: 100%; min-height: 280px; aspect-ratio: auto; }
  .home-refresh #stories-section .home-story-grid__item:only-child .story-card__body { padding: 30px; }
}
.home-refresh .default-about-section { padding: clamp(40px, 5vw, 70px) 0; }
.home-refresh .default-about-section .section__wrapper > .row { gap: 22px 0; align-items: stretch; }
.home-refresh .home-faq { margin-top: 28px; padding-top: 24px; border-top: 1px solid #dce5f1; }
.home-refresh .home-faq h4 { margin-bottom: 16px; font-size: 1.25rem; color: var(--home-editorial-ink); }
.home-refresh .home-faq details { border-top: 1px solid #dce5f1; }
.home-refresh .home-faq details:first-of-type { border-top: 0; }
.home-refresh .home-faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; list-style: none; cursor: pointer; color: var(--home-editorial-ink); font-weight: 600; font-size: .96rem; }
.home-refresh .home-faq summary::-webkit-details-marker { display: none; }
.home-refresh .home-faq summary::after { content: '+'; color: #ba375c; font-family: sans-serif; font-size: 1.2rem; }
.home-refresh .home-faq details[open] summary::after { content: '-'; }
.home-refresh .default-about-panel .home-faq p { margin: 0 0 16px; color: #526580; font-size: .92rem; line-height: 1.75; }
.home-refresh .home-community-stats { padding: 36px 0 48px; background: #f5f9ff; }
.home-refresh .home-community-stats .section__header { margin-bottom: 24px; }
.home-refresh .home-community-stats .section__header h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.home-refresh .home-community-stats .section__wrapper > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.home-refresh .home-community-stats .section__wrapper > .row > .col { width: auto; padding: 0; margin: 0; }
.home-refresh .home-community-stats .about__item { height: 100%; padding: 20px 16px; border: 1px solid #dfe7f1; border-radius: 18px; box-shadow: 0 8px 20px rgba(29,50,89,.04); }
.home-refresh .home-community-stats .about__inner { display: flex; align-items: center; gap: 14px; text-align: left; }
.home-refresh .home-community-stats .about__thumb { flex: 0 0 48px; width: 48px; height: 48px; margin: 0; }
.home-refresh .home-community-stats .about__thumb img { width: 48px; height: 48px; object-fit: contain; }
.home-refresh .home-community-stats .about__content h3 { margin: 0; font-size: 1.85rem; line-height: 1.15; }
.home-refresh .home-community-stats .about__content p { margin: 4px 0 0; font-size: .85rem; line-height: 1.5; }
.home-refresh .default-emotion-spotlight { padding-top: clamp(45px, 6vw, 75px); }
.home-refresh .default-emotion-spotlight .default-emotion-card { min-height: 190px; }
.home-refresh .default-emotion-spotlight .section__header { margin-bottom: 38px; }
.home-refresh .loneliness-intro__inner { gap: 24px; }
.home-refresh .loneliness-intro h2 { line-height: 1.3; }
@media (max-width: 991.98px) {
  .home-refresh .home-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-refresh .home-community-stats .section__wrapper > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .home-refresh .managed-hero__slider { padding: 24px 0 48px; }
  .home-refresh .managed-hero__copy h1, .home-refresh .default-hero .banner__title h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .home-refresh .managed-hero__visual img, .home-refresh .managed-hero__visual::before { border-radius: 60px 18px 60px 18px; }
  .home-refresh .home-stories__heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-refresh .home-stories__heading h2 { font-size: 1.85rem; }
  .home-refresh #stories-section.home-stories { padding: 44px 0 48px; }
  .home-refresh .default-about-section { padding: 38px 0; }
  .home-refresh .home-feed-toolbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .home-refresh .home-feed-tabs { flex-wrap: nowrap; gap: 4px; }
  .home-refresh .home-feed-tab { flex: 1; padding: 8px 9px; font-size: .83rem; text-align: center; }
  .home-refresh .home-feed-category select { flex: 1; width: auto; min-width: 0; }
  .home-refresh .home-topics__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; overflow-x: auto; padding: 3px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .home-refresh .home-topics__list a { scroll-snap-align: start; }
  .home-refresh .home-topics__heading small { display: none; }
}
@media (max-width: 575.98px) {
  .home-refresh .home-story-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-refresh #stories-section .story-card__body { padding: 20px; }
  .home-refresh #stories-section .story-card__title { font-size: 1.3rem; }
  .home-refresh .home-community-stats .about__inner { gap: 8px; flex-direction: column; align-items: flex-start; }
  .home-refresh .home-community-stats .about__item { padding: 18px 16px; }
}
@media (max-width: 390px) {
  .home-refresh .home-hero-read { margin-left: 0; display: flex; }
  .home-refresh .home-discover__controls input[type=submit] { min-width: 64px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-refresh #stories-section .story-card, .home-refresh #stories-section .story-card__image img { transition: none; }
  .home-refresh #stories-section .story-card:hover { transform: none; }
}
