:root {
  --text: #202124;
  --muted: #5f6368;
  --link: #2b6cb0;
  --border: #dcdfe4;
  --soft: #f7f8fa;
  --nav-bg: rgba(255, 255, 255, 0.94);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: "Google Sans", "Product Sans", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  max-width: 100vw;
  backdrop-filter: blur(12px);
}

.top-nav a {
  display: block;
  padding: 12px 15px;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.top-nav a:hover {
  background: #f1f3f5;
  text-decoration: none;
}

.page {
  width: min(1040px, calc(100% - 34px));
  margin: 0 auto;
  padding: 34px 0 82px;
  overflow-x: hidden;
}

.paper-header {
  text-align: center;
  margin: 6px auto 54px;
}

h1 {
  overflow-wrap: anywhere;
  max-width: 940px;
  margin: 0 auto 18px;
  font-family: "Google Sans", "Product Sans", Roboto, Arial, sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.authors,
.venue {
  margin: 5px 0;
  color: #333;
  font-size: 18px;
}

.venue {
  color: var(--muted);
  font-size: 16px;
}

section {
  margin: 42px 0 58px;
  scroll-margin-top: 24px;
}

hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
  font-family: "Google Sans", "Product Sans", Roboto, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

h3 {
  margin: 26px 0 10px;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.heading-note {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
}

p {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

ul {
  margin: 10px 0 0 22px;
  padding: 0;
}

li {
  margin: 8px 0;
}

.teaser {
  margin-top: 16px;
}

.figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.video-full,
.hero-video,
.video-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #000;
}

.autoplay-video {
  pointer-events: none;
}

.video-full {
  margin: 12px auto 0;
}

.hero-video {
  max-width: 960px;
  margin: 34px auto 0;
}

.finding {
  margin: 38px 0 52px;
}

.result-note {
  margin: 10px 0 18px;
  color: var(--text);
}

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

.video-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.placeholder {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #aaa;
  background:
    linear-gradient(45deg, #fafafa 25%, transparent 25%),
    linear-gradient(-45deg, #fafafa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fafafa 75%),
    linear-gradient(-45deg, transparent 75%, #fafafa 75%),
    #f1f1f1;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  color: #444;
  text-align: center;
}

.placeholder div {
  max-width: 640px;
  width: 100%;
  padding: 22px;
  overflow-wrap: anywhere;
}

.placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.placeholder span {
  display: block;
  color: #555;
}

.teaser-placeholder {
  min-height: 380px;
}

.wide {
  min-height: 330px;
  margin: 18px 0 8px;
}

.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.tacview-explainer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
  margin: 22px 0 4px;
}

.tacview-explainer h4 {
  margin-bottom: 8px;
  font-size: 17px;
}

.tacview-explainer p {
  margin-bottom: 0;
}

.tacview-img {
  display: block;
  width: min(100%, 452px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #000;
}

.caption {
  margin: 10px auto 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

table {
  width: 100%;
  margin: 18px 0 26px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

caption {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

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

th {
  background: #f1f3f5;
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: #fafafa;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 14px;
  font-size: 14px;
}

code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

@media (max-width: 760px) {
  .top-nav {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    overflow: visible;
  }

  .top-nav a {
    flex: none;
    padding: 9px 8px;
    font-size: 12px;
  }

  h1 {
    max-width: 340px;
    font-size: 30px;
  }

  .page {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    padding-top: 24px;
  }

  .links {
    display: none;
  }

  .caption {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
  }

  section p,
  li {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
  }

  .placeholder div {
    max-width: 320px;
  }

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

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

  .video-grid,
  .video-grid.two {
    grid-template-columns: 1fr;
  }

  .figure-img {
    width: 330px !important;
    max-width: 100% !important;
  }

  .table-wrap {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  table {
    white-space: nowrap;
  }
}
