:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --text: #f2f3f5;
  --text-dim: #a8adb7;
  --accent: #e8b04b;
  --line: #2a2d34;
  --radius: 6px;
  --container: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 0.6em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout
   ========================================================================== */

.clue-bar {
  margin: 0;
  padding: 0.55em 1.25rem;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(14, 15, 18, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  padding: 0.4em 0;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link.is-current {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background-color: var(--text);
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

.site-main {
  display: block;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-title,
.section-head h2 {
  font-size: 1.375rem;
  margin-bottom: 0.35em;
}

.section-desc,
.section-lead,
.section-intro {
  max-width: 62ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.section-foot {
  margin: 1.5rem 0 0;
}

.section-note {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

/* inner page shell */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-dim);
}

.page-header {
  padding: 1.1rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 0.5em;
}

.page-description {
  max-width: 68ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  padding: 2.25rem 0 1.5rem;
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto 1.75rem;
  padding: 0 1.25rem;
}

.footer-groups {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75em;
}

.footer-list li {
  margin-bottom: 0.45em;
}

.footer-list a {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin: 0;
}

.footer-copy {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* ==========================================================================
   components
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #15161a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #f0bd61;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* tables */

.data-table,
.channel-table,
.fields-table {
  font-size: 0.875rem;
}

.data-table th,
.data-table td,
.channel-table th,
.channel-table td,
.fields-table th,
.fields-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.channel-table thead th,
.fields-table thead th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.8125rem;
  background-color: var(--surface-2);
  white-space: nowrap;
}

.data-table tbody tr:hover,
.channel-table tbody tr:hover {
  background-color: var(--surface);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.channels-table td.num,
.channel-table td.cell-code {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
}

.channel-table-caption,
.table-caption {
  caption-side: top;
  padding: 0.8rem 0.85rem;
  text-align: left;
  color: var(--text-dim);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}

/* collections */

.collection-list,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.collection-card:hover {
  border-color: var(--accent);
}

.collection-cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--surface-2);
}

.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-name {
  font-size: 1.0625rem;
  margin-bottom: 0.5em;
}

.collection-basis,
.collection-order {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 0.5em;
}

.collection-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin: 0 0 0.5em;
}

.meta-label {
  color: var(--text);
}

.collection-body .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
  align-self: flex-start;
}

/* records */

.records-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.records-month .month-label {
  font-size: 0.875rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--line);
}

.record-list {
  margin: 0;
}

.record-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.record-item:last-child {
  border-bottom: 0;
}

.record-date {
  color: var(--accent);
  font-size: 0.8125rem;
}

.record-scope {
  color: var(--text);
  font-size: 0.8125rem;
}

.record-text {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.875rem;
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.25em;
}

.record-meta time {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8125rem;
}

/* field / boundary columns */

.field-columns,
.fields-columns,
.basis-columns,
.setting-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.field-col,
.boundary-col,
.basis-col,
.fields-col,
.setting-col {
  min-width: 0;
}

.col-title,
.subsection-title,
.setting-heading {
  font-size: 1rem;
  margin-bottom: 0.7em;
}

.field-table,
.fields-table {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.boundary-list li,
.basis-list li,
.check-list li,
.setting-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.6em;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.boundary-list li::before,
.basis-list li::before,
.setting-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.8125rem;
}

.basis-list strong {
  color: var(--text);
  font-weight: 600;
}

/* site index */

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.index-col {
  min-width: 0;
  padding: 1rem 1.05rem 1.15rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-col .col-title {
  font-size: 0.9375rem;
  margin-bottom: 0.4em;
}

.col-desc {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin-bottom: 0.7em;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* --- home --- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 3.25rem;
}

.hero-title {
  font-size: 2.125rem;
  margin-bottom: 0.6em;
}

.hero-desc {
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 0.75em;
}

.hero-note {
  color: var(--text-dim);
  font-size: 0.875rem;
  max-width: 46ch;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 1.5em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 0 1rem 0.9rem;
  font-size: 0.8125rem;
}

/* --- channels --- */

.channel-figure {
  margin: 2.25rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 0 1rem 0.9rem;
}

.map-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.map-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.map-channel {
  color: var(--text);
  font-weight: 600;
}

.map-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* --- collections --- */

.collection-section .collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.order-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.order-name {
  font-weight: 600;
  min-width: 180px;
}

.order-tip {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- guide --- */

.guide-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.guide-section:first-of-type {
  border-top: 0;
}

.prep-list {
  counter-reset: prep;
  margin: 0;
}

.prep-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.prep-item:last-child {
  border-bottom: 0;
}

.prep-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.0625rem;
  margin-bottom: 0.5em;
}

.prep-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
}

.prep-need,
.prep-check {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 0.35em;
}

.prep-label {
  color: var(--text);
  margin-right: 0.4em;
}

.guide-figure {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure .figure-caption {
  padding: 0 1rem 0.9rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-answer {
  padding: 0 0 1.1rem 1.6rem;
}

.faq-steps {
  counter-reset: faqstep;
  margin: 0;
}

.faq-steps li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5em;
  color: var(--text-dim);
  font-size: 0.875rem;
  counter-increment: faqstep;
}

.faq-steps li::before {
  content: counter(faqstep) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.setting-list {
  margin: 0;
}

.setting-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.setting-item:last-child {
  border-bottom: 0;
}

.setting-key {
  color: var(--text);
  min-width: 96px;
  font-weight: 600;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-links-label {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.875rem;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- records --- */

.record-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.record-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.record-figure figcaption {
  padding: 0 1rem 0.9rem;
}

.records-section,
.record-fields-section,
.record-read-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.record-month {
  margin-bottom: 2rem;
}

.record-month:last-child {
  margin-bottom: 0;
}

.month-title {
  font-size: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  padding-bottom: 0.5em;
  margin-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
}

.record-month .record-list .record-item {
  display: block;
  padding: 0.85rem 0;
}

.record-month .record-text {
  margin: 0;
}

.read-steps {
  counter-reset: readstep;
  margin: 0;
}

.read-step {
  position: relative;
  padding: 0.9rem 0 0.9rem 2.4rem;
  border-bottom: 1px solid var(--line);
  counter-increment: readstep;
}

.read-step:last-child {
  border-bottom: 0;
}

.read-step::before {
  content: counter(readstep);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.3em;
}

.read-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* --- 404 --- */

.error-main {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.error-panel {
  max-width: 620px;
  padding: 2.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 2.75rem;
  color: var(--accent);
  margin: 0 0 0.2em;
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.error-text {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--accent);
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding: 2.25rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .records-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.35rem;
  }

  .map-desc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .clue-bar {
    text-align: left;
    font-size: 0.75rem;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner,
  .footer-groups,
  .footer-top,
  .footer-copy {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .section-title,
  .section-head h2 {
    font-size: 1.1875rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .collection-list,
  .collection-grid,
  .collection-section .collection-grid,
  .field-columns,
  .fields-columns,
  .basis-columns,
  .setting-columns,
  .records-groups,
  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .error-panel {
    padding: 1.5rem;
  }

  .hero-figure img,
  .channel-figure img,
  .guide-figure img,
  .record-figure img {
    aspect-ratio: 16 / 10;
  }

  .order-name,
  .setting-key {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
