:root {
  --bg: #f5f1eb;
  --paper: #fffdf9;
  --panel: #ffffff;
  --text: #1f2430;
  --muted: #6e7683;
  --line: rgba(140, 96, 72, 0.12);
  --brand: #9f1d22;
  --brand-deep: #751115;
  --accent: #d69b52;
  --green: #1e9d63;
  --shadow: 0 18px 40px rgba(55, 28, 20, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(214, 155, 82, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f1ea 0%, #f3efe9 30%, #f6f3ee 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(112, 17, 21, 0.92);
  box-shadow: 0 8px 30px rgba(80, 14, 17, 0.2);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #c13d35, #7b1318);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand__text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.brand__text small {
  display: block;
  margin-top: 4px;
  opacity: 0.78;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.searchbar {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-link {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

.auth-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.auth-link--soft {
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-link--button {
  appearance: none;
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  background: transparent;
  font-size: 14px;
}

.searchbar button {
  border: 0;
  padding: 0 18px;
  height: 44px;
  border-radius: 999px;
  margin-right: 4px;
  background: linear-gradient(135deg, #c23c34, #8f161a);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.headline-band {
  padding: 16px 0 0;
}

.headline-band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.headline-band__label,
.headline-band__meta,
.headline-band__ticker {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.headline-band__label {
  color: var(--brand);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 16px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.headline-band__ticker {
  padding: 12px 18px;
  border-radius: 16px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headline-band__meta {
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.main {
  padding: 18px 0 34px;
}

.card,
.panel,
.section,
.article,
.page-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 360px;
  gap: 20px;
}

.hero-lead {
  overflow: hidden;
  border-radius: 30px;
  min-height: 620px;
}

.hero-lead__main {
  position: relative;
  min-height: 430px;
}

.hero-lead__main-link {
  display: block;
  position: relative;
  height: 100%;
}

.hero-lead__main img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-lead__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 30px 26px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 28, 0.88));
}

.hero-lead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}

.hero-lead__overlay h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
}

.hero-lead__overlay p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-lead__meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.hero-lead__nav {
  position: absolute;
  inset: auto 24px 22px auto;
  display: flex;
  gap: 10px;
}

.hero-lead__arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.hero-lead__arrow:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-lead__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(159, 29, 34, 0.08);
}

.hero-lead__item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  min-height: 184px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 4px solid transparent;
}

.hero-lead__item.is-active {
  border-top-color: var(--brand);
}

.hero-lead__item img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-lead__item strong {
  line-height: 1.45;
  font-size: 14px;
}

.hero-lead__item small {
  color: var(--muted);
}

.hero-side {
  display: grid;
  gap: 20px;
}

.panel,
.section,
.article,
.page-shell {
  border-radius: 24px;
}

.panel,
.section {
  padding: 20px;
}

.market__title,
.signal-panel__head,
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.market__title strong,
.signal-panel__head h2,
.section__head h2,
.quick h2 {
  margin: 0;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.1;
}

.market__title span,
.signal-panel__head span,
.section__head a,
.section__eyebrow,
.article-crumb,
.page-hero__eyebrow {
  color: var(--muted);
  font-size: 13px;
}

.market__chart {
  margin-top: 16px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(159, 29, 34, 0.08), rgba(159, 29, 34, 0.02));
  overflow: hidden;
}

.market__stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.market__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.market__row:last-child {
  border-bottom: 0;
}

.market__row .name {
  font-weight: 700;
}

.market__row .price {
  color: var(--text);
}

.market__row .value {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: var(--green);
}

.signal-panel__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.signal-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(159, 29, 34, 0.08), rgba(214, 155, 82, 0.08));
}

.signal-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.signal-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.news-matrix {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 20px;
  margin-top: 22px;
}

.matrix-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.matrix-card--lead {
  display: grid;
  gap: 16px;
}

.matrix-card--lead img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
}

.matrix-card__label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.matrix-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.bullet-list {
  display: grid;
  gap: 14px;
}

.bullet-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bullet-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bullet-item strong {
  display: block;
  line-height: 1.55;
}

.bullet-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 22px;
}

.section__head {
  margin-bottom: 18px;
}

.section__titles {
  display: grid;
  gap: 8px;
}

.section__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section__tabs span,
.section__tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(159, 29, 34, 0.07);
  color: var(--muted);
  font-size: 13px;
}

.section__tabs .is-active,
.section__tabs a:hover {
  background: rgba(159, 29, 34, 0.12);
  color: var(--brand);
}

.section--split .section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 18px;
}

.story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.story__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.story__thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.story__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(159, 29, 34, 0.92);
}

.story__body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.28;
}

.story__body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.story__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.story__share {
  margin-left: auto;
  color: var(--brand);
  font-weight: 700;
}

.quick {
  padding: 20px;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-item img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-item strong {
  display: block;
  line-height: 1.45;
}

.mini-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 20px;
  margin-top: 22px;
}

.school-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.school-feature__lead {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px;
  border-radius: 20px;
  background: rgba(159, 29, 34, 0.04);
}

.school-feature__image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
}

.school-feature__content h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
}

.school-feature__content p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.school-feature__meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.school-feature__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(159, 29, 34, 0.04);
}

.school-feature__links a {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.school-feature__links a:nth-child(2n) {
  border-right: 0;
}

.school-feature__qr {
  padding: 16px;
  border-radius: 20px;
  background: rgba(159, 29, 34, 0.04);
  text-align: center;
}

.school-feature__qr strong {
  display: block;
  margin-top: 14px;
  line-height: 1.6;
}

.insight-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.insight-side__cover {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(159, 29, 34, 0.08), rgba(214, 155, 82, 0.12));
}

.insight-side__cover img {
  width: 100%;
  border-radius: 14px;
}

.insight-side__tag {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-card {
  position: relative;
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  min-height: 220px;
  overflow: hidden;
}

.qr-grid {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 20%, #111 0 9px, transparent 10px),
    radial-gradient(circle at 80% 20%, #111 0 9px, transparent 10px),
    radial-gradient(circle at 20% 80%, #111 0 9px, transparent 10px),
    repeating-linear-gradient(0deg, #111 0 4px, #fff 4px 8px),
    repeating-linear-gradient(90deg, #111 0 4px, #fff 4px 8px);
  background-size:
    62px 62px,
    62px 62px,
    62px 62px,
    22px 22px,
    22px 22px;
  background-position:
    16px 16px,
    calc(100% - 78px) 16px,
    16px calc(100% - 78px),
    0 0,
    0 0;
}

.qr-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #b32023, #7c1116);
  box-shadow: 0 12px 30px rgba(159, 29, 34, 0.18);
}

.page-shell {
  margin-top: 10px;
  padding: 24px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 3vw, 44px);
}

.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(159, 29, 34, 0.06);
  color: var(--muted);
  font-size: 14px;
}

.category-chip.is-active,
.category-chip:hover {
  background: var(--brand);
  color: #fff;
}

.page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 320px;
  gap: 20px;
  align-items: start;
}

.page__content {
  display: grid;
  gap: 16px;
}

.story--list {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.article {
  padding: 28px;
}

.article__badge {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article__title {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
}

.article__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
}

.article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  margin: 22px 0;
}

.article__body {
  display: grid;
  gap: 18px;
  font-size: 17px;
  line-height: 1.95;
}

.article__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(159, 29, 34, 0.08);
}

.article__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.article__pager {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(159, 29, 34, 0.05);
}

.article__pager span {
  color: var(--muted);
  font-size: 12px;
}

.article__pager strong {
  line-height: 1.5;
}

.article__pager.is-empty {
  color: var(--muted);
}

.quick-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.empty-state {
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(159, 29, 34, 0.05);
}

.auth-shell,
.publish-shell {
  padding: 32px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: start;
}

.auth-copy h1,
.publish-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.auth-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 56ch;
}

.auth-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(159, 29, 34, 0.04);
}

.auth-tabs {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(159, 29, 34, 0.08);
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--brand);
}

.editor-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(159, 29, 34, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.field textarea {
  line-height: 1.8;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #c23c34, #8f161a);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-button--soft {
  color: var(--brand);
  background: rgba(159, 29, 34, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.system-note {
  display: inline-flex;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(159, 29, 34, 0.06);
  color: var(--brand);
  line-height: 1.7;
}

.publish-hero {
  align-items: center;
}

.footer {
  margin-top: 28px;
  padding: 30px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(112, 17, 21, 0.98), rgba(80, 12, 15, 0.98));
  color: #fff;
}

.footer--portal {
  background: #f5f5f5;
  padding-top: 40px;
}

.footer-portal {
  background: #fff;
  padding: 34px 34px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.footer-portal__links {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid #ececec;
}

.footer-portal__brand {
  min-height: 110px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ead9d9;
}

.footer-portal__logo {
  color: var(--brand);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-portal__friends .footer__friend {
  color: var(--brand);
  margin-bottom: 14px;
}

.footer-portal__friends .footer__nav a {
  color: #666;
  background: transparent;
  padding: 2px 0;
  border-radius: 0;
}

.footer-portal__friends .footer__nav a:hover {
  color: var(--brand);
  background: transparent;
}

.footer-portal__menu {
  margin-top: 24px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #444;
}

.footer-portal__menu a,
.footer-portal__menu span {
  position: relative;
}

.footer-portal__notice {
  margin-top: 24px;
  color: #8f8f8f;
  line-height: 1.85;
  font-size: 14px;
}

.footer-portal__notice p {
  margin: 0 0 6px;
}

.footer-portal__badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-portal__badges span {
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: #fff;
  color: #777;
  font-size: 13px;
}

.footer__title {
  font-size: 30px;
  font-weight: 800;
}

.footer__friend {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.footer__desc,
.footer__meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer__legal {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  font-size: 14px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.footer__nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer__nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.footer__actions a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .topbar__inner,
  .hero-grid,
  .news-matrix,
  .insight-grid,
  .school-feature__grid,
  .page__layout,
  .section--split .section__layout,
  .page-hero,
  .footer__grid,
  .footer-portal__links {
    grid-template-columns: 1fr;
  }

  .category__filters {
    justify-content: flex-start;
  }

  .footer-portal__brand {
    border-right: 0;
    border-bottom: 1px solid #ead9d9;
    padding-bottom: 18px;
  }
}

@media (max-width: 820px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    padding: 12px 0 16px;
  }

  .searchbar {
    width: 100%;
  }

  .topbar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-link {
    text-align: center;
  }

  .headline-band__inner,
  .story,
  .school-feature__lead,
  .article__nav,
  .auth-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-lead__rail {
    grid-template-columns: 1fr 1fr;
  }

  .footer-portal {
    padding: 22px 18px 20px;
  }

  .footer-portal__logo {
    font-size: 34px;
  }

  .footer-portal__badges {
    justify-content: flex-start;
  }

  .hero-lead__main img {
    height: 320px;
  }

  .story__thumb img {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100vw - 16px, 1320px);
  }

  .hero-lead__rail {
    grid-template-columns: 1fr;
  }

  .brand__text strong {
    font-size: 21px;
  }

  .market__row {
    grid-template-columns: 1fr;
  }
}
