@import "banner.css";

:root {
  --black: #000000;
  --white: #ffffff;

  --bg: #000000;
  --content-color: #ffffff;
}

@media screen and (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --content-color: #000000;
  }
}

html[data-theme="light"] {
  --bg: #ffffff;
  --content-color: #000000;
  color-scheme: light;

  logo,
  navlogo,
  biglogo,
  headerlogo {
    filter: invert(100%);
  }
}

html[data-theme="light"] .logo,
html[data-theme="light"] .navlogo,
html[data-theme="light"] .biglogo,
html[data-theme="light"] .headerlogo {
  filter: invert(100%);
}

html[data-theme="light"] .logo,
html[data-theme="light"] .navlogo,
html[data-theme="light"] .biglogo,
html[data-theme="light"] .headerlogo {
  filter: invert(100%);
}

html[data-theme="dark"] {
  --bg: #000000;
  --content-color: #ffffff;
  color-scheme: dark;
}

html {
  background-color: var(--bg);
  color: var(--content-color);
  --pagefind-ui-primary: var(--content-color);
  --pagefind-ui-text: var(--content-color);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--content-color);
  --pagefind-ui-tag: var(--bg);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 2px;
  --pagefind-ui-image-border-radius: 2px;
  --pagefind-ui-font: "mozilla-text", sans-serif;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  font-size: 1rem;
  overflow-y: scroll;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 2%;
  box-sizing: border-box;
  font-family: "mozilla-text", sans-serif;
  font-style: normal;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.border-wrapper {
  border: 2px solid var(--content-color);
  padding: 2%;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

a,
button,
hr,
img,
svg,
input,
select,
.nav-item,
.nav-dropdown__link,
.nav-dropdown__menu,
.nav-dropdown__chevron,
.box,
.boxed,
ul.tagslist li {
  transition-property: background-color, border-color, color, filter, fill, stroke;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

main,
.main {
  flex: 1 1 auto;
  width: 85%;
}

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

html[data-article-width="wide"] main,
html[data-article-width="wide"] .main {
  width: 94%;
}

a {
  color: var(--content-color);
  text-decoration: underline;
}

main p,
main li {
  font-size: var(--article-text-size, 1rem);
  line-height: var(--article-line-height, normal);
}

main p {
  margin-block: var(--article-paragraph-gap, 1em);
}

html[data-article-text-size="large"] {
  --article-text-size: 1.125rem;
}

html[data-article-text-size="extra"] {
  --article-text-size: 1.25rem;
}

html[data-article-line-spacing="relaxed"] {
  --article-line-height: 1.65;
  --article-paragraph-gap: 1.15em;
}

html[data-article-line-spacing="loose"] {
  --article-line-height: 1.9;
  --article-paragraph-gap: 1.3em;
}

.f1-driver-name {
  color: var(--content-color);
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.f1-driver-name:hover {
  color: var(--driver-color);
}

.f1-driver-name:focus {
  color: var(--driver-color);
  outline: 1px solid var(--driver-color);
  outline-offset: 2px;
}

html[data-driver-color-mode="always"] .f1-driver-name {
  color: var(--driver-color);
  font-weight: 700;
}

.f1-driver-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 10;
  width: max-content;
  min-width: 12rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--driver-color);
  background-color: var(--bg);
  color: var(--content-color);
  box-shadow: 0 0 0 1px var(--bg);
  font-family: "aileron", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.f1-driver-name:hover .f1-driver-card,
.f1-driver-name:focus .f1-driver-card,
.f1-driver-name:focus-within .f1-driver-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.f1-driver-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--driver-color);
  border-bottom: 1px solid var(--driver-color);
  background-color: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.f1-driver-card-label {
  display: block;
  color: var(--driver-color);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.f1-driver-card-title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--driver-color);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.f1-driver-card-row,
.f1-driver-card-stat {
  display: block;
  margin-top: 0.35rem;
}

.f1-driver-card-value,
.f1-driver-card-stat-value {
  display: block;
}

.f1-driver-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.f1-driver-card-chip {
  border: 1px solid var(--driver-color);
  padding: 0.12rem 0.3rem;
}

.f1-driver-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.35rem 0.5rem;
  margin-top: 0.25rem;
}

.reading-settings {
  margin: 0.5rem 0 1.5rem;
  max-width: 620px;
  font-family: "aileron", sans-serif;
}

.reading-settings__summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--content-color);
  padding: 0.45rem 0.65rem;
  font-family: "aileron", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.reading-settings__summary::-webkit-details-marker {
  display: none;
}

.reading-settings__summary::after {
  content: "+";
  margin-left: 0.65rem;
}

.reading-settings[open] .reading-settings__summary::after {
  content: "-";
}

.reading-settings__summary:hover,
.reading-settings__summary:focus-visible {
  background-color: var(--content-color);
  color: var(--bg);
  outline: none;
}

.reading-settings__panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  border-left: 2px solid var(--content-color);
  padding-left: 0.85rem;
}

.reading-settings__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) 1fr;
  align-items: center;
  gap: 0.75rem;
}

.reading-settings__label {
  font-size: 0.82rem;
  font-weight: 700;
}

.reading-settings__control {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--content-color);
}

.reading-settings__button {
  border: 0;
  background: transparent;
  color: var(--content-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}

.reading-settings__button+.reading-settings__button {
  border-left: 1px solid var(--content-color);
}

.reading-settings__button:hover,
.reading-settings__button:focus-visible,
.reading-settings__button.is-active {
  background-color: var(--content-color);
  color: var(--bg);
  outline: none;
}

@media screen and (max-width: 640px) {
  .reading-settings {
    max-width: 100%;
  }

  .reading-settings__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .reading-settings__control {
    width: 100%;
  }

  .reading-settings__button {
    flex: 1 1 0;
  }
}

picture {
  margin: 1% auto;
  display: flex;
  flex-direction: column;
}

.biglogo {
  margin: 3% auto 3% auto;
  width: 500px;
  height: auto;
}

.titlelogo {
  width: 600px !important;
}

.headerlogo {
  width: 200px;
  height: auto;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 98%;
  position: relative;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.nav-brand picture {
  width: auto;
  margin: 1% auto;
}

.navlogo {
  transition: transform 0.3s ease;
  height: 42px;
  /* the answer to life the universe and everything innit? */
  margin-top: -1%;
  margin-bottom: 5%;
}

hr {
  width: 98%;
  height: 2px;
  background-color: var(--content-color);
  border: none;
}

.nav-hr {
  height: 4px;
}

.section-hr {
  margin: auto auto auto 2px;
  height: 6px;
}

.red-hr {
  background-color: red;
}

.about-block {
  margin-bottom: 4%;
}

.about-title-block {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: nowrap;
  text-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 1%;
}

.page-logo-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 2%;
  margin-top: 1%;
  scale: 1.8;
  padding: 1%;
}

.page-logo-box h1 {
  margin: auto 4% auto auto;
  text-wrap: nowrap;
  white-space: nowrap;
}

.page-logo-box picture {
  padding-left: 4%;
  margin-bottom: -1.5%;
  border-left: 2px solid var(--content-color);
}

footer,
.footer {
  font-size: 0.7rem;
  margin-top: auto;
  margin-bottom: -1.5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.indev-footer::after {
  /* This will generally remain unused. */
  content: " | You're viewing a development version of this site. Expect some bugs.";
  font-size: 0.7rem;
}

p {
  font-family: "aileron", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p#indev-footer {
  width: 80%;
  align-content: center;
  text-align: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
}

.nav-item {
  padding-left: 7px;
  padding-right: 8px;
  border-right: 2px solid var(--content-color);
  text-decoration: none;
  color: var(--content-color);
}

.nav-dropdown__toggle.nav-item {
  border-right: none;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-dropdown,
.nav-dropdown-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__chevron {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-right: 2px solid var(--content-color);
  border-bottom: 2px solid var(--content-color);
  transform: rotate(45deg);
  margin-top: -2px;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--bg);
  border: 2px solid var(--content-color);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown-mobile:hover .nav-dropdown__menu,
.nav-dropdown-mobile:focus-within .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__link {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--content-color);
  white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  text-decoration: underline;
}

.nav-menu-button {
  appearance: none;
  height: 30px;
  padding: 0 8px;
  border: 2px solid var(--content-color);
  border-radius: 2px;
  background: var(--bg);
  color: var(--content-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}

.nav-menu-button:hover,
.nav-menu-button:focus-visible,
.nav-menu-button[aria-expanded="true"] {
  background: var(--content-color);
  color: var(--bg);
}

.nav-menu-button:active {
  transform: translateY(1px);
}

.nav-menu-button:focus-visible {
  outline: 2px solid var(--content-color);
  outline-offset: 2px;
}

.nav-menu-button__label {
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0;
}

.nav-menu-button__icon {
  width: 13px;
  height: 11px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-menu-button__icon span {
  width: 100%;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  display: none;
}

.mobile-menu__link {
  color: var(--content-color);
  text-decoration: none;
}

.theme-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__button {
  appearance: none;
  border: 2px solid var(--content-color);
  background: var(--bg);
  color: var(--content-color);
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}

.theme-toggle__button:hover,
.theme-toggle__button:focus-visible {
  background: var(--content-color);
  color: var(--bg);
}

.theme-toggle__button:active {
  transform: translateY(1px);
}

.theme-toggle__button:focus-visible {
  outline: 2px solid var(--content-color);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.search {
  width: min(760px, 90%);
  word-wrap: break-word;
  line-break: anywhere;
  overflow-x: hidden;
  border: 3px solid var(--content-color);
  box-sizing: border-box;
  padding: 12px;
  margin: 0 auto 2rem;
  background: var(--bg);
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.search-form__input {
  min-width: 0;
  flex: 1 1 auto;
  border: 2px solid var(--content-color);
  border-radius: 2px;
  background: var(--bg);
  color: var(--content-color);
  padding: 9px 10px;
  font: inherit;
}

.search-form__input:focus,
.search-tools select:focus,
.search-form__button:focus-visible,
.search-tools__clear:focus-visible,
.search-load-more:focus-visible {
  outline: 2px solid var(--content-color);
  outline-offset: 2px;
}

.search-form__button,
.search-tools__clear,
.search-load-more {
  appearance: none;
  border: 2px solid var(--content-color);
  border-radius: 2px;
  background: var(--bg);
  color: var(--content-color);
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  padding: 0 12px;
}

.search-form__button:hover,
.search-tools__clear:hover,
.search-load-more:hover {
  background: var(--content-color);
  color: var(--bg);
}

.search-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 8px;
  margin-top: 10px;
}

.search-tools__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.search-tools select {
  width: 100%;
  border: 2px solid var(--content-color);
  border-radius: 2px;
  background: var(--bg);
  color: var(--content-color);
  padding: 7px 8px;
  font: inherit;
  text-transform: none;
}

.search-tools__clear {
  align-self: end;
  min-height: 36px;
}

.search-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 2px solid var(--content-color);
  box-sizing: border-box;
}

.search-result--no-image {
  grid-template-columns: 1fr;
}

.search-result__image-link {
  display: block;
  border: 2px solid var(--content-color);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.search-result__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-result__body {
  min-width: 0;
}

.search-result__meta {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
}

.search-result__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.search-result__title a {
  color: var(--content-color);
}

.search-result__excerpt {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.search-result mark {
  background: var(--content-color);
  color: var(--bg);
  padding: 0 2px;
}

.search-load-more {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
}

.pagefind-article-data {
  display: none;
}

@media (max-width: 768px) {
  .theme-toggle {
    margin-left: 0;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-right {
    justify-content: flex-end;
  }

  .search-form {
    flex-direction: column;
  }

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

  .search-form__button,
  .search-tools__clear {
    min-height: 38px;
  }

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

@media (prefers-reduced-motion: reduce) {

  .theme-toggle,
  .theme-toggle::before,
  .theme-toggle__button {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .thumb-img,
  .boxed,
  .navlogo {
    transition: none;
  }

  .news-ticker {
    animation: none;
  }
}

.active {
  font-weight: bold;
}

.horizontal-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 1%;
  align-items: flex-start;
  justify-content: center;
}

.box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--content-color);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.article-box:hover .thumb-img {
  transform: scale(1.05);
}

.article-box>a {
  display: block;
  width: 100%;
}

.article-box {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  gap: 0.75rem;
  flex: 0 0 calc(25% - 20px);
  box-sizing: border-box;
}

.article-box p {
  margin: 0;
}

.body-image {
  max-width: 30%;
  height: auto;
  margin: 1%;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

.boxed {
  border: 2px solid var(--content-color);
  transition: transform 0.3s ease;
}

.boxed:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--content-color);
}

.hoverglow:hover {
  box-shadow: 0 0 10px var(--content-color);
}

.hoverglow-red:hover {
  box-shadow: 0 0 10px red;
}

.footnotes,
.footnotes-list,
.footnote-item,
.footnotes p,
.footnotes li p,
.footnote-item p,
.footnotes a,
.footnotes sup {
  font-family: inherit;
}

.footnotes,
.footnotes-list {
  font-size: 0.75rem;
  line-height: 1.25;
}

.footnotes li,
.footnotes li p,
.footnote-item,
.footnote-item p {
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
  margin: 0 0 0.45rem 0;
}

.footnote-backref,
.footnotes a.footnote-backref {
  font-size: 0.68rem !important;
  margin-left: 0.35rem;
  text-decoration: none;
  opacity: 0.8;
}

.footnotes-list {
  margin-top: 0.3rem;
  margin-left: 1.25rem;
  padding-left: 0;
  list-style-position: outside;
}

blockquote {
  margin-left: 4%;
  border-left: 4px solid var(--content-color);
  padding-left: 1.5%;
}

ul.tagslist {
  display: flex;
  flex-direction: row;
  gap: 10px;
  list-style-position: inside;
  padding-left: 0;
}

ul.tagslist li {
  display: inline;
  padding: 0px 5px 5px 5px;
  border: 2px solid var(--content-color);
  border-radius: 2px;
}


@media screen and (max-width: 900px) {
  .article-box {
    flex: 0 0 calc(50% - 20px);
  }

  picture {
    width: 80%;
  }

  .biglogo {
    width: 86%;
  }

  .navlogo {
    margin-top: 0px;
    margin-bottom: 0;
    width: min(56vw, 210px);
    height: auto;
  }

  .titlelogo {
    width: 86% !important;
  }

  .page-logo-box {
    scale: 1;
  }

  .page-logo-box picture {
    display: none;
  }

  .nav-dropdown-mobile,
  .nav-mobile {
    display: flex;
  }

  nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-brand picture {
    margin: 0;
  }

  .nav-right {
    gap: 6px;
    margin-left: auto;
  }

  .theme-toggle {
    order: 1;
  }

  .nav-mobile {
    order: 2;
  }

  .nav-dropdown,
  .nav-desktop {
    display: none;
  }

  .mobile-menu {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    border: 2px solid var(--content-color);
    background: var(--bg);
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu__link {
    min-height: 34px;
    padding: 7px 8px;
    border: 2px solid var(--content-color);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:focus-visible,
  .mobile-menu__link.active {
    background: var(--content-color);
    color: var(--bg);
    text-decoration: none;
  }

  .search {
    width: 80% !important;
  }
}

@media screen and (min-width: 901px) {

  .nav-dropdown-mobile,
  .nav-mobile {
    display: none;
  }

  .nav-dropdown,
  .nav-desktop {
    display: flex;
  }
}

@media (max-width: 600px) {
  nav {
    justify-content: center;
  }

  .nav-brand {
    justify-content: center;
    flex: 0 0 100%;
  }

  .navlogo {
    width: min(72vw, 210px);
  }

  .nav-right {
    justify-content: center;
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu {
    margin-top: 8px;
  }

  .article-box {
    flex: 0 0 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .footnotes,
  .footnotes-list,
  .footnote-item,
  .footnote-backref,
  .footnotes li p {
    font-size: 0.95rem !important;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .navlogo {
    width: min(78vw, 190px);
  }

  .nav-menu-button {
    padding-inline: 7px;
    gap: 6px;
  }
}



.news-container {
  width: 98%;
  overflow: hidden;
  background: var(--bg);
  padding: 10px 0;
  position: relative;
  border-radius: 5px;
}

.news-title {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: bold;
  color: var(--bg);
  background: var(--content-color);
  padding: 5px 10px;
  border-radius: 3px;
}

.news-ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.news-ticker {
  display: flex;
  white-space: nowrap;
  animation: scroll linear infinite;
}

.news-ticker span {
  padding: 0 20px;
  color: var(--content-color);
  font-size: 16px;
  border-right: 3px solid var(--content-color);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
