html {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #f7f7f2;
  color: #1c2520;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.snu-page,
.ideas-page,
.idea-page,
.videos-page,
.video-page,
.home-page,
.trial-expired-page {
  width: min(100% - 2rem, 42rem);
  max-width: 42rem;
  margin: 4rem auto;
}

.ideas-page,
.idea-page,
.videos-page,
.video-page,
.home-page {
  max-width: 48rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem min(1rem, 4vw);
  background: #e6e9dc;
  border-bottom: 1px solid #c6ccb6;
  box-shadow: 0 1px 6px rgb(28 37 32 / 8%);
}

.site-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-operator {
  font-size: 0.875rem;
  opacity: 0.85;
}

.site-nav a {
  color: #1c2520;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav-viewer a {
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: #1c2520;
}

.site-nav + main {
  margin-top: 2rem;
}

.home-kicker,
.video-snu-position {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  opacity: 0.7;
}

.home-lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.home-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.home-links li {
  display: grid;
  gap: 0.15rem;
}

.home-links span {
  font-size: 0.9375rem;
  opacity: 0.8;
}

.home-note {
  font-size: 0.875rem;
  opacity: 0.75;
}

.video-list,
.video-snu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.video-item a,
.video-snu-item a {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #d3d8c8;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.video-item a:hover,
.video-item a:focus-visible,
.video-snu-item a:hover,
.video-snu-item a:focus-visible {
  border-color: #1c2520;
}

.video-item a:visited,
.video-snu-item a:visited {
  background: #e9e9e2;
}

.video-title {
  font-weight: 600;
}

.video-meta,
.video-snu-range {
  font-size: 0.875rem;
  opacity: 0.75;
}

.video-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0 0 1rem;
}

.video-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.video-facts dd {
  margin: 0;
}

.video-message {
  opacity: 0.8;
}

.operator-status-page {
  width: min(100% - 2rem, 72rem);
  margin: 2rem auto 4rem;
}

.operator-status-header {
  margin-bottom: 2rem;
}

.operator-status-header p {
  margin: -0.75rem 0 0;
  color: #536057;
}

.operator-status-section {
  margin-top: 2rem;
}

.operator-status-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.operator-status-section table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.9rem;
}

.operator-status-section th,
.operator-status-section td {
  padding: 0.6rem 0.7rem;
  border: 1px solid #d7d8d0;
  text-align: left;
  vertical-align: top;
}

.operator-status-section th {
  background: #eef0ea;
  color: #536057;
}

.operator-status-section code {
  white-space: normal;
}

.operator-compare-page {
  width: min(100% - 2rem, 88rem);
}

.operator-warning {
  padding: 0.85rem 1rem;
  border: 1px solid #c79242;
  border-left-width: 4px;
  background: #fff7eb;
}

.operator-warning h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.operator-warning p {
  margin: 0;
  overflow-wrap: anywhere;
}

.operator-run-block h3 {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.98rem;
  color: #536057;
}

.operator-compare-table {
  table-layout: fixed;
}

.operator-compare-table th,
.operator-compare-table td {
  overflow-wrap: anywhere;
}

.operator-snu-samples td {
  line-height: 1.4;
}

.operator-muted {
  color: #536057;
  font-size: 0.86rem;
}

.snu-nav,
.idea-nav {
  margin-bottom: 1rem;
}

.snu-nav a,
.idea-nav a {
  color: #1f4d3a;
  font-weight: 700;
}

.snu-nav a:focus-visible,
.idea-nav a:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 3px;
}

.snu-card {
  padding: 2rem;
  border: 1px solid #d7d8d0;
  border-radius: 8px;
  background: #ffffff;
}

.trial-expired-panel {
  padding: 2rem;
  border: 1px solid #d7d8d0;
  border-radius: 8px;
  background: #ffffff;
}

.trial-expired-panel p {
  margin: 0 0 1.25rem;
  color: #536057;
  line-height: 1.55;
}

.trial-expired-panel a {
  color: #1f4d3a;
  font-weight: 700;
}

.trial-expired-panel a:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 3px;
}

.trial-expired-kicker {
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
}

dt {
  color: #536057;
  font-weight: 700;
}

dd {
  margin: 0;
}

.snu-text {
  margin: 1.5rem 0 0;
  line-height: 1.5;
}

.snu-more {
  margin-top: 1.5rem;
}

.snu-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}

.snu-more-toggle::-webkit-details-marker {
  display: none;
}

.snu-more-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #1c2520;
  transition: transform 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .snu-more-toggle::before {
    transition: none;
  }
}

.snu-more[open] .snu-more-toggle::before {
  transform: rotate(90deg);
}

.snu-more-toggle:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 2px;
}

.snu-more-body {
  margin-top: 0.5rem;
}

.snu-more-body .snu-text {
  margin: 0 0 1.5rem;
}

.snu-more-body dl {
  margin: 0;
}

.snu-player,
.snu-player-unavailable {
  margin-top: 1.5rem;
}

.snu-player-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid #c9cbc2;
  border-radius: 8px;
  background: #111816;
}

.snu-player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.snu-player-status,
.snu-player-unavailable {
  color: #536057;
  line-height: 1.45;
}

.snu-player-status {
  margin: 0.75rem 0 0;
}

.snu-player-status:empty {
  display: none;
}

.snu-player-unavailable {
  padding: 0.85rem 1rem;
  border-left: 3px solid #a66f2b;
  background: #fbf3e9;
}

.snu-player.is-ended .snu-player-frame {
  border-color: #1f4d3a;
}

.related-section {
  margin-top: 2rem;
}

.related-section.is-ended,
.related-section.is-available {
  padding-top: 1rem;
  border-top: 3px solid #1f4d3a;
}

.snu-player.is-ended .snu-player-frame,
.snu-player.is-unavailable .snu-player-frame {
  display: none;
}

.related-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

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

.related-item a {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid #d7d8d0;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: #1f4d3a;
}

.related-item a:visited {
  background: #e9e9e2;
}

.related-item a:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 2px;
}

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

.related-meta,
.related-empty {
  color: #536057;
}

.related-meta {
  font-size: 0.92rem;
}

.related-text {
  line-height: 1.45;
}

.search-page {
  width: min(100% - 2rem, 48rem);
  margin: 3rem auto;
}

.search-header,
.ideas-header,
.idea-detail-header {
  margin-bottom: 1.5rem;
}

.idea-detail-header p {
  margin: -0.75rem 0 0;
  color: #536057;
  line-height: 1.5;
}

.search-form,
.idea-search-form {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.search-form label,
.idea-search-form label {
  color: #536057;
  font-weight: 700;
}

.search-row,
.idea-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.search-row input,
.search-row button,
.idea-search-row input,
.idea-search-row button {
  min-height: 2.75rem;
  border: 1px solid #c9cbc2;
  border-radius: 6px;
  font: inherit;
}

.search-row input,
.idea-search-row input {
  min-width: 0;
  padding: 0 0.85rem;
  background: #ffffff;
  color: inherit;
}

.search-row button,
.idea-search-row button {
  padding: 0 1rem;
  background: #1f4d3a;
  color: #ffffff;
  cursor: pointer;
}

.search-row input:focus-visible,
.search-row button:focus-visible,
.idea-search-row input:focus-visible,
.idea-search-row button:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 2px;
}

.search-message,
.idea-message {
  margin: 1rem 0;
  color: #536057;
}

.search-results,
.idea-list,
.idea-timeline,
.timeline-years {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.search-result a,
.idea-item a,
.timeline-entry a {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid #d7d8d0;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.search-result a:hover,
.search-result a:focus-visible,
.idea-item a:hover,
.idea-item a:focus-visible,
.timeline-entry a:hover,
.timeline-entry a:focus-visible {
  border-color: #1f4d3a;
  outline: none;
}

.search-result a:visited,
.idea-item a:visited,
.timeline-entry a:visited {
  background: #e9e9e2;
}

.idea-item a:focus-visible,
.timeline-entry a:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 2px;
}

.result-title,
.idea-title,
.timeline-title {
  font-weight: 700;
}

.result-meta,
.idea-meta,
.timeline-meta,
.timeline-year {
  color: #536057;
  font-size: 0.92rem;
}

.result-text,
.idea-summary,
.timeline-text {
  line-height: 1.45;
}

.snu-summary,
.snu-card-summary {
  line-height: 1.45;
}

.snu-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.snu-keyword {
  padding: 0.15rem 0.55rem;
  border: 1px solid #c9d6ce;
  border-radius: 999px;
  background: #eef3f0;
  color: #1f4d3a;
  font-size: 0.85rem;
  line-height: 1.6;
}

a.snu-keyword-link {
  /* A linked keyword must be told apart from a plain one at rest, not only on
     hover: a touch viewer never hovers, and the pills sit side by side. */
  color: #1f4d3a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.snu-keyword-link:hover,
a.snu-keyword-link:focus-visible {
  border-color: #1f4d3a;
  background: #dcebe3;
}

a.snu-keyword-link:focus-visible {
  outline: 3px solid #1f4d3a;
  outline-offset: 2px;
}

.snu-card-summary {
  /* One line-height of breathing room between the player and the summary. */
  margin: 1.5rem 0 0.75rem;
  margin-top: 1lh;
  font-size: 1.05rem;
}

.snu-card-keywords {
  margin: 0 0 1.5rem;
}

.timeline-years {
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 0.5rem;
}

.timeline-years li {
  padding: 0.55rem 0.75rem;
  border-left: 3px solid #1f4d3a;
  background: #ffffff;
  color: #536057;
  font-weight: 700;
}

.idea-timeline {
  position: relative;
}

.timeline-entry {
  position: relative;
  padding-left: 1.1rem;
}

.timeline-entry::before {
  position: absolute;
  top: 0;
  bottom: -0.75rem;
  left: 0;
  width: 2px;
  background: #c9cbc2;
  content: "";
}

.timeline-entry:last-child::before {
  bottom: 1rem;
}

@media (max-width: 36rem) {
  .snu-page,
  .ideas-page,
  .idea-page,
  .trial-expired-page,
  .operator-status-page {
    margin: 2rem auto;
  }

  .snu-card,
  .trial-expired-panel {
    padding: 1.25rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .search-row,
  .idea-search-row {
    grid-template-columns: 1fr;
  }

  .search-row button,
  .idea-search-row button {
    width: 100%;
  }
}
