/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: #eeee22;
}

a:hover,
a:focus {
  color: #ffe033;
}

/* Typography */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background-color: #efbf21;
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: #ffe033;
  color: #ffffff;
}

.btn--secondary {
  background-color: #efbf21;
  color: #ffffff;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: #1a1a2e;
  color: #ffffff;
}

/* Header */
.site-header {
  background-color: #333333;
  border-bottom: 1px solid #ffffff;
  padding: 1rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__home {
  display: inline-flex;
  align-items: center;
}

.site-header__logo {
  height: 40px;
  width: auto;
}

.site-header__cta {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #333333;
  border-top: 1px solid #ffffff;
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__legal {
  color: #ffffff;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Responsive */
@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .container {
    padding: 0 2rem;
  }

  .site-header__logo {
    height: 48px;
  }
}

/* 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1rem;
  min-height: 50vh;
}

.not-found__code {
  font-size: 4rem;
  font-weight: 700;
  color: #efbf21;
  margin-bottom: 0;
  line-height: 1;
}

.not-found__title {
  margin-bottom: 0;
}

.not-found__text {
  color: #ffffff;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

/* ---- Article page (/) ---- */

.article-page {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #333333;
}

.hero__media {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__content {
  position: relative;
  padding: 1.5rem 1rem 2rem;
}

.hero__content h1 {
  font-size: 1.75rem;
  max-width: 48ch;
}

.hero__content p {
  max-width: 60ch;
  opacity: 0.9;
}

.hero__cta {
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .hero__media {
    height: 420px;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }
}

/* Intro + TOC */
.intro {
  padding-top: 2rem;
}

.toc {
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #333333;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.toc ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.toc li::before {
  content: "\2713";
  color: #efbf21;
  margin-right: 0.5rem;
}

@media (min-width: 700px) {
  .toc ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

.promo-banner {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ffffff;
}

/* Article sections */
.section {
  padding: 1.75rem 1rem;
  border-top: 1px solid #333333;
}

.section h2 {
  font-size: 1.5rem;
}

.section .btn {
  margin-top: 0.5rem;
}

.section--trust {
  background-color: #333333;
  border-radius: 8px;
}

/* Lists */
.article-page ol,
.article-page ul:not(.toc ul) {
  margin: 0 0 1em 1.25rem;
}

.article-page li {
  margin-bottom: 0.4em;
}

.sources-list {
  list-style: disc;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #ffffff;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #333333;
  vertical-align: top;
}

thead th {
  background-color: #333333;
  color: #ffffff;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}

/* FAQ accordion */
.faq-item {
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background-color: #333333;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  display: inline;
  font-size: 1.05rem;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: #efbf21;
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
}