/* =========================================================
   CONTENT
   Vavada Mirror
========================================================= */

/* =========================================================
   1. CONTENT ROOT
========================================================= */

.site-main {
  padding: 90px 0;

  line-height: 1.75;
}

.page-content__article,
.front-page__content {
  min-width: 0;
}

/* =========================================================
   2. HEADINGS
========================================================= */

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.site-main h5,
.site-main h6 {
  color: var(--text);

  text-wrap: balance;
}

.site-main h1 {
  margin: 24px 0 28px;

  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.site-main h2 {
  margin: 64px 0 22px;

  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 880;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.site-main h3 {
  margin: 34px 0 14px;

  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.site-main h4 {
  margin: 28px 0 12px;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.site-main h5,
.site-main h6 {
  margin: 24px 0 10px;

  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

/* =========================================================
   3. TEXT
========================================================= */

.site-main p {
  color: var(--muted);

  font-size: 17px;
  line-height: 1.82;
}

.site-main h2 + p {
  color: var(--text-soft);

  font-size: 18px;
}

.site-main strong,
.site-main b {
  color: var(--text);

  font-weight: 800;
}

.site-main em {
  color: var(--text-soft);
}

.site-main small {
  color: var(--muted-dark);
}

/* =========================================================
   4. CONTENT LINKS
========================================================= */

.site-main p a,
.site-main li a,
.site-main td a:not(.bookmaker-table__button),
.site-main blockquote a {
  color: var(--accent-2);

  text-decoration: underline;
  text-decoration-color: rgba(255, 49, 87, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition:
    color var(--transition),
    text-decoration-color var(--transition);
}

.site-main p a:hover,
.site-main li a:hover,
.site-main td a:not(.bookmaker-table__button):hover,
.site-main blockquote a:hover {
  color: var(--accent-light);
}

/* =========================================================
   5. COMPONENT LINK RESETS
========================================================= */

/*
 * Component appearance belongs to the component stylesheet.
 * Content styles only prevent generic text-link decoration.
 */

.site-main td a.bookmaker-table__button {
  color: #ffffff !important;

  text-decoration: none !important;
}

.site-main td a.bookmaker-table__button:hover {
  color: #ffffff !important;

  text-decoration: none !important;
}

/* =========================================================
   6. LISTS
========================================================= */

.site-main ul,
.site-main ol {
  max-width: 900px;
  margin: 0 0 28px;
  padding-left: 24px;
}

.site-main li {
  margin-bottom: 10px;
  padding-left: 4px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.72;
}

.site-main li:last-child {
  margin-bottom: 0;
}

.site-main ul li::marker {
  color: var(--accent);
}

.site-main ol li::marker {
  color: var(--accent);

  font-weight: 850;
}

.site-main li > ul,
.site-main li > ol {
  margin-top: 10px;
  margin-bottom: 0;
}

/* =========================================================
   7. BLOCKQUOTE
========================================================= */

.site-main blockquote {
  position: relative;

  max-width: 900px;
  margin: 34px 0;
  padding: 22px 26px;

  color: var(--text-soft);

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 18px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 26px rgba(0, 0, 0, 0.14);

  font-size: 17px;
  line-height: 1.75;
}

.site-main blockquote::before {
  position: absolute;
  top: 14px;
  right: 18px;

  color: rgba(255, 49, 87, 0.08);

  content: '❝';

  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;

  pointer-events: none;
}

.site-main blockquote p {
  margin: 0;

  color: inherit;
}

.site-main blockquote p + p {
  margin-top: 12px;
}

/* =========================================================
   8. SEPARATOR
========================================================= */

.site-main hr {
  height: 1px;
  margin: 52px 0;

  background: linear-gradient(90deg, transparent, rgba(255, 49, 87, 0.18), transparent);

  border: 0;
}

/* =========================================================
   9. CONTENT IMAGES
========================================================= */

.site-main > .container > img,
.site-main .entry-content > img,
.site-main .page-content__article > img,
.site-main .front-page__content > img,
.site-main p > img {
  display: block;

  max-width: 100%;
  height: auto;
  margin: 34px auto;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);

  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.site-main figure {
  max-width: 100%;
  margin: 34px 0;
}

.site-main figure img {
  width: auto;
  max-width: 100%;
  height: auto;

  border-radius: var(--radius-lg);
}

.site-main figcaption {
  margin-top: 10px;

  color: var(--muted-dark);

  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* =========================================================
   10. RESPONSIVE TABLE WRAPPER
========================================================= */

.table-responsive {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;

  overflow-x: auto;
  overflow-y: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 49, 87, 0.5) rgba(255, 255, 255, 0.035);

  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-responsive:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reset accidental duplicate wrappers */

.table-responsive .table-responsive {
  margin: 0;
  padding: 0;

  overflow: visible;

  background: transparent;

  border: 0;
  border-radius: 0;

  box-shadow: none;
}

/* Scrollbar */

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));

  border: 2px solid #16070d;
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* =========================================================
   11. CONTENT TABLES
========================================================= */

/*
 * Exclude bookmaker tables.
 * Their layout and component styles live in bookmaker-table.css.
 */

.site-main table:not(.bookmaker-table) {
  width: 100%;
  min-width: 720px;
  margin: 0;

  background: transparent;

  border: 0;
  border-collapse: collapse;
  border-spacing: 0;

  table-layout: fixed;
}

.site-main table:not(.bookmaker-table) th,
.site-main table:not(.bookmaker-table) td {
  width: auto;

  vertical-align: middle;
  text-align: left;
}

.site-main table:not(.bookmaker-table) th {
  padding: 16px 18px;

  color: var(--text);

  border-bottom: 1px solid var(--line);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.site-main table:not(.bookmaker-table) td {
  padding: 15px 18px;

  color: var(--muted);

  border-top: 1px solid rgba(255, 255, 255, 0.055);

  font-size: 14px;
  line-height: 1.6;

  transition:
    color var(--transition),
    background var(--transition);
}

.site-main table:not(.bookmaker-table) tbody tr:first-child td {
  border-top: 0;
}

.site-main table:not(.bookmaker-table) tbody tr:hover td {
  color: var(--text-soft);

  background: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   12. CODE
========================================================= */

.site-main code {
  padding: 3px 7px;

  color: var(--accent-light);

  background: rgba(255, 49, 87, 0.08);

  border: 1px solid rgba(255, 49, 87, 0.1);
  border-radius: 6px;

  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  font-size: 0.9em;
}

.site-main pre {
  max-width: 100%;
  margin: 30px 0;
  padding: 22px;

  overflow-x: auto;

  color: var(--text-soft);

  background: #12060b;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.site-main pre code {
  padding: 0;

  color: inherit;

  background: transparent;

  border: 0;
  border-radius: 0;
}

/* =========================================================
   13. NOTICE
========================================================= */

.notice {
  position: relative;

  max-width: 900px;
  margin: 30px 0;
  padding: 18px 20px 18px 58px;

  overflow: hidden;

  color: var(--text-soft);

  background: rgba(255, 255, 255, 0.028);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

/* Notice icon */

.notice::before {
  position: absolute;
  top: 18px;
  left: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  color: var(--accent);

  background: rgba(255, 49, 87, 0.07);

  border: 1px solid rgba(255, 49, 87, 0.16);
  border-radius: 8px;

  content: 'i';

  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

/* Notice accent */

.notice::after {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;

  width: 2px;

  content: '';

  background: var(--accent);

  border-radius: 0 999px 999px 0;

  opacity: 0.7;
}

/* Notice content */

.notice p {
  margin: 0;

  color: inherit;

  font-size: 15px;
  line-height: 1.7;
}

.notice p + p {
  margin-top: 10px;
}

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

  font-weight: 750;
}

.notice a {
  color: var(--accent);

  text-decoration: underline;
  text-decoration-color: rgba(255, 49, 87, 0.3);
  text-underline-offset: 3px;
}

.notice a:hover {
  text-decoration-color: currentColor;
}

/* =========================================================
   14. PAGINATION
========================================================= */

.page-content__pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 34px 0;
}

.page-content__pagination a,
.page-content__pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  color: var(--text-soft);

  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: 10px;

  font-size: 13px;
  font-weight: 800;
}

.page-content__pagination a:hover,
.page-content__pagination > span.current {
  color: #16070d;

  background: var(--accent);

  border-color: var(--accent);
}

/* =========================================================
   15. TABLET
========================================================= */
@media (max-width: 1024px) {
  .site-main {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .site-main h1 {
    margin: 14px 0 28px;

    font-size: clamp(34px, 9vw, 46px);
  }

  .site-main h2 {
    margin-top: 48px;

    font-size: clamp(27px, 7vw, 36px);
  }

  .site-main h3 {
    margin-top: 28px;

    font-size: 22px;
  }

  .site-main p {
    font-size: 16px;
    line-height: 1.78;
  }

  .site-main h2 + p {
    font-size: 17px;
  }

  .site-main blockquote {
    margin-block: 28px;
    padding: 18px 18px 18px 22px;

    font-size: 16px;
  }

  .site-main > .container > img,
  .site-main .entry-content > img,
  .site-main .page-content__article > img,
  .site-main .front-page__content > img,
  .site-main p > img,
  .site-main figure {
    margin-block: 28px;
  }

  .table-responsive {
    margin-block: 26px;

    border-radius: 14px;
  }

  .site-main table:not(.bookmaker-table) {
    min-width: 640px;
  }

  .site-main table:not(.bookmaker-table) th {
    padding: 13px 14px;

    font-size: 12px;
  }

  .site-main table:not(.bookmaker-table) td {
    padding: 13px 14px;

    font-size: 13px;
  }

  .notice {
    margin-block: 26px;
    padding: 16px 16px 16px 50px;

    border-radius: 14px;
  }

  .notice::before {
    top: 15px;
    left: 15px;

    width: 22px;
    height: 22px;
  }
}

/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 640px) {
  .notice::before {
    border-radius: 7px;

    font-size: 14px;
  }

  .notice::after {
    top: 16px;
    bottom: 16px;
  }

  .notice p {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* =========================================================
   17. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
  .site-main h1 {
    font-size: 34px;
  }

  .site-main h2 {
    font-size: 28px;
  }

  .site-main h3 {
    font-size: 21px;
  }

  .site-main ul,
  .site-main ol {
    padding-left: 20px;
  }

  .site-main li {
    padding-left: 2px;
  }

  .site-main table:not(.bookmaker-table) {
    min-width: 580px;
  }

  .site-main table:not(.bookmaker-table) th,
  .site-main table:not(.bookmaker-table) td {
    padding-inline: 12px;
  }

  .notice {
    padding-right: 14px;
  }
}

/* =========================================================
   18. TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .site-main table:not(.bookmaker-table) tbody tr:hover td {
    color: var(--muted);

    background: transparent;
  }
}

/* =========================================================
   NO SCROLL TABLE
========================================================= */

.site-main table.no-scroll {
  width: 100%;
  min-width: 0;
}

.table-responsive:has(table.no-scroll) {
  overflow-x: visible;
}
