:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-tab: #f1f1f1;
  --bg-bar: rgba(255, 255, 255, 0.85);
  --text: #222222;
  --text-muted: #444444;
  --border: #dcdcdc;
  --border-soft: #ebebeb;
  --accent: #e63323;
  --accent-text: #c4281a;
  --link: #025e8d;
  --link-tint: rgba(2, 94, 141, 0.08);
  --orange: #b84a00;
  --btn-bg: #025e8d;
  --btn-text: #ffffff;
  --success: #2e7d32;
  --focus: #0b57d0;
  --target-bg: #fff6d6;
  --shadow: rgba(0, 0, 0, 0.2);
  --shadow-soft: rgba(0, 0, 0, 0.1);
  --footer-bg: #01324b;
  --footer-text: #ffffff;
  --footer-muted: #c9d6df;
  --footer-focus: #8ab4ff;
  --backdrop: rgba(0, 0, 0, 0.65);
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14171a;
  --bg-soft: #1c2024;
  --bg-tab: #1f2429;
  --bg-bar: rgba(20, 23, 26, 0.85);
  --text: #e6e6e6;
  --text-muted: #b4b9bd;
  --border: #3a4046;
  --border-soft: #2c3237;
  --accent: #ff5a48;
  --accent-text: #ff7b6c;
  --link: #6cc4f0;
  --link-tint: rgba(108, 196, 240, 0.14);
  --orange: #ff9f5a;
  --btn-bg: #1b6f9d;
  --btn-text: #ffffff;
  --success: #66bb6a;
  --focus: #8ab4ff;
  --target-bg: #3a3414;
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --footer-bg: #0b2230;
  --footer-muted: #b4c3cd;
  --backdrop: rgba(0, 0, 0, 0.75);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.content-left {
  overflow-wrap: break-word;
}

[id] {
  scroll-margin-top: 90px;
}

body.resume-page {
  font-family: "PT Serif", serif;
  font-size: 1.125rem;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.resume-page h1,
.resume-page h2,
.resume-page .brand {
  font-family: "Merriweather", serif;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 300;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 10px 16px;
  font-family: var(--sans);
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}

.resume-header {
  border-bottom: 4px solid var(--accent);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-block;
  min-width: 0;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.theme-toggle {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 64px;
  width: 64px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.theme-toggle .ts-icon {
  position: relative;
  z-index: 1;
}

.theme-toggle .ts-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.theme-toggle .ts-thumb::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-bg);
}

.theme-toggle .ts-sun {
  color: #fff;
}

.theme-toggle .ts-moon {
  color: var(--text-muted);
}

.theme-toggle[aria-pressed="true"] .ts-thumb {
  transform: translateX(100%);
}

.theme-toggle[aria-pressed="true"] .ts-sun {
  color: var(--text-muted);
}

.theme-toggle[aria-pressed="true"] .ts-moon {
  color: #fff;
}

.resume-main {
  max-width: 1200px;
  margin: 40px auto 40px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 80px;
}

.content-left {
  min-width: 0;
}

.article-meta {
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--text-muted);
  margin-bottom: 5px;
}

.meta-oa {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.meta-date::before {
  content: " | ";
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 5px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.authors,
.journal-info,
.metrics {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.authors a,
.tab-pane a,
.citation-link,
.content-section a,
.link-button {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition:
    text-decoration-thickness 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

#data a {
  padding: 0 3px;
  margin: 0 -3px;
  border-radius: 3px;
}

#data a:focus-visible {
  background-color: var(--link-tint);
  text-decoration-thickness: 3px;
}

.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.envelope-sup {
  vertical-align: super;
  font-size: 0.75em;
  margin-left: 2px;
}

.author-email {
  display: inline-flex;
  color: var(--link);
  cursor: pointer;
}

.citation-link {
  text-underline-offset: 2px;
  font-weight: normal;
}

.keywords {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.content-section {
  margin-top: 40px;
}

.content-section h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.reference-list {
  padding-left: 1.6em;
}

.reference-list li {
  margin-bottom: 18px;
  padding: 4px 0 18px 4px;
  border-bottom: 1px solid var(--border-soft);
}

.reference-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.reference-list li::marker {
  font-family: "Merriweather", serif;
  font-size: 1.35em;
}

.reference-list li:target {
  background: var(--target-bg);
}

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

.related-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
}

.related-source {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.related-title {
  font-weight: 700;
}

.related-snippet {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

sup.has-cite {
  position: relative;
}

.cite-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  width: min(320px, calc(100vw - 32px));
  padding-top: 8px;
  z-index: 60;
  font-size: 0.9rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.cite-popover.above {
  top: auto;
  bottom: 100%;
  padding-top: 0;
  padding-bottom: 8px;
}

sup.has-cite.open .cite-popover {
  display: block;
}

@media (hover: none), (max-width: 900px) {
  .cite-popover {
    display: none !important;
  }
}

.cite-card {
  display: block;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 24px var(--shadow);
  padding: 12px 14px;
  font-family: var(--sans);
}

.cite-card > span,
.cite-card > a {
  display: block;
}

.cite-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cite-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.cite-meta {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cite-card a {
  font-weight: bold;
  word-break: break-all;
}

figure {
  margin: 30px 0 0 0;
}

.fig-frame {
  position: relative;
  max-width: 560px;
  cursor: zoom-in;
}

.fig-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.fig-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.fig-axis {
  stroke: var(--text-muted);
  stroke-width: 1;
}

.fig-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.fig-bar {
  fill: var(--link);
}

.fig-bar-preprint {
  fill: var(--orange);
}

.fig-text {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 12px;
}

.fig-total {
  font-weight: bold;
}

.fig-bar-group {
  cursor: pointer;
}

.fig-bar-group:focus {
  outline: none;
}

.fig-bar-group:focus-visible .fig-bar,
.fig-bar-group:focus-visible .fig-bar-preprint {
  stroke: var(--focus);
  stroke-width: 3;
}

.fig-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 170px;
  padding: 10px 12px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 6px 20px var(--shadow);
  pointer-events: none;
}

.fig-tooltip > span {
  display: block;
}

.fig-tip-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.modern-popup-figure {
  width: 94vw;
  max-width: min(880px, 94vw);
  max-height: 92vh;
}

.fig-frame-large {
  max-width: none;
  cursor: default;
}

.fig-subcaptions {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.fig-subcaptions li {
  margin-bottom: 6px;
}

figcaption,
caption {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: left;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
}

caption {
  caption-side: top;
  margin-bottom: 8px;
}

th,
td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--text-muted);
}

.btn-download,
.btn-download-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-family: var(--sans);
  border: 1px solid var(--btn-bg);
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-download {
  padding: 12px 15px;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.icon-download {
  margin-left: 10px;
}

body.scrolled-past-title .btn-download-desktop {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border: none;
}

.sidebar-right {
  position: sticky;
  top: 90px;
  align-self: start;
  min-width: 0;
}

.tabs-header {
  display: flex;
  background-color: var(--bg-tab);
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tab);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--link);
  text-align: center;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn[aria-selected="true"] {
  background: var(--bg);
  color: var(--text);
  font-weight: bold;
  border-bottom: 1px solid var(--bg);
  margin-bottom: -1px;
}

.tab-btn:focus-visible {
  outline-offset: -3px;
}

.tabs-content-area {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px 8px 20px 20px;
}

.tab-pane[hidden] {
  display: none;
}

.tab-pane ul,
.tab-pane ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-pane li {
  margin-bottom: 16px;
  position: relative;
}

.tab-pane a {
  font-family: var(--sans);
  font-size: 1rem;
}

#panel-sections a[aria-current="true"] {
  color: var(--text);
  text-decoration-color: var(--text);
}

#panel-sections a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--border);
}

.sidebar-ref-list {
  list-style: decimal !important;
  padding-left: 1.4em !important;
  padding-right: 8px !important;
}

.sidebar-ref-list li {
  font-family: "PT Serif", serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 15px;
}

.sidebar-ref-list li:last-child {
  border-bottom: none;
}

.ref-links {
  margin-top: 14px;
  text-align: right;
}

.ref-links a {
  margin-left: 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: bold;
}

.sidebar-figures li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-figures li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.sidebar-fig-title {
  margin: 0 0 12px;
  font-family: "Merriweather", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.sidebar-fig-thumb {
  cursor: zoom-in;
}

.sidebar-fig-thumb .fig-svg {
  pointer-events: none;
}

.sidebar-fig-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--sans);
}

.sidebar-fig-links a,
.sidebar-fig-links .link-button {
  font-size: 0.95rem;
}

.sidebar-fig-title + .sidebar-fig-links {
  margin-top: 0;
}

.sticky-article-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-bar);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 12px 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.3s ease-in-out,
    visibility 0s linear 0.3s;
}

.sticky-article-bar.visible {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.sticky-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.sticky-title {
  font-family: "PT Serif", serif;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-download-small {
  padding: 8px 15px;
  font-size: 0.95rem;
  gap: 8px;
}

.mobile-sticky-wrapper {
  display: none;
}

.modern-popup {
  border: none;
  border-radius: 8px;
  padding: 30px;
  max-width: min(450px, 92vw);
  box-shadow: 0 10px 40px var(--shadow);
  text-align: left;
  font-family: "PT Serif", serif;
  background: var(--bg);
  color: var(--text);
}

.modern-popup-wide {
  max-width: min(560px, 92vw);
}

.modern-popup::backdrop {
  background-color: var(--backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.popup-title {
  font-family: "Merriweather", serif;
  color: var(--accent-text);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
}

.popup-content p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.popup-note {
  font-family: var(--sans);
  font-size: 0.85rem !important;
  color: var(--text-muted);
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 25px;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.btn-cancel {
  background-color: var(--bg-tab);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-confirm-download {
  background-color: var(--btn-bg);
  color: var(--btn-text) !important;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm-download.is-success {
  background-color: var(--success);
  border-color: var(--success);
  color: #ffffff !important;
}

.citation-box {
  background-color: var(--bg-soft);
  border-left: 4px solid var(--link);
  padding: 12px;
  margin: 8px 0 15px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
}

.metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metrics-list li {
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
}

.metrics-list li:last-child {
  border-bottom: none;
}

.site-footer {
  border-top: 4px solid var(--accent);
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--sans);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.site-footer a,
.site-footer .link-button {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.site-footer a:focus-visible,
.site-footer .link-button:focus-visible {
  outline-color: var(--footer-focus);
}

.footer-base {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-muted);
}

.footer-notice {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--footer-muted);
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--footer-muted);
}

.footer-notice strong {
  color: var(--footer-text);
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.footer-wordmark {
  margin: 0;
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--footer-muted);
}

@media (hover: hover) {
  .theme-toggle:hover {
    background: var(--bg-tab);
  }

  .meta-oa:hover {
    color: var(--link);
    text-decoration-thickness: 3px;
  }

  .authors a:hover,
  .tab-pane a:hover,
  .citation-link:hover,
  .content-section a:hover,
  .link-button:hover {
    text-decoration-thickness: 3px;
  }

  #data a:hover {
    background-color: var(--link-tint);
    text-decoration-thickness: 3px;
  }

  .fig-expand:hover {
    background: var(--bg-tab);
  }

  .fig-bar-group:hover .fig-bar,
  .fig-bar-group:hover .fig-bar-preprint {
    stroke: var(--text);
    stroke-width: 2;
  }

  .btn-download:hover,
  .btn-download-small:hover {
    background-color: var(--bg);
    color: var(--link);
    border: 1px solid var(--link);
  }

  .btn-cancel:hover {
    background-color: var(--border);
  }

  .btn-confirm-download:hover {
    background-color: var(--bg);
    color: var(--link) !important;
  }

  .site-footer a:hover,
  .site-footer .link-button:hover {
    text-decoration-thickness: 3px;
  }
}

@media (max-width: 900px) {
  .resume-main {
    grid-template-columns: 1fr;
    margin-top: 15px;
    gap: 0;
  }

  .sidebar-right {
    display: none;
  }

  .sticky-article-bar {
    display: none !important;
  }

  .mobile-sticky-wrapper {
    display: block;
    position: sticky;
    top: 0;
    z-index: 105;
    padding: 12px 5%;
    background-color: var(--bg);
    box-shadow: 0 4px 12px var(--shadow-soft);
  }

  .btn-download-mobile {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 20px;
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .article-title {
    font-size: 1.9rem;
  }

  .brand {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .header-content {
    padding: 14px 5%;
  }

  .meta-date::before {
    content: "";
  }

  .meta-date {
    display: block;
    margin-top: 2px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --bg: #ffffff !important;
    --bg-soft: #ffffff !important;
    --text: #000000 !important;
    --text-muted: #000000 !important;
    --border: #999999 !important;
    --border-soft: #cccccc !important;
    --link: #000000 !important;
    --link-tint: transparent !important;
    --accent: #000000 !important;
    --orange: #555555 !important;
    --target-bg: transparent !important;
    --footer-bg: #ffffff !important;
    --footer-text: #000000 !important;
    --footer-muted: #555555 !important;
  }

  .skip-link,
  .reading-progress,
  .sticky-article-bar,
  .mobile-sticky-wrapper,
  .sidebar-right,
  .theme-toggle,
  .btn-download,
  dialog,
  [data-dialog],
  .envelope-sup,
  .sep,
  .fig-expand,
  .fig-tooltip,
  .cite-popover,
  .footer-grid,
  .footer-top {
    display: none !important;
  }

  body.resume-page {
    font-size: 11pt;
  }

  .resume-main {
    display: block;
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .resume-header {
    border-bottom: 2px solid #000;
  }

  a {
    text-decoration: none !important;
    color: #000 !important;
  }

  a[href^="http"]:not(.citation-link)::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }

  .brand::after,
  #data a::after {
    content: none !important;
  }

  .content-section h2,
  figcaption,
  caption {
    break-after: avoid;
  }

  figure,
  table {
    break-inside: avoid;
  }
}
