/*
Theme Name: Casino Affiliate Template
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Modern dark casino affiliate WordPress theme with live casino styling, author pages and built-in schema markup.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-affiliate
*/

/* =========================================================
   ROOT
========================================================= */

:root {
  --bg: #080a0f;
  --bg-soft: #0d1017;
  --panel: #121722;
  --panel-2: #171d29;
  --panel-3: #1b2230;

  --text: #f4f5f7;
  --text-soft: #e3e6ec;
  --muted: #b7bfcc;

  --gold: #f5c451;
  --gold-light: #ffe29a;
  --gold-dark: #b98a24;

  --green: #43e58b;
  --red: #ff6575;

  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(245, 196, 81, 0.3);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);

  --max: 1160px;
  --reading-max: 780px;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.7;
  color: var(--text);

  background:
    radial-gradient(
      circle at 85% -10%,
      rgba(245, 196, 81, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(90, 110, 160, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #080a0f 0%,
      #0b0e14 50%,
      #080a0f 100%
    );

  min-height: 100vh;
}

::selection {
  background: rgba(245, 196, 81, 0.28);
  color: #fff;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.vsa-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;
}

/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.vsa-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.vsa-wrap--bar {
  width: min(100% - 1.5rem, var(--max));
  max-width: var(--max);
  padding-inline: 0;
}

/* =========================================================
   HEADER
========================================================= */

.vsa-masthead {
  position: relative;
  z-index: 100;

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

  background:
    linear-gradient(
      180deg,
      rgba(13, 16, 23, 0.98),
      rgba(8, 10, 15, 0.96)
    );

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.18);
}

.vsa-masthead.vsa-is-pinned {
  position: sticky;
  top: 0;
  z-index: 999;
}

.vsa-masthead.vsa-is-plain {
  position: relative;
  top: auto;
  z-index: 10;
}

.vsa-masthead__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 1.5rem;
}

/* =========================================================
   BRAND
========================================================= */

.vsa-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  color: #fff;

  padding: 0.35rem 0;
  border-radius: 12px;
}

.vsa-brand__mark {
  width: 44px;
  height: 44px;

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

  border: 1px solid var(--border-gold);
  border-radius: 12px;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(245, 196, 81, 0.25),
      transparent 55%
    ),
    #141923;

  overflow: hidden;
  flex-shrink: 0;

  box-shadow:
    0 0 25px rgba(245, 196, 81, 0.08);
}

.vsa-brand__mark-link {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.vsa-brand__mark-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.vsa-brand__fallback {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.vsa-brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.vsa-brand__title {
  font-weight: 850;
  color: var(--gold-light);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.vsa-brand__title-link {
  color: inherit;
}

.vsa-brand__tagline {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.vsa-menu ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.vsa-menu li {
  margin: 0;
}

.vsa-menu a {
  position: relative;

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

  min-height: 42px;
  padding: 0.55rem 0.9rem;

  border: 1px solid transparent;
  border-radius: 10px;

  color: #e1e5ec;
  font-size: 0.9rem;
  font-weight: 700;

  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.vsa-menu a::after {
  content: "";

  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--gold-dark),
      var(--gold),
      var(--gold-light)
    );

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 180ms ease;
}

.vsa-menu a:hover,
.vsa-menu a:focus-visible {
  color: #fff;

  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.vsa-menu a:hover::after,
.vsa-menu a:focus-visible::after,
.vsa-menu .current-menu-item > a::after,
.vsa-menu .current_page_item > a::after,
.vsa-menu .current-menu-ancestor > a::after,
.vsa-menu .current_page_ancestor > a::after {
  transform: scaleX(1);
}

.vsa-menu .current-menu-item > a,
.vsa-menu .current_page_item > a,
.vsa-menu .current-menu-ancestor > a,
.vsa-menu .current_page_ancestor > a {
  color: #fff;

  background:
    linear-gradient(
      180deg,
      rgba(245, 196, 81, 0.11),
      rgba(245, 196, 81, 0.035)
    );

  border-color: rgba(245, 196, 81, 0.16);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.vsa-menu-button {
  display: none;

  width: 44px;
  height: 44px;

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

  background: #141923;

  align-items: center;
  justify-content: center;
  gap: 4px;

  flex-direction: column;
  cursor: pointer;

  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.vsa-menu-button:hover,
.vsa-menu-button:focus-visible {
  border-color: var(--border-gold);
  background: #1a202c;
}

.vsa-menu-button__line {
  width: 19px;
  height: 2px;

  background: #fff;
  border-radius: 2px;
}

/* =========================================================
   HERO
========================================================= */

.vsa-hero {
  position: relative;

  padding: 4.8rem 0 3.2rem;

  border-bottom: 1px solid rgba(255, 255, 255, 0.045);

  overflow: hidden;
}

.vsa-hero::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  top: -280px;
  right: -120px;

  background:
    radial-gradient(
      circle,
      rgba(245, 196, 81, 0.13),
      transparent 68%
    );

  pointer-events: none;
}

.vsa-hero h1 {
  position: relative;

  margin: 0 0 1rem;

  max-width: 900px;

  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.vsa-hero h1 strong {
  color: var(--gold);
}

.vsa-hero p {
  position: relative;

  margin: 0;

  max-width: 800px;

  color: var(--muted);

  font-size: 1.05rem;
}

/* =========================================================
   FEED
========================================================= */

.vsa-feed {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;

  padding: 2rem 0 4rem;
}

/* =========================================================
   PANELS / CARDS
========================================================= */

.vsa-panel {
  position: relative;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );

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

  padding: 1.35rem;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.18);

  overflow: hidden;
}

.vsa-panel::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(245, 196, 81, 0.4),
      transparent
    );

  opacity: 0.7;
}

.vsa-panel h2,
.vsa-panel h3 {
  margin-top: 0;
}

.vsa-panel h2 {
  font-size: 1.35rem;
}

/* =========================================================
   GOLD HEADINGS / BRIGHT TEXT
========================================================= */

/* Main headings use the gold accent for stronger visual hierarchy. */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gold-light);
}

.vsa-page-shell h1,
.vsa-page-shell h2,
.vsa-page-shell h3,
.vsa-hero h1,
.vsa-panel h2,
.vsa-footer h2,
.vsa-footer h3 {
  color: var(--gold-light);
}

/* Keep highlighted words slightly warmer/brighter. */
.vsa-hero h1 strong {
  color: var(--gold);
}

/* Paragraph and content text should remain clearly readable on the dark background. */
.vsa-page-shell p,
.vsa-page-copy,
.vsa-panel p,
.vsa-author p,
.vsa-footer p {
  color: var(--text-soft);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.vsa-page-shell h1 {
  max-width: var(--reading-max);

  margin: 1rem auto 0.8rem;

  text-align: center;

  font-size: clamp(2.15rem, 5vw, 3.25rem);
  line-height: 1.08;

  letter-spacing: -0.035em;
}

.vsa-page-shell h2 {
  margin-top: 2.4rem;

  font-size: clamp(1.45rem, 3vw, 2rem);

  line-height: 1.2;

  letter-spacing: -0.02em;
}

.vsa-page-shell h3 {
  margin-top: 1.8rem;

  font-size: 1.2rem;
}

.vsa-page-shell p {
  color: #e1e5ec;
}

.vsa-page-copy {
  max-width: 920px;

  margin: 0.6rem auto 0;

  font-size: 1.02rem;
}

.vsa-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   AUTHOR / BYLINE
========================================================= */

.vsa-byline {
  display: grid;

  grid-template-columns: 56px 1fr;

  gap: 0.8rem;

  align-items: center;

  max-width: var(--reading-max);

  margin: 0 auto 1rem;

  padding: 0.55rem 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vsa-byline img {
  width: 56px;
  height: 56px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid rgba(245, 196, 81, 0.45);

  box-shadow:
    0 0 0 4px rgba(245, 196, 81, 0.06);
}

.vsa-byline__avatar {
  display: inline-flex;
  border-radius: 50%;
}

.vsa-byline__name,
.vsa-byline__meta {
  margin: 0;
}

.vsa-byline__name {
  font-weight: 800;
  color: #fff;
}

.vsa-byline__meta {
  color: var(--muted);

  font-size: 0.88rem;

  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 0.45rem;
}

/* =========================================================
   VERIFIED / UPDATED STAMP
========================================================= */

.vsa-stamp {
  display: inline-flex;

  align-items: center;
  gap: 0.4rem;

  padding: 0.25rem 0.6rem;

  border-radius: 999px;

  border: 1px solid rgba(67, 229, 139, 0.22);

  background: rgba(67, 229, 139, 0.08);

  color: #baf7d1;

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  white-space: nowrap;
}

.vsa-stamp__dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 0 4px rgba(67, 229, 139, 0.1);
}

.vsa-stamp__dot.is-live {
  animation: live-dot-pulse 1.8s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 229, 139, 0.4);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(67, 229, 139, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(67, 229, 139, 0);
  }
}

/* =========================================================
   INTRO
========================================================= */

.vsa-page-intro {
  max-width: var(--reading-max);

  margin: 1rem auto 1.3rem;

  padding: 1.15rem 1.3rem;

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.015)
    );

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 14px;
}

.vsa-page-intro p {
  margin: 0;
  color: var(--text-soft);
}

.vsa-page-intro > *:first-child {
  margin-top: 0;
}

.vsa-page-intro > *:last-child {
  margin-bottom: 0;
}

.vsa-page-intro__preview {
  margin-bottom: 0.7rem;
}

.vsa-page-intro__toggle {
  border: 0;

  background: transparent;

  color: var(--gold-light);

  font-weight: 800;

  cursor: pointer;

  padding: 0.2rem 0.4rem;
}

.vsa-page-intro__toggle:hover {
  color: #fff;
}

/* =========================================================
   BUTTON
========================================================= */

.vsa-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0.7rem 1.1rem;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--gold-light),
      var(--gold)
    );

  color: #171109;

  font-weight: 850;

  box-shadow:
    0 8px 25px rgba(245, 196, 81, 0.15);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.vsa-button:hover {
  color: #171109;

  transform: translateY(-1px);

  box-shadow:
    0 12px 30px rgba(245, 196, 81, 0.22);
}

/* =========================================================
   TABLES
========================================================= */

.vsa-data-table {
  width: 100%;

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

  overflow: hidden;

  margin: 1.5rem 0;

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

  border-radius: 14px;

  background: #10141c;
}

.vsa-data-table th,
.vsa-data-table td {
  border: 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  padding: 0.9rem 0.85rem;

  text-align: left;

  vertical-align: middle;
}

.vsa-data-table th {
  background:
    linear-gradient(
      180deg,
      #202633,
      #191e28
    );

  color: #fff;

  font-size: 0.88rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.025em;
}

.vsa-data-table tr:last-child td {
  border-bottom: 0;
}

.vsa-data-table tbody tr {
  transition:
    background 150ms ease;
}

.vsa-data-table tbody tr:hover {
  background: rgba(245, 196, 81, 0.045);
}

.vsa-data-table td:first-child {
  color: #fff;
  font-weight: 750;
}

.vsa-data-table td strong {
  color: var(--gold-light);
}

/* =========================================================
   TABLE OF CONTENTS
========================================================= */

.wp-block-table-of-contents {
  position: relative;

  background:
    linear-gradient(
      145deg,
      #171c27,
      #11151d
    ) !important;

  border: 1px solid rgba(245, 196, 81, 0.16) !important;

  border-radius: 14px !important;

  color: var(--text) !important;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.2) !important;

  padding: 1rem 1.1rem !important;

  margin: 1.2rem 0 1.4rem !important;
}

.wp-block-table-of-contents::before {
  content: "";

  display: block;

  width: 42px;
  height: 3px;

  margin-bottom: 0.7rem;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--gold-dark),
      var(--gold-light)
    );
}

.wp-block-table-of-contents > h2 {
  color: #fff !important;

  font-size: 1.05rem !important;

  font-weight: 800 !important;

  margin: 0 0 0.65rem !important;
}

.wp-block-table-of-contents a {
  color: var(--gold-light) !important;

  opacity: 1 !important;

  text-decoration: none !important;

  font-weight: 650 !important;
}

.wp-block-table-of-contents a:hover {
  color: #fff !important;
}

.wp-block-table-of-contents,
.wp-block-table-of-contents * {
  opacity: 1 !important;
}

.wp-block-table-of-contents ol,
.wp-block-table-of-contents ul {
  margin: 0 !important;

  padding-left: 1.2rem !important;
}

.wp-block-table-of-contents li {
  margin: 0.3rem 0 !important;

  line-height: 1.5 !important;

  color: #d5dce9 !important;
}

.wp-block-table-of-contents li::marker {
  color: var(--gold) !important;

  font-weight: 800;
}

/* =========================================================
   BREADCRUMBS
========================================================= */

.vsa-crumbs {
  margin: 1rem 0 0.6rem;
}

.vsa-crumbs__list {
  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  align-items: center;

  margin: 0;

  padding: 0.75rem 0.95rem;

  list-style: none;

  border: 1px solid rgba(255, 255, 255, 0.07);

  border-radius: 12px;

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

.vsa-crumbs__item {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  color: var(--muted);

  font-size: 0.86rem;

  line-height: 1.4;
}

.vsa-crumbs__item:not(:last-child)::after {
  content: "›";

  color: rgba(255, 255, 255, 0.3);

  font-size: 1rem;

  font-weight: 700;
}

.vsa-crumbs__item a {
  color: var(--gold-light);

  font-weight: 700;
}

.vsa-crumbs__item a:hover {
  color: #fff;
}

.vsa-crumbs__item [aria-current="page"] {
  color: #fff;

  font-weight: 750;
}

/* =========================================================
   AUTHOR BOX
========================================================= */

.vsa-author {
  display: grid;

  gap: 1rem;

  grid-template-columns: 80px 1fr;

  align-items: center;

  margin-top: 2rem;

  padding: 1.1rem;

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

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(245, 196, 81, 0.07),
      rgba(255, 255, 255, 0.02)
    );
}

.vsa-author__avatar img {
  width: 80px;
  height: 80px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid rgba(245, 196, 81, 0.4);
}

.vsa-author strong {
  color: #fff;
}

/* =========================================================
   FOOTER
========================================================= */

.vsa-footer {
  border-top: 1px solid var(--border);

  padding: 3rem 0 2rem;

  color: var(--muted);

  background:
    linear-gradient(
      180deg,
      #0b0e14,
      #07090d
    );
}

.vsa-footer h2,
.vsa-footer h3 {
  color: var(--gold-light);
}

.vsa-footer,
.vsa-footer .vsa-wrap,
.vsa-payments,
.vsa-safeplay,
.vsa-footer__widgets,
.vsa-footer__nav,
.vsa-footer__meta {
  min-width: 0;
  max-width: 100%;
}

/* =========================================================
   PAYMENT METHODS
========================================================= */

.vsa-payments {
  margin-bottom: 1.5rem;
}

.vsa-payments__title {
  margin: 0 0 0.7rem;

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: #cbd2df;

  font-weight: 800;
}

.vsa-payments__list {
  list-style: none;

  margin: 0;
  padding: 0;

  display: flex;

  gap: 0.45rem;

  flex-wrap: wrap;
}

.vsa-payments__list li {
  border: 1px solid var(--border);

  border-radius: 8px;

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

  color: #d7dce5;

  padding: 0.35rem 0.55rem;

  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIBLE GAMBLING
========================================================= */

.vsa-safeplay {
  margin-bottom: 1.5rem;

  border: 1px solid rgba(245, 196, 81, 0.16);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(245, 196, 81, 0.07),
      rgba(255, 255, 255, 0.018)
    );

  padding: 1.05rem 1.1rem;
}

.vsa-safeplay h2 {
  margin: 0 0 0.4rem;

  color: var(--gold-light);

  font-size: 1rem;
}

.vsa-safeplay p {
  margin: 0;

  color: #cbd2df;
}

.vsa-safeplay__links-wrap {
  margin-top: 1rem;
}

.vsa-safeplay__links {
  display: flex;

  flex-wrap: wrap;

  gap: 0.65rem 0.8rem;
}

.vsa-safeplay__link {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  max-width: 100%;

  min-height: 40px;

  padding: 0.55rem 0.8rem;

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

  border-radius: 10px;

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

  color: #e9edf5;

  font-weight: 700;

  text-decoration: none;

  overflow-wrap: anywhere;
}

.vsa-safeplay__link:hover,
.vsa-safeplay__link:focus-visible {
  border-color: rgba(245, 196, 81, 0.3);

  color: #fff;

  background: rgba(245, 196, 81, 0.06);
}

.vsa-safeplay__icon {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 1.1rem;
  height: 1.1rem;

  color: var(--gold);

  font-size: 1.05rem;

  line-height: 1;

  flex-shrink: 0;
}

.vsa-safeplay__link-image {
  display: block;

  width: auto;
  height: 26px;

  max-width: 96px;

  object-fit: contain;

  flex-shrink: 0;
}

.vsa-safeplay__link--image {
  border-radius: 10px;
}

.vsa-safeplay__link-label {
  line-height: 1.2;

  min-width: 0;
}

/* =========================================================
   FOOTER WIDGETS
========================================================= */

.vsa-footer__widgets {
  display: grid;

  gap: 1rem;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  margin-bottom: 1.5rem;
}

.vsa-footer__widget {
  background:
    rgba(255, 255, 255, 0.018);

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

  border-radius: 12px;

  padding: 1rem;
}

.vsa-footer__widget h2,
.vsa-footer__widget h3 {
  margin-top: 0;

  font-size: 1rem;
}

/* =========================================================
   FOOTER META
========================================================= */

.vsa-footer__meta {
  border-top: 1px solid var(--border);

  padding-top: 1.2rem;

  font-size: 0.88rem;
}

/* =========================================================
   PAGE SPACING
========================================================= */

.vsa-page-shell {
  padding-bottom: 3rem;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .vsa-wrap {
    width: min(100% - 1rem, var(--max));
  }

  .vsa-wrap--bar {
    width: calc(100% - 0.8rem);
  }

  .vsa-masthead__inner {
    position: relative;

    min-height: 68px;

    gap: 0.5rem;
  }

  .vsa-menu-button {
    display: inline-flex;
  }

  .vsa-brand {
    gap: 0.5rem;
  }

  .vsa-brand__mark {
    width: 40px;
    height: 40px;
  }

  .vsa-brand__mark-img {
    width: 40px;
    height: 40px;
  }

  .vsa-brand__title {
    font-size: 0.95rem;
  }

  .vsa-brand__tagline {
    font-size: 0.72rem;
  }

  /* Mobile navigation */

  .vsa-menu {
    position: absolute;

    top: calc(100% + 0.5rem);

    right: 0;

    left: 0;

    width: auto;

    background:
      rgba(14, 18, 26, 0.98);

    border: 1px solid rgba(245, 196, 81, 0.14);

    border-radius: 16px;

    padding: 0.65rem;

    display: block;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    pointer-events: none;

    backdrop-filter: blur(18px);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.5);

    z-index: 120;

    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .vsa-menu.vsa-is-open {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
  }

  .vsa-menu ul {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0.35rem;
  }

  .vsa-menu li a {
    display: flex;

    justify-content: flex-start;

    width: 100%;

    min-height: 46px;

    padding: 0.75rem 0.85rem;

    border-radius: 11px;
  }

  .vsa-menu a::after {
    left: 0.85rem;

    right: auto;

    width: 26px;

    bottom: 0.4rem;

    transform-origin: left center;
  }

  /* Hero */

  .vsa-hero {
    padding: 3rem 0 2.2rem;
  }

  .vsa-hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);

    line-height: 1.08;
  }

  .vsa-hero p {
    font-size: 0.96rem;
  }

  /* Page */

  .vsa-page-shell {
    margin-top: 0.5rem !important;

    padding: 0.5rem 0 2rem;
  }

  .vsa-page-shell h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);

    line-height: 1.1;

    text-align: center;

    margin-top: 0.5rem;

    margin-bottom: 0.55rem;
  }

  .vsa-page-shell h2 {
    font-size: 1.45rem;

    margin-top: 2rem;
  }

  .vsa-page-shell h3 {
    font-size: 1.12rem;
  }

  .vsa-page-copy {
    font-size: 0.98rem;
  }

  /* Byline */

  .vsa-byline {
    grid-template-columns: 1fr;

    justify-items: center;

    text-align: center;

    gap: 0.4rem;

    padding: 0.4rem 0.2rem;

    margin-bottom: 0.5rem;
  }

  .vsa-byline__meta {
    justify-content: center;
  }

  /* Intro */

  .vsa-page-intro {
    margin-top: 0.5rem;

    padding: 0.9rem;

    border-radius: 12px;
  }

  /* Cards */

  .vsa-panel {
    padding: 1rem;

    border-radius: 13px;
  }

  /* Tables */

  .vsa-data-table {
    display: block;

    overflow-x: auto;

    white-space: nowrap;

    border-radius: 12px;
  }

  .vsa-data-table th,
  .vsa-data-table td {
    padding: 0.72rem 0.65rem;

    font-size: 0.88rem;
  }

  /* Author */

  .vsa-author {
    grid-template-columns: 1fr;

    justify-items: center;

    text-align: center;
  }

  /* Footer */

  .vsa-footer {
    padding: 2.2rem 0 1.5rem;
  }

  .vsa-footer__widgets {
    grid-template-columns: 1fr;
  }

  .vsa-safeplay__links {
    display: grid;

    grid-template-columns: 1fr;

    gap: 0.55rem;
  }

  .vsa-safeplay__link {
    width: 100%;

    justify-content: flex-start;

    border-radius: 11px;
  }

  /* TOC */

  .wp-block-table-of-contents {
    padding: 0.85rem !important;

    font-size: 0.93rem;

    border-radius: 12px !important;
  }

  /* Breadcrumbs */

  .vsa-crumbs {
    margin-top: 0.65rem;
  }

  .vsa-crumbs__list {
    padding: 0.65rem 0.75rem;

    border-radius: 11px;
  }

  .vsa-crumbs__item {
    font-size: 0.8rem;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

  .vsa-wrap {
    width: calc(100% - 0.8rem);
  }

  .vsa-brand__tagline {
    display: none;
  }

  .vsa-brand__title {
    font-size: 0.9rem;
  }

  .vsa-hero {
    padding: 2.5rem 0 2rem;
  }

  .vsa-hero h1 {
    font-size: 2rem;
  }

  .vsa-page-shell h1 {
    font-size: 2rem;
  }

  .vsa-data-table {
    font-size: 0.82rem;
  }

  .vsa-crumbs__item {
    font-size: 0.77rem;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }
}