:root {
  --bg: #f5f6f7;
  --card: #ffffff;
  --text: #23272b;
  --muted: #6b7280;
  --line: #e3e6e9;
  --blue: #7f9bb3;
  --green: #8aa88f;
  --orange: #c2a07c;
  --purple: #9a8fb0;
  --radius: 6px;
  --container: 1180px;
  --content: 760px;
  --shadow: 0 1px 2px rgba(35, 39, 43, 0.05);
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #0f5c8c;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #0f5c8c;
  outline-offset: 2px;
}

/* ============ layout ============ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px 48px;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 20px 26px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
}

.footer-block h2 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-block p {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-nav ul,
.footer-help ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-help a {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-nav a:hover,
.footer-help a:hover {
  color: #0f5c8c;
}

.copyright {
  margin-top: 8px;
}

/* ============ components ============ */

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 18px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 12px 0 var(--text);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a.is-current {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #0f5c8c;
}

.breadcrumb-sep {
  color: #c3c8ce;
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  margin-bottom: 26px;
  max-width: var(--content);
}

.page-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.page-description {
  color: var(--muted);
  font-size: 15px;
}

.page-description a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

.page-description a:hover {
  border-bottom-color: #0f5c8c;
}

.section-head {
  margin-bottom: 18px;
  max-width: var(--content);
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
  padding-bottom: 1px;
}

.section-more a:hover {
  border-bottom-color: #0f5c8c;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.topic-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

.topic-fantasy .topic-tag::before,
.topic-tag--blue::before,
.topic-tag-blue::before,
.topic-card--blue .topic-tag::before {
  background: var(--blue);
}

.topic-daily .topic-tag::before,
.topic-tag--green::before,
.topic-tag-green::before,
.topic-card--green .topic-tag::before {
  background: var(--green);
}

.topic-action .topic-tag::before,
.topic-tag--orange::before,
.topic-tag-orange::before,
.topic-card--orange .topic-tag::before {
  background: var(--orange);
}

.topic-mystery .topic-tag::before,
.topic-tag--purple::before,
.topic-tag-purple::before,
.topic-card--purple .topic-tag::before {
  background: var(--purple);
}

.data-table {
  font-size: 14px;
  background: var(--card);
}

.data-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 8px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.data-table thead th {
  background: #eef1f3;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #fafbfc;
}

.data-table a {
  color: #0f5c8c;
}

.field-list {
  display: grid;
  gap: 12px;
}

.field-list dt {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.field-list dd {
  color: var(--muted);
  font-size: 14px;
}

.field-item {
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.field-item dt {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.field-item dd {
  color: var(--muted);
  font-size: 14px;
}

.step-list,
.path-steps {
  display: grid;
  gap: 14px;
}

.step-item,
.path-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #eef1f3;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-item h3,
.path-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p,
.path-step p {
  color: var(--muted);
  font-size: 14px;
}

.step-result {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.update-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-row img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.row-name {
  font-weight: 700;
  font-size: 14.5px;
}

.row-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-left: auto;
  text-align: right;
}

/* ============ home page ============ */

.fact-bar {
  background: #eef1f3;
  border-bottom: 1px solid var(--line);
}

.fact-bar p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

.home-main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.hero-summary {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-entry a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hero-entry a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.entry-name {
  font-weight: 700;
  font-size: 15px;
}

.entry-desc {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.hero-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cover-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card figcaption {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--muted);
}

.topics-overview,
.updates-overview,
.rank-and-fields,
.path-section,
.site-index {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.site-index {
  border-bottom: 0;
}

.topic-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-column.topic-daily {
  border-top-color: var(--green);
}

.topic-column.topic-action {
  border-top-color: var(--orange);
}

.topic-column.topic-mystery {
  border-top-color: var(--purple);
}

.topic-column h3 {
  font-size: 17px;
}

.topic-column > p {
  color: var(--muted);
  font-size: 13.5px;
}

.topic-items {
  display: grid;
  gap: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.topic-items li {
  font-size: 13.5px;
  color: var(--text);
  padding-left: 12px;
  position: relative;
}

.topic-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--line);
}

.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  background: #eef1f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.batch-id {
  font-weight: 700;
}

.batch-topics,
.batch-date {
  color: var(--muted);
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.update-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.update-date {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  display: grid;
  gap: 10px;
}

.update-list .update-row {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  align-items: baseline;
  flex-wrap: wrap;
}

.update-list .update-row .row-note {
  width: 100%;
  margin-left: 0;
  text-align: left;
}

.rank-fields-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rank-column h3,
.fields-column h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.rank-column {
  min-width: 0;
}

.fields-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.cell-rank {
  font-weight: 700;
  color: var(--muted);
  width: 56px;
}

.path-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-feedback {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.path-feedback a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

.path-feedback a:hover {
  border-bottom-color: #0f5c8c;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.index-column h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.index-column p {
  color: var(--muted);
  font-size: 13px;
}

/* ============ inner pages ============ */

.inner-main {
  display: block;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}

.page-main,
.main-column,
.content-column,
.layout-main {
  min-width: 0;
}

.page-sidebar,
.side-column,
.related-aside,
.layout-side {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.sidebar-block,
.side-block,
.aside-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.sidebar-block h2,
.side-block h2,
.aside-block h2 {
  font-size: 15px;
  margin-bottom: 8px;
}

.sidebar-block p,
.side-block p,
.aside-block p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 8px;
}

.sidebar-block p:last-child,
.side-block p:last-child,
.aside-block p:last-child {
  margin-bottom: 0;
}

.sidebar-link,
.side-link,
.aside-link {
  display: inline-block;
  font-size: 13.5px;
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
  padding-bottom: 1px;
  margin-top: 4px;
}

.sidebar-link:hover,
.side-link:hover,
.aside-link:hover {
  border-bottom-color: #0f5c8c;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  font-size: 13.5px;
  color: #0f5c8c;
}

.page-layout > .page-main > section,
.page-layout > .main-column > section,
.page-layout > .content-column > section,
.page-layout > .layout-main > section {
  margin-bottom: 30px;
}

.page-layout > .page-main > section:last-child,
.page-layout > .main-column > section:last-child,
.page-layout > .content-column > section:last-child,
.page-layout > .layout-main > section:last-child {
  margin-bottom: 0;
}

.page-layout > .page-main > section > h2,
.page-layout > .main-column > section > h2,
.page-layout > .content-column > section > h2,
.page-layout > .layout-main > section > h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-lead,
.section-intro,
.section-note {
  color: var(--muted);
  margin-bottom: 16px;
}

/* topics page */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-card--green {
  border-top-color: var(--green);
}

.topic-card--orange {
  border-top-color: var(--orange);
}

.topic-card--purple {
  border-top-color: var(--purple);
}

.topic-card h3 {
  font-size: 17px;
}

.topic-card > p {
  color: var(--muted);
  font-size: 14px;
}

.topic-scope {
  font-size: 13.5px;
  color: var(--text);
  background: #eef1f3;
  border-radius: 4px;
  padding: 8px 10px;
}

.topic-cover {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: auto;
}

.topic-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-cover figcaption {
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
}

.topic-table td,
.topic-table th {
  min-width: 110px;
}

.path-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.path-note a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

/* updates page */

.update-status {
  margin-bottom: 30px;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #eef1f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.status-label {
  font-size: 12.5px;
  color: var(--muted);
}

.status-value {
  font-size: 14.5px;
  font-weight: 700;
}

.update-list > .update-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.update-list > .update-group:last-child {
  margin-bottom: 0;
}

.group-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.group-batch {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}

.update-rows {
  display: grid;
  gap: 10px;
}

.update-rows .update-row {
  align-items: center;
}

.row-cover {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  font-weight: 700;
  font-size: 14.5px;
}

.update-rows .update-row .row-note {
  margin-left: auto;
}

.field-notes .field-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-more {
  margin-top: 16px;
  font-size: 14px;
}

.field-more a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

/* ranking page */

.rank-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 14px 0;
}

.rank-table th,
.rank-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.rank-table thead th {
  background: #eef1f3;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-num {
  font-weight: 700;
  color: var(--muted);
  width: 56px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.cover-thumb {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.rank-date {
  color: var(--muted);
  white-space: nowrap;
}

.rank-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.rank-note a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.criteria-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.criteria-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.criteria-item p {
  color: var(--muted);
  font-size: 14px;
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cross-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-green {
  border-top-color: var(--green);
}

.cross-orange {
  border-top-color: var(--orange);
}

.cross-purple {
  border-top-color: var(--purple);
}

.cross-item h3 {
  font-size: 15.5px;
}

.cross-item p {
  color: var(--muted);
  font-size: 13.5px;
  flex: 1;
}

.cross-item a {
  font-size: 13.5px;
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
  align-self: flex-start;
}

.cross-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.cross-note a {
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

/* guide page */

.guide-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 20px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.guide-fields .field-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.feedback-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-card p {
  color: var(--muted);
  font-size: 14px;
}

.feedback-need {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--text);
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.side-fields {
  border-left: 3px solid var(--blue);
}

/* 404 page */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  max-width: 620px;
  width: 100%;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 14px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--muted);
  margin-bottom: 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.button-primary,
.button-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  border: 1px solid var(--line);
}

.button-primary {
  background: #23272b;
  color: #ffffff;
  border-color: #23272b;
}

.button-primary:hover {
  background: #0f5c8c;
  border-color: #0f5c8c;
  color: #ffffff;
}

.button-plain {
  background: var(--card);
  color: var(--text);
}

.button-plain:hover {
  border-color: var(--blue);
  color: #0f5c8c;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.error-links a {
  font-size: 14px;
  color: #0f5c8c;
  border-bottom: 1px solid #b8cfdd;
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .topic-columns,
  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-groups,
  .criteria-list,
  .feedback-grid,
  .path-steps,
  .guide-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .rank-fields-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .site-main {
    padding: 20px 16px 40px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0;
  }

  .fact-bar p {
    padding: 8px 16px;
  }

  .footer-inner {
    padding: 26px 16px 22px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--blue);
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  .hero-entries,
  .hero-covers,
  .topic-columns,
  .topic-grid,
  .update-groups,
  .index-columns,
  .criteria-list,
  .cross-grid,
  .feedback-grid,
  .path-steps,
  .guide-steps .step-list,
  .status-bar,
  .field-notes .field-list,
  .guide-fields .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-list > .update-group {
    padding: 14px;
  }

  .update-rows .update-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .update-rows .update-row .row-note {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .topics-overview,
  .updates-overview,
  .rank-and-fields,
  .path-section,
  .site-index {
    padding: 26px 0;
  }

  .error-main {
    padding-top: 26px;
    padding-bottom: 40px;
  }

  .error-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table th,
  .data-table td,
  .rank-table th,
  .rank-table td {
    padding: 9px 10px;
    font-size: 13.5px;
  }
}
