:root {
  --ink: #0f172a;
  --muted: #607085;
  --line: rgba(103, 119, 141, 0.22);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --teal: #0f766e;
  --blue: #2563eb;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --paper: #fbfdff;
  --shadow: 0 24px 70px rgba(24, 48, 86, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(150, 230, 221, 0.42), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(172, 203, 255, 0.52), transparent 30%),
    linear-gradient(180deg, #f7fcff 0%, #ffffff 42%, #f6fbfa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 58px);
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.86), rgba(248, 253, 255, 0.52));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
}

.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  font-size: 14px;
  padding: 9px 11px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  padding: 6px;
  min-width: 168px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  z-index: 30;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.68);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.nav-dropdown-menu a:hover {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.06);
  transform: none;
}

.nav-dropdown-menu a.active {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  transform: none;
}

.app { min-height: 100vh; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 104px 22px 52px;
}

.hero-title {
  margin: 0;
  font-size: clamp(58px, 13vw, 178px);
  line-height: 0.88;
  font-weight: 820;
  text-align: center;
  letter-spacing: 0;
  color: rgba(9, 21, 42, 0.94);
  text-shadow: 0 18px 70px rgba(41, 91, 129, 0.16);
  transform: translateZ(0);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(15, 23, 42, 0.54);
  font-size: 13px;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), transparent);
}

.section {
  padding: 96px clamp(20px, 6vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.intro-section {
  text-align: center;
}

.intro-card,
.article-card,
.jarvis-panel {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(24px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-card {
  display: block;
  min-height: 300px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(232, 248, 250, 0.42));
  opacity: 0.74;
  pointer-events: none;
}

.intro-card > * {
  position: relative;
}

.intro-card:hover {
  transform: translateY(-6px);
  background: var(--glass-strong);
  border-color: rgba(37, 99, 235, 0.22);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 720;
}

.intro-tagline {
  justify-content: center;
  font-size: 17px;
  width: 100%;
}

.intro-card h2,
.page-hero h1,
.article h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-card h2 {
  min-height: 126px;
  display: flex;
  align-items: flex-end;
  font-size: clamp(34px, 4.8vw, 58px);
}

.intro-card p,
.page-hero p,
.article-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.intro-card p {
  min-height: 88px;
  font-size: 16px;
}

.card-index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 760;
}

.page-hero {
  min-height: 46vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 6vw, 72px) 52px;
}

.page-hero .section-inner {
  padding-bottom: 18px;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jarvis-groups {
  display: grid;
  gap: 44px;
}

.jarvis-group {
  display: grid;
  gap: 16px;
}

.jarvis-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(103, 119, 141, 0.24);
}

.jarvis-group-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.jarvis-group-heading span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.article-card {
  padding: 22px;
  min-height: 176px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.about-section {
  padding-top: 36px;
}

.about-layout {
  display: grid;
  width: min(880px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.about-panel {
  position: relative;
  min-height: auto;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 248, 250, 0.52)),
    var(--glass);
  box-shadow: 0 18px 48px rgba(24, 48, 86, 0.1);
}

.about-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.about-label {
  display: inline-flex;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.about-panel h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
}

.about-panel p {
  margin: 18px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.86;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-tags span,
.resume-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 680;
}

.about-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

.about-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.contact-links a,
.resume-placeholder {
  width: fit-content;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.about-contact {
  width: min(880px, 100%);
  margin: 34px auto 0;
  padding-top: 28px;
  text-align: center;
  border-top: 1px solid rgba(103, 119, 141, 0.24);
}

.about-contact h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 248, 250, 0.5)),
    var(--glass);
  box-shadow: var(--shadow);
}

.project-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.project-card h2 {
  margin: 42px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
}

.project-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

a.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

a.project-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.26);
  background: var(--glass-strong);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.26);
  background: var(--glass-strong);
}

.article-meta {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 680;
}

.article-card h2 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.22;
}

.article-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1040px) 220px;
  justify-content: center;
  align-items: start;
  gap: 32px;
  padding: 130px clamp(20px, 6vw, 72px) 82px;
}

.article {
  grid-column: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body {
  margin-top: 42px;
  color: #1f2937;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.82;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3 { margin-top: 48px; }
.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: 118px;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: 0;
}
.article-body h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(103, 119, 141, 0.22);
  font-size: clamp(26px, 3vw, 34px);
}
.article-body h3 {
  font-size: clamp(22px, 2.4vw, 27px);
}
.article-body h4 {
  margin-top: 34px;
  font-size: 20px;
}
.article-body p {
  margin: 1.05em 0;
  color: #334155;
}
.article-body strong {
  color: var(--ink);
  font-weight: 800;
}
.article-body a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.article-body ul,
.article-body ol {
  margin: 1.05em 0;
  padding-left: 1.35em;
  color: #334155;
}
.article-body li {
  margin: 0.42em 0;
  padding-left: 0.18em;
}
.article-body li > p {
  margin: 0.35em 0;
}
.article-body blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0));
  color: #31515a;
}
.article-body code {
  padding: 2px 6px;
  background: #eef2f7;
  border-radius: 5px;
  font-size: 0.92em;
}
.article-body pre {
  overflow: auto;
  margin: 28px 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(103, 119, 141, 0.22);
  background: #f8fafc;
}
.article-body pre code {
  padding: 0;
  background: transparent;
}
.article-body mark,
.article-body .highlight {
  background: linear-gradient(180deg, transparent 42%, rgba(133, 239, 172, 0.52) 42%);
  padding: 0 3px;
}
.article-body .color-blue { color: #2563eb; }
.article-body .color-teal { color: #0f766e; }
.article-body .color-red { color: #dc2626; }
.article-body .color-amber { color: #b45309; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid rgba(103, 119, 141, 0.3);
  text-align: left;
}
.article-body th {
  background: #f0f5f9;
  font-weight: 680;
  white-space: nowrap;
}
.article-body tr:nth-child(even) td { background: #f8fafc; }

.article-body hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid rgba(103, 119, 141, 0.24);
}

.article-toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 136px;
  z-index: 8;
  width: 220px;
  max-height: calc(100vh - 174px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(24, 48, 86, 0.1);
}

.toc-title {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.article-toc nav {
  display: grid;
  gap: 3px;
}

.toc-link {
  display: block;
  padding: 6px 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.toc-link:hover {
  color: var(--teal);
  transform: translateX(2px);
}

.toc-link.active {
  color: var(--teal);
  font-weight: 720;
}

.toc-h3 { padding-left: 12px; }
.toc-h4 { padding-left: 24px; font-size: 12px; }

.pdf-summary {
  color: #334155;
  font-size: 17px;
}

.pdf-document {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.pdf-document p {
  margin: 6px 0 0;
  color: #475569;
}

.pdf-label {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.pdf-actions a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal);
  text-decoration: none;
  background: #fff;
}

.task-cb {
  margin-right: 6px;
  vertical-align: middle;
  accent-color: var(--teal);
  cursor: default;
}

.jarvis-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 72px) 72px;
}

.jarvis-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
}

.jarvis-panel h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 132px);
  line-height: 0.92;
}

.jarvis-panel p {
  width: min(860px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.jarvis-vision {
  padding-top: 30px;
}

.jarvis-vision .eyebrow {
  margin-bottom: 18px;
}

.jarvis-vision h2 {
  width: min(900px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
}

.jarvis-vision-copy {
  width: min(1120px, 100%);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jarvis-vision-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 248, 250, 0.54)),
    var(--glass);
  box-shadow: 0 18px 48px rgba(24, 48, 86, 0.1);
}

.jarvis-vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.jarvis-vision-card span {
  display: inline-flex;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.jarvis-vision-card p {
  margin: 18px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.86;
}

.jarvis-repo-section {
  padding-top: 12px;
}

.jarvis-repo-link {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 248, 250, 0.5)),
    var(--glass);
  box-shadow: 0 18px 48px rgba(24, 48, 86, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.jarvis-repo-link:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--glass-strong);
}

.jarvis-repo-label,
.jarvis-repo-url {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 720;
}

.jarvis-repo-link strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}

.jarvis-repo-url {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.recent-updates {
  border-top: 1px solid rgba(103, 119, 141, 0.12);
}

.recent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.recent-list li + li {
  border-top: 1px solid rgba(103, 119, 141, 0.08);
}

.recent-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--ink);
  transition: color 150ms ease;
}

.recent-list a:hover {
  color: var(--teal);
}

.recent-item-title {
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}

.recent-item-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .intro-grid,
  .articles,
  .jarvis-vision-copy,
  .project-grid,
  .about-layout { grid-template-columns: 1fr; }
  .about-panel { padding: 24px 20px; }
  .contact-links { justify-content: flex-start; }
  .about-contact { text-align: left; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 18px 20px; }
  .nav { justify-content: flex-start; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: flex; }
  .hero { padding-top: 150px; }
  .article-shell {
    display: block;
    padding: 154px 14px 56px;
  }
  .article {
    width: 100%;
    padding: 22px 18px;
  }
  .article h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .article-body {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.78;
  }
  .article-body h2 {
    font-size: 25px;
  }
  .article-body h3 {
    font-size: 21px;
  }
  .article-body h4 {
    font-size: 18px;
  }
  .article-body blockquote {
    margin: 24px 0;
    padding: 14px 16px;
  }
  .article-body pre {
    margin: 24px -4px;
    padding: 16px;
  }
  .article-body table {
    margin: 24px -4px;
    max-width: calc(100% + 8px);
  }
  .pdf-document {
    align-items: flex-start;
    flex-direction: column;
  }
  .pdf-actions {
    width: 100%;
  }
  .pdf-actions a {
    flex: 1 1 130px;
    text-align: center;
  }
}

@media (max-width: 1320px) {
  .article-shell { grid-template-columns: minmax(0, 1040px); }
  .article-toc { display: none; }
}
