/* Homepage layout; shared controls and navigation use styles.css. */
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 80px; }
.home-page { color-scheme: light; }
.home-page [hidden] { display: none !important; }
.home-page svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.home-page .svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-page .skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 16px; z-index: 100; background: white; border: 1px solid #93c5fd; }
.home-page .skip-link:focus { top: 12px; }
.home-page :focus-visible:not(.fund-search-input) { outline: 2px solid #93c5fd; outline-offset: 3px; }

.home-page .home-main { padding-top: 20px; padding-bottom: 0; }
.home-page .welcome-card { padding: 25px 26px 23px; margin-bottom: 14px; }
.home-page .welcome-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 25px; }
.home-page .welcome-heading h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.home-page .welcome-heading p { color: var(--subtext); font-size: 13px; }
.home-page .brand-fin { color: #003daa; }
.home-page .brand-stream { color: #e21729; }
.home-page .welcome-mark { display: block; width: 72px; height: auto; flex-shrink: 0; object-fit: contain; }
.home-page .query-panel { min-width: 0; }
.home-page .query-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.home-page .query-types { margin-bottom: 12px; }
.home-page #queryForm { margin-top: 0; }
.home-page .query-footer { margin-top: 8px; }
.home-page .query-footer .hint { line-height: 1.5; font-size: 12px; }
.home-page .fund-suggest-item[aria-selected=true] { background: #f8fafc; }
.home-page .fund-suggest-item:focus-visible { outline-offset: -2px; }


.home-page .market-glance-card, .home-page .updates-card { padding: 18px; margin-bottom: 14px; }
.home-page .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.home-page .section-heading .hint { font-size: 12px; color: #718099; }

.home-page .market-glance-card .section-heading { margin-bottom: 7px; }
.home-page .market-glance-heading { display: flex; align-items: center; gap: 7px; }
.home-page .market-info-button { display: inline-flex; padding: 3px; background: none; border: 0; color: #7186a8; cursor: pointer; }
.home-page .market-more { display: inline-flex; align-items: center; gap: 5px; color: #64748b; font-size: 12px; }
.home-page .market-more svg { width: 13px; height: 13px; }
.home-page .market-more:hover { color: #1d4ed8; }
.home-page .market-glance-card .market-stockbond-metrics { margin-top: 12px; }
.home-page .market-news-section { margin-top: 15px; padding-top: 14px; border-top: 1px solid #e5edf6; }
.home-page .market-news-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.home-page .market-news-heading h3 { margin: 0; color: #293d59; font-size: 13px; font-weight: 600; }
.home-page .news-controls { display: inline-flex; align-items: center; gap: 12px; }
.home-page #newsMeta { font-size: 11px; color: #7c8aa0; }
.home-page .market-news-preview { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; }
.home-page .market-news-preview + .market-news-preview { border-top: 1px dashed #e5edf6; }
.home-page .market-news-preview:last-child { padding-bottom: 1px; }
.home-page .market-news-preview time { width: 35px; flex-shrink: 0; color: #7c8aa0; font-size: 11px; font-variant-numeric: tabular-nums; }
.home-page .market-news-text { color: #64748b; font-size: 12px; line-height: 1.7; }
.home-page .market-news-preview > svg { align-self: center; width: 12px; height: 12px; margin-left: auto; color: #9baec7; }
.home-page .market-news-preview:hover .market-news-text { color: #1d4ed8; }

.home-page .updates-card .section-heading { margin-bottom: 5px; }
.home-page .home-list-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; color: #64748b; font-size: 12px; cursor: pointer; }
.home-page .home-list-toggle svg { width: 13px; height: 13px; }
.home-page .home-list-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.home-page .update-row { display: flex; align-items: center; gap: 14px; padding: 8px 1px; min-height: 40px; }
.home-page .update-row + .update-row, .home-page #olderUpdates .update-row { border-top: 1px dashed #e2e8f1; }
.home-page .update-row time { width: 43px; flex-shrink: 0; font-size: 12px; color: #7c8aa0; font-variant-numeric: tabular-nums; }
.home-page .update-content { flex: 1; display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.home-page .update-content strong { width: 158px; flex-shrink: 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: #293d59; }
.home-page .update-content > span { font-size: 12px; line-height: 1.5; color: #64748b; }
.home-page .update-tag { border: 1px solid #d8e6fa; color: #5d83b9; background: #f5f9ff; font-size: 10px; padding: 1px 5px; border-radius: 5px; flex-shrink: 0; }
.home-page .update-tag.is-improved { color: #6e7d92; border-color: #dfe5ee; background: #fafbfd; }
.home-page .update-row > svg { width: 12px; height: 12px; color: #a0afc3; }
.home-page .update-row:hover .update-content strong { color: #1d4ed8; }
.home-page .note-i { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #cad7e9; border-radius: 50%; width: 14px; height: 14px; font-family: Georgia,serif; font-size: 10px; }
.home-page .fund-risk-footer { padding-top: 4px; padding-bottom: 20px; text-align: center; }


@media (max-width: 1100px) {
  .home-page .update-content { gap: 10px; }
  .home-page .update-content strong { width: 140px; }
}
@media (max-width: 800px) {
  .home-page .welcome-card { padding: 22px; }
  .home-page .welcome-heading h1 { font-size: 23px; }
  .home-page .update-content { flex-direction: column; align-items: flex-start; gap: 2px; }
  .home-page .update-content strong { width: auto; }
}
@media (max-width: 600px) {
  .home-page .home-main { padding-top: 18px; }
  .home-page .welcome-card { padding: 18px 14px; }
  .home-page .welcome-heading { margin-bottom: 22px; gap: 10px; }
  .home-page .welcome-heading h1 { font-size: 22px; margin-bottom: 7px; }
  .home-page .welcome-heading p { font-size: 12px; line-height: 1.5; }
  .home-page .welcome-mark { width: 54px; }
  .home-page .query-heading { margin-bottom: 10px; }
  .home-page .query-types { margin-bottom: 10px; }
  .home-page .query-footer .hint { font-size: 12px; }
  .home-page .market-glance-card, .home-page .updates-card { padding: 16px 12px; }
  .home-page .section-heading { margin-bottom: 17px; }
  .home-page .section-heading .hint { font-size: 11px; }
  .home-page .market-more { font-size: 11px; }
  .home-page .market-news-section { margin-top: 13px; padding-top: 13px; }
  .home-page .market-news-preview { gap: 9px; }
  .home-page .update-row { gap: 9px; padding: 8px 0; align-items: flex-start; }
  .home-page .update-row time { width: 33px; font-size: 11px; line-height: 1.7; }
  .home-page .update-content strong { font-size: 12px; }
  .home-page .update-content > span { font-size: 11px; line-height: 1.5; }
  .home-page .update-row > svg { display: none; }
  .home-page .update-tag { font-size: 9px; padding: 1px 4px; }
  .home-page .fund-risk-footer { font-size: 11px; text-align: left; }
}
@media (max-width: 360px) {
  .home-page .welcome-heading h1 { font-size: 20px; }
  .home-page .welcome-mark { width: 44px; }
  .home-page .section-heading .hint { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page * { transition: none !important; }
}
.home-page .home-data-status { display: flex; align-items: baseline; gap: 8px; color: #7c8aa0; font-size: 12px; line-height: 1.6; }
.home-page .home-data-status:has([role="status"]:empty):has(button[hidden]) { display: none; }
.home-page .home-data-status .is-warning { color: #98651c; }
.home-page .home-retry { border: 0; background: none; padding: 2px 4px; font-size: 12px; color: #1d4ed8; cursor: pointer; }
.home-page #searchMore { margin: 4px 12px 12px; }
.home-page .market-news-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-page .market-news-preview time { width: auto; min-width: 35px; }
.home-page .home-news-arrow { color: #9baec7; margin-left: auto; align-self: center; }
.home-page .home-info-dialog { width: calc(100% - 36px); max-width: 440px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); box-shadow: 0 18px 64px #20365426; text-align: left; }
.home-page .home-info-dialog::backdrop { background: #1c2c424d; }
.home-page .home-info-dialog h2 { font-size: 18px; margin: 0 0 12px; }
.home-page .home-info-dialog p { font-size: 13px; line-height: 1.7; margin: 8px 0; color: var(--subtext); white-space: pre-line; }
.home-page .home-info-dialog form { margin-top: 16px; text-align: right; }
