.site-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--shm-line);
  backdrop-filter: blur(14px);
}

.site-header-inner,
.site-footer-inner,
.hero-section,
.features-section,
.portal-callout,
.portal-page {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark,
.mini-mark { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #4d72eb, #2946aa); font-weight: 800; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; font-size: 22px; box-shadow: 0 8px 18px rgba(49, 86, 200, .24); }
.brand-copy { display: grid; line-height: 1.4; }
.brand-copy strong { font-size: 15px; letter-spacing: .2px; }
.brand-copy small { color: var(--shm-muted); font-size: 11px; }
.brand .custom-logo { width: auto; max-height: 52px; }

.primary-nav { margin-inline-start: auto; }
.menu-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.menu-list a { color: #526176; font-size: 13px; transition: color .2s ease; }
.menu-list a:hover { color: var(--shm-brand); }
.header-login { border-radius: 12px; padding: 10px 17px; background: #edf1ff; color: var(--shm-brand-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.header-login:hover { background: #e0e8ff; }

.hero-section { min-height: 520px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 55px; padding-block: 70px 62px; }
.hero-copy { max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--shm-brand); font-size: 12px; font-weight: 800; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hero-copy h1 { margin: 16px 0 14px; font-size: clamp(36px, 5vw, 56px); line-height: 1.3; letter-spacing: -1.5px; }
.hero-copy h1 span { color: var(--shm-brand); }
.hero-copy > p { max-width: 450px; margin: 0; color: var(--shm-muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 19px; border-radius: 13px; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #4567db, #2c4db7); box-shadow: 0 9px 22px rgba(49, 86, 200, .22); }
.button-primary:hover { color: #fff; box-shadow: 0 13px 25px rgba(49, 86, 200, .27); }
.button-light { color: #46546b; background: #fff; border: 1px solid var(--shm-line); }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: #6c788c; font-size: 12px; }
.note-dot,.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #26b67a; box-shadow: 0 0 0 4px rgba(38, 182, 122, .11); }

.hero-card { width: min(100%, 470px); justify-self: center; padding: 14px; border: 1px solid rgba(224, 230, 242, .9); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: var(--shm-shadow); transform: rotate(-1deg); }
.hero-card-head { display: flex; align-items: center; gap: 11px; padding: 10px 9px 16px; border-bottom: 1px solid #edf0f6; }
.mini-mark { width: 38px; height: 38px; border-radius: 13px; }
.hero-card-head div { display: grid; line-height: 1.45; }
.hero-card-head strong { font-size: 12px; }
.hero-card-head small { color: #8a95a7; font-size: 10px; }
.online-dot { margin-inline-start: auto; width: 7px; height: 7px; }
.hero-card-body { padding: 17px 8px 8px; }
.overview-title,.hero-card-foot { display: flex; align-items: center; justify-content: space-between; }
.overview-title { margin-bottom: 14px; font-size: 12px; font-weight: 800; }
.period-label { color: #8994a6; font-size: 10px; font-weight: 500; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.overview-item { min-height: 110px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 14px; border: 1px solid #edf0f6; border-radius: 17px; background: #fff; }
.overview-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.icon-blue { color: #3b5dca; background: #eef2ff; }.icon-green { color: #17936c; background: #e7f8f1; }.icon-orange { color: #c27824; background: #fff4e6; }.icon-purple { color: #8355bd; background: #f4edff; }
.overview-item strong { font-size: 11px; }.overview-item small { margin-top: 2px; color: #8792a3; font-size: 9px; }
.hero-card-foot { margin-top: 12px; padding: 11px 4px 0; border-top: 1px solid #edf0f6; color: #718096; font-size: 9px; }

.features-section { padding-block: 45px 78px; }
.section-heading { margin-bottom: 25px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2,.portal-callout h2 { margin: 8px 0 5px; font-size: clamp(23px, 3vw, 32px); }
.section-heading p,.portal-callout p { margin: 0; color: var(--shm-muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { min-height: 195px; padding: 22px 20px; border: 1px solid var(--shm-line); border-radius: 18px; background: var(--shm-surface); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 45, 88, .08); }
.feature-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; font-size: 10px; font-weight: 800; }
.mark-blue { color: #3b5dca; background: #eef2ff; }.mark-green { color: #17936c; background: #e7f8f1; }.mark-orange { color: #c27824; background: #fff4e6; }.mark-purple { color: #8355bd; background: #f4edff; }
.feature-card h3 { margin: 15px 0 7px; font-size: 14px; }
.feature-card p { margin: 0; color: var(--shm-muted); font-size: 11px; line-height: 1.9; }
.portal-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 75px; padding: 30px 34px; border: 1px solid #e1e7f5; border-radius: var(--shm-radius); background: linear-gradient(105deg, #edf2ff, #fff 72%); }
.portal-callout h2 { font-size: 21px; }
.portal-callout p { max-width: 620px; }

.portal-page { min-height: calc(100vh - 160px); padding-block: 45px 70px; }
.content-wrap { width: min(840px, calc(100% - 40px)); margin: 45px auto 70px; }
.content-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--shm-line); border-radius: var(--shm-radius); background: #fff; box-shadow: var(--shm-shadow); }
.content-title { margin: 0 0 18px; font-size: clamp(24px, 4vw, 34px); }
.content-title a:hover { color: var(--shm-brand); }
.content-body { color: #46546b; }
.pagination { margin-top: 24px; }
.portal-page-heading { margin-bottom: 20px; }
.portal-page-heading h1 { margin: 6px 0; font-size: 28px; }
.portal-page-heading p { margin: 0; color: var(--shm-muted); }

.site-footer { border-top: 1px solid var(--shm-line); background: #fff; }
.site-footer-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #788397; font-size: 11px; }
.site-footer a { color: var(--shm-brand); font-weight: 800; }
.skip-link { position: absolute; top: -60px; right: 15px; z-index: 10; padding: 9px 13px; border-radius: 8px; background: #fff; color: var(--shm-ink); box-shadow: var(--shm-shadow); }
.skip-link:focus { top: 12px; }

@media (max-width: 900px) {
  .site-header-inner { gap: 16px; }
  .primary-nav { display: none; }
  .hero-section { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header-inner,.site-footer-inner,.hero-section,.features-section,.portal-callout,.portal-page { width: min(100% - 28px, 540px); }
  .site-header-inner { min-height: 70px; justify-content: space-between; }
  .brand-copy small { font-size: 9px; }
  .header-login { padding: 8px 11px; font-size: 11px; }
  .hero-section { min-height: 0; grid-template-columns: 1fr; gap: 35px; padding-block: 48px 36px; }
  .hero-copy { max-width: none; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p { font-size: 14px; }
  .hero-card { width: 100%; }
  .features-section { padding-block: 24px 48px; }
  .feature-grid { gap: 10px; }
  .feature-card { min-height: 178px; padding: 16px 13px; }
  .feature-card h3 { font-size: 12px; }
  .feature-card p { font-size: 10px; }
  .portal-callout { align-items: flex-start; flex-direction: column; margin-bottom: 48px; padding: 22px; }
  .portal-callout h2 { font-size: 19px; }
  .site-footer-inner { min-height: 80px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .portal-page { padding-block: 28px 45px; }
  .portal-page-heading h1 { font-size: 23px; }
}

@media (max-width: 390px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .hero-actions .button { flex: 1 1 100%; }
}
