/* ==========================================================================
   每日大赛APP · awzc.top 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f5f8fa;
  --bg-panel: #ffffff;
  --bg-soft: #eef4f6;
  --text-main: #17242d;
  --text-sub: #5b6874;
  --text-faint: #7d8a95;
  --brand: #0f766e;
  --brand-dark: #0b5c56;
  --brand-soft: #e6f4f1;
  --border: #d8e2e8;
  --border-strong: #c3d1d9;
  --link: #1f5f99;
  --amber: #9a5b0b;
  --amber-soft: #fbf2e2;
  --danger: #9f3a38;
  --danger-soft: #fbeeed;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(23, 36, 45, 0.05);
  --font-sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shell-max: 1160px;
  --shell-pad: 24px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
  color: var(--text-main);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. layout —— 容器、页头、主体、页脚骨架
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* 页头 */
.site-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}

.brand:hover {
  color: var(--brand);
}

/* 主导航 */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.94rem;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand-soft);
}

.site-nav a.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主体 */
.site-main {
  display: block;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 20px;
}

/* 桌面两列布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.layout-main,
.content-main,
.page-main,
.page-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.layout-side,
.content-side,
.content-aside,
.page-side,
.page-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding-top: 40px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand p {
  margin-bottom: 8px;
}

.footer-logo {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-col h2 {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-sub);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-col p {
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text-faint);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 4px;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.page-lead,
.page-lede {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 72ch;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--bg-soft);
  color: var(--text-sub);
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-live,
.tag-active,
.tag-current {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: #c4e5df;
}

.tag-pending,
.tag-muted {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #f0dfc3;
}

.tag-done,
.tag-status {
  background: var(--bg-soft);
  color: var(--text-sub);
  border-color: var(--border);
}

.tag-archive {
  background: #eaf0f6;
  color: #2c5a80;
  border-color: #d3e0ec;
}

.tag-meta,
.tag-neutral {
  background: var(--bg-soft);
  color: var(--text-sub);
  border-color: var(--border);
}

.tag-row,
.title-tags,
.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* 图片容器 */
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* 侧栏卡片 */
.side-card,
.aside-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.side-card h2,
.aside-card h2,
.side-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.side-note,
.aside-note {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-faint);
  margin-top: 10px;
}

.aside-note a {
  color: var(--link);
}

/* 字段列表 */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row dt {
  color: var(--text-sub);
  font-weight: 500;
  flex: none;
}

.fact-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

/* 侧栏列表 */
.side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border);
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list-key {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand);
  flex: none;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--border);
}

.side-links a:last-child {
  border-bottom: 0;
}

.side-links a:hover {
  color: var(--brand);
}

/* 侧栏核对清单 */
.side-check {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-check li {
  border-bottom: 1px dashed var(--border);
}

.side-check li:last-child {
  border-bottom: 0;
}

.side-check a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.side-check a:hover {
  color: var(--brand);
}

/* 侧栏步骤 */
.side-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.side-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.side-step-num {
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
  margin-top: 3px;
}

.side-steps p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.data-table {
  width: 100%;
  min-width: 540px;
  font-size: 0.9rem;
}

.data-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.84rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-sub);
  background: var(--bg-soft);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: top;
  line-height: 1.65;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f9fcfc;
}

.data-table td a {
  color: var(--link);
  font-weight: 500;
}

.data-table td a:hover {
  color: var(--brand);
}

/* 内容区块 */
.section,
.block,
.content-block,
.content-section,
.module {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.block > h2,
.content-block > h2,
.content-section > h2,
.module > h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-head p,
.block-desc,
.content-block > p,
.content-section > p,
.module > p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 72ch;
}

.block-desc,
.content-block > p,
.content-section > p,
.module > p {
  margin-bottom: 16px;
}

.block-note,
.inline-note {
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-faint);
}

.block-note a,
.inline-note a {
  color: var(--link);
}

.block-note a:hover,
.inline-note a:hover {
  color: var(--brand);
}

/* 通用列表 */
.plain-list,
.note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plain-list li,
.note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.plain-list li::before,
.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.plain-list li strong,
.note-list li strong {
  color: var(--text-main);
}

/* 字段字典 */
.field-dictionary,
.field-dict {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 2fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row:nth-child(even) {
  background: #fafcfd;
}

.field-row dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.field-row dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 相关链接条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.related-links-label {
  font-weight: 600;
  color: var(--text-main);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.86rem;
}

.related-links-item:hover {
  background: var(--brand);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页专属模块
   -------------------------------------------------------------------------- */

/* ===== 首页 ===== */
.home-main {
  padding-top: 0;
}

.hero {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
}

.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.24;
  color: var(--text-main);
}

.hero-lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-sub);
  max-width: 46ch;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}

.point-key {
  font-weight: 600;
  color: var(--text-main);
  margin-right: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.hero-media figcaption {
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.current-events {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.current-events-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.event-list {
  display: flex;
  flex-direction: column;
}

.event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.event-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.event-round {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  white-space: nowrap;
}

.event-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.event-stage {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.event-row .status {
  justify-self: start;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.event-row .status-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.event-row .status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

/* 首页主栏内容 */
.page-layout .layout-main .section {
  padding: 24px 26px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--text-main);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text-main);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.category-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-sub);
  flex: 1;
}

.card-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand);
  margin-top: 4px;
}

.category-card:hover .card-link {
  color: var(--brand-dark);
}

/* 首页时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 6px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--brand);
}

.timeline-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.timeline-body .status {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-sub);
}

.timeline-body .status-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.timeline-body .status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.timeline-body p {
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.timeline-body a {
  font-size: 0.88rem;
}

/* 首页流程 */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 1px 9px;
  align-self: flex-start;
}

.flow-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-body h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
}

.flow-body p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-sub);
  flex: 1;
}

.flow-body a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brand);
  margin-top: 4px;
}

/* 首页核对清单 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.check-item::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}

.check-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.check-body h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
}

.check-body p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.check-body a {
  font-size: 0.84rem;
  color: var(--brand);
}

/* 首页侧栏历史档案 */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.archive-item:last-child {
  border-bottom: 0;
}

.archive-item-featured {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.archive-item-featured img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.archive-round {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.archive-body {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.archive-body a {
  font-weight: 500;
  color: var(--link);
}

/* ===== 内页通用标题区 ===== */
.page-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-title .page-figure,
.page-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-top: 4px;
}

.page-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.page-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

/* ===== 赛程页 ===== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.field-item h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.field-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.field-value {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.next-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.next-item h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.next-item p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.next-item a,
.link-more {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brand);
}

/* ===== 参赛作品页 ===== */
.edition-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.edition-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.edition-item:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.edition-item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  color: var(--text-main);
}

.edition-item a:hover {
  color: var(--text-main);
}

.edition-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.edition-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--text-main);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.genre-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text-main);
}

.genre-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
}

.genre-card p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.field-role {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ===== 赛果页 ===== */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 24px;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-text p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-sub);
  max-width: 60ch;
}

.page-hero-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.page-hero-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.page-hero-media figcaption {
  margin: 0;
  padding: 8px 12px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.field-card {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.field-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.field-card p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.entry-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-link-list li {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.entry-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.entry-name a {
  color: var(--text-main);
}

.entry-name a:hover {
  color: var(--brand);
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.revision-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.revision-list li {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.revision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--border);
}

.aside-links a:last-child {
  border-bottom: 0;
}

.aside-links a:hover {
  color: var(--brand);
}

/* ===== 评审规则页 ===== */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 24px 26px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-top: 20px;
}

.article-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.article-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.version-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.version-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.version-item > p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.field-pairs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.field-pairs .field-row {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  background: transparent;
  grid-template-columns: minmax(90px, 0.6fr) minmax(0, 2fr);
  gap: 12px;
}

.field-pairs .field-row:last-child {
  border-bottom: 0;
}

.field-pairs .field-row:nth-child(even) {
  background: transparent;
}

.field-pairs dt {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-sub);
}

.field-pairs dd {
  font-size: 0.86rem;
  color: var(--text-main);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.two-col .col {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.two-col .col h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.two-col .check-list {
  gap: 8px;
}

.two-col .check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.two-col .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}

.check-label {
  font-weight: 600;
  color: var(--text-main);
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.process-step .step-index {
  grid-row: span 3;
  align-self: start;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
}

.process-step h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
}

.process-step p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.process-step .step-note {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ===== 历史资料页 ===== */
.archive-index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: archive;
}

.archive-index-list .archive-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  border-bottom: 1px solid var(--border);
}

.archive-index-list .archive-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.archive-index-list .archive-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.archive-index-list .archive-item > p:last-child {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.change-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.change-item {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fbfdfe;
}

.change-item h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.change-item p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.related-item h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.related-item h3 a {
  color: var(--text-main);
}

.related-item h3 a:hover {
  color: var(--brand);
}

.related-item p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.aside-link-list li:last-child {
  border-bottom: 0;
}

.aside-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.aside-link-list a:hover {
  color: var(--brand);
}

.aside-link-list .aside-note {
  margin-top: 0;
  font-size: 0.8rem;
}

/* ===== 参赛说明页 ===== */
.page-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  margin-top: 20px;
}

.page-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.page-media figcaption {
  margin: 0;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
}

.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.step-body a,
.inline-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brand);
}

.checklist .check-list,
#checklist .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#checklist .check-list .check-item {
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

#checklist .check-list .check-item::before {
  display: none;
}

#checklist .check-item h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
}

#checklist .check-item p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-sub);
}

#checklist .check-item a {
  font-size: 0.84rem;
  color: var(--brand);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-body {
  padding: 0 16px 14px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.faq-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  margin-top: 16px;
}

.faq-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}

.faq-media figcaption {
  margin: 0;
  padding: 8px 12px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* 站内路径 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--text-main);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.path-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text-main);
}

.path-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
}

.path-card p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ===== 404 页 ===== */
.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.error-hint {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.error-panel .btn {
  margin-bottom: 28px;
}

.error-links {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.error-links h2 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.error-links a:hover {
  background: var(--brand);
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1024px / 768px / 480px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .layout-side,
  .content-side,
  .content-aside,
  .page-side,
  .page-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .layout-side > *,
  .content-side > *,
  .content-aside > *,
  .page-side > *,
  .page-aside > * {
    margin: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    height: 260px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .category-grid,
  .genre-grid,
  .path-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --shell-pad: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    width: 100%;
    display: none;
    padding-bottom: 8px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 6px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    font-size: 0.96rem;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .site-nav a:hover {
    border-bottom-color: var(--border);
    border-left-color: var(--brand-soft);
  }

  .site-nav a.is-current {
    border-left-color: var(--brand);
    border-bottom-color: var(--border);
    background: var(--brand-soft);
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero-media img {
    height: 200px;
  }

  .section,
  .block,
  .content-block,
  .content-section,
  .module {
    padding: 20px 18px;
  }

  .page-layout .layout-main .section {
    padding: 20px 18px;
  }

  .section-head h2,
  .block > h2,
  .content-block > h2,
  .content-section > h2,
  .module > h2 {
    font-size: 1.2rem;
  }

  .layout-side,
  .content-side,
  .content-aside,
  .page-side,
  .page-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-grid,
  .genre-grid,
  .path-grid,
  .flow-list,
  .field-grid,
  .next-grid,
  .edition-index,
  .two-col,
  .entry-link-list,
  .related-list,
  #checklist .check-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-figure img,
  .article-figure img,
  .page-media img {
    height: 180px;
  }

  .page-hero-media img {
    height: 160px;
  }

  .page-hero {
    padding: 20px 18px;
  }

  .page-head {
    padding: 20px 18px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .field-pairs .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fact-row {
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .fact-row dd {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .related-links {
    padding: 14px 16px;
  }

  .error-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .event-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .event-round {
    grid-row: auto;
    justify-self: start;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-item::before {
    left: -23px;
  }

  .process-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .process-step .step-index {
    grid-row: auto;
  }

  .step-item {
    flex-direction: column;
    gap: 8px;
  }

  .faq-item summary {
    font-size: 0.9rem;
  }

  .error-code {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
