/* Homepage-only layout. Shared public pages and all application portals keep their styles. */
.home-page .container { width: min(1840px, calc(100% - clamp(32px, 6vw, 144px))); }
.home-page .site-shell { display: flex; flex-direction: column; min-height: 100vh; }
.home-page .footer { margin-top: auto; padding: 28px 0 18px; }
.home-page .topbar__inner { min-height: 36px; height: auto; padding-block: 8px; }
.home-page .header__inner { height: 80px; gap: 20px; }
.home-page .brand, .home-page .header-actions { flex-shrink: 0; }
.home-page .brand strong, .home-page .nav-links a { white-space: nowrap; }
.home-page .nav-links { gap: clamp(16px, 2vw, 36px); }
.home-page .nav-links a { flex-shrink: 0; font-size: 16px; }
.home-page .nav-links .nav-account-entry { display: none; }
.home-page .home { gap: 24px; padding-bottom: 32px; }
.home-page .hero, .home-page .hero__inner { min-height: clamp(280px, 19vw, 380px); }
.home-page .hero__copy { max-width: 800px; padding-block: 32px; }
.home-page .hero h1 { font-size: clamp(34px, 2.5vw, 52px); line-height: 1.3; }
.home-page .hero p { margin: 16px 0 24px; font-size: 17px; }
.home-page .hero__button { height: 42px; }
.home-page .notice-line__inner { min-height: 48px; }
.home-page .quick-entry, .home-page .portal-grid { gap: 24px; }
.home-page .entry { min-height: 128px; padding: 24px; }
.home-page .entry small { font-size: 14px; line-height: 1.7; }
.home-page .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .panel__head { height: 56px; padding-inline: 20px; }
.home-page .news-panel, .home-page .research-panel, .home-page .results-panel { min-height: 300px; }
.home-page .news-item { min-height: 60px; padding: 10px 16px; }
.home-page .news-item strong, .home-page .result-item strong {
  font-size: 14px; line-height: 1.65; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.home-page .result-item { min-height: 80px; padding: 12px 16px; }
.home-page .experts { padding: 20px; gap: 20px; }
.home-page .expert { min-width: 0; min-height: 142px; padding: 16px; }
.home-page .expert small { line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 1280px) {
  .home-page .topbar__left span:nth-child(3), .home-page .topbar__right > span { display: none; }
  .home-page .container { width: calc(100% - 40px); }
  .home-page .nav-links { gap: 16px; }
  .home-page .header__inner { gap: 16px; }
  .home-page .quick-entry, .home-page .portal-grid { gap: 16px; }
  .home-page .research-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .home-page .research-item .thumb { width: 44px; }
  .home-page .research-item time { grid-column: 2 / -1; text-align: left; }
}
@media (max-width: 1080px) {
  .home-page .topbar__left { display: none; }
  .home-page .topbar__inner { justify-content: flex-end; }
  .home-page .header__inner { height: 72px; }
  .home-page .nav-links {
    position: absolute; top: 100%; gap: 0;
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .home-page .nav-links .nav-account-entry { display: block; }
  .home-page .nav-links a { padding-block: 13px; }
  .home-page .nav-links .nav-account-entry[href="./student.html"] { border-top: 1px solid #e5edf5; }
  .home-page .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .experts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-page .container { width: calc(100% - 24px); }
  .home-page .header__inner { height: 64px; gap: 8px; }
  .home-page .brand { gap: 8px; min-width: 0; }
  .home-page .brand img { width: 34px; height: 34px; }
  .home-page .brand strong { font-size: clamp(14px, 4vw, 18px); }
  .home-page .header-actions { gap: 4px; }
  .home-page .icon-button, .home-page .menu-toggle { width: 36px; height: 40px; }
  .home-page .home { gap: 16px; padding-bottom: 24px; }
  .home-page .hero, .home-page .hero__inner { min-height: 240px; }
  .home-page .hero h1 { font-size: clamp(26px, 6.5vw, 34px); }
  .home-page .hero p { font-size: 14px; margin: 14px 0 0; }
  .home-page .portal-grid, .home-page .experts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-page .quick-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home-page .entry { min-height: 82px; padding: 8px; }
  .home-page .research-item { grid-template-columns: 76px minmax(0, 1fr); }
  .home-page .research-item .thumb { width: 76px; }
  .home-page .news-panel, .home-page .research-panel, .home-page .results-panel { min-height: 0; }
  .home-page .experts { padding: 14px; }
  .home-page .expert { min-height: 110px; }
  .home-page .footer { padding-block: 24px 16px; }
}
