:root {
  --bg: #f7efe5;
  --bg-secondary: #fffaf3;
  --surface: rgba(255, 250, 243, 0.88);
  --paper: #fffdf8;
  --paper-strong: #fff5ea;
  --text: #24170f;
  --text-secondary: #735c49;
  --border: rgba(93, 60, 33, 0.12);
  --accent: #d75c2f;
  --accent-strong: #b74822;
  --accent-hover: #e86d3a;
  --shadow: 0 24px 64px rgba(126, 72, 37, 0.14);
  --shadow-hover: 0 32px 88px rgba(126, 72, 37, 0.22);
  --shadow-subtle: 0 8px 24px rgba(126, 72, 37, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 206, 149, 0.4), transparent 38%),
    radial-gradient(circle at top right, rgba(240, 118, 78, 0.2), transparent 32%),
    radial-gradient(circle at bottom center, rgba(255, 180, 120, 0.15), transparent 45%),
    linear-gradient(180deg, #fff9f2 0%, #f7efe5 42%, #f5ece3 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.page-blur {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.page-blur-a {
  top: -12rem;
  left: -12rem;
  background: rgba(236, 121, 69, 0.48);
  animation-delay: 0s;
}

.page-blur-b {
  right: -12rem;
  bottom: -12rem;
  background: rgba(72, 157, 170, 0.28);
  animation-delay: -10s;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header,
.main-content,
.footer,
.detail-layout,
.cover-preview-page {
  position: relative;
  z-index: 1;
}

.header {
  padding: 40px 0 24px;
}

.header-content {
  display: grid;
  gap: 24px;
}

.header-copy,
.search-panel,
.status-card,
.detail-toc,
.reading-card,
.detail-hero-copy {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.header-copy:hover,
.search-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.header-copy {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.92) 0%, rgba(255, 245, 235, 0.88) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.site-title,
.detail-page-title,
.note-cover-title {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
}

.site-title {
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-subtitle,
.detail-summary,
.status-text,
.feed-card-preview,
.detail-meta,
.detail-site-name,
.group-count,
.detail-toc-link,
.footer,
.cover-preview-toolbar {
  color: var(--text-secondary);
}

.site-subtitle {
  max-width: 44rem;
  font-size: 1rem;
}

.search-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.search-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

input[type=search] {
  width: 100%;
  padding: 18px 20px 18px 52px;
  border-radius: 999px;
  border: 1px solid rgba(93, 60, 33, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-subtle);
}

input[type=search]::placeholder {
  color: #a18b79;
}

input[type=search]:focus {
  border-color: rgba(215, 92, 47, 0.5);
  box-shadow: 0 0 0 5px rgba(215, 92, 47, 0.15), var(--shadow);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.main-content,
.detail-layout {
  padding-bottom: 72px;
}

.status-panel.hidden,
.detail-toc.hidden {
  display: none;
}

.status-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.status-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-action,
.back-link,
.cover-preview-link {
  appearance: none;
  border: 1px solid rgba(93, 60, 33, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}

.status-action:hover,
.back-link:hover,
.cover-preview-link:hover,
.feed-card:hover,
.note-cover:hover {
  transform: translateY(-3px);
}

.status-action:hover,
.back-link:hover,
.cover-preview-link:hover {
  border-color: rgba(215, 92, 47, 0.35);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(215, 92, 47, 0.18);
}

.group {
  margin: 44px 0;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.group h2 {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.group-count {
  font-size: 13px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.feed-card-link {
  text-decoration: none;
  color: inherit;
}

.feed-card {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.95) 0%, rgba(255, 248, 238, 0.92) 100%);
  border: 1px solid rgba(93, 60, 33, 0.1);
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(215, 92, 47, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feed-card:hover {
  border-color: rgba(215, 92, 47, 0.28);
  box-shadow: var(--shadow-hover);
}

.feed-card:hover::before {
  opacity: 1;
}

.feed-card-cover {
  padding: 16px;
}

.feed-card-figure,
.paper-figure-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(93, 60, 33, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feed-card-figure {
  aspect-ratio: 4 / 3;
}

.paper-figure-card {
  display: grid;
  gap: 0;
}

.feed-card-cover .note-cover {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 14px;
  gap: 10px;
}

.note-cover-title-only {
  justify-content: flex-end;
}

.note-cover-title-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.paper-figure-card-detail {
  min-height: 100%;
}

.paper-figure-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(241, 226, 211, 0.9));
}

.paper-figure-card-detail .paper-figure-image {
  max-height: 520px;
  object-fit: contain;
  background: #fffdf8;
}

.paper-figure-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 23, 15, 0.76);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.paper-figure-caption {
  padding: 14px 16px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid rgba(93, 60, 33, 0.08);
}

.feed-card-body {
  padding: 0 20px 20px;
}

.feed-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.feed-chip,
.meta-pill,
.reading-badge,
.reading-step,
.reading-step-note,
.note-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.feed-chip,
.meta-pill,
.reading-step-note {
  background: rgba(215, 92, 47, 0.08);
  color: var(--accent);
}

.feed-chip.subtle,
.reading-step,
.note-chip-muted {
  background: rgba(93, 60, 33, 0.07);
  color: var(--text-secondary);
}

.feed-card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 10px;
}

.feed-card-preview {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(93, 60, 33, 0.08);
}

.feed-card-action {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  transition: color 0.3s ease;
}

.feed-card:hover .feed-card-action {
  color: var(--accent-hover);
}

.feed-card-action::after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feed-card:hover .feed-card-action::after {
  transform: translateX(4px);
}

.feed-card-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.note-cover {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
  color: var(--cover-ink, #fff8ef);
  background: linear-gradient(160deg, var(--cover-from, #ef6c3f) 0%, var(--cover-to, #f6b13d) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), var(--shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.note-cover:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), var(--shadow-hover);
}

.note-cover::before,
.note-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.note-cover::before {
  width: 15rem;
  height: 15rem;
  right: -5rem;
  top: -4rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0%, transparent 68%);
}

.note-cover::after {
  width: 14rem;
  height: 14rem;
  left: -5rem;
  bottom: -6rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
}

.note-cover-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 70% 24%, var(--cover-spot, rgba(255, 255, 255, 0.3)) 0%, transparent 32%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.16) 0%, transparent 34%);
  mix-blend-mode: screen;
  opacity: 0.88;
}

.note-cover-top,
.note-cover-body,
.note-cover-points,
.note-cover-bottom {
  position: relative;
  z-index: 1;
}

.note-cover-top,
.note-cover-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.note-chip {
  background: var(--cover-chip, rgba(255, 255, 255, 0.16));
  color: var(--cover-ink, #fff8ef);
  border: 1px solid var(--cover-stroke, rgba(255, 255, 255, 0.24));
  backdrop-filter: blur(10px);
}

.note-cover-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cover-muted, rgba(255, 248, 239, 0.82));
  margin-bottom: 14px;
  font-weight: 700;
}

.note-cover-title {
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.note-cover-title-only .note-cover-title {
  font-size: clamp(2.05rem, 4.5vw, 2.9rem);
  line-height: 0.98;
  max-width: none;
}

.feed-card-cover .note-cover-title {
  font-size: 1.36rem;
  line-height: 1.16;
  letter-spacing: -0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-cover .note-cover-title-only .note-cover-title {
  font-size: 1.5rem;
  line-height: 1.08;
  max-width: none;
}

.note-cover-hook {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cover-muted, rgba(255, 248, 239, 0.82));
  max-width: 28rem;
}

.feed-card-cover .note-cover-hook {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-cover-points {
  display: grid;
  gap: 10px;
  list-style: none;
}

.feed-card-cover .note-cover-points {
  gap: 8px;
}

.note-cover-points li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.65;
}

.feed-card-cover .note-cover-points li {
  padding: 10px 12px 10px 34px;
  font-size: 13px;
  line-height: 1.45;
}

.note-cover-points li::before {
  content: "•";
  position: absolute;
  left: 16px;
  top: 10px;
  font-size: 24px;
  line-height: 1;
}

.feed-card-cover .note-cover-points li::before {
  left: 12px;
  top: 8px;
}

.note-cover-meta {
  font-size: 13px;
  color: var(--cover-muted, rgba(255, 248, 239, 0.82));
}

.feed-card-cover .note-cover-bottom {
  margin-top: auto;
}

.detail-page-header {
  padding-bottom: 12px;
}

.detail-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link::before {
  content: "←";
  margin-right: 8px;
}

.detail-site-name {
  font-size: 14px;
  font-weight: 700;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.detail-hero-copy {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.detail-page-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.detail-meta {
  font-size: 15px;
  margin-bottom: 16px;
}

.detail-meta a,
.footer a {
  color: var(--accent);
  text-decoration: none;
}

.detail-meta a:hover,
.footer a:hover {
  color: var(--accent-strong);
}

.detail-summary {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.detail-micro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
}

.reading-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reading-card {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.92) 0%, rgba(255, 245, 235, 0.88) 100%);
  transition: all 0.3s ease;
}

.reading-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.reading-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.reading-badge,
.reading-step {
  background: rgba(215, 92, 47, 0.12);
  color: var(--accent);
}

.reading-intro-hook {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 800;
  margin-bottom: 16px;
}

.reading-intro-points {
  list-style: none;
  display: grid;
  gap: 10px;
}

.reading-intro-points li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(93, 60, 33, 0.08);
}

.reading-card h2 {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.reading-card-content h3,
.reading-card-content h4 {
  margin: 24px 0 12px;
  font-size: 1rem;
  color: var(--text);
}

.reading-card-content p,
.reading-card-content ul,
.reading-card-content ol {
  margin: 14px 0;
}

.reading-card-content ul,
.reading-card-content ol {
  padding-left: 24px;
}

.reading-card-content li {
  margin: 10px 0;
  color: var(--text-secondary);
}

.reading-card-content p,
.reading-card-content li {
  line-height: 1.85;
}

.reading-card-content strong {
  color: var(--text);
}

.reading-card-content code {
  background: rgba(215, 92, 47, 0.08);
  color: var(--accent);
  border-radius: 8px;
  padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.reading-card-content a {
  color: var(--accent);
  text-decoration: none;
}

.reading-card-content a:hover {
  text-decoration: underline;
}

.detail-toc {
  position: sticky;
  top: 24px;
  border-radius: 24px;
  padding: 18px;
}

.detail-toc-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-toc-link {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.detail-toc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.25s ease;
}

.detail-toc-link:hover,
.detail-toc-link.is-active {
  background: rgba(215, 92, 47, 0.1);
  color: var(--accent);
  padding-left: 16px;
}

.detail-toc-link:hover::before,
.detail-toc-link.is-active::before {
  height: 60%;
}

.paper-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.paper-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.paper-nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(215, 92, 47, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paper-nav-link:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 92, 47, 0.35);
  box-shadow: var(--shadow-hover);
}

.paper-nav-link:hover::before {
  opacity: 1;
}

.paper-nav-prev {
  grid-column: 1;
}

.paper-nav-next {
  grid-column: 2;
  text-align: right;
}

.paper-nav-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.paper-nav-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-page {
  min-height: 100vh;
}

.cover-preview-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.cover-preview-shell {
  width: min(100%, 640px);
  display: grid;
  gap: 16px;
}

.note-cover-standalone {
  min-height: 820px;
}

.cover-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 6px;
}

.lazy-sentinel {
  height: 1px;
}

.footer {
  padding: 28px 0 36px;
  text-align: center;
  font-size: 14px;
}

.feed-card-link:focus-visible,
.back-link:focus-visible,
.cover-preview-link:focus-visible,
.detail-toc-link:focus-visible,
.paper-nav-link:focus-visible,
input[type=search]:focus-visible,
.status-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(215, 92, 47, 0.12);
}

@media (max-width: 960px) {
  .detail-hero-grid,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .detail-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .header {
    padding-top: 24px;
  }

  .header-copy,
  .search-panel,
  .detail-hero-copy,
  .reading-card {
    padding: 20px;
  }

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

  .note-cover {
    min-height: 390px;
    padding: 18px;
  }

  .note-cover-title {
    font-size: 1.95rem;
  }

  .detail-page-topbar,
  .group-heading,
  .cover-preview-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-page-title {
    font-size: 2.1rem;
  }

  .paper-nav {
    grid-template-columns: 1fr;
  }

  .paper-nav-next {
    grid-column: 1;
  }

  .note-cover-standalone {
    min-height: 700px;
  }
}