/* ═══════════════════════════════════════════════════════════════════════════
   En La Tribuna – Home Modern Theme (Stitch-Inspired) v2
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --primary: #f27f0d;
  --primary-rgb: 242, 127, 13;
  --secondary: #0d3b66;
  --secondary-rgb: 13, 59, 102;
  --accent: #f27f0d;
  --surface: #ffffff;
  --background: #f8f7f5;
  --text-main: #0d3b66;
  --text-muted: #64748b;
  --background-dark: #221910;
  --background-light: #f8f7f5;

  /* legacy aliases */
  --us-primary: var(--primary);
  --us-blue: var(--secondary);
  --us-bg: var(--background);
  --us-card: var(--surface);
  --us-text: var(--text-main);
  --us-text-muted: var(--text-muted);
  --us-card-border: #e2e8f0;

  --us-radius: 0.75rem;
  --us-radius-lg: 1rem;
  --us-radius-xl: 1.5rem;
  --us-shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --us-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
  --us-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);
  --us-transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
.us-modern-home {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--us-bg);
  color: var(--us-text);
  -webkit-font-smoothing: antialiased;
}

.us-modern-home *,
.us-modern-home *::before,
.us-modern-home *::after {
  box-sizing: border-box;
}

/* ─── Section Title ──────────────────────────────────────────────────────── */
.us-stitch-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--us-blue);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.dark .us-stitch-section-title {
  color: #f1f5f9;
}

.us-stitch-see-all {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--us-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
}

.us-stitch-see-all:hover {
  text-decoration: underline;
  color: var(--us-primary);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.us-stitch-hero {
  position: relative;
  height: 240px;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--us-blue);
  box-shadow: 0 20px 60px -20px rgba(0, 51, 102, 0.45);
}

.us-stitch-hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.us-stitch-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.us-stitch-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
  pointer-events: none;
}

.us-stitch-chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--us-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.us-stitch-hero__title {
  color: #fff;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 0.25rem;
}

.us-stitch-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

/* ─── News / Blog ────────────────────────────────────────────────────────── */
.us-stitch-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.us-stitch-news-card {
  display: flex;
  gap: 0.875rem;
  background: var(--us-card);
  padding: 0.625rem;
  border-radius: 0.875rem;
  box-shadow: var(--us-shadow-sm);
  border: 1px solid var(--us-card-border);
  transition: border-color var(--us-transition), box-shadow var(--us-transition), transform var(--us-transition);
  cursor: pointer;
  text-decoration: none;
}

.us-stitch-news-card:hover {
  border-color: rgba(242, 127, 13, 0.3);
  box-shadow: var(--us-shadow);
  transform: translateY(-1px);
}

.us-stitch-news-card__img {
  width: 72px;
  height: 72px;
  border-radius: 0.625rem;
  object-fit: cover;
  flex-shrink: 0;
}

.us-stitch-news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.us-stitch-news-card__tag {
  font-size: 0.56rem;
  font-weight: 800;
  color: var(--us-primary);
  text-transform: uppercase;
  margin: 0 0 0.15rem;
  letter-spacing: 0.06em;
}

.us-stitch-news-card__title {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
  color: var(--us-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.us-stitch-news-card__desc {
  font-size: 0.72rem;
  color: var(--us-text-muted);
  margin: 0.2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Discipline Grid ────────────────────────────────────────────────────── */
.us-stitch-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.us-stitch-discipline-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border-radius: 0.875rem;
  background: var(--us-card);
  padding: 0.875rem 0.5rem;
  box-shadow: var(--us-shadow-sm);
  border: 1px solid var(--us-card-border);
  transition: transform 120ms ease, background var(--us-transition), border-color var(--us-transition), box-shadow var(--us-transition);
  cursor: pointer;
}

.us-stitch-discipline-btn:active {
  transform: scale(0.94);
}

.us-stitch-discipline-btn:hover {
  border-color: rgba(242, 127, 13, 0.25);
  box-shadow: var(--us-shadow);
}

.us-stitch-discipline-btn .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--us-primary);
}

.us-stitch-discipline-btn p {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--us-blue);
  margin: 0;
  text-align: center;
}

.dark .us-stitch-discipline-btn {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgba(51, 65, 85, 0.7);
}

.dark .us-stitch-discipline-btn p {
  color: #cbd5e1;
}

.us-stitch-discipline-btn--active {
  background: var(--us-primary) !important;
  border-color: var(--us-primary) !important;
  box-shadow: 0 8px 24px -8px rgba(242, 127, 13, 0.55) !important;
}

.us-stitch-discipline-btn--active .material-symbols-outlined {
  color: #fff !important;
}

.us-stitch-discipline-btn--active p {
  color: #fff !important;
}

/* ─── Match Cards ────────────────────────────────────────────────────────── */
.us-match-tab-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  transition: all var(--us-transition);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.us-match-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.18);
}

.ranking-filter-btn,
#cal-prev,
#cal-next {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
}

.ranking-filter-btn:focus-visible,
#cal-prev:focus-visible,
#cal-next:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.18);
}

.filterable-match {
  transition: opacity var(--us-transition);
}

/* Team badge (shared between card and calendar) */
.us-match-team-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--team-shell, linear-gradient(135deg, rgba(242, 127, 13, 0.18), rgba(255, 255, 255, 0.08)));
  border: 1px solid var(--team-halo, rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform var(--us-transition);
}

.us-match-team-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 50%);
  pointer-events: none;
}

.us-match-team-badge:hover {
  transform: scale(1.05);
}

/* ─── Vote Bar System ────────────────────────────────────────────────────── */
.match-vote-result {
  overflow: hidden;
  animation: us-vote-appear 0.4s ease-out both;
}

.match-vote-result.vote-revealed {
  animation: us-vote-appear 0.35s ease both;
}

/* The shimmer animation for loading state */
@keyframes us-bar-shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes us-bar-fill {
  from {
    width: 0% !important;
  }
}

@keyframes us-vote-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes us-count-up {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

/* ── Stitch Match Cards ────────────────────────────────────────────────── */
.us-match-card-stitch {
  background: linear-gradient(145deg, var(--secondary) 0%, #0c1524 50%, #0f172a 100%);
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
  /* Create a new stacking context */
}

.us-match-card-stitch:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
}

.us-match-card-stitch::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  background: rgba(var(--primary-rgb), 0.12);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.us-match-card-stitch::after {
  content: '';
  position: absolute;
  bottom: -3rem;
  left: -3rem;
  width: 8rem;
  height: 8rem;
  background: rgba(var(--secondary-rgb), 0.15);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ── Share Button System ────────────────────────────────────────────────── */
.us-match-share-wrapper {
  position: relative;
  z-index: 60;
}

.us-match-share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.us-match-share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.08);
}

.us-match-share-btn i {
  font-size: 0.875rem;
}

.us-match-share-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px -8px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.us-match-share-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.us-match-share-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.us-match-share-option:hover {
  background: rgba(242, 127, 13, 0.08);
  color: var(--primary);
}

.us-match-share-option i {
  font-size: 1rem;
}

.dark .us-match-share-dropdown {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(51, 65, 85, 0.9);
}

.dark .us-match-share-option {
  color: #cbd5e1;
}

.dark .us-match-share-option:hover {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

.us-match-team-logo-container {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  padding: 0.1875rem;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25), 0 8px 20px rgba(15, 23, 42, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.us-match-card-stitch:hover .us-match-team-logo-container {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.35), 0 12px 24px rgba(15, 23, 42, 0.25);
}

.us-match-team-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9999px;
}

.us-match-team-name-text {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.375rem;
  line-height: 1.2;
}

.us-match-vs-stitch {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

/* ── Vote Button System ─────────────────────────────────────────────────── */
.us-vote-btn-stitch {
  width: 100%;
  min-width: 100%;
  padding: 0.5rem 0.375rem;
  border-radius: 0.625rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 50;
  cursor: pointer;
  border: 1px solid transparent;
  margin-top: 0.375rem;
}

.us-vote-btn-stitch.voted-other {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.us-vote-btn-stitch.voted-other:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.us-vote-btn-stitch.voted-this {
  background: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%);
  color: white;
  box-shadow: 0 6px 20px -4px rgba(var(--primary-rgb), 0.55);
  border: none;
}

.us-vote-btn-stitch.voted-this:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(var(--primary-rgb), 0.7);
}

.us-vote-btn-stitch:active {
  transform: scale(0.96);
}

.us-vote-btn-stitch.highlight-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px -4px rgba(var(--primary-rgb), 0.55);
}

.us-match-status-pill {
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
}

.us-vote-bar-fill-stitch {
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
  display: flex;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.us-vote-bar-fill-stitch .bar-1 {
  background: linear-gradient(90deg, var(--primary) 0%, #fb923c 100%);
}

.us-vote-bar-fill-stitch .bar-2 {
  background: linear-gradient(90deg, #475569 0%, #64748b 100%);
}

.us-vote-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.bar-1,
.bar-2 {
  height: 100%;
  transition: width 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bar-1 {
  background: linear-gradient(90deg, var(--primary) 0%, #fb923c 100%);
  border-radius: 999px 0 0 999px;
}

.bar-2 {
  background: linear-gradient(90deg, #475569 0%, #64748b 100%);
  border-radius: 0 999px 999px 0;
}

/* Shimmer overlay on bars when loading */
.bar-1.is-loading::after,
.bar-2.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: us-bar-shimmer 1s ease infinite;
}

.match-vote-result.vote-revealed {
  animation: us-vote-appear 0.35s ease both;
}

.vote-pct-1,
.vote-pct-2 {
  transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Winner side glow */
.vote-pct-1.is-winner {
  color: #fb923c;
  text-shadow: 0 0 12px rgba(242, 127, 13, 0.5);
}

.vote-pct-2.is-winner {
  color: #94a3b8;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

/* ─── Calendar ───────────────────────────────────────────────────────────── */
body.calendar-modal-open {
  overflow: hidden;
}

.calendar-wrapper {
  font-family: 'Inter', sans-serif !important;
  user-select: none;
}

/* Calendar day buttons — unified system */
.calendar-day-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #334155;
  text-align: left;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
  position: relative;
  z-index: 1;
}

.calendar-day-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 127, 13, 0.3);
  box-shadow: 0 8px 20px -8px rgba(242, 127, 13, 0.25);
}

.calendar-day-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.2);
  border-color: rgba(242, 127, 13, 0.5);
}

.calendar-day-btn.is-today {
  border-color: rgba(13, 59, 102, 0.25);
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #0d3b66;
}

.calendar-day-btn.has-events {
  border-color: rgba(242, 127, 13, 0.18);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  color: #0f172a;
}

.calendar-day-btn.is-selected {
  background: linear-gradient(135deg, #f27f0d 0%, #fb923c 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(242, 127, 13, 0.65);
}

.calendar-day-btn.is-selected .calendar-day-count,
.calendar-day-btn.is-selected .calendar-day-count--empty {
  color: rgba(255, 255, 255, 0.85);
}

/* Dark mode calendar */
.dark .calendar-day-btn {
  border-color: rgba(51, 65, 85, 0.8);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #cbd5e1;
}

.dark .calendar-day-btn.has-events {
  background: linear-gradient(180deg, rgba(60, 35, 10, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-color: rgba(251, 146, 60, 0.25);
  color: #f8fafc;
}

.dark .calendar-day-btn.is-today {
  background: linear-gradient(180deg, rgba(14, 60, 115, 0.6) 0%, rgba(30, 41, 59, 0.9) 100%);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.3);
}

.dark .calendar-day-btn.is-selected {
  background: linear-gradient(135deg, #f27f0d 0%, #fb923c 100%);
  color: #fff;
  border-color: transparent;
}

.dark .calendar-day-count--empty {
  color: #64748b;
}

/* Calendar text elements */
.calendar-day-number {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-day-count {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--us-primary);
}

.calendar-day-count--empty {
  color: #94a3b8;
  font-weight: 600;
}

/* Calendar dot markers */
.calendar-day-markers {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.calendar-day-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.9;
}

.calendar-day-dot--soft {
  opacity: 0.3;
}

/* Calendar event preview cards */
.us-calendar-match-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.1);
  transition: border-color var(--us-transition), box-shadow var(--us-transition), transform var(--us-transition);
}

.us-calendar-match-preview:hover {
  border-color: rgba(242, 127, 13, 0.25);
  box-shadow: 0 6px 20px -6px rgba(242, 127, 13, 0.2);
  transform: translateY(-2px);
}

.us-calendar-match-preview__meta {
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.us-calendar-match-preview__time {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--us-text);
  font-variant-numeric: tabular-nums;
}

.dark .us-calendar-match-preview {
  border-color: rgba(51, 65, 85, 0.9);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.dark .us-calendar-match-preview__meta {
  color: #94a3b8;
}

.dark .us-calendar-match-preview__time {
  color: #f8fafc;
}

/* Calendar team tokens (shared) */
.us-calendar-versus {
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
}

.us-calendar-versus--modal {
  font-size: 0.64rem;
  color: #cbd5e1;
}

.us-calendar-team-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.48rem 0.82rem 0.48rem 1rem;
  border-radius: 9999px;
  background: var(--team-shell, linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)));
  border: 1px solid var(--team-halo, rgba(148, 163, 184, 0.35));
  color: var(--team-text, #f8fafc);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(15, 23, 42, 0.16);
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.45);
  isolation: isolate;
}

.us-calendar-team-token::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  transform: translateY(-50%);
  background: var(--team-accent, #f27f0d);
  box-shadow: 0 0 0 3px var(--team-halo, rgba(242, 127, 13, 0.18)), 0 0 18px var(--team-halo, rgba(242, 127, 13, 0.18));
}

.us-calendar-team-token--modal {
  flex: 1 1 0;
  max-width: calc(50% - 18px);
  min-width: 0;
  font-size: 10px;
  line-height: 1.35;
}

.us-calendar-team-token--modal-away {
  justify-content: flex-end;
  text-align: right;
  padding-right: 1rem;
  padding-left: 0.82rem;
}

.us-calendar-team-token--modal-away::before {
  left: auto;
  right: 0.45rem;
}

/* Calendar modal match cards */
.us-calendar-modal-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.08);
  transition: border-color var(--us-transition), box-shadow var(--us-transition), transform var(--us-transition);
}

.us-calendar-modal-match:hover {
  border-color: rgba(242, 127, 13, 0.2);
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}

.us-calendar-modal-match__teams {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.us-calendar-modal-match__status {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: right;
}

.us-calendar-modal-match__meta {
  margin-bottom: 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.us-calendar-modal-match__location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: #64748b;
}

.us-calendar-modal-match__time {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.us-calendar-modal-match__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.us-calendar-modal-match__badge--live {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  animation: us-live-pulse 1.8s ease-in-out infinite;
}

.us-calendar-modal-match__score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--us-primary);
}

.dark .us-calendar-modal-match {
  border-color: rgba(51, 65, 85, 0.9);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.dark .us-calendar-modal-match__meta,
.dark .us-calendar-modal-match__location,
.dark .us-calendar-modal-match__time {
  color: #94a3b8;
}

/* Calendar modal shell */
.us-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
}

.us-calendar-modal__dialog {
  width: min(100%, 960px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
  box-shadow: 0 32px 80px -36px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.us-calendar-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.375rem 1.125rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, rgba(242, 127, 13, 0.03) 0%, transparent 100%);
}

.us-calendar-modal__title-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  flex-wrap: wrap;
}

.us-calendar-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.us-calendar-modal__title span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.us-calendar-modal__action,
.us-calendar-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(242, 127, 13, 0.2);
  background: linear-gradient(135deg, rgba(242, 127, 13, 0.1) 0%, rgba(251, 146, 60, 0.08) 100%);
  color: var(--primary);
  transition: background var(--us-transition), transform var(--us-transition), border-color var(--us-transition), box-shadow var(--us-transition);
}

.us-calendar-modal__action {
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.us-calendar-modal__close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
}

.us-calendar-modal__action:hover,
.us-calendar-modal__close:hover {
  background: linear-gradient(135deg, rgba(242, 127, 13, 0.18) 0%, rgba(251, 146, 60, 0.15) 100%);
  border-color: rgba(242, 127, 13, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(242, 127, 13, 0.3);
}

.us-calendar-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0.3) 100%);
}

#calendar-modal-content {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
}

.dark .us-calendar-modal {
  background: rgba(2, 6, 23, 0.85);
}

.dark .us-calendar-modal__dialog {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.99) 0%, rgba(2, 6, 23, 0.99) 100%);
  border-color: rgba(51, 65, 85, 0.5);
}

.dark .us-calendar-modal__header {
  border-color: rgba(51, 65, 85, 0.7);
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.05) 0%, transparent 100%);
}

.dark .us-calendar-modal__title {
  color: #f8fafc;
}

.dark .us-calendar-modal__action,
.dark .us-calendar-modal__close {
  border-color: rgba(251, 146, 60, 0.3);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(242, 127, 13, 0.1) 100%);
  color: #fdba74;
}

.dark .us-calendar-modal__action:hover,
.dark .us-calendar-modal__close:hover {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(242, 127, 13, 0.2) 100%);
  border-color: rgba(251, 146, 60, 0.5);
}

.dark #calendar-modal-content {
  border-color: rgba(51, 65, 85, 0.7);
}

@media (max-width: 767.98px) {
  .us-calendar-modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .us-calendar-modal__dialog {
    width: 100%;
    max-height: min(92vh, 960px);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .us-calendar-modal__header {
    padding: 1rem 1rem 0.9rem;
  }

  .us-calendar-modal__title {
    font-size: 1rem;
  }

  .us-calendar-modal__title span:last-child {
    white-space: normal;
  }

  .us-calendar-modal__action {
    width: 100%;
    justify-content: center;
  }

  .us-calendar-modal__body {
    padding: 1rem;
  }

  .us-calendar-modal-match {
    align-items: flex-start;
    flex-direction: column;
  }

  .us-calendar-modal-match__teams {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .us-calendar-team-token--modal,
  .us-calendar-team-token--modal-away {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .us-calendar-team-token--modal-away {
    padding-left: 1rem;
    padding-right: 0.82rem;
  }

  .us-calendar-team-token--modal-away::before {
    left: 0.45rem;
    right: auto;
  }

  .us-calendar-team-token--modal {
    max-width: 100%;
    flex-basis: calc(50% - 0.5rem);
  }

  .us-calendar-modal-match__status {
    width: 100%;
    text-align: left;
  }
}

/* ─── Sponsors ───────────────────────────────────────────────────────────── */
.us-stitch-sponsors {
  background: var(--us-card);
  border-radius: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--us-card-border);
  box-shadow: var(--us-shadow-sm);
}

.us-stitch-sponsors__label {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--us-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-align: center;
  margin: 0 0 0.75rem;
}

.us-stitch-sponsors__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.us-stitch-sponsor-card {
  position: relative;
  display: block;
  border-radius: 0.625rem;
  overflow: hidden;
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  transition: transform var(--us-transition), box-shadow var(--us-transition);
  text-decoration: none;
}

.us-stitch-sponsor-card:hover {
  transform: scale(1.04);
  box-shadow: var(--us-shadow);
}

.us-stitch-sponsor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.us-stitch-sponsor-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  padding: 0.35rem 0.5rem;
}

.us-stitch-sponsor-card__title {
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes us-live-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes us-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
.us-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.us-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
}

.us-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.dark .us-scrollbar::-webkit-scrollbar-thumb {
  background: #475569;
}

/* ─── Calendar Section Layout ────────────────────────────────────────────── */
.us-calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .us-calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Top Scorers ────────────────────────────────────────────────────────── */
.us-scorers-card {
  background: var(--us-card);
  border-radius: var(--us-radius-lg);
  border: 1px solid var(--us-card-border);
  padding: 1.25rem;
  box-shadow: var(--us-shadow-sm);
}

.us-scorer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.us-scorer-row+.us-scorer-row {
  border-top: 1px solid rgba(241, 245, 249, 0.8);
}

.us-scorer-rank {
  font-size: 1.1rem;
  font-weight: 900;
  width: 18px;
  text-align: center;
}

.us-scorer-rank--1 {
  color: var(--us-primary);
}

.us-scorer-rank--2,
.us-scorer-rank--3 {
  color: #cbd5e1;
}

.us-scorer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--us-blue);
  flex-shrink: 0;
}

.us-scorer-info {
  flex: 1;
}

.us-scorer-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.us-scorer-team {
  font-size: 0.6rem;
  color: var(--us-text-muted);
  text-transform: uppercase;
}

.us-scorer-goals {
  text-align: right;
}

.us-scorer-goals__count {
  font-weight: 900;
  color: var(--us-blue);
}

.us-scorer-goals__label {
  font-size: 0.6rem;
  color: var(--us-text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .us-stitch-hero {
    height: 300px;
  }

  .us-stitch-hero__title {
    font-size: 2.5rem;
  }

  .us-stitch-hero__content {
    padding: 2rem;
  }

  .us-stitch-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .us-stitch-disciplines-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .us-stitch-sponsor-card {
    width: 160px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .us-stitch-hero {
    height: 220px;
  }

  .us-stitch-disciplines-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
  }

  .us-stitch-discipline-btn {
    padding: 0.6rem 0.4rem;
  }

  .us-stitch-discipline-btn .material-symbols-outlined {
    font-size: 1.25rem;
  }
}

/* ─── Rankings fallback ──────────────────────────────────────────────────── */
.titulosRankings {
  background: linear-gradient(135deg, #0d3b66, #003fa3);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
}

.us-match-team-name {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--team-name-accent, rgba(255, 255, 255, 0.18));
  color: #f8fafc;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
/* ─── Newsletter + motivation refresh ───────────────────────────────────── */
.us-newsletter-section {
  margin-top: 1rem;
}

.us-newsletter-card {
  max-width: 1180px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(248, 178, 41, 0.22), transparent 30%),
    linear-gradient(135deg, #0d3b66 0%, #123b78 45%, #091a2b 100%);
  box-shadow: 0 30px 80px rgba(13, 59, 102, 0.24);
  overflow: hidden;
}

.us-newsletter-card__copy h2 {
  color: #fff;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 900;
  margin: 0.6rem 0;
  line-height: 1.1;
}

.us-newsletter-card__copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 58ch;
}

.us-newsletter-card__badge,
.motivacion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.us-newsletter-card__badge {
  background: rgba(248, 178, 41, 0.18);
  border: 1px solid rgba(248, 178, 41, 0.35);
  color: #ffd166;
}

.us-newsletter-card__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.us-newsletter-card__benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.us-newsletter-card__form-wrap {
  min-width: 0;
  padding: 1.35rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.us-newsletter-alert {
  border-radius: 18px;
  font-size: 0.92rem;
}

.us-newsletter-form__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.us-newsletter-form__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.us-newsletter-form__input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  border-radius: 18px;
  padding: 0 1rem;
  font-size: 1rem;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.us-newsletter-form__input:focus {
  outline: none;
  border-color: rgba(13, 59, 102, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.12);
}

.us-newsletter-form__button {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #f8b229 0%, #ff8a00 100%);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(248, 178, 41, 0.3);
}

.us-newsletter-form__help {
  margin-top: 0.85rem;
  color: #475569;
  line-height: 1.6;
  font-size: 0.86rem;
}

.motivacion {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f9 100%);
  padding: 72px 24px 88px;
}

.motivacion-container {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.motivacion-badge {
  background: rgba(13, 59, 102, 0.08);
  border: 1px solid rgba(13, 59, 102, 0.12);
  color: #0d3b66;
  margin-bottom: 1rem;
}

.motivacion-container img {
  margin-top: 24px;
  margin-bottom: 32px;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.motivacion-container h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 900;
  margin-bottom: 18px;
  color: #0f172a;
}

.motivacion-container p {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #475569;
}

/* ─── Modern footer ─────────────────────────────────────────────────────── */
.us-site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(248, 178, 41, 0.18), transparent 26%),
    linear-gradient(135deg, #07111d 0%, #0d2c4f 42%, #0d3b66 100%);
  color: #fff;
}

.us-site-footer__content {
  padding: 4rem 0 3rem;
}

.us-site-footer__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
}

.us-site-footer__glow--left {
  left: -80px;
  top: -60px;
  background: rgba(248, 178, 41, 0.28);
}

.us-site-footer__glow--right {
  right: -100px;
  bottom: -90px;
  background: rgba(255, 255, 255, 0.12);
}

.us-site-footer__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.us-site-footer__logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.us-site-footer__logo {
  width: 52px;
}

.us-site-footer__title {
  font-size: clamp(1.6rem, 2.1vw, 2.35rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.us-site-footer__text,
.us-site-footer__muted,
.us-site-footer__bottom,
.us-site-footer__bottom-copy {
  color: rgba(255, 255, 255, 0.74);
}

.us-site-footer__card {
  height: 100%;
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.us-site-footer__eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #ffd166;
  margin-bottom: 0.75rem;
}

.us-site-footer__author {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
}

.us-site-footer__author:hover,
.us-site-footer__links a:hover {
  color: #ffd166;
}

.us-site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.us-site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.us-site-footer__links i {
  font-size: 1.15rem;
  color: #ffd166;
}

.us-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.3rem;
  background: rgba(7, 17, 29, 0.32);
}

@media (max-width: 992px) {
  .us-newsletter-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .us-newsletter-card,
  .us-site-footer__card {
    border-radius: 24px;
  }

  .us-newsletter-card {
    padding: 1.25rem;
  }

  .us-newsletter-card__form-wrap {
    padding: 1rem;
  }

  .us-newsletter-form__controls {
    flex-direction: column;
  }

  .us-newsletter-form__button {
    width: 100%;
  }

  .us-site-footer__content {
    padding: 3rem 0 2.25rem;
  }

  .us-site-footer__bottom .container {
    text-align: center;
  }
}
