/* Lunisc homepage — consistent, lightweight public styling.
   Scoped to .home-refresh to preserve the rest of the site.
   Desktop type follows the shared desktop-typography.css scale; mobile
   uses the same readable content hierarchy as other Lunisc pages. */
.home-refresh {
  --home-blue: #2d60a1;
  --home-blue-deep: #244f87;
  --home-gold: #e4ab1c;
  --home-ink: #1b2b42;
  --home-muted: #64748b;
  --home-border: #e5eaf1;
}

/* Campus hero */
.home-refresh .home-hero--campus {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 445px;
  overflow: hidden;
  border: 1px solid rgba(30, 63, 103, .12);
  border-radius: 19px;
  background: #143b65;
  box-shadow: 0 12px 36px rgba(28, 60, 99, .09);
}
.home-refresh .home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-refresh .home-hero-visual picture,
.home-refresh .home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}
.home-refresh .home-hero-visual img {
  object-fit: cover;
  object-position: 52% 56%;
}
.home-refresh .home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(12, 35, 62, .95) 0%,
    rgba(13, 40, 72, .85) 38%,
    rgba(20, 55, 88, .44) 73%,
    rgba(20, 55, 88, .14) 100%);
  pointer-events: none;
}
[dir="rtl"] .home-refresh .home-hero-visual::after {
  background: linear-gradient(270deg,
    rgba(12, 35, 62, .95) 0%,
    rgba(13, 40, 72, .85) 38%,
    rgba(20, 55, 88, .44) 73%,
    rgba(20, 55, 88, .14) 100%);
}
.home-refresh .home-hero--campus .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: 52px 50px;
  color: #fff;
}
.home-refresh .home-hero--campus .kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: rgba(255, 255, 255, .93);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .045em;
  text-transform: none;
}
.home-refresh .home-kicker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--home-gold);
  box-shadow: 0 0 0 4px rgba(228, 171, 28, .18);
}
.home-refresh .home-hero--campus .hero-copy h1 {
  margin: 0 0 14px;
  max-width: 650px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
}
[dir="rtl"] .home-refresh .home-hero--campus .hero-copy h1 { letter-spacing: 0; }
.home-refresh .home-hero--campus .hero-copy .hero-description {
  margin: 0;
  max-width: 580px;
  color: rgba(255, 255, 255, .9);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.home-refresh .home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.home-refresh .home-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.home-refresh .home-hero-action--primary {
  color: #173e6c;
  background: #fff;
  border-color: #fff;
}
.home-refresh .home-hero-action--primary:hover,
.home-refresh .home-hero-action--primary:focus-visible {
  color: #12335a;
  background: #f0f5fb;
}
.home-refresh .home-hero-action--secondary {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .53);
}
.home-refresh .home-hero-action--secondary:hover,
.home-refresh .home-hero-action--secondary:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}
.home-refresh .home-hero-action svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke-width: 1.8;
}

/* Recent activity and summary counts */
.home-refresh .home-highlights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 16px;
  padding: 21px 23px;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(28, 52, 84, .025);
}
.home-refresh .home-highlights-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 540px;
  min-width: 0;
}
.home-refresh .home-highlights-rule {
  flex: 0 0 4px;
  width: 4px;
  height: 46px;
  border-radius: 5px;
  background: var(--home-gold);
}
.home-refresh .home-highlights-intro strong {
  display: block;
  margin-bottom: 5px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 750;
}
.home-refresh .home-highlights-intro p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
}
.home-refresh .home-highlights .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 0 1 385px;
  min-width: 0;
  margin: 0;
}
.home-refresh .home-highlights .hero-stat {
  min-width: 0;
  padding: 13px 11px;
  text-align: center;
  border: 1px solid #e5ebf3;
  border-radius: 11px;
  background: #f7fafd;
}
.home-refresh .home-highlights .hero-stat strong {
  display: block;
  margin: 0 0 3px;
  color: var(--home-blue);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.home-refresh .home-highlights .hero-stat span {
  display: block;
  color: #60728a;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Explore cards */
.home-refresh .section { margin-top: 34px; }
.home-refresh .section-head { margin-bottom: 17px; }
.home-refresh .section-head h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}
.home-refresh .section-link {
  color: var(--home-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-underline-offset: 3px;
}
.home-refresh .section-link:hover { text-decoration: underline; }
.home-refresh .scroll-x { overflow: visible; }
.home-refresh .shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.home-refresh .shortcut {
  display: block;
  width: auto;
  min-width: 0;
  min-height: 155px;
  padding: 22px;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 52, 86, .02);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}
.home-refresh .shortcut:hover,
.home-refresh .shortcut:focus-visible {
  border-color: #bdcfe6;
  background: #fcfdff;
  box-shadow: 0 10px 22px rgba(40, 83, 132, .075);
  transform: translateY(-2px);
}
.home-refresh .shortcut .ico {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: #edf3fa;
  color: var(--home-blue);
}
.home-refresh .shortcut:nth-child(3n + 2) .ico { background: #fff7e6; color: #936600; }
.home-refresh .shortcut .ico svg { width: 21px; height: 21px; stroke-width: 1.8; }
.home-refresh .shortcut h3 {
  margin: 0 0 7px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.home-refresh .shortcut p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Approved student resources and university updates */
.home-refresh .home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 17px;
}
.home-refresh .home-grid > .panel {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 52, 86, .018);
}
.home-refresh .home-grid .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: auto;
  min-height: 65px;
  padding: 17px 20px;
  border-bottom: 1px solid #eaf0f6;
  background: #fbfcfe;
}
.home-refresh .home-grid .panel-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.home-refresh .home-grid .resource {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 13px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf1f5;
  transition: background-color .16s ease;
}
.home-refresh .home-grid .resource:last-child { border-bottom: 0; }
.home-refresh .home-grid .resource:hover,
.home-refresh .home-grid .resource:focus-visible { background: #f8fafd; }
.home-refresh .home-grid .resource-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #edf3fa;
  color: var(--home-blue);
}
.home-refresh .home-grid .resource-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.home-refresh .home-grid .resource-title {
  margin: 0 0 5px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-refresh .home-grid .resource-meta {
  color: var(--home-muted);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.home-refresh .home-grid .badge {
  justify-self: end;
  max-width: 105px;
  color: #41618a;
  border: 1px solid #e1eaf5;
  background: #f1f6fc;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}
.home-refresh .home-grid .empty {
  padding: 26px 20px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}
.home-refresh .home-updates-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.home-refresh .home-update-card {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 19px 20px;
  color: var(--home-ink);
  text-align: start;
  text-decoration: none;
  border-bottom: 1px solid #edf1f5;
  transition: background-color .16s ease;
}
.home-refresh .home-update-card:last-child { border-bottom: 0; }
.home-refresh .home-update-card:hover,
.home-refresh .home-update-card:focus-visible { background: #f8fafd; }
.home-refresh .home-update-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  margin-bottom: 10px;
  color: var(--home-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.home-refresh .home-update-type {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--home-blue);
  background: #eef4fb;
  font-size: 12.5px;
  font-weight: 750;
}
.home-refresh .home-update-meta time {
  color: #748399;
  font-size: 12.5px;
  direction: ltr;
  unicode-bidi: isolate;
}
.home-refresh .home-update-card h3 {
  margin: 0 0 7px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-refresh .home-update-card p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .home-refresh .home-hero--campus { min-height: 430px; }
  .home-refresh .home-hero--campus .hero-copy { padding: 42px 35px; }
  .home-refresh .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-refresh .home-highlights { flex-direction: column; align-items: stretch; gap: 16px; }
  .home-refresh .home-highlights .hero-stats { width: 100%; flex: none; }
  .home-refresh .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: compact typography to match Lunisc public pages (not desktop scale). */
@media (max-width: 680px) {
  .home-refresh .home-hero--campus {
    display: flex;
    align-items: center;
    min-height: 308px;
    margin-inline: -12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .home-refresh .home-hero-visual { position: absolute; inset: 0; z-index: 0; height: 100%; }
  .home-refresh .home-hero-visual img { object-position: 53% 50%; }
  .home-refresh .home-hero-visual::after,
  [dir="rtl"] .home-refresh .home-hero-visual::after {
    background: linear-gradient(180deg,
      rgba(11, 34, 62, .58) 0%,
      rgba(11, 34, 62, .77) 48%,
      rgba(11, 34, 62, .94) 100%);
  }
  .home-refresh .home-hero--campus .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 308px;
    width: 100%;
    padding: 27px 18px;
    background: transparent;
  }
  .home-refresh .home-hero--campus .kicker {
    margin-bottom: 10px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0;
  }
  .home-refresh .home-hero--campus .hero-copy h1 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -.025em;
  }
  .home-refresh .home-hero--campus .hero-copy .hero-description {
    font-size: 12.5px;
    line-height: 1.6;
  }
  .home-refresh .home-hero-actions { gap: 8px; margin-top: 17px; }
  .home-refresh .home-hero-action {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
    flex: 1 1 auto;
  }
  .home-refresh .home-highlights {
    margin-top: 12px;
    padding: 14px;
    gap: 12px;
    border-radius: 12px;
  }
  .home-refresh .home-highlights-intro { align-items: flex-start; gap: 12px; }
  .home-refresh .home-highlights-rule { height: 37px; }
  .home-refresh .home-highlights-intro strong { font-size: 13px; line-height: 1.45; }
  .home-refresh .home-highlights-intro p { font-size: 12px; line-height: 1.55; }
  .home-refresh .home-highlights .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .home-refresh .home-highlights .hero-stat { padding: 10px 4px; border-radius: 10px; }
  .home-refresh .home-highlights .hero-stat strong { font-size: 17px; }
  .home-refresh .home-highlights .hero-stat span { font-size: 10.5px; line-height: 1.45; }
  .home-refresh .section { margin-top: 23px; }
  .home-refresh .section-head { margin-bottom: 10px; }
  .home-refresh .section-head h2 { font-size: 16px; line-height: 1.4; }
  .home-refresh .section-link { font-size: 11.5px; }
  .home-refresh .scroll-x { margin-inline: 0; padding-inline: 0; }
  .home-refresh .shortcuts { gap: 10px; }
  .home-refresh .shortcut {
    width: auto;
    min-height: 133px;
    padding: 13px 12px;
    border-radius: 12px;
  }
  .home-refresh .shortcut .ico { width: 40px; height: 40px; margin-bottom: 10px; }
  .home-refresh .shortcut .ico svg { width: 20px; height: 20px; }
  .home-refresh .shortcut h3 { font-size: 13px; line-height: 1.45; margin-bottom: 5px; }
  .home-refresh .shortcut p { font-size: 11.5px; line-height: 1.55; }
  .home-refresh .home-grid { gap: 12px; }
  .home-refresh .home-grid .panel-head { min-height: 52px; padding: 12px 14px; }
  .home-refresh .home-grid .panel-head h2 { font-size: 15px; }
  .home-refresh .home-grid .resource {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 14px;
  }
  .home-refresh .home-grid .resource-icon { width: 40px; height: 40px; }
  .home-refresh .home-grid .resource-icon svg { width: 20px; height: 20px; }
  .home-refresh .home-grid .resource-title { font-size: 12.5px; }
  .home-refresh .home-grid .resource-meta { font-size: 11px; }
  .home-refresh .home-grid .badge { grid-column: 2; justify-self: start; font-size: 10.5px; }
  .home-refresh .home-grid .empty { font-size: 12px; padding: 17px 14px; }
  .home-refresh .home-update-card { padding: 14px; }
  .home-refresh .home-update-card h3 { font-size: 12.5px; }
  .home-refresh .home-update-card p { font-size: 11.5px; }
  .home-refresh .home-update-meta,
  .home-refresh .home-update-meta time,
  .home-refresh .home-update-type { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .home-refresh .home-hero-action { flex-basis: 100%; }
  .home-refresh .home-hero--campus .hero-copy { padding: 27px 17px; }
  .home-refresh .home-highlights .hero-stat span { font-size: 10.5px; }
  .home-refresh .shortcut { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-refresh .shortcut,
  .home-refresh .home-hero-action,
  .home-refresh .home-grid .resource,
  .home-refresh .home-update-card { transition: none; }
  .home-refresh .shortcut:hover,
  .home-refresh .shortcut:focus-visible { transform: none; }
}
