:root {
  --navy: #0b1f4d;
  --blue: #1667d9;
  --sky: #eaf3ff;
  --gold: #d8a31a;
  --orange: #f08c2e;
  --ink: #102033;
  --muted: #64748b;
  --line: #dbe4ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --danger: #d33f49;
  --green: #1f9d69;
  --shadow: 0 18px 55px rgba(15, 47, 109, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 8px 20px rgba(22, 103, 217, 0.25);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  overflow-x: visible;
}

.main-nav a,
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover,
.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--blue);
  background: var(--sky);
}

.user-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-link,
.primary-link {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
}

.primary-link {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.mobile-toggle,
.mobile-nav {
  display: none;
}

.hero {
  min-height: 590px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 92px 22px 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(216, 163, 26, 0.18);
  border: 1px solid rgba(216, 163, 26, 0.45);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--blue);
  background: var(--sky);
  border-color: #cfe1ff;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #d9e7ff;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.btn.gold {
  color: #171717;
  border-color: var(--gold);
  background: linear-gradient(135deg, #f6d96a, var(--gold));
}

.btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.btn.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 14px;
}

.btn.danger {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-points span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #eef6ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.notice-band,
.section,
.two-column {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 22px;
}

.notice-band {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: -34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-band strong {
  color: var(--gold);
  white-space: nowrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.2;
}

.search {
  display: flex;
  min-width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  outline: none;
}

.search button {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.shortcut {
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(16, 32, 51, 0.05);
}

.shortcut strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
}

.shortcut span {
  color: var(--muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.post-card,
.panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.06);
}

.post-card {
  overflow: hidden;
}

.post-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge.vip {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #171717;
  background: #f8d864;
}

.post-card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.post-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.member-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: 1156px;
  margin: 32px auto;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #071837, #102c67 62%, #6f5310);
}

.member-cta h2 {
  max-width: 760px;
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

.member-cta p {
  max-width: 760px;
  color: #dbeafe;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.page-hero {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 52px 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.page-hero.small {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.page-hero.member {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #123879 62%, #7a5b12);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.page-hero.member p {
  color: #dbeafe;
}

.article {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 22px;
}

.article-header {
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-header h1 {
  margin: 16px 0 10px;
  font-size: 42px;
  line-height: 1.18;
}

.article-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  margin: 22px 0;
  border-radius: 8px;
  object-fit: cover;
}

.article-content,
.locked-box,
.resource-box,
.copyright-box {
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-content h2 {
  margin: 24px 0 10px;
  color: var(--navy);
}

.article-content p {
  margin: 12px 0;
}

.article-content img {
  margin: 18px 0;
  border-radius: 8px;
}

.resource-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-color: #f2d06a;
  background: #fff9e6;
}

.resource-box p {
  margin: 4px 0 0;
  color: #6b5a24;
}

.pan-code {
  color: var(--navy);
}

.copyright-box {
  margin-top: 18px;
  color: var(--muted);
}

.locked-box {
  border-color: #f2d06a;
  background: #fff9e6;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.benefits ul {
  padding-left: 20px;
}

.price {
  margin-top: 24px;
  color: var(--navy);
  font-size: 40px;
  font-weight: 800;
}

.price span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.status-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.form-panel label,
.auth-card label,
.admin-form label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  color: #334155;
  font-weight: 700;
}

.form-panel input,
.form-panel textarea,
.auth-card input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
}

.form-panel textarea,
.auth-card textarea,
.admin-form textarea {
  resize: vertical;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.qr-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto;
}

.auth-page {
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 34px 22px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 30px;
}

.auth-card h1 {
  margin: 12px 0 18px;
}

.form-error {
  padding: 10px 12px;
  border-radius: 8px;
  color: #8b1e28;
  background: #ffe9ec;
}

.hint,
.empty {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #334155;
  background: #f8fafc;
}

td span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 16px;
  margin-top: 42px;
  padding: 36px max(22px, calc((100vw - 1200px) / 2 + 22px));
  color: #d6e4f7;
  background: #071837;
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #a9b9d1;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #fff;
}

.footer-contact,
.footer-icp,
.copyright {
  color: #a9b9d1;
}

.footer-icp a {
  color: #a9b9d1;
}

.footer-icp a:hover {
  color: #fff;
}

.admin-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #eef3f8;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  color: #dbeafe;
  background: #071837;
}

.admin-brand {
  color: #fff;
  margin-bottom: 22px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #dbeafe;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.admin-user {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  gap: 8px;
  color: #a9b9d1;
}

.admin-user a {
  color: #fff;
}

.admin-main {
  padding: 26px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-head h1 {
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.stat-card span {
  display: block;
  color: #dbeafe;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.checkline {
  align-content: end;
  grid-template-columns: auto 1fr !important;
}

.checkline input {
  width: auto;
  margin-top: 13px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form select {
  width: auto;
  min-width: 92px;
  padding: 7px 8px;
}

.mini-qr {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .user-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .mobile-nav.open {
    display: grid;
    gap: 4px;
    padding: 10px 22px 16px;
    border-top: 1px solid var(--line);
  }

  .mobile-user-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .shortcut-grid,
  .post-grid,
  .post-grid.compact,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .site-footer,
  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-user {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding-top: 64px;
  }

  .section-head,
  .page-hero.small,
  .member-cta,
  .notice-band {
    align-items: stretch;
    flex-direction: column;
  }

  .shortcut-grid,
  .post-grid,
  .post-grid.compact,
  .qr-grid,
  .form-grid.two,
  .form-grid.three,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .article-header,
  .article-content,
  .locked-box,
  .resource-box,
  .copyright-box {
    padding: 22px;
  }

  .article-header h1 {
    font-size: 32px;
  }
}
/* Compact category/list pages: no article thumbnails, one-line title rows. */
.page-hero.small {
  padding: 34px 22px;
}

.page-hero.small h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.page-hero.small p {
  font-size: 16px;
}

.page-hero.small + .section {
  padding-top: 24px;
}

.page-hero.small + .section .post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-hero.small + .section .post-card {
  display: block;
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
}

.page-hero.small + .section .post-cover,
.page-hero.small + .section .post-card p {
  display: none;
}

.page-hero.small + .section .post-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.page-hero.small + .section .post-card h3 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero.small + .section .post-card h3 a:hover {
  color: var(--blue);
}

.page-hero.small + .section .meta-row {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: 13px;
}

@media (max-width: 680px) {
  .page-hero.small h1 {
    font-size: 28px;
  }

  .page-hero.small + .section .post-card-body {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .page-hero.small + .section .meta-row {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
}
/* Article detail pages: text-first resource pages, no large cover image. */
.article-cover {
  display: none;
}

.article-header {
  padding: 28px 34px;
}

.article-header h1 {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.24;
}

.article-header p {
  font-size: 16px;
}

.article-content,
.locked-box,
.resource-box,
.copyright-box {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .article-header h1 {
    font-size: 28px;
  }
}
/* Homepage hero refinement: flatter banner and quieter title scale. */
.hero {
  min-height: 360px;
  background-position: center right;
}

.hero-content {
  padding: 58px 22px 48px;
}

.hero h1 {
  max-width: 620px;
  margin: 14px 0 12px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.18;
}

.hero p {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: 17px;
}

.hero-points {
  margin-top: 20px;
}

.notice-band {
  margin-top: -20px;
}

@media (max-width: 680px) {
  .hero {
    min-height: 390px;
    background-position: center right;
  }

  .hero-content {
    padding: 48px 22px 42px;
  }

  .hero h1 {
    font-size: 32px;
  }
}
/* Light visual theme and text-first post lists. */
.hero {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(219, 228, 239, 0.7);
}

.hero .eyebrow {
  color: var(--blue);
  background: #eaf3ff;
  border-color: #cfe1ff;
}

.hero p {
  color: #42526b;
}

.hero-points span {
  color: #334155;
  border-color: #dbe4ef;
  background: rgba(255, 255, 255, 0.78);
}

.member-cta {
  color: var(--ink);
  border: 1px solid #dbe4ef;
  background: linear-gradient(135deg, #ffffff, #eef6ff 68%, #fff7df);
}

.member-cta p {
  color: var(--muted);
}

.member-cta .eyebrow {
  color: var(--blue);
  background: #eaf3ff;
  border-color: #cfe1ff;
}

.page-hero.member {
  color: var(--ink);
  border: 1px solid #dbe4ef;
  background: linear-gradient(135deg, #ffffff, #eef6ff 70%, #fff7df);
}

.page-hero.member p {
  color: var(--muted);
}

.status-pill {
  color: #334155;
  background: #ffffff;
  border: 1px solid #dbe4ef;
}

.section .post-grid,
.section .post-grid.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.section .post-card {
  display: block;
  border-radius: 8px;
  box-shadow: none;
  overflow: visible;
}

.section .post-cover,
.section .post-card p {
  display: none;
}

.section .post-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.section .post-card h3 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section .post-card h3 a:hover {
  color: var(--blue);
}

.section .post-card .meta-row {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: 13px;
}

@media (max-width: 680px) {
  .section .post-card-body {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section .post-card .meta-row {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
}
/* Subject pages: two-column portal layout for videos and materials. */
.subject-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.subject-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.05);
}

.column-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6edf6;
}

.column-head span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.column-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.subject-columns .post-grid {
  gap: 8px;
}

.subject-columns .post-card-body {
  padding: 12px 13px;
}

.subject-columns .post-card h3 {
  font-size: 16px;
}

@media (max-width: 860px) {
  .subject-columns {
    grid-template-columns: 1fr;
  }

  .column-head {
    display: block;
  }

  .column-head p {
    margin-top: 4px;
    text-align: left;
  }
}


/* Portal redesign: blue-white education resource platform. */
:root {
  --navy: #0f2f68;
  --blue: #2563eb;
  --blue-2: #2e75b6;
  --sky: #eaf3ff;
  --orange: #f59e0b;
  --gold: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(15, 47, 104, 0.08);
}

body {
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 47, 104, 0.06);
}

.header-inner {
  max-width: 1320px;
  min-height: 64px;
  gap: 14px;
  padding: 0 24px;
}

.brand {
  color: #0f2f68;
  font-size: 17px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #2e75b6);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.main-nav {
  gap: 2px;
}

.main-nav a,
.mobile-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 15px;
}

.main-nav a.active,
.main-nav a:hover,
.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--blue);
  background: var(--sky);
}

.user-links {
  gap: 8px;
}

.nav-search {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.nav-search input {
  width: 170px;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 10px;
  color: var(--ink);
}

.nav-search button {
  height: 100%;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.ghost-link,
.primary-link,
.btn {
  border-radius: 8px;
}

.primary-link,
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.gold {
  color: #7c4a03;
  border-color: #fcd34d;
  background: #fef3c7;
}

.btn.secondary {
  color: var(--blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.eyebrow,
.eyebrow.dark {
  color: var(--blue);
  background: var(--sky);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}

.portal-hero {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.portal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: center;
  min-height: 330px;
  padding: 42px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 56%, #eaf3ff 100%);
  box-shadow: var(--shadow);
}

.portal-hero-copy h1 {
  max-width: 620px;
  margin: 16px 0 12px;
  color: #102033;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

.portal-hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.portal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  max-width: 680px;
  min-height: 52px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.portal-search input {
  border: 0;
  outline: none;
  padding: 0 18px;
  color: var(--ink);
  font-size: 16px;
}

.portal-search button {
  border: 0;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 700;
}

.portal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #475569;
}

.portal-stats span {
  padding: 7px 11px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.portal-stats strong {
  color: var(--blue);
}

.portal-visual {
  position: relative;
  min-height: 250px;
}

.visual-card {
  position: absolute;
  width: 260px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.12);
}

.visual-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky);
  font-size: 13px;
  font-weight: 700;
}

.visual-card strong {
  display: block;
  color: #102033;
  line-height: 1.45;
}

.visual-card em {
  display: block;
  margin-top: 12px;
  color: var(--orange);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.visual-card.main {
  top: 12px;
  right: 12px;
}

.visual-card.file {
  top: 105px;
  left: 0;
  width: 220px;
}

.visual-card.search-card {
  right: 0;
  bottom: 0;
  width: 235px;
}

.portal-section,
.school-index-section,
.resource-header,
.resource-layout,
.resource-detail {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-left: 20px;
  padding-right: 20px;
}

.portal-section {
  padding-top: 0;
  padding-bottom: 0;
}

.section-head.compact-head {
  align-items: end;
  margin-bottom: 14px;
}

.section-head.compact-head h2 {
  margin: 8px 0 0;
  color: #102033;
  font-size: 24px;
  line-height: 1.25;
}

.category-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-entry-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.category-entry-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.entry-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--sky);
  font-weight: 800;
}

.category-entry-card strong {
  color: #102033;
  font-size: 17px;
}

.category-entry-card span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.post-cover,
.article-cover {
  display: none !important;
}

.portal-list,
.resource-list,
.title-only-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.post-card,
.resource-card-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
  overflow: hidden;
}

.post-card-body {
  padding: 14px 16px;
}

.post-card h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: 0;
}

.post-card h3 a:hover {
  color: var(--blue);
}

.post-card p {
  display: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.type-chip,
.member-badge,
.audit-pass {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.type-chip.video {
  color: #1d4ed8;
  background: #dbeafe;
}

.type-chip.material {
  color: #047857;
  background: #d1fae5;
}

.member-badge {
  color: #92400e;
  background: #fef3c7;
}

.resource-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 22px;
}

.resource-header > div {
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.resource-header h1 {
  margin: 12px 0 8px;
  color: #102033;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.resource-header p {
  margin: 0;
  color: var(--muted);
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  min-height: 48px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  border: 0;
  outline: none;
  padding: 0 14px;
}

.search button {
  border: 0;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 700;
}

.resource-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.filter-panel strong {
  margin-bottom: 4px;
  color: #102033;
}

.filter-panel a,
.filter-panel span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
}

.filter-panel a:hover {
  color: var(--blue);
  background: var(--sky);
}

.filter-panel span {
  color: var(--muted);
  font-weight: 700;
}

.filter-divider {
  height: 1px;
  margin: 6px 0;
  background: #e5e7eb;
}

.resource-results {
  min-width: 0;
}

.resource-sort {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.resource-columns {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.subject-column {
  border-color: #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.column-head span {
  color: #102033;
  font-size: 19px;
}

.title-only-list .post-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-zone-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.school-zone-aside,
.school-region-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.school-zone-aside strong {
  display: block;
  color: #102033;
  font-size: 19px;
}

.school-zone-aside p {
  color: var(--muted);
}

.school-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.school-region-card h3 {
  margin: 0 0 12px;
  color: #102033;
}

.school-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-chip-grid a {
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 14px;
}

.school-chip-grid a:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.resource-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  padding-top: 26px;
}

.resource-main {
  min-width: 0;
}

.resource-title-card,
.resource-preview,
.resource-box,
.copyright-box,
.related-panel,
.resource-info-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.resource-title-card {
  padding: 26px;
}

.resource-title-card h1 {
  margin: 12px 0 10px;
  color: #102033;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.resource-title-card p {
  margin: 0;
  color: var(--muted);
}

.resource-preview {
  margin-top: 14px;
  padding: 0;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  color: #102033;
  font-weight: 800;
}

.preview-head em {
  color: #059669;
  font-style: normal;
  font-size: 13px;
}

.resource-preview-body {
  padding: 22px;
}

.resource-preview-body h2 {
  color: #102033;
  font-size: 22px;
}

.resource-preview-body p {
  color: #374151;
}

.resource-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
}

.resource-box strong {
  color: #102033;
}

.resource-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pan-code {
  color: var(--orange);
  font-size: 14px;
}

.copyright-box,
.related-panel {
  margin-top: 14px;
  padding: 18px;
  color: #475569;
}

.resource-info-card {
  position: sticky;
  top: 82px;
  padding: 18px;
}

.resource-info-card > strong {
  display: block;
  margin-bottom: 14px;
  color: #102033;
  font-size: 18px;
}

.resource-info-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.resource-info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.resource-info-card dt {
  color: var(--muted);
}

.resource-info-card dd {
  margin: 0;
  text-align: right;
  color: #102033;
  font-weight: 700;
}

.audit-pass {
  color: #047857;
  background: #d1fae5;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.muted-note {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 40px;
  color: #475569;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.admin-body {
  background: #f6f8fb;
}

.admin-sidebar {
  background: #0f2f68;
  box-shadow: 8px 0 28px rgba(15, 47, 104, 0.14);
}

.admin-sidebar nav a {
  border-radius: 8px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-main {
  padding: 28px;
}

.admin-head {
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.admin-head h1 {
  margin: 2px 0 0;
  color: #102033;
  font-size: 26px;
}

.admin-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.panel,
.stat-card,
.table-wrap {
  border-color: #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.stat-card {
  background: #fff;
}

.stat-card strong {
  color: var(--blue);
}

table th {
  color: #475569;
  background: #f8fafc;
}

.admin-form label {
  color: #334155;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-color: #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.editor-toolbar button {
  border-radius: 8px;
  color: var(--blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

@media (max-width: 1180px) {
  .nav-search {
    display: none;
  }
}

@media (max-width: 980px) {
  .portal-hero-inner,
  .resource-header,
  .resource-layout,
  .resource-detail,
  .school-zone-grid {
    grid-template-columns: 1fr;
  }

  .portal-visual {
    display: none;
  }

  .filter-panel,
  .resource-info-card {
    position: static;
  }

  .category-entry-grid,
  .school-region-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .portal-hero,
  .portal-section,
  .school-index-section,
  .resource-header,
  .resource-layout,
  .resource-detail {
    margin-top: 16px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .portal-hero-inner {
    min-height: auto;
    padding: 24px;
  }

  .portal-hero-copy h1,
  .resource-header h1,
  .resource-title-card h1 {
    font-size: 28px;
  }

  .portal-search,
  .search {
    grid-template-columns: 1fr;
  }

  .portal-search button,
  .search button {
    min-height: 44px;
  }

  .category-entry-grid,
  .school-region-grid,
  .subject-columns {
    grid-template-columns: 1fr;
  }

  .resource-box {
    grid-template-columns: 1fr;
  }
}


/* Subject cards: subtle academic logos in empty space. */
.category-entry-card {
  position: relative;
  overflow: hidden;
}

.category-entry-card::after {
  content: attr(data-logo);
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(37, 99, 235, 0.08);
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.category-entry-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .category-entry-card::after {
    font-size: 46px;
  }
}

/* Hero action cards: real navigation entries with subtle education-platform colors. */
.portal-visual .visual-card {
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.portal-visual a.visual-card:hover,
.visual-card-library:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
}

.visual-card-library {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.visual-card-plan {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

.visual-card-plan span {
  color: #c2410c;
  background: #ffedd5;
}

.visual-card-plan em {
  color: #ea580c;
}

.visual-card-member {
  width: 270px;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.visual-card-member span {
  color: #047857;
  background: #d1fae5;
}

.visual-card-member em {
  color: #047857;
}

.visual-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.visual-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.visual-link-row a:hover {
  border-color: #2563eb;
  background: #dbeafe;
}

.plan-summary-grid,
.member-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-summary-card,
.member-proof-card,
.plan-note-panel,
.plan-table-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 47, 104, 0.045);
}

.plan-summary-card,
.member-proof-card {
  padding: 20px;
}

.plan-summary-card span,
.member-proof-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
  font-size: 13px;
}

.plan-summary-card strong,
.member-proof-card strong {
  display: block;
  color: #102033;
  font-size: 18px;
  line-height: 1.35;
}

.plan-summary-card p,
.member-proof-card p,
.plan-note-panel p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.member-proof-card.orange {
  border-color: #fed7aa;
  background: #fff7ed;
}

.member-proof-card.orange span {
  color: #c2410c;
  background: #ffedd5;
}

.member-proof-card.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.member-proof-card.green span {
  color: #047857;
  background: #d1fae5;
}

.plan-table-panel {
  padding: 22px;
}

.table-scroll {
  overflow-x: auto;
}

.plan-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #1f2937;
}

.plan-table th,
.plan-table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.plan-table th {
  color: #102033;
  background: #eff6ff;
  font-size: 14px;
}

.plan-table td:first-child {
  width: 150px;
}

.plan-table td strong,
.plan-table td span {
  display: block;
}

.plan-table td span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.plan-note-panel {
  padding: 24px;
}

.plan-note-panel h2 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 22px;
}

@media (max-width: 980px) {
  .plan-summary-grid,
  .member-proof-grid {
    grid-template-columns: 1fr;
  }
}
.form-success {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 700;
}
/* Home hero cards: keep all text readable, no overlap over the library links. */
.portal-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  min-height: 270px;
}

.portal-visual .visual-card,
.portal-visual .visual-card.main,
.portal-visual .visual-card.file,
.portal-visual .visual-card.search-card {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}

.portal-visual .visual-card.main {
  grid-column: 1 / -1;
}

.portal-visual .visual-card.file {
  grid-column: 1;
}

.portal-visual .visual-card.search-card {
  grid-column: 2;
}

.portal-visual .visual-card strong,
.portal-visual .visual-card em,
.portal-visual .visual-link-row a {
  overflow-wrap: anywhere;
}

.portal-visual .visual-link-row {
  margin: 10px 0 10px;
}

.portal-visual .visual-card.file,
.portal-visual .visual-card.search-card {
  padding: 16px;
}

@media (max-width: 1100px) {
  .portal-visual {
    grid-template-columns: 1fr;
  }

  .portal-visual .visual-card.file,
  .portal-visual .visual-card.search-card {
    grid-column: 1;
  }
}
/* Homepage polish: clearer logo, non-overlapping hero cards, and soft subject tiles. */
.brand {
  gap: 11px;
}

.brand .brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.75);
  border-radius: 10px;
  background: linear-gradient(145deg, #0f2f68 0%, #2563eb 58%, #38bdf8 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
}

.brand .brand-mark::before {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 48px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.brand-sail,
.brand-shore,
.brand-sun {
  position: absolute;
  display: block;
}

.brand-sail {
  left: 12px;
  top: 8px;
  width: 18px;
  height: 21px;
  border-radius: 3px 10px 3px 3px;
  background: #ffffff;
  clip-path: polygon(12% 100%, 82% 0, 96% 100%);
  box-shadow: 9px 6px 0 rgba(255, 255, 255, 0.24);
}

.brand-shore {
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24 0 36%, #a7f3d0 36% 100%);
}

.brand-sun {
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.2);
}

.brand-word {
  color: #0f2f68;
  font-size: 18px;
  font-weight: 900;
}

.portal-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
  gap: 38px;
  align-items: center;
}

.portal-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  align-items: stretch;
}

.portal-visual .visual-card,
.visual-card-member {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  min-height: 118px;
  padding: 16px;
}

.portal-visual .visual-card.main {
  grid-column: 1 / -1;
  min-height: 148px;
}

.portal-visual .visual-card.file,
.portal-visual .visual-card.search-card {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.portal-visual .visual-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.portal-visual .visual-card em {
  margin-top: 10px;
}

.visual-card-library {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.visual-card-plan {
  background: linear-gradient(135deg, #fffaf0 0%, #fff7ed 100%);
}

.visual-card-member {
  background: linear-gradient(135deg, #f7fffb 0%, #ecfdf5 100%);
}

.visual-card-jiaogao {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #fff7ed 100%);
}

.visual-card-jiaogao span {
  color: #1d4ed8;
  background: #dbeafe;
}

.visual-card-jiaogao em {
  color: #ea580c;
}

.visual-link-row {
  gap: 7px;
}

.visual-link-row a {
  min-height: 28px;
  padding: 0 9px;
}

.category-entry-section .category-entry-card {
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 26px rgba(15, 47, 104, 0.06);
}

.category-entry-section .category-entry-card:nth-child(1) {
  background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
  border-color: #cfe4ff;
}

.category-entry-section .category-entry-card:nth-child(2) {
  background: linear-gradient(135deg, #fbfbff 0%, #eef2ff 100%);
  border-color: #d8dcff;
}

.category-entry-section .category-entry-card:nth-child(3) {
  background: linear-gradient(135deg, #fffafa 0%, #fff1f2 100%);
  border-color: #ffd6dd;
}

.category-entry-section .category-entry-card:nth-child(4) {
  background: linear-gradient(135deg, #fbfffb 0%, #ecfdf5 100%);
  border-color: #c9f2df;
}

.category-entry-section .category-entry-card:nth-child(5) {
  background: linear-gradient(135deg, #fffdf7 0%, #fffbeb 100%);
  border-color: #fde9ac;
}

.category-entry-section .category-entry-card:nth-child(6) {
  background: linear-gradient(135deg, #fbfdff 0%, #f0f9ff 100%);
  border-color: #c9e8ff;
}

.category-entry-section .category-entry-card:nth-child(1) .entry-icon {
  color: #1d4ed8;
  background: #dbeafe;
}

.category-entry-section .category-entry-card:nth-child(2) .entry-icon {
  color: #4f46e5;
  background: #e0e7ff;
}

.category-entry-section .category-entry-card:nth-child(3) .entry-icon {
  color: #be123c;
  background: #ffe4e6;
}

.category-entry-section .category-entry-card:nth-child(4) .entry-icon {
  color: #047857;
  background: #d1fae5;
}

.category-entry-section .category-entry-card:nth-child(5) .entry-icon {
  color: #b45309;
  background: #fef3c7;
}

.category-entry-section .category-entry-card:nth-child(6) .entry-icon {
  color: #0369a1;
  background: #e0f2fe;
}

.category-entry-section .category-entry-card::after {
  color: rgba(15, 47, 104, 0.055);
}

@media (max-width: 1120px) {
  .portal-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
    gap: 28px;
  }
}

@media (max-width: 980px) {
  .portal-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-word {
    font-size: 17px;
  }
}

@media (max-width: 680px) {
  .portal-visual {
    grid-template-columns: 1fr;
  }

  .portal-visual .visual-card.main {
    grid-column: auto;
  }
}

.auto-pay-price {
  margin: 18px 0;
  color: #102033;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.auto-pay-price span {
  margin-left: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.order-panel {
  display: grid;
  justify-items: center;
}

.alipay-order-card {
  width: min(100%, 520px);
  text-align: center;
}

.alipay-order-card h2 {
  margin: 0 0 16px;
  color: #102033;
}

.alipay-qrcode {
  display: grid;
  width: 268px;
  min-height: 268px;
  place-items: center;
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.pay-status {
  margin: 14px 0 0;
  color: #047857;
  font-weight: 800;
}

.alipay-config-missing {
  border-color: #fed7aa;
  background: #fff7ed;
}

.board-directory-section {
  padding-top: 28px;
}

.board-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.board-group-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 47, 109, 0.06);
}

.board-group-head h3 {
  margin: 0 0 6px;
  color: #102033;
  font-size: 20px;
}

.board-group-head p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.board-link-list {
  display: grid;
  gap: 8px;
}

.board-link-list a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fbff;
}

.board-link-list a:hover {
  border-color: #2563eb;
  background: #eaf3ff;
}

.board-link-list strong {
  color: #102033;
  font-size: 15px;
}

.board-link-list span {
  color: #64748b;
  font-size: 13px;
}

.school-region-grid-full {
  grid-template-columns: 1fr;
}

.school-region-card.expanded {
  padding: 18px;
}

.school-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.school-region-head h3 {
  margin: 0;
}

.school-region-head span {
  color: #2563eb;
  font-weight: 800;
}

.school-chip-grid-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.school-chip {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}

.school-chip:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.school-chip strong {
  color: #102033;
}

.school-chip span {
  color: #64748b;
  font-size: 13px;
}

.school-detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 22px auto 50px;
  padding: 0 22px;
}

.school-profile-card,
.copyright-card {
  padding: 20px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 47, 109, 0.06);
}

.school-profile-card {
  align-self: start;
  position: sticky;
  top: 92px;
}

.school-profile-card strong {
  display: block;
  margin-bottom: 14px;
  color: #102033;
  font-size: 22px;
}

.school-profile-card dl,
.school-profile-card dt,
.school-profile-card dd {
  margin: 0;
}

.school-profile-card dl {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.school-profile-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.school-profile-card dt {
  color: #64748b;
}

.school-profile-card dd {
  color: #102033;
  font-weight: 800;
  text-align: right;
}

.school-detail-main {
  min-width: 0;
}

.school-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.school-resource-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.school-resource-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.school-resource-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #2563eb;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 800;
}

.school-resource-card strong {
  display: block;
  color: #102033;
  font-size: 18px;
}

.school-resource-card p,
.copyright-card {
  color: #64748b;
}

@media (max-width: 960px) {
  .board-directory-grid,
  .school-chip-grid-wide,
  .school-resource-grid,
  .school-detail-layout {
    grid-template-columns: 1fr;
  }
  .school-profile-card {
    position: static;
  }
}


.home-school-directory {
  padding-top: 28px;
}

.school-home-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.school-home-intro strong {
  color: #102033;
  font-size: 18px;
}

.school-home-intro p {
  margin: 0;
  color: #64748b;
}


/* Jiaogao Assistant */
.jiaogao-core-section { padding-top: 12px; }
.jiaogao-core-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 26px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 58%, #fff7ed 100%);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
}
.jiaogao-core-card h2 { margin: 12px 0 10px; max-width: 760px; font-size: 30px; line-height: 1.25; }
.jiaogao-core-card p { margin: 0 0 18px; color: var(--muted); max-width: 820px; }
.jiaogao-core-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jiaogao-core-metrics { display: grid; gap: 12px; }
.jiaogao-core-metrics span { padding: 14px; border: 1px solid #dbeafe; border-radius: 12px; background: rgba(255,255,255,.75); color: var(--muted); }
.jiaogao-core-metrics strong { display: block; color: var(--blue); font-size: 22px; }
.jiaogao-hero {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 52%, #fff7ed 100%);
  border: 1px solid #dbeafe;
}
.jiaogao-hero h1 { margin: 14px 0; max-width: 780px; font-size: 42px; line-height: 1.18; }
.jiaogao-hero p { color: var(--muted); max-width: 760px; }
.jiaogao-hero-panel { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.jiaogao-hero-panel strong { display: block; font-size: 22px; margin-bottom: 10px; color: var(--navy); }
.jiaogao-hero-panel span { color: var(--muted); }
.jiaogao-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jiaogao-feature-grid div { padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.jiaogao-feature-grid strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 18px; }
.jiaogao-feature-grid p { margin: 0; color: var(--muted); }
.jiaogao-upload-card input[type=file] { padding: 18px; background: #f8fafc; border: 1px dashed #93c5fd; }
.jiaogao-result-section { display: grid; gap: 18px; }
.doc-result-score { display: inline-grid; place-items: center; width: 190px; min-height: 150px; border-radius: 16px; background: #fff; border: 1px solid #bfdbfe; box-shadow: var(--shadow); }
.doc-result-score span, .doc-result-score em { color: var(--muted); font-style: normal; }
.doc-result-score strong { color: var(--blue); font-size: 52px; line-height: 1; }
.doc-issue-table { width: 100%; border-collapse: collapse; }
.doc-issue-table th, .doc-issue-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-issue-table th { color: var(--navy); background: #f8fafc; }
.doc-report-summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 10px; background: #eff6ff; color: var(--navy); }
@media (max-width: 860px) {
  .jiaogao-core-card, .jiaogao-hero { grid-template-columns: 1fr; }
  .jiaogao-feature-grid { grid-template-columns: 1fr; }
  .jiaogao-hero h1, .jiaogao-core-card h2 { font-size: 30px; }
}


.hot-resource-section {
  margin-top: 18px;
}

.hot-section-head {
  padding: 18px 20px 0;
  border: 1px solid #bfdbfe;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
}

.hot-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
  border: 1px solid #bfdbfe;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08);
}

.hot-resource-list .post-card {
  border-color: #dbeafe;
  box-shadow: none;
}

.hot-resource-list .post-card:first-child {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

@media (max-width: 760px) {
  .hot-resource-list {
    grid-template-columns: 1fr;
  }
}

/* Portal visual refresh: education-news/resource portal style inspired by kaoyan portals. */
:root {
  --portal-green: #1fa463;
  --portal-green-dark: #16824f;
  --portal-blue: #2563eb;
  --portal-orange: #f59e0b;
  --portal-bg: #f3f6f8;
  --portal-border: #d9e2ec;
  --portal-title: #1f2937;
}

body { color: #263241; background: var(--portal-bg); }
.site-header { background: #fff; border-top: 4px solid var(--portal-green); border-bottom: 1px solid #dfe7ef; box-shadow: 0 2px 12px rgba(15,23,42,.06); backdrop-filter: none; }
.header-inner { min-height: 62px; gap: 16px; }
.brand { color: #102033; }
.brand-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--portal-green), var(--portal-blue)); box-shadow: none; }
.main-nav { gap: 2px; }
.main-nav a, .mobile-nav a { padding: 8px 10px; border-radius: 0; color: #2f3c4d; font-size: 15px; }
.main-nav a.active, .main-nav a:hover, .mobile-nav a.active, .mobile-nav a:hover { color: var(--portal-green-dark); background: transparent; box-shadow: inset 0 -3px 0 var(--portal-green); }
.ghost-link, .primary-link, .btn { border-radius: 4px; }
.primary-link, .btn.primary, .portal-search button, .search button { background: var(--portal-green); border-color: var(--portal-green); }
.primary-link:hover, .btn.primary:hover, .portal-search button:hover, .search button:hover { background: var(--portal-green-dark); }
.nav-search { border-radius: 4px; }
.nav-search input { width: 190px; }

.portal-hero, .portal-section, .school-index-section, .resource-header, .resource-layout, .resource-detail, .jiaogao-hero { max-width: 1180px; }
.portal-hero { margin-top: 18px; padding: 0; border: 1px solid var(--portal-border); border-top: 3px solid var(--portal-green); border-radius: 4px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.portal-hero-inner { grid-template-columns: minmax(0, 1fr) 390px; gap: 0; align-items: stretch; }
.portal-hero-copy { padding: 30px 32px; }
.portal-hero-copy h1 { margin: 10px 0; color: var(--portal-title); font-size: 34px; line-height: 1.22; }
.portal-hero-copy p { max-width: 720px; color: #5b6675; font-size: 16px; }
.eyebrow.dark { display: inline-flex; padding: 3px 9px; border: 1px solid #b7e4cf; border-radius: 999px; color: var(--portal-green-dark); background: #ecfdf5; font-size: 13px; }
.portal-search { max-width: 690px; margin-top: 18px; border: 2px solid var(--portal-green); border-radius: 4px; box-shadow: none; }
.portal-search input { padding: 13px 15px; }
.portal-search button { min-width: 118px; }
.portal-stats { gap: 8px; margin-top: 16px; }
.portal-stats span { border: 1px solid #e6edf3; border-radius: 4px; background: #f8fafc; }
.portal-stats strong { color: var(--portal-green-dark); }
.portal-visual { grid-template-columns: 1fr; gap: 0; padding: 18px; border-left: 1px solid #e6edf3; background: #fbfdff; }
.portal-visual .visual-card, .visual-card-member { min-height: auto; margin-bottom: 10px; padding: 13px 14px; border: 1px solid #e1e8f0; border-radius: 4px; background: #fff; box-shadow: none; }
.portal-visual .visual-card:last-child { margin-bottom: 0; }
.visual-card span { margin-bottom: 6px; padding: 2px 7px; border-radius: 4px; color: var(--portal-green-dark); background: #ecfdf5; }
.portal-visual .visual-card strong { color: #1f2937; font-size: 15px; }
.portal-visual .visual-card em { color: var(--portal-orange); font-size: 12px; }
.visual-link-row a { display: inline-flex; padding: 3px 7px; border: 1px solid #dbeafe; border-radius: 4px; color: var(--portal-blue); background: #f8fbff; }

.portal-section { margin-top: 18px; }
.section-head, .section-head.compact-head { align-items: center; margin-bottom: 0; padding: 12px 16px; border: 1px solid var(--portal-border); border-bottom: 0; border-radius: 4px 4px 0 0; background: #fff; }
.section-head h2, .section-head.compact-head h2 { margin: 5px 0 0; padding-left: 10px; border-left: 4px solid var(--portal-green); color: var(--portal-title); font-size: 22px; }
.text-link { color: var(--portal-green-dark); font-weight: 700; }
.hot-section-head { padding: 12px 16px; border-color: #cfe0d7; background: #fff; }
.hot-resource-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; border: 1px solid #cfe0d7; border-top: 0; border-radius: 0 0 4px 4px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.hot-resource-list .post-card { margin: 0; border: 0; border-right: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; border-radius: 0; background: #fff; }
.hot-resource-list .post-card:first-child { border-color: #eef2f6; background: #fffdf7; }

.post-card, .resource-card-row, .panel, .auth-card, .category-entry-card, .school-region-card, .school-profile-card, .school-resource-card, .resource-box, .copyright-card { border-radius: 4px; box-shadow: none; }
.post-card, .resource-card-row { border-color: #e2e8f0; }
.post-card-body { padding: 12px 14px; }
.post-card h3 { margin-top: 5px; font-size: 16px; }
.post-card h3::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 7px; vertical-align: 3px; border-radius: 50%; background: var(--portal-green); }
.meta-row { font-size: 12px; }
.type-chip.material { color: var(--portal-green-dark); background: #ecfdf5; }
.category-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--portal-border); border-top: 0; background: #fff; }
.category-entry-card { min-height: 112px; padding: 16px; border: 0; border-right: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; background: #fff; }
.category-entry-card:hover { border-color: #eef2f6; transform: none; background: #f8fcfa; }
.entry-icon { border-radius: 4px; color: #fff; background: var(--portal-green); }
.board-directory, .board-directory.compact, .school-region-grid, .school-region-grid-full, .school-home-intro, .post-grid.portal-list, .resource-list, .title-only-list { border: 1px solid var(--portal-border); border-top: 0; border-radius: 0 0 4px 4px; background: #fff; }
.board-directory, .board-directory.compact { padding: 12px; }
.board-group, .board-group-card { border-radius: 4px; box-shadow: none; }
.school-home-intro { padding: 14px 16px; }
.school-region-grid-full { padding: 12px; }
.school-region-card.expanded { border-color: #e2e8f0; }
.school-region-head { border-bottom-color: #edf2f7; }
.school-chip { border-radius: 4px; background: #fff; }
.resource-header { border-top: 3px solid var(--portal-green); border-radius: 4px; background: #fff; box-shadow: none; }
.resource-header h1 { font-size: 30px; }
.resource-detail, .resource-side-card { border-radius: 4px; box-shadow: none; }
.site-footer { margin-top: 32px; background: #243447; }

@media (max-width: 980px) {
  .portal-hero-inner { grid-template-columns: 1fr; }
  .portal-visual { border-left: 0; border-top: 1px solid #e6edf3; }
}
@media (max-width: 760px) {
  .hot-resource-list, .category-entry-grid { grid-template-columns: 1fr; }
  .portal-hero-copy { padding: 24px 18px; }
  .portal-hero-copy h1 { font-size: 28px; }
}
/* Shangan hero redesign v2: clean blue-white exam portal. */
:root {
  --fresh-blue: #2ea7f0;
  --fresh-blue-dark: #1677d2;
  --fresh-blue-soft: #eaf7ff;
  --fresh-blue-softer: #f5fbff;
  --fresh-orange: #ff8a1f;
  --fresh-ink: #132238;
  --fresh-muted: #607083;
  --fresh-line: #d9ecfb;
}

body {
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fb 420px, #f6f8fb 100%);
}

.site-header {
  border-top: 0;
  border-bottom: 1px solid #e5eef7;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 18px rgba(30, 112, 190, .06);
}

.brand-mark {
  background: linear-gradient(135deg, #39b7ff, #2489e9);
  border-radius: 11px;
}

.main-nav a.active,
.main-nav a:hover,
.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--fresh-blue-dark);
  background: #edf8ff;
  border-radius: 10px;
  box-shadow: none;
}

.primary-link,
.btn.primary,
.portal-search button,
.search button {
  background: linear-gradient(135deg, #36adf4, #237fe2);
  border-color: #2693e8;
}

.primary-link:hover,
.btn.primary:hover,
.portal-search button:hover,
.search button:hover {
  background: linear-gradient(135deg, #1d96df, #176fcc);
}

.portal-hero {
  max-width: 1180px;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfe7fb;
  border-top: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255,255,255,.95) 0 16%, transparent 35%),
    linear-gradient(135deg, #e4f5ff 0%, #f6fbff 48%, #eaf5ff 100%);
  box-shadow: 0 18px 48px rgba(44, 130, 214, .14);
}

.portal-hero-inner {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 34px;
  align-items: stretch;
}

.portal-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  padding: 38px 42px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 42px rgba(33, 119, 205, .1);
}

.eyebrow.dark {
  width: fit-content;
  border: 1px solid #bce8ff;
  color: #1577bf;
  background: #effaff;
}

.portal-hero-copy h1 {
  max-width: 700px;
  margin: 14px 0 12px;
  color: var(--fresh-ink);
  font-size: 42px;
  line-height: 1.16;
  font-weight: 800;
}

.portal-hero-copy p {
  max-width: 710px;
  color: #53667d;
  font-size: 18px;
  line-height: 1.8;
}

.portal-search {
  max-width: 760px;
  margin-top: 26px;
  border: 2px solid #35a9f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(46, 167, 240, .16);
}

.portal-search input {
  padding: 17px 20px;
  color: var(--fresh-ink);
}

.portal-search button {
  min-width: 138px;
  font-weight: 700;
}

.portal-stats span {
  border-color: #d5eafa;
  border-radius: 10px;
  background: #f8fcff;
}

.portal-stats strong {
  color: #0783d2;
}

.portal-side-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.exam-countdown-card,
.exam-timeline-card,
.portal-quick-card-row a {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(33, 119, 205, .12);
  backdrop-filter: blur(10px);
}

.exam-countdown-card {
  padding: 24px 22px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(235,248,255,.82)),
    radial-gradient(circle at 20% 10%, #b9edff 0 22%, transparent 44%);
}

.countdown-label {
  color: #30465f;
  font-size: 18px;
}

.countdown-label strong {
  color: #15243a;
  font-size: 21px;
}

.countdown-digits {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 10px;
  margin: 18px 0 12px;
}

.countdown-digits span {
  display: grid;
  width: 58px;
  height: 76px;
  place-items: center;
  border: 1px solid #d7ecff;
  border-radius: 12px;
  color: #243246;
  background: linear-gradient(180deg, #ffffff 0%, #dcefff 100%);
  box-shadow: inset 0 -12px 22px rgba(46, 167, 240, .14), 0 8px 18px rgba(40, 119, 190, .1);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.countdown-digits em {
  margin-left: 2px;
  padding-bottom: 9px;
  color: #15243a;
  font-style: normal;
  font-size: 18px;
}

.exam-countdown-card p {
  margin: 0;
  color: #708399;
  font-size: 13px;
}

.exam-timeline-card {
  padding: 22px 24px;
  background: rgba(255,255,255,.92);
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #122238;
  font-size: 24px;
  font-weight: 800;
}

.timeline-title span {
  color: var(--fresh-orange);
  font-size: 16px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 14px;
  max-height: 240px;
  overflow: auto;
  padding-left: 16px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #2ea7f0, #a7dcff);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ea7f0;
  box-shadow: 0 0 0 4px #e5f6ff;
}

.timeline-item strong {
  min-width: 42px;
  color: #17253a;
  font-size: 18px;
}

.timeline-item span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #57677c;
  background: #f3f7fb;
  font-size: 13px;
}

.timeline-item:nth-child(2n) span {
  color: #1677d2;
  background: #eaf5ff;
}

.portal-quick-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portal-quick-card-row a {
  display: grid;
  gap: 3px;
  padding: 18px;
}

.portal-quick-card-row strong {
  color: #14243a;
  font-size: 17px;
}

.portal-quick-card-row span {
  color: #f08212;
  font-size: 13px;
  font-weight: 700;
}

.section-head h2,
.section-head.compact-head h2 {
  border-left-color: #2ea7f0;
}

.text-link {
  color: #1677d2;
}

.hot-section-head,
.hot-resource-list,
.category-entry-grid,
.board-directory,
.board-directory.compact,
.school-region-grid,
.school-region-grid-full,
.school-home-intro,
.post-grid.portal-list,
.resource-list,
.title-only-list {
  border-color: #d7e8f6;
}

.entry-icon,
.post-card h3::before {
  background: #2ea7f0;
}

.type-chip.material {
  color: #1677d2;
  background: #eaf5ff;
}

@media (max-width: 980px) {
  .portal-hero-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .portal-hero-copy {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .portal-hero-inner {
    padding: 14px;
  }

  .portal-hero-copy {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .portal-hero-copy h1 {
    font-size: 30px;
  }

  .countdown-digits span {
    width: 48px;
    height: 64px;
    font-size: 42px;
  }
}

/* Shangan hero redesign v3: compact portal lead module. */
.portal-hero {
  max-width: 1180px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #cfe5f7;
  border-top: 0 !important;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(231, 247, 255, .95) 0%, rgba(247, 251, 255, .94) 52%, rgba(232, 244, 255, .96) 100%),
    radial-gradient(circle at 84% 8%, rgba(90, 190, 255, .24), transparent 30%);
  box-shadow: 0 14px 34px rgba(30, 106, 184, .12);
}

.portal-hero-inner {
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  padding: 26px 30px;
  align-items: center;
}

.portal-hero-copy {
  min-height: 0;
  padding: 22px 8px 22px 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow.dark {
  margin-bottom: 8px;
  border-color: #bfe0fb;
  color: #1677d2;
  background: rgba(255, 255, 255, .68);
}

.portal-hero-copy h1 {
  margin: 8px 0 10px;
  max-width: 680px;
  color: #10233d;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

.portal-hero-copy p {
  max-width: 710px;
  color: #52667f;
  font-size: 16px;
  line-height: 1.7;
}

.portal-search {
  max-width: 700px;
  margin-top: 22px;
  border: 1px solid #70bdf4;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(40, 137, 220, .13);
}

.portal-search input {
  padding: 15px 18px;
}

.portal-search button {
  min-width: 126px;
  background: linear-gradient(135deg, #2da8f0, #1677d2);
}

.portal-stats {
  margin-top: 14px;
  gap: 10px;
}

.portal-stats span {
  padding: 9px 14px;
  border-color: #d3e7f7;
  border-radius: 9px;
  background: rgba(255, 255, 255, .66);
}

.portal-side-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.exam-countdown-card,
.exam-timeline-card,
.portal-quick-card-row a {
  border: 1px solid #d7e9f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 26px rgba(31, 112, 190, .09);
  backdrop-filter: none;
}

.exam-countdown-card {
  padding: 18px 18px 16px;
  text-align: left;
}

.countdown-label {
  font-size: 16px;
}

.countdown-label strong {
  font-size: 18px;
}

.countdown-digits {
  justify-content: flex-start;
  gap: 8px;
  margin: 12px 0 8px;
}

.countdown-digits span {
  width: 48px;
  height: 58px;
  border-radius: 10px;
  font-size: 40px;
  box-shadow: inset 0 -10px 18px rgba(46, 167, 240, .12), 0 6px 14px rgba(40, 119, 190, .08);
}

.countdown-digits em {
  padding-bottom: 7px;
  font-size: 15px;
}

.exam-countdown-card p {
  color: #718299;
  font-size: 12px;
  line-height: 1.45;
}

.exam-timeline-card {
  padding: 16px 18px;
}

.timeline-title {
  margin-bottom: 12px;
  font-size: 19px;
}

.timeline-list {
  gap: 9px;
  max-height: 146px;
  padding-left: 15px;
}

.timeline-item {
  gap: 6px;
}

.timeline-item strong {
  min-width: 38px;
  font-size: 15px;
}

.timeline-item span {
  padding: 3px 8px;
  font-size: 12px;
}

.portal-quick-card-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portal-quick-card-row a {
  min-height: 0;
  padding: 14px 15px;
}

.portal-quick-card-row strong {
  font-size: 15px;
}

.portal-quick-card-row span {
  font-size: 12px;
}

@media (max-width: 980px) {
  .portal-hero-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .portal-hero-copy {
    padding: 18px 4px;
  }
}

@media (max-width: 760px) {
  .portal-hero {
    border-radius: 14px;
  }

  .portal-hero-inner {
    padding: 16px;
    gap: 16px;
  }

  .portal-hero-copy h1 {
    font-size: 29px;
  }

  .portal-search {
    flex-direction: column;
  }

  .portal-search button {
    width: 100%;
    min-height: 46px;
  }
}

/* Shangan hero redesign v4: thin lead with four core cards. */
.portal-hero {
  margin-top: 10px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f4fbff 0%, #eef8ff 48%, #f8fcff 100%);
  box-shadow: 0 10px 26px rgba(38, 121, 207, .1);
}

.portal-hero-inner {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  padding: 18px 22px;
  align-items: center;
}

.portal-hero-copy {
  padding: 10px 0 10px 6px;
}

.portal-hero-copy h1 {
  margin: 8px 0 8px;
  font-size: 31px;
  line-height: 1.16;
}

.portal-hero-copy p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
}

.portal-search {
  max-width: 720px;
  margin-top: 15px;
  border-radius: 12px;
}

.portal-search input {
  padding: 13px 16px;
}

.portal-search button {
  min-width: 112px;
}

.portal-stats {
  margin-top: 10px;
}

.portal-stats span {
  padding: 7px 12px;
  font-size: 13px;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr .82fr 1.45fr;
  gap: 10px;
  max-width: 860px;
  margin-top: 12px;
}

.hero-feature-card {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 12px 13px;
  border: 1px solid #d7e9f8;
  border-radius: 13px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 18px rgba(31, 112, 190, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hero-feature-card:hover {
  transform: translateY(-2px);
  border-color: #8bcaf7;
  box-shadow: 0 12px 24px rgba(31, 112, 190, .11);
}

.hero-feature-card span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #1677d2;
  background: #eaf5ff;
  font-size: 13px;
  font-weight: 800;
}

.hero-feature-card strong {
  color: #10233d;
  font-size: 15px;
  line-height: 1.35;
}

.hero-feature-card em {
  color: #f08212;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.feature-library {
  background: linear-gradient(135deg, rgba(239, 248, 255, .95), rgba(255, 255, 255, .82));
}

.feature-jiaogao {
  border-color: #ffd8a8;
  background: linear-gradient(135deg, rgba(255, 251, 242, .96), rgba(255, 255, 255, .84));
}

.feature-jiaogao span,
.feature-plan span {
  color: #e46f00;
  background: #fff2db;
}

.feature-plan {
  border-color: #ffd8a8;
  background: linear-gradient(135deg, rgba(255, 247, 235, .95), rgba(255, 255, 255, .84));
}

.feature-member {
  border-color: #86efac;
  background: linear-gradient(135deg, #edfff7 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(18, 148, 88, .1);
}

.feature-member span {
  color: #058047;
  background: #dffbea;
}

.feature-member strong {
  color: #073f2a;
  font-size: 16px;
}

.feature-member em {
  color: #047857;
}

.portal-side-panel {
  gap: 10px;
}

.exam-countdown-card {
  padding: 13px 15px;
}

.countdown-label {
  font-size: 14px;
}

.countdown-label strong {
  font-size: 16px;
}

.countdown-digits {
  gap: 6px;
  margin: 9px 0 6px;
}

.countdown-digits span {
  width: 38px;
  height: 46px;
  border-radius: 9px;
  font-size: 32px;
}

.countdown-digits em {
  padding-bottom: 4px;
  font-size: 13px;
}

.exam-countdown-card p {
  font-size: 11px;
}

.exam-timeline-card {
  padding: 13px 15px;
}

.timeline-title {
  margin-bottom: 9px;
  font-size: 17px;
}

.timeline-list {
  max-height: 112px;
  gap: 7px;
}

.timeline-item strong {
  min-width: 34px;
  font-size: 14px;
}

.timeline-item span {
  padding: 2px 7px;
  font-size: 11px;
}

.portal-quick-card-row {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-hero-inner {
    grid-template-columns: 1fr;
  }

  .portal-side-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero-feature-grid,
  .portal-side-panel {
    grid-template-columns: 1fr;
  }

  .portal-hero-copy h1 {
    font-size: 27px;
  }
}

/* Homepage refinement v5: balanced time panel, featured resources and interactive subjects. */
.portal-hero-inner {
  align-items: stretch;
}

.portal-side-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.exam-countdown-card {
  flex: 0 0 auto;
}

.exam-timeline-card {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.timeline-list {
  flex: 1 1 auto;
  max-height: none;
}

.hot-resource-section {
  overflow: hidden;
  border: 1px solid #d9e8f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 82, 144, .06);
}

.hot-section-head {
  position: relative;
  padding: 16px 20px 14px;
  border: 0;
  background: linear-gradient(105deg, #eff8ff 0%, #ffffff 62%);
}

.hot-section-head::after {
  position: absolute;
  right: 155px;
  bottom: 13px;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7cc6ff);
  content: "";
}

.hot-section-head h2 {
  font-size: 23px;
}

.hot-section-head .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1677d2;
}

.hot-section-head .text-link::after {
  content: "\\2192";
  font-size: 17px;
  transition: transform .2s ease;
}

.hot-section-head .text-link:hover::after {
  transform: translateX(3px);
}

.hot-resource-list {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-top: 1px solid #e8f0f8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.hot-resource-list .post-card {
  position: relative;
  min-height: 114px;
  overflow: hidden;
  transition: background .2s ease, box-shadow .2s ease;
}

.hot-resource-list .post-card::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
  transition: background .2s ease, top .2s ease, bottom .2s ease;
}

.hot-resource-list .post-card:hover {
  z-index: 1;
  background: #f8fcff;
  box-shadow: inset 0 0 0 1px #bddfff;
}

.hot-resource-list .post-card:hover::before {
  top: 14px;
  bottom: 14px;
  background: #2498e9;
}

.hot-resource-list .post-card:first-child {
  background: linear-gradient(115deg, #fffdf7, #fff 72%);
}

.hot-resource-list .post-card:first-child::before {
  background: #f5a623;
}

.hot-resource-list .post-card-body {
  padding: 16px 19px 15px;
}

.hot-resource-list .meta-row {
  gap: 8px;
  color: #6c8198;
  font-size: 12px;
}

.hot-resource-list .type-chip {
  padding: 2px 8px;
  border-radius: 999px;
  color: #1677d2;
  background: #eaf5ff;
}

.hot-resource-list .post-card h3 {
  margin: 9px 0 0;
  font-size: 16px;
}

.hot-resource-list .post-card h3::before {
  width: 5px;
  height: 5px;
  background: #2498e9;
}

.hot-resource-list .post-card p {
  display: none;
}

.category-entry-section .category-entry-card {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

.category-entry-section .category-entry-card::before {
  position: absolute;
  right: 18px;
  bottom: 6px;
  color: currentColor;
  content: attr(data-logo);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  opacity: .045;
  transition: opacity .22s ease, transform .22s ease;
}

.category-entry-section .category-entry-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: #75bdf3;
  background: #fff;
  box-shadow: 0 16px 30px rgba(39, 125, 205, .16);
  filter: saturate(1.06);
}

.category-entry-section .category-entry-card:hover::before {
  opacity: .12;
  transform: translateX(-4px) scale(1.05);
}

.category-entry-section .category-entry-card:hover .entry-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 7px 14px rgba(44, 140, 223, .2);
}

.category-entry-section .entry-icon {
  transition: transform .22s ease, box-shadow .22s ease;
}

@media (max-width: 980px) {
  .portal-side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .exam-timeline-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hot-resource-section {
    border-radius: 10px;
  }

  .hot-section-head::after {
    display: none;
  }

  .portal-side-panel {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Homepage hot resources v6: slim editorial list with fresh blue rhythm. */
.hot-resource-section {
  border-color: #d9e9f7;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(35, 97, 154, .055);
}

.hot-section-head {
  min-height: 58px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #edf7ff 0%, #f8fcff 48%, #ffffff 100%);
}

.hot-section-head .eyebrow {
  padding: 2px 8px;
  border-color: #b9ddfa;
  color: #1677d2;
  background: rgba(255,255,255,.78);
  font-size: 12px;
}

.hot-section-head h2 {
  margin-top: 3px;
  padding-left: 8px;
  border-left-width: 3px;
  border-left-color: #2ea7f0;
  font-size: 20px;
}

.hot-section-head::after {
  display: none;
}

.hot-section-head .text-link {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f4ff;
  font-size: 13px;
}

.hot-section-head .text-link::after {
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.hot-section-head .text-link:hover {
  background: #d8edff;
}

.hot-section-head .text-link:hover::after {
  transform: translateX(2px) rotate(45deg);
}

.hot-resource-list {
  counter-reset: hot-rank;
  border-top-color: #dfeefa;
}

.hot-resource-list .post-card {
  min-height: 0;
  counter-increment: hot-rank;
  border-color: #e7f0f7;
}

.hot-resource-list .post-card:nth-child(4n + 1),
.hot-resource-list .post-card:nth-child(4n + 2) {
  background: #f7fbff;
}

.hot-resource-list .post-card:nth-child(4n + 3),
.hot-resource-list .post-card:nth-child(4n + 4) {
  background: #ffffff;
}

.hot-resource-list .post-card:first-child {
  background: linear-gradient(90deg, #fffaf0 0%, #f8fcff 100%);
}

.hot-resource-list .post-card::before {
  top: 12px;
  bottom: 12px;
  width: 2px;
}

.hot-resource-list .post-card::after {
  position: absolute;
  right: 14px;
  top: 50%;
  color: #9fc8e8;
  content: counter(hot-rank, decimal-leading-zero);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: .45;
  transform: translateY(-50%);
  transition: color .18s ease, opacity .18s ease;
}

.hot-resource-list .post-card:first-child::after {
  color: #ee9b22;
  opacity: .7;
}

.hot-resource-list .post-card:hover {
  background: #eef8ff;
  box-shadow: inset 0 0 0 1px #b9ddfa;
}

.hot-resource-list .post-card:hover::before {
  top: 9px;
  bottom: 9px;
}

.hot-resource-list .post-card:hover::after {
  color: #1677d2;
  opacity: .85;
}

.hot-resource-list .post-card-body {
  padding: 10px 52px 10px 16px;
}

.hot-resource-list .meta-row {
  min-height: 20px;
  gap: 7px;
  font-size: 11px;
  line-height: 1.25;
}

.hot-resource-list .type-chip {
  min-height: 20px;
  padding: 1px 7px;
  font-size: 11px;
}

.hot-resource-list .post-card h3 {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.hot-resource-list .post-card h3::before {
  width: 4px;
  height: 4px;
  margin-right: 6px;
}

@media (max-width: 760px) {
  .hot-resource-list .post-card-body {
    padding-right: 44px;
  }

  .hot-resource-list .post-card::after {
    right: 12px;
    font-size: 16px;
  }
}

/* Homepage width alignment v7. */
.portal-hero {
  max-width: 1140px;
}

.hot-resource-section {
  max-width: 1140px;
  padding-right: 0;
  padding-left: 0;
}

.hot-resource-list .post-card-body {
  padding-top: 12px;
  padding-bottom: 12px;
}

.hot-resource-list .meta-row {
  min-height: 21px;
  line-height: 1.35;
}

.hot-resource-list .post-card h3 {
  margin-top: 5px;
  line-height: 1.42;
}

@media (max-width: 1180px) {
  .portal-hero,
  .hot-resource-section {
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 760px) {
  .portal-hero,
  .hot-resource-section {
    max-width: calc(100% - 28px);
  }
}

/* Membership page refinement v1. */
.page-hero.member {
  max-width: 1140px;
  margin-top: 22px;
  padding: 42px 26px;
  min-height: auto;
}

.page-hero.member h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

.page-hero.member p {
  max-width: 840px;
  font-size: 16px;
  line-height: 1.75;
}

.page-hero.member .status-pill {
  margin-top: 14px;
  font-size: 14px;
}

.member-proof-grid,
.two-column {
  max-width: 1140px;
}

.member-proof-card {
  padding: 18px 20px;
}

.member-proof-card strong {
  font-size: 17px;
}

.member-proof-card p {
  line-height: 1.7;
}

.benefits h2,
.form-panel h2 {
  margin-top: 0;
  font-size: 24px;
  line-height: 1.3;
}

.price {
  font-size: 34px;
}

.auto-pay-price {
  font-size: 30px;
}

@media (max-width: 1180px) {
  .page-hero.member,
  .member-proof-grid,
  .two-column {
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 760px) {
  .page-hero.member,
  .member-proof-grid,
  .two-column {
    max-width: calc(100% - 28px);
  }

  .page-hero.member {
    padding: 30px 18px;
  }

  .page-hero.member h1 {
    font-size: 30px;
  }

  .page-hero.member p {
    font-size: 15px;
  }
}


/* Membership gallery v1. */
.member-gallery-section {
  max-width: 1140px;
  margin-top: 0;
  padding-top: 18px;
}

.member-gallery-head {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 72%, #fffaf0 100%);
}

.member-gallery-head h2 {
  margin: 10px 0 6px;
  color: #102033;
  font-size: 26px;
  line-height: 1.25;
}

.member-gallery-head p {
  max-width: 780px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.member-gallery-grid {
  columns: 4 220px;
  column-gap: 14px;
}

.member-gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid #dce8f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 47, 104, .065);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.member-gallery-item:hover {
  border-color: #9bcdf5;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .12);
  transform: translateY(-3px);
}

.member-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: #f8fafc;
}

.member-gallery-item figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #0f355e;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
}

@media (max-width: 1180px) {
  .member-gallery-section {
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 760px) {
  .member-gallery-section {
    max-width: calc(100% - 28px);
    padding-right: 0;
    padding-left: 0;
  }

  .member-gallery-head {
    padding: 18px;
  }

  .member-gallery-head h2 {
    font-size: 22px;
  }

  .member-gallery-grid {
    columns: 2 150px;
    column-gap: 10px;
  }

  .member-gallery-item {
    margin-bottom: 10px;
  }
}

/* Homepage summit direction v1: selected Product Design option 1. */
:root {
  --summit-navy: #04152f;
  --summit-navy-2: #08244b;
  --summit-blue: #2f7df6;
  --summit-blue-soft: #eaf3ff;
  --summit-gold: #f4c65d;
  --summit-ink: #142238;
}

body {
  color: var(--summit-ink);
  background: #f4f7fb;
}

.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;
}

.site-header {
  color: #fff;
  border-bottom: 1px solid rgba(150, 181, 224, .14);
  background: rgba(3, 18, 42, .97);
  box-shadow: 0 8px 24px rgba(1, 12, 31, .18);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1224px;
  min-height: 68px;
  gap: 16px;
}

.brand,
.brand-word {
  color: #fff;
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.main-nav {
  justify-content: center;
}

.main-nav a,
.mobile-nav a {
  position: relative;
  border-radius: 6px;
  color: #b9c7db;
  background: transparent;
}

.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.main-nav a.active,
.main-nav a:hover,
.mobile-nav a.active,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  background: #3d8cff;
}

.nav-search {
  height: 34px;
  border-color: rgba(173, 195, 226, .28);
  background: rgba(255, 255, 255, .08);
}

.nav-search input {
  width: 132px;
  color: #fff;
  background: transparent;
}

.nav-search input::placeholder {
  color: #9eafc6;
}

.nav-search button {
  color: #d9e7fa;
  background: rgba(47, 125, 246, .2);
}

.ghost-link,
.primary-link {
  border-color: rgba(178, 199, 229, .28);
  color: #e8f0fb;
  background: rgba(255, 255, 255, .06);
}

.primary-link {
  border-color: #377ff0;
  color: #fff;
  background: #2f7df6;
}

.mobile-toggle {
  color: #fff;
  border: 1px solid rgba(178, 199, 229, .24);
  background: rgba(255, 255, 255, .06);
}

.mobile-nav {
  border-top: 1px solid rgba(178, 199, 229, .14);
  background: #061a38;
}

.home-immersive-hero,
.home-tool-strip,
.home-momentum-grid,
body:has(.home-immersive-hero) .portal-section,
body:has(.home-immersive-hero) .school-index-section {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.home-immersive-hero {
  position: relative;
  min-height: 570px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #163a69;
  border-radius: 12px;
  color: #fff;
  background-color: var(--summit-navy);
  background-image: url('/static/images/hero-summit-route-v2.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 56px rgba(4, 23, 53, .2);
}

.home-immersive-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(1, 15, 37, .18);
  content: "";
  pointer-events: none;
}

.home-immersive-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 34px;
  min-height: 570px;
  padding: 54px 44px 34px;
}

.home-hero-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-hero-kicker {
  color: #cad9ee;
  font-size: 14px;
  font-weight: 700;
}

.home-hero-main h1 {
  max-width: 720px;
  margin: 12px 0 10px;
  color: #fff;
  font-size: 48px;
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .26);
}

.home-hero-main h1 .home-title-highlight {
  color: var(--summit-gold);
}

.home-hero-main > p {
  max-width: 650px;
  margin: 0;
  color: #c5d3e7;
  font-size: 16px;
  line-height: 1.75;
}

.home-hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  width: min(590px, 100%);
  height: 54px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.home-hero-search input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #1f2e42;
  background: #fff;
  font-size: 15px;
}

.home-hero-search button {
  border: 0;
  color: #fff;
  background: #2f7df6;
  cursor: pointer;
  font-weight: 800;
  transition: background .18s ease;
}

.home-hero-search button:hover,
.home-hero-search button:focus-visible {
  background: #1f68d8;
}

.home-hot-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
  color: #9fb0c8;
  font-size: 12px;
}

.home-hot-keywords a {
  padding: 3px 9px;
  border: 1px solid rgba(173, 195, 226, .2);
  border-radius: 999px;
  color: #bdcbe0;
  background: rgba(4, 23, 53, .48);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.home-hot-keywords a:hover {
  border-color: rgba(95, 157, 255, .65);
  color: #fff;
  background: rgba(47, 125, 246, .2);
}

.hero-route-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(750px, 100%);
  margin-top: auto;
  padding-top: 32px;
}

.hero-route-stages a {
  display: grid;
  min-width: 0;
  padding: 12px 12px 10px;
  border-top: 1px solid rgba(104, 166, 255, .45);
  border-radius: 0 0 6px 6px;
  background: rgba(3, 20, 47, .5);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-route-stages a:hover {
  border-color: var(--summit-gold);
  background: rgba(9, 39, 80, .84);
  transform: translateY(-3px);
}

.hero-route-stages i {
  color: #65a4ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.hero-route-stages strong {
  margin-top: 3px;
  color: #f7d37d;
  font-size: 15px;
}

.hero-route-stages span {
  overflow: hidden;
  margin-top: 2px;
  color: #afbed3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-member-panel {
  align-self: center;
  padding: 24px 22px 20px;
  border: 1px solid rgba(244, 198, 93, .72);
  border-radius: 10px;
  background: rgba(4, 24, 54, .91);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.member-panel-kicker {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #f8d982;
  background: rgba(244, 198, 93, .1);
  font-size: 12px;
  font-weight: 800;
}

.home-member-panel h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.38;
}

.home-member-panel p {
  margin: 0;
  color: #b8c6da;
  font-size: 13px;
  line-height: 1.7;
}

.home-member-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.home-member-panel li {
  position: relative;
  padding-left: 20px;
  color: #d9e4f2;
  font-size: 13px;
}

.home-member-panel li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #f3c75f;
  border-radius: 50%;
  content: "";
}

.member-panel-cta {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f7d77f;
  border-radius: 7px;
  color: #3a2804;
  background: #f4c65d;
  box-shadow: 0 10px 24px rgba(244, 198, 93, .2);
  font-weight: 850;
  transition: background .18s ease, transform .18s ease;
}

.member-panel-cta:hover {
  background: #ffdb80;
  transform: translateY(-2px);
}

.home-member-panel small {
  display: block;
  margin-top: 10px;
  color: #8fa5c1;
  font-size: 11px;
  text-align: center;
}

.home-tool-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 61, 108, .07);
}

.home-tool-strip a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid #e8edf4;
  transition: background .18s ease, box-shadow .18s ease;
}

.home-tool-strip a:last-child {
  border-right: 0;
}

.home-tool-strip a:hover {
  background: #f3f8ff;
  box-shadow: inset 0 -3px #2f7df6;
}

.home-tool-strip a > span {
  color: #2f7df6;
  font-size: 12px;
  font-weight: 800;
}

.home-tool-strip strong {
  overflow: hidden;
  color: #17253a;
  font-size: 15px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tool-strip em {
  color: #7a899d;
  font-size: 11px;
  font-style: normal;
}

.home-tool-strip .tool-member {
  background: #fffbef;
}

.home-tool-strip .tool-member > span,
.home-tool-strip .tool-member em {
  color: #a66a00;
}

.home-momentum-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.home-countdown-panel,
.home-timeline-panel {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 61, 108, .055);
}

.home-countdown-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  background: #f8fbff;
}

.home-countdown-panel > div:first-child {
  display: grid;
  gap: 2px;
}

.home-countdown-panel > div:first-child span {
  color: #2f7df6;
  font-size: 12px;
  font-weight: 800;
}

.home-countdown-panel > div:first-child strong {
  color: #17253a;
  font-size: 17px;
}

.home-countdown-panel .countdown-digits {
  gap: 4px;
  margin: 0;
}

.home-countdown-panel .countdown-digits span {
  width: 34px;
  height: 42px;
  border-color: #cfe1f7;
  border-radius: 7px;
  font-size: 27px;
  box-shadow: none;
}

.home-countdown-panel .countdown-digits em {
  padding-bottom: 4px;
  font-size: 12px;
}

.home-countdown-panel p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #7a899d;
  font-size: 11px;
}

.home-timeline-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.home-timeline-panel .timeline-title {
  margin: 0;
  white-space: nowrap;
  font-size: 17px;
}

.home-timeline-panel .timeline-list {
  display: flex;
  gap: 8px;
  max-height: none;
  overflow-x: auto;
  padding: 0 0 4px;
}

.home-timeline-panel .timeline-list::before,
.home-timeline-panel .timeline-item::before {
  display: none;
}

.home-timeline-panel .timeline-item {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto;
  gap: 3px;
  min-width: 92px;
  padding: 7px 10px;
  border-left: 1px solid #dbe8f6;
}

.home-timeline-panel .timeline-item strong {
  min-width: 0;
  color: #20314a;
  font-size: 13px;
}

.home-timeline-panel .timeline-item span {
  padding: 0;
  color: #6b7c91;
  background: transparent;
  font-size: 10px;
}

body:has(.home-immersive-hero) .portal-section {
  margin-top: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 61, 108, .055);
}

body:has(.home-immersive-hero) .section-head.compact-head {
  padding-top: 14px;
  padding-bottom: 12px;
}

body:has(.home-immersive-hero) .section-head.compact-head h2 {
  color: #17253a;
  font-size: 20px;
}

body:has(.home-immersive-hero) .eyebrow.dark {
  border-color: #cfe1f8;
  color: #2c71d6;
  background: #eef5ff;
}

body:has(.home-immersive-hero) .category-entry-card,
body:has(.home-immersive-hero) .board-group-card,
body:has(.home-immersive-hero) .school-region-card {
  border-color: #e3eaf3;
  border-radius: 8px;
}

.site-footer {
  margin-top: 34px;
  background: #061a38;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 13px;
  }

  .nav-search {
    display: none;
  }

  .home-immersive-inner {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 22px;
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 900px) {
  .home-immersive-hero,
  .home-tool-strip,
  .home-momentum-grid,
  body:has(.home-immersive-hero) .portal-section,
  body:has(.home-immersive-hero) .school-index-section {
    width: min(1180px, calc(100% - 28px));
  }

  .home-immersive-hero {
    min-height: 0;
    background-position: 62% center;
  }

  .home-immersive-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px 28px 28px;
  }

  .home-member-panel {
    width: min(520px, 100%);
    align-self: start;
  }

  .hero-route-stages {
    margin-top: 38px;
  }

  .home-tool-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tool-strip a:nth-child(2) {
    border-right: 0;
  }

  .home-tool-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid #e8edf4;
  }

  .home-momentum-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 60px;
    padding: 0 14px;
  }

  .brand-word {
    font-size: 18px;
  }

  .main-nav,
  .user-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: 7px;
  }

  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 10px 14px 16px;
  }

  .mobile-user-links {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(178, 199, 229, .14);
  }

  .mobile-user-links .nav-search {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
  }

  .mobile-user-links .nav-search input {
    width: 100%;
  }

  .home-immersive-hero {
    margin-top: 10px;
    border-radius: 10px;
    background-position: 68% center;
  }

  .home-immersive-hero::after {
    background: rgba(1, 15, 37, .38);
  }

  .home-immersive-inner {
    gap: 24px;
    padding: 30px 18px 20px;
  }

  .home-hero-main h1 {
    max-width: 460px;
    font-size: 34px;
    line-height: 1.2;
  }

  .home-hero-main > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .home-hero-search {
    grid-template-columns: minmax(0, 1fr) 78px;
    height: 48px;
    margin-top: 20px;
  }

  .home-hero-search input {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }

  .home-hot-keywords {
    gap: 6px;
  }

  .hero-route-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
    padding-top: 0;
  }

  .hero-route-stages a {
    padding: 10px;
  }

  .home-member-panel {
    padding: 20px 18px 17px;
  }

  .home-member-panel h2 {
    font-size: 20px;
  }

  .home-tool-strip a {
    padding: 15px;
  }

  .home-tool-strip strong {
    white-space: normal;
  }

  .home-countdown-panel {
    grid-template-columns: 1fr;
  }

  .home-countdown-panel .countdown-digits {
    justify-content: flex-start;
  }

  .home-timeline-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-timeline-panel .timeline-list {
    padding-bottom: 8px;
  }

  body:has(.home-immersive-hero) .portal-section {
    padding-right: 0;
    padding-left: 0;
  }

  body:has(.home-immersive-hero) .section-head.compact-head {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 520px) {
  .home-immersive-hero,
  .home-tool-strip,
  .home-momentum-grid,
  body:has(.home-immersive-hero) .portal-section,
  body:has(.home-immersive-hero) .school-index-section {
    width: calc(100% - 20px);
  }

  .home-hero-kicker {
    font-size: 12px;
  }

  .home-hero-main h1 {
    font-size: 30px;
  }

  .home-hot-keywords > span {
    width: 100%;
  }

  .home-tool-strip {
    grid-template-columns: 1fr;
  }

  .home-tool-strip a,
  .home-tool-strip a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e8edf4;
  }

  .home-tool-strip a:last-child {
    border-bottom: 0;
  }
}
/* Homepage summit mobile polish v2. */
.home-title-tail {
  color: #fff;
}

@media (max-width: 760px) {
  .home-title-tail {
    display: block;
  }

  .hero-route-stages {
    display: none;
  }

  .home-member-panel {
    margin-top: 4px;
    padding: 18px 16px 15px;
  }

  .home-member-panel h2 {
    margin: 11px 0 7px;
    font-size: 19px;
  }

  .home-member-panel p {
    font-size: 12px;
    line-height: 1.55;
  }

  .home-member-panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 13px 0;
  }

  .home-member-panel li {
    padding-left: 15px;
    font-size: 11px;
    line-height: 1.45;
  }

  .home-member-panel li::before {
    top: 5px;
    width: 6px;
    height: 6px;
  }

  .member-panel-cta {
    min-height: 42px;
  }
}
/* Homepage timeline scrollbar polish v3. */
.home-timeline-panel .timeline-list {
  scrollbar-width: none;
}

.home-timeline-panel .timeline-list::-webkit-scrollbar {
  display: none;
}
/* Homepage portal composition v4: full-bleed summit plus three-column resource gateway. */
body:has(.home-immersive-hero) main {
  overflow: hidden;
}

.home-immersive-hero {
  width: 100%;
  max-width: none;
  min-height: 520px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background-position: center 56%;
  box-shadow: 0 22px 52px rgba(4, 23, 53, .18);
}

.home-immersive-hero::after {
  background: linear-gradient(90deg, rgba(1, 14, 34, .68) 0%, rgba(1, 15, 37, .24) 56%, rgba(1, 15, 37, .48) 100%);
}

.home-immersive-inner {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: 44px 0 30px;
}

.home-tool-strip,
.home-momentum-grid,
.home-portal-dashboard,
body:has(.home-immersive-hero) .portal-section,
body:has(.home-immersive-hero) .school-index-section {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.home-tool-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 32px rgba(24, 61, 108, .09);
}

.home-momentum-grid {
  margin-top: 16px;
}

.home-portal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.18fr) minmax(270px, .9fr);
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
}

.home-portal-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 68, 116, .065);
}

.home-portal-head {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #e8eef6;
  background: #f8fbff;
}

.home-portal-head > div {
  display: grid;
  gap: 2px;
}

.home-portal-head span {
  color: #2f7df6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.home-portal-head h2 {
  margin: 0;
  color: #15243a;
  font-size: 20px;
  line-height: 1.25;
}

.home-portal-head > a {
  flex: 0 0 auto;
  color: #5e7390;
  font-size: 12px;
  font-weight: 700;
}

.home-portal-head > a:hover {
  color: #246bd3;
}

.home-hot-rows {
  display: grid;
}

.home-hot-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 10px;
  min-height: 56px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #edf1f6;
  transition: background .18s ease, padding-left .18s ease;
}

.home-hot-row:last-child {
  border-bottom: 0;
}

.home-hot-row:hover {
  padding-left: 18px;
  background: #f2f7ff;
}

.home-hot-rank {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #246bd3;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 900;
}

.home-hot-row:nth-child(-n + 3) .home-hot-rank {
  color: #a45b00;
  background: #fff1dc;
}

.home-hot-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-hot-copy strong {
  overflow: hidden;
  color: #1d2d44;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hot-copy small {
  overflow: hidden;
  color: #7d8ba0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hot-arrow {
  color: #9babc0;
  font-size: 22px;
  line-height: 1;
}

.home-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-subject-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 142px;
  align-content: center;
  align-items: start;
  padding: 16px 12px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  transition: background .18s ease, box-shadow .18s ease;
}

.home-subject-card:nth-child(3n) {
  border-right: 0;
}

.home-subject-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.home-subject-card:hover {
  background: #f2f7ff;
  box-shadow: inset 0 -3px #2f7df6;
}

.home-subject-code {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #256ed7;
  background: #eaf3ff;
  font-size: 14px;
  font-weight: 900;
}

.home-subject-card:nth-child(3n + 2) .home-subject-code {
  color: #0d7c61;
  background: #e8f8f2;
}

.home-subject-card:nth-child(3n) .home-subject-code {
  color: #a45b00;
  background: #fff2de;
}

.home-subject-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.home-subject-card strong {
  color: #1b2b42;
  font-size: 14px;
  line-height: 1.35;
}

.home-subject-card small {
  display: -webkit-box;
  overflow: hidden;
  color: #77879c;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-school-column {
  background: #fbfdff;
}

.home-school-filter {
  display: flex;
  gap: 7px;
  padding: 14px 14px 8px;
}

.home-school-filter a {
  padding: 5px 10px;
  border: 1px solid #d8e5f6;
  border-radius: 999px;
  color: #2869c5;
  background: #edf5ff;
  font-size: 11px;
  font-weight: 800;
}

.home-school-filter a:hover {
  border-color: #2f7df6;
  color: #fff;
  background: #2f7df6;
}

.home-school-quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px 14px 12px;
}

.home-school-quick-list a {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px 7px;
  border-bottom: 1px dashed #dfe7f1;
  transition: background .18s ease;
}

.home-school-quick-list a:nth-child(odd) {
  border-right: 1px dashed #dfe7f1;
}

.home-school-quick-list a:hover {
  background: #eef6ff;
}

.home-school-quick-list strong {
  overflow: hidden;
  color: #22344e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-school-quick-list span {
  color: #8b98aa;
  font-size: 10px;
}

.home-school-news {
  display: grid;
  gap: 0;
  margin: 0 14px 14px;
  padding-top: 11px;
  border-top: 1px solid #dfe7f1;
}

.home-school-news > strong {
  margin-bottom: 6px;
  color: #20314a;
  font-size: 13px;
}

.home-school-news > a {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 0;
}

.home-school-news > a span {
  color: #2f7df6;
  font-size: 10px;
}

.home-school-news > a strong {
  overflow: hidden;
  color: #586b84;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.home-immersive-hero) .board-directory-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.home-immersive-hero) .board-directory-section .section-head {
  margin-bottom: 10px;
  padding-right: 2px;
  padding-left: 2px;
  border: 0;
  background: transparent;
}

body:has(.home-immersive-hero) .board-directory-grid {
  gap: 12px;
}

body:has(.home-immersive-hero) .board-group-card {
  background: #fff;
  box-shadow: 0 8px 22px rgba(29, 68, 116, .05);
}

@media (max-width: 1080px) {
  .home-immersive-inner {
    width: min(1180px, calc(100% - 32px));
    padding-right: 0;
    padding-left: 0;
  }

  .home-portal-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .home-school-column {
    grid-column: 1 / -1;
  }

  .home-school-quick-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-school-quick-list a:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .home-immersive-hero {
    width: 100%;
    min-height: 0;
    margin-top: 0;
    border-radius: 0;
    background-position: 68% center;
  }

  .home-immersive-inner {
    width: 100%;
    padding: 30px 18px 22px;
  }

  .home-tool-strip,
  .home-momentum-grid,
  .home-portal-dashboard,
  body:has(.home-immersive-hero) .portal-section,
  body:has(.home-immersive-hero) .school-index-section {
    width: calc(100% - 20px);
  }

  .home-tool-strip {
    margin-top: 10px;
    border-radius: 8px;
  }

  .home-portal-dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-school-column {
    grid-column: auto;
  }

  .home-portal-head {
    min-height: 60px;
  }

  .home-hot-row {
    min-height: 64px;
  }

  .home-subject-card {
    min-height: 118px;
    padding: 14px 10px;
  }

  .home-school-quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-school-quick-list a:nth-child(odd) {
    border-right: 1px dashed #dfe7f1;
  }
}

@media (max-width: 520px) {
  .home-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-subject-card,
  .home-subject-card:nth-child(3n) {
    border-right: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
  }

  .home-subject-card:nth-child(2n) {
    border-right: 0;
  }

  .home-subject-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .home-subject-card:last-child {
    border-right: 1px solid #edf1f6;
  }
}

/* Homepage timeline refinement: countdown inside subjects plus full-year schedule. */
.home-subject-countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe1f7;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 58%, #fff8eb 100%);
  box-shadow: 0 8px 18px rgba(47, 125, 246, .08);
}

.home-subject-countdown-card > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-subject-countdown-card span {
  color: #2f7df6;
  font-size: 11px;
  font-weight: 850;
}

.home-subject-countdown-card strong {
  color: #17253a;
  font-size: 16px;
  line-height: 1.25;
}

.home-subject-countdown-card p {
  margin: 0;
  color: #70839b;
  font-size: 10px;
  line-height: 1.45;
}

.home-subject-countdown-card .countdown-digits {
  gap: 3px;
  margin: 0;
}

.home-subject-countdown-card .countdown-digits span {
  width: 28px;
  height: 36px;
  border-color: #cfe1f7;
  border-radius: 7px;
  color: #15243a;
  font-size: 23px;
  box-shadow: none;
}

.home-subject-countdown-card .countdown-digits em {
  color: #17253a;
  font-size: 11px;
}

.home-year-timeline-grid {
  display: block;
}

.home-year-timeline-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 54%, #eef6ff 100%);
}

.home-year-timeline-panel .timeline-title {
  display: grid;
  align-content: center;
  gap: 6px;
  margin: 0;
  white-space: normal;
  color: #17253a;
  font-size: 20px;
  line-height: 1.25;
}

.home-year-timeline-panel .timeline-title::before {
  content: "SCHEDULE";
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2f7df6;
  background: #eaf3ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.home-year-timeline-panel .timeline-title span {
  color: #f28a00;
}

.year-timeline-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.year-timeline-item {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  min-height: 96px;
  padding: 12px 10px 10px;
  border: 1px solid #dfeaf7;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.year-timeline-item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2f9de8;
  box-shadow: 0 0 0 4px rgba(47, 157, 232, .12);
}

.year-timeline-item:hover {
  transform: translateY(-2px);
  border-color: #92c5ff;
  box-shadow: 0 8px 18px rgba(47, 125, 246, .12);
}

.year-timeline-item strong {
  color: #16263d;
  font-size: 15px;
  line-height: 1.2;
}

.year-timeline-item span {
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  color: #4f6680;
  background: #f0f6ff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.year-timeline-item:nth-child(3n + 2) span {
  background: #fff4df;
}

.year-timeline-item:nth-child(3n) span {
  background: #edf9f3;
}

@media (max-width: 1080px) {
  .home-subject-countdown-card {
    grid-template-columns: 1fr;
  }

  .home-year-timeline-panel {
    grid-template-columns: 1fr;
  }

  .year-timeline-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-subject-countdown-card {
    margin: 10px;
    padding: 12px;
  }

  .year-timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-timeline-item {
    min-height: 90px;
  }
}
/* Article readability improvements for pasted instructions and member resource steps. */
.resource-title-card p {
  max-width: 860px;
  line-height: 1.8;
  white-space: pre-line;
}

.resource-preview-body ul,
.resource-preview-body ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 20px;
  padding-left: 24px;
  color: #374151;
  line-height: 1.85;
}

.resource-preview-body li {
  padding-left: 4px;
}

.resource-preview-body ol li::marker {
  color: #2563eb;
  font-weight: 800;
}

.resource-preview-body ul li::marker {
  color: #f59e0b;
}
/* Product Design pass: compact full-width banner for annual exam timeline. */
.home-year-timeline-grid {
  margin-top: 14px;
}

.home-year-timeline-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #cfe1f8;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(244,249,255,.94) 38%, rgba(233,246,255,.96) 100%);
  box-shadow: 0 12px 26px rgba(28, 82, 146, .075);
}

.home-year-timeline-panel .timeline-title {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 104px;
  margin: 0;
  padding: 0 18px 0 4px;
  border-right: 1px solid #d8e8fa;
  color: #15243a;
  font-size: 22px;
  line-height: 1.18;
  white-space: normal;
}

.home-year-timeline-panel .timeline-title::before {
  content: "TIME PLAN";
  width: max-content;
  padding: 5px 9px;
  border: 1px solid #cfe1f8;
  border-radius: 999px;
  color: #246bd3;
  background: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-year-timeline-panel .timeline-title span {
  color: #f59e0b;
}

.year-timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  padding: 8px 0 6px;
}

.year-timeline-list::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 10px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8cc8ff, #f7c66c, #7ed8b5);
}

.year-timeline-item {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  transition: transform .18s ease;
}

.year-timeline-item::before {
  content: "";
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  display: block;
  width: 12px;
  height: 12px;
  margin: 20px auto 1px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #2f9de8;
  box-shadow: 0 0 0 4px rgba(47, 157, 232, .13);
}

.year-timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.year-timeline-item strong {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 999px;
  color: #16263d;
  background: #fff;
  font-size: 13px;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(38, 97, 168, .08);
}

.year-timeline-item span {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 76px;
  padding: 0;
  border-radius: 0;
  color: #60748d;
  background: transparent !important;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.year-timeline-item:nth-child(3n + 2)::before {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
}

.year-timeline-item:nth-child(3n)::before {
  background: #18b885;
  box-shadow: 0 0 0 4px rgba(24, 184, 133, .14);
}

@media (max-width: 1080px) {
  .home-year-timeline-panel {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .year-timeline-list {
    overflow-x: auto;
    grid-template-columns: repeat(12, 86px);
    padding-bottom: 10px;
  }
}

@media (max-width: 760px) {
  .home-year-timeline-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .home-year-timeline-panel .timeline-title {
    min-height: 0;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid #d8e8fa;
    font-size: 20px;
  }

  .year-timeline-list {
    grid-template-columns: repeat(12, 82px);
  }
}
/* Admin readability and traffic analytics */
.admin-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  border: 1px solid #dbe7f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.stat-card span {
  color: #1f3f66;
  font-weight: 800;
  letter-spacing: 0;
}

.stat-card strong {
  color: #0b2141;
  font-weight: 900;
}

.stat-card em {
  display: block;
  margin-top: 4px;
  color: #2563eb;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.stat-card.highlight {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 58%, #fff7ed 100%);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title-row h2 {
  margin: 2px 0 0;
  color: #102033;
}

.panel-title-row p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 14px;
}

.admin-traffic-panel table strong {
  color: #0b2141;
}

table th {
  color: #0f172a;
  font-weight: 800;
}

table td {
  color: #1f2937;
}

table td span {
  color: #64748b;
}

@media (max-width: 1100px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}