/* 杭州房策（hzhouse.little-stone.cn）样式表
 * 深蓝金研报质感 × 暖白纸感长文阅读；全部系统字体，零外部请求，严格兼容 CSP style-src 'self'。
 */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand: #0f2540;
  --brand-deep: #09172a;
  --brand-soft: #eef3f9;
  --gold: #b87d14;
  --gold-bright: #e0a635;
  --gold-bg: #fdf7e7;
  --gold-border: #ebd08c;

  --warm-accent: #b45309;
  --warm-bg: #fef7ec;
  --warm-border: #e8be7d;

  --table-head-bg: #122b4a;
  --table-head-text: #ffffff;
  --table-stripe: #f8fafc;

  --code-bg: #edf2f7;
  --code-text: #123052;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 44px rgba(9, 23, 42, 0.14);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111d;
    --surface: #121a29;
    --surface-subtle: #162134;
    --ink: #f1f5f9;
    --text: #d7e0ec;
    --muted: #94a3b8;
    --border: #223047;
    --border-strong: #324666;

    --brand: #1c3b63;
    --brand-deep: #070e1a;
    --brand-soft: #172840;
    --gold: #f0be5b;
    --gold-bright: #f5c969;
    --gold-bg: rgba(240, 190, 91, 0.11);
    --gold-border: rgba(240, 190, 91, 0.36);

    --warm-accent: #f2a65a;
    --warm-bg: rgba(242, 166, 90, 0.11);
    --warm-border: rgba(242, 166, 90, 0.36);

    --table-head-bg: #183152;
    --table-head-text: #f8fafc;
    --table-stripe: #152033;

    --code-bg: #1a2940;
    --code-text: #f3cc7a;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 顶部导航 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(11, 17, 29, 0.86);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #16365e 0%, #0b1b33 100%);
  color: #f4c660;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(15, 37, 64, 0.22);
  border: 1px solid rgba(244, 198, 96, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.header-nav a {
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.18s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--ink);
}

.header-nav .nav-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 13px;
}

/* ==================== 首页 Hero ==================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, #1d3c6a 0%, #0f2540 52%, #081426 100%);
  color: #f8fafc;
  padding: 48px 0 44px;
  border-bottom: 3px solid var(--gold-bright);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.16);
  border: 1px solid rgba(245, 196, 81, 0.4);
  color: #f6ce6e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-desc {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-chip {
  min-width: 112px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #f6ce6e;
  line-height: 1.25;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 3px;
}

/* ==================== 首页主内容 ==================== */
main.site-main {
  flex: 1;
  padding: 32px 0 56px;
}

.toolbar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.search-box {
  position: relative;
  min-width: 220px;
  flex: 0 1 280px;
}

.search-input {
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.section-heading .section-meta {
  font-size: 13px;
  color: var(--muted);
}

/* 头条精选卡 */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-lg);
}

.featured-cover {
  position: relative;
  background: #0d1b34;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-series {
  background: var(--brand-soft);
  color: var(--ink);
}

.badge-highlight {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.badge-warm {
  background: var(--warm-bg);
  color: var(--warm-accent);
  border: 1px solid var(--warm-border);
}

.featured-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.featured-excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.read-more {
  color: var(--gold);
  font-weight: 600;
}

/* 文章列表网格 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
}

.article-card.is-hidden,
.featured-card.is-hidden {
  display: none;
}

.card-cover {
  aspect-ratio: 900 / 383;
  background: #0d1b34;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-cover-fallback {
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #16335b 0%, #0a182d 100%);
  color: #f8fafc;
}

.card-cover-fallback strong {
  font-size: 20px;
  color: #f5c451;
}

.card-body {
  flex: 1;
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.48;
  color: var(--ink);
}

.card-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
  flex: 1;
}

.empty-state {
  display: none;
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  margin-top: 12px;
}

.empty-state.is-visible {
  display: block;
}

/* ==================== 文章详情页 ==================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(220px, 260px);
  gap: 28px;
  align-items: start;
  justify-content: space-between;
}

.article-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px 36px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.article-title {
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.article-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-link-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.copy-link-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.article-cover {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-cover img {
  width: 100%;
  display: block;
}

/* 移动端折叠目录 */
.mobile-toc {
  display: none;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 10px 14px;
}

.mobile-toc summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.mobile-toc ul {
  margin: 10px 0 4px;
  padding-left: 18px;
}

.mobile-toc li {
  margin: 5px 0;
  font-size: 13.5px;
}

.mobile-toc a {
  color: var(--text);
  text-decoration: none;
}

/* 右侧悬浮目录 */
.toc-aside {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.toc-item a {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.toc-item.toc-h3 a {
  padding-left: 22px;
  font-size: 12.5px;
}

.toc-item a:hover,
.toc-item a.is-active {
  color: var(--ink);
  border-left-color: var(--gold);
  font-weight: 600;
}

.toc-back {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.toc-back a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.toc-back a:hover {
  text-decoration: underline;
}

/* ==================== 正文排版 ==================== */
.article-content {
  font-size: 16px;
  line-height: 1.88;
  color: var(--text);
  word-break: break-word;
}

.article-content h2 {
  margin: 34px 0 14px;
  padding: 6px 0 6px 14px;
  border-left: 4px solid var(--gold);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.theme-warm .article-content h2 {
  border-left-color: var(--warm-accent);
}

.article-content h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold);
}

.theme-warm .article-content h3 {
  color: var(--warm-accent);
}

.article-content p {
  margin: 0 0 16px;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

.article-content strong {
  color: var(--ink);
  font-weight: 700;
}

.article-content em {
  color: var(--muted);
  font-style: italic;
}

.article-content code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: var(--font-mono);
}

.article-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: var(--gold-bg);
  border-left: 3.5px solid var(--gold-border);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

.theme-warm .article-content blockquote {
  background: var(--warm-bg);
  border-left-color: var(--warm-border);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.article-content li {
  margin: 8px 0;
}

.article-content li > ul,
.article-content li > ol {
  margin: 6px 0 4px;
}

.article-content .table-wrap {
  margin: 18px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.article-content th {
  padding: 10px 12px;
  background: var(--table-head-bg);
  color: var(--table-head-text);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--table-head-bg);
}

.article-content td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.article-content tbody tr:nth-child(even) td {
  background: var(--table-stripe);
}

.article-content .align-left { text-align: left; }
.article-content .align-center { text-align: center; }
.article-content .align-right { text-align: right; font-variant-numeric: tabular-nums; }

.table-hint {
  margin: -14px 0 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* 文末合规与口径尾卡 */
.disclaimer-card {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
}

.disclaimer-title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.disclaimer-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.disclaimer-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* 上一篇 / 下一篇 */
.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.pager-link:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.pager-link.is-next {
  text-align: right;
}

.pager-label {
  font-size: 12px;
  color: var(--muted);
}

.pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* 404 */
.not-found {
  max-width: 520px;
  margin: 56px auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.not-found h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--ink);
}

.not-found p {
  margin: 0 0 22px;
  color: var(--muted);
}

.btn-home {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ==================== 统一合规页脚 ==================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-note {
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .police-badge {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-aside {
    display: none;
  }

  .mobile-toc {
    display: block;
  }
}

@media (max-width: 720px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding: 20px 18px 26px;
    border-radius: 14px;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .pager-link.is-next {
    text-align: left;
  }

  .header-nav .nav-hide-sm {
    display: none;
  }

  .featured-body {
    padding: 20px 18px;
  }
}

@media print {
  .site-header,
  .toc-aside,
  .mobile-toc,
  .article-pager,
  .article-actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .article-shell {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
