/* =========================================================
   CriptoPesos.com — Editorial stylesheet
   Sober, serif-heavy, trust-first design
   ========================================================= */

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg, video { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; }

/* --- Design tokens --------------------------------------- */
:root {
  /* Palette — newsroom paper + ink */
  --paper:        #FAF8F3;
  --paper-2:      #F2EEE4;
  --ink:          #15171A;
  --body:        #2A2D33;
  --muted:        #5C606A;
  --rule:         #DDD6C6;
  --rule-strong:  #B7AE99;

  /* Accents */
  --red:          #8C1818;       /* editorial accent */
  --red-deep:     #5E0F0F;
  --gold:         #B98A2C;       /* compliance trim */
  --cream:        #FFF6E0;       /* compliance background */
  --green:        #2D5B3A;       /* live / verified */
  --teal:         #0F4C5C;

  /* Typography */
  --serif:        'Source Serif 4', 'Source Serif Pro', 'Georgia', 'Times New Roman', serif;
  --display:      'Playfair Display', 'Source Serif 4', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --pad:          clamp(1rem, 2.4vw, 1.6rem);
  --gutter:       clamp(1.2rem, 3vw, 2rem);
  --max:          1240px;
  --read:         70ch;

  /* Radii / shadow */
  --r-sm: 3px;
  --r:    6px;
  --r-lg: 10px;
  --shadow-1: 0 1px 2px rgba(20,20,20,.04), 0 1px 3px rgba(20,20,20,.06);
  --shadow-2: 0 6px 24px rgba(20,20,20,.08);
}

@media (prefers-color-scheme: dark) {
  /* still light by default — editorial publication */
}

/* --- Typography ------------------------------------------ */
body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  color: var(--body);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 1.6em 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.1rem; font-family: var(--sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--red-deep); }

p { margin: 0 0 1.1em; }
p, li, dt, dd { hyphens: auto; }

a {
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-color: rgba(140, 24, 24, .35);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--red); text-decoration-color: var(--red); }

strong, b { color: var(--ink); }
em, i { font-style: italic; }

blockquote {
  margin: 1.6em 0;
  padding: 0.4em 1.2em;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-style: italic;
  background: rgba(255, 246, 224, .35);
}

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-2);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.4em 0;
}

ul, ol { padding-left: 1.4em; }
li + li { margin-top: .35em; }

cite {
  display: inline-block;
  font-size: .85em;
  color: var(--muted);
  font-style: normal;
}

/* --- Skip link ------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Layout ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.read   { max-width: var(--read); }
.narrow { max-width: 960px; margin-left: auto; margin-right: auto; }

/* --- Header / masthead ----------------------------------- */
.masthead {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-mark .dot { color: var(--red); }
.brand-tag {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-row {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--sans); font-size: .78rem; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding: .35rem 0;
  background: var(--paper-2);
}
.meta-row time { color: var(--ink); }
.meta-row .independent {
  color: var(--green); font-weight: 600;
}

/* --- Nav ------------------------------------------------- */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}
.nav ul {
  display: flex; flex-wrap: wrap; gap: .15rem 1.4rem;
  list-style: none; padding: 0; margin: 0;
}
.nav a {
  font-family: var(--sans);
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink);
  padding: .4rem .1rem;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--red-deep);
  border-bottom-color: var(--red);
}
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: .45rem .7rem;
  font-family: var(--sans); font-size: .85rem;
  color: var(--ink);
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav ul {
    display: none; flex-direction: column; gap: 0;
    width: 100%; padding: .4rem 0 .8rem;
    border-top: 1px solid var(--rule);
    margin-top: .6rem;
  }
  .nav ul.is-open { display: flex; }
  .nav ul li { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav ul li a { display: block; padding: .7rem 0; }
  .nav-inner { flex-wrap: wrap; }
}

/* --- Compliance block (mandatory verbatim) -------------- */
.compliance {
  border: 2px solid var(--gold);
  background: var(--cream);
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
  border-radius: var(--r);
  font-family: var(--serif);
  position: relative;
}
.compliance::before {
  content: "AVISO REGULATORIO";
  position: absolute;
  top: -.65rem; left: 1rem;
  background: var(--cream);
  padding: 0 .55rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.compliance p { margin: 0 0 .6em; }
.compliance p:last-child { margin: 0; }
.compliance .verbatim {
  font-style: italic;
  color: var(--ink);
}
.compliance cite {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .4em;
  font-style: italic;
}

/* --- Hero ------------------------------------------------ */
.hero {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #FBF9F3 0%, #F4F0E4 100%);
  padding: clamp(2rem, 5vw, 3.6rem) 0;
}
.hero-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: .8rem;
}
.kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
}
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--body);
  max-width: 38em;
}
.hero-media {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1rem;
  box-shadow: var(--shadow-1);
}
.hero-media img {
  width: 100%; height: auto;
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-media figcaption {
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--muted);
  margin-top: .55rem;
  letter-spacing: .02em;
}

/* --- Section helpers ------------------------------------ */
section { padding: clamp(2rem, 4vw, 3.4rem) 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule); padding-bottom: .6rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.section-head .more {
  font-family: var(--sans); font-size: .85rem;
  text-decoration: none; color: var(--red-deep);
}
.section-head .more::after { content: " →"; }

/* --- Cards (article previews) --------------------------- */
.cards {
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card-img {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card .tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: .55rem;
}
.card h3 {
  font-size: 1.18rem;
  margin: 0 0 .55rem;
  line-height: 1.22;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red-deep); }
.card p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 .8rem;
}
.card .meta {
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--muted);
  margin-top: auto;
  display: flex; gap: 1rem; align-items: center;
  border-top: 1px dashed var(--rule);
  padding-top: .7rem;
}

/* Featured (big editorial card) */
.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.featured-media {
  background: #111;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.featured-body { padding: clamp(1.4rem, 2.6vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body .kicker { margin-bottom: 1rem; }
.featured-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 .8rem;
  line-height: 1.12;
}
.featured-body h2 a { color: var(--ink); text-decoration: none; }
.featured-body h2 a:hover { color: var(--red-deep); }
.featured-body p { color: var(--body); font-size: 1.02rem; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }

/* --- Country grid --------------------------------------- */
.country-grid {
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.country-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.country-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.country-flag {
  width: 56px; height: 38px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
}
.country-card .name {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0 0 .25rem;
  letter-spacing: -.01em;
}
.country-card .regulator {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.country-card .read {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--red-deep);
  margin-top: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
  line-height: 1.3;
}
.country-card .read::after { content: "→"; transition: transform .18s; }
.country-card:hover .read::after { transform: translateX(3px); }

/* --- Ticker / live prices -------------------------------- */
.ticker {
  background: var(--ink);
  color: #F2EEE4;
  font-family: var(--mono);
  font-size: .82rem;
  overflow: hidden;
  border-top: 1px solid #2B2D33;
  border-bottom: 1px solid #2B2D33;
}
.ticker-inner {
  display: flex; gap: 2.4rem;
  padding: .55rem 0;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.ticker .pair { color: #C5BFAE; }
.ticker .price { color: #F2EEE4; }
.ticker .up { color: #6ED49C; }
.ticker .dn { color: #E08585; }
.ticker .note { color: #948D7B; margin-left: .4rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* --- Article body (cornerstone pages) -------------------- */
.article-body {
  max-width: var(--read);
  margin: 2rem auto;
  font-size: 1.08rem;
  line-height: 1.74;
}
.article-body h2 {
  margin-top: 2.4em;
  padding-top: .4em;
  border-top: 1px solid var(--rule);
}
.article-body h3 { margin-top: 1.8em; }
.article-body figure {
  margin: 2em 0;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-family: var(--sans); font-size: .82rem; color: var(--muted);
  padding: .6rem 1rem; border-top: 1px solid var(--rule);
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: .96rem;
}
.article-body th, .article-body td {
  text-align: left; padding: .7rem .8rem;
  border-bottom: 1px solid var(--rule);
}
.article-body th { font-family: var(--sans); font-weight: 700; color: var(--ink); background: var(--paper-2); }
.article-body tr:last-child td { border-bottom: 0; }

/* Answer box (AEO) */
.answer-box {
  background: var(--paper-2);
  border-left: 4px solid var(--red);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
  font-size: 1.05rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.answer-box .label {
  display: block;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red-deep);
  margin-bottom: .35rem;
}
.answer-box p { margin: 0; color: var(--ink); }

/* Pull quote */
.pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 2em 0;
  padding: 0 0 0 1.1rem;
  border-left: 4px solid var(--gold);
}

/* Byline / meta */
.byline {
  font-family: var(--sans); font-size: .85rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .7rem 0; margin: 1.4rem 0 2rem;
}
.byline strong { color: var(--ink); }
.byline a { color: var(--ink); }

/* Breadcrumb */
.crumbs {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-deep); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--rule-strong); }

/* --- FAQ ------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); margin-top: 2.4rem; padding-top: 1.4rem; }
.faq h2 { margin-top: 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
.faq summary {
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--red-deep);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: var(--body); }

/* --- Sanction tracker ----------------------------------- */
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .72rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.live-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(45,91,58,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,91,58,.5); }
  70% { box-shadow: 0 0 0 8px rgba(45,91,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,91,58,0); }
}

.sanction-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.sanction-list li {
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--red);
  background: var(--paper);
  margin-bottom: .8rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.sanction-list .name { font-family: var(--display); font-size: 1.15rem; color: var(--ink); display: block; }
.sanction-list .meta { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.sanction-list .meta strong { color: var(--red-deep); }

/* --- Review-specific ------------------------------------ */
.verdict {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem; align-items: center;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.4rem 1.6rem;
  border-radius: var(--r);
  margin: 1.4rem 0 2rem;
}
.verdict .rating {
  font-family: var(--display);
  font-size: 3rem; line-height: 1; color: var(--ink);
  font-weight: 800;
}
.verdict .rating .out { font-size: 1rem; color: var(--muted); font-weight: 400; }
.verdict .stars { color: var(--gold); font-size: 1.2rem; letter-spacing: .1em; }
.verdict .label { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.facts-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
}
.facts-grid > div {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.facts-grid > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts-grid dt { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.facts-grid dd { margin: 0; font-family: var(--serif); color: var(--ink); font-size: 1rem; }
@media (max-width: 600px) { .facts-grid { grid-template-columns: 1fr; } .facts-grid > div:nth-child(odd) { border-right: 0; } }

/* Pros/cons */
.pc-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; margin: 1.6rem 0; }
@media (max-width: 640px) { .pc-grid { grid-template-columns: 1fr; } }
.pc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.pc h4 { margin: 0 0 .6rem; }
.pc.pros h4 { color: var(--green); }
.pc.cons h4 { color: var(--red-deep); }
.pc ul { padding-left: 1.2rem; margin: 0; }
.pc li { margin-bottom: .3rem; }

/* --- Comparison table ----------------------------------- */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0;
  border: 1px solid var(--rule); background: var(--paper);
  font-size: .94rem;
}
.compare-table th, .compare-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
.compare-table th { font-family: var(--sans); background: var(--paper-2); color: var(--ink); }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no  { color: var(--red); font-weight: 700; }

/* --- Footer ---------------------------------------------- */
.foot {
  background: var(--ink);
  color: #C5BFAE;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.foot a { color: #F2EEE4; text-decoration-color: rgba(242,238,228,.3); }
.foot a:hover { color: #fff; }
.foot-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; margin: 0 0 .8rem;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .35rem; font-size: .92rem; }
.foot-brand .brand-mark { color: #fff; }
.foot-brand .brand-mark .dot { color: var(--gold); }
.foot-brand p { font-size: .92rem; color: #948D7B; max-width: 32ch; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid #2B2D33;
  padding-top: 1.2rem; margin-top: 2rem;
  font-family: var(--sans); font-size: .78rem; color: #948D7B;
}
.foot-disclosure {
  background: #1D1F23;
  border: 1px solid #2B2D33;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0 0;
  font-family: var(--sans); font-size: .82rem;
  color: #C5BFAE;
  border-radius: var(--r);
}

/* --- Utility -------------------------------------------- */
.spacer { height: 2rem; }
.divider { border-top: 1px solid var(--rule); margin: 2rem 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sans { font-family: var(--sans); }
.tag-pill {
  display: inline-block; font-family: var(--sans);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: .25rem .6rem; border-radius: 999px; color: var(--ink);
  margin: 0 .3rem .3rem 0; text-decoration: none;
}
.tag-pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --- Print ---------------------------------------------- */
@media print {
  .nav, .ticker, .foot, .nav-toggle { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  a { color: black; text-decoration: none; }
  .compliance { border: 2px solid black; background: white; }
}

/* =========================================================
   Responsive spacing & border refinements
   Fixes audited across phone (≤480), small tablet (≤640),
   tablet (≤880), desktop, wide (≥1400).
   ========================================================= */

/* --- Universal overflow guards ---------------------------- */
html, body { overflow-x: hidden; }
img, table, pre, video { max-width: 100%; }

/* --- Container padding scales smoothly ------------------- */
@media (max-width: 480px) {
  :root { --pad: 1rem; --gutter: 1rem; }
  body { font-size: 17px; line-height: 1.6; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5.4vw, 1.7rem); }
  h3 { font-size: 1.1rem; }
}
@media (max-width: 360px) {
  :root { --pad: .85rem; }
  .brand-mark { font-size: 1.25rem; }
  .brand-tag { display: none; }
}

/* --- Masthead / meta-row wrap cleanly on phones --------- */
.meta-row {
  flex-wrap: wrap;
  row-gap: .25rem;
}
.masthead-row { flex-wrap: wrap; row-gap: .35rem; }
@media (max-width: 560px) {
  .meta-row { font-size: .72rem; gap: .6rem; }
  .meta-row .independent { width: 100%; }
  .brand-tag { font-size: .62rem; }
}

/* --- Ticker: never causes horizontal scroll, respects motion --- */
.ticker { max-width: 100vw; }
.ticker .container {
  padding-left: 0; padding-right: 0;
}
.ticker-inner {
  padding-left: var(--pad);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner {
    animation: none;
    white-space: normal;
    flex-wrap: wrap;
    gap: .8rem 1.4rem;
    padding: .55rem var(--pad);
  }
}

/* --- Hero: media doesn't tower over text on stacked layout --- */
@media (max-width: 880px) {
  .hero { padding: clamp(1.6rem, 4vw, 2.4rem) 0; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-media { padding: .7rem; }
  .hero-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* --- Section heads wrap rather than crush --------------- */
.section-head { flex-wrap: wrap; }
.section-head .more { white-space: nowrap; }
@media (max-width: 480px) {
  .section-head { padding-bottom: .5rem; margin-bottom: 1rem; }
  .section-head h2 { font-size: 1.35rem; flex: 1 1 100%; }
  .section-head .more { font-size: .78rem; }
}

/* --- Featured editorial card: keep media short on stack --- */
.featured-media { min-height: 200px; }
@media (max-width: 760px) {
  .featured-media { aspect-ratio: 16 / 9; }
  .featured-body { padding: 1.4rem 1.2rem 1.5rem; }
  .featured-body h2 { font-size: 1.5rem; }
}

/* --- Country grid: equal heights, no overflow ----------- */
.country-card { display: flex; flex-direction: column; height: 100%; }
.country-card .read { margin-top: auto; padding-top: .9rem; }
.country-grid { align-items: stretch; }

/* --- Card grid: predictable min-widths on small screens --- */
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .card-body { padding: 1rem 1.1rem 1.15rem; }
}

/* --- Crumbs wrap with consistent gap -------------------- */
.crumbs ol { row-gap: .2rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li + li::before { margin: 0; }

/* --- Compliance block: label never overlaps content ----- */
.compliance {
  padding-top: 1.5rem;
}
.compliance::before {
  top: -.6rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .compliance { padding: 1.5rem 1rem 1.1rem; font-size: .96rem; }
  .compliance::before { font-size: .62rem; left: .75rem; padding: 0 .4rem; }
}

/* --- Article body tables scroll horizontally on small ---- */
.article-body table,
table.compare-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
@media (min-width: 720px) {
  .article-body table,
  table.compare-table { display: table; overflow-x: visible; }
}
.article-body th, .article-body td,
.compare-table th, .compare-table td {
  white-space: normal;
  min-width: 0;
}

/* --- Byline wraps gracefully on phones ------------------ */
.byline { gap: .5rem 1rem; }
@media (max-width: 480px) {
  .byline { font-size: .8rem; padding: .6rem 0; gap: .35rem .9rem; }
}

/* --- Verdict block stacks below 600 ---------------------- */
@media (max-width: 600px) {
  .verdict {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.2rem 1.2rem;
    gap: .8rem;
  }
  .verdict .rating { font-size: 2.4rem; display: inline-block; margin-right: .5rem; }
  .verdict .stars { display: inline-block; }
}

/* --- Facts-grid: cleaner borders when single column ----- */
.facts-grid > div { min-width: 0; }
@media (max-width: 600px) {
  .facts-grid > div { border-right: 0 !important; }
  .facts-grid > div:last-child { border-bottom: 0; }
}

/* --- Pros/cons cards: padding tightens on phones -------- */
@media (max-width: 480px) {
  .pc { padding: 1rem 1.1rem; }
  .pc h4 { font-size: 1rem; }
}

/* --- Pull quote: smaller and less indent on mobile ------ */
@media (max-width: 600px) {
  .pull {
    font-size: 1.15rem;
    padding-left: .9rem;
    margin: 1.4em 0;
    line-height: 1.3;
  }
}

/* --- Answer box: edge-to-edge feel on tiny screens ----- */
@media (max-width: 480px) {
  .answer-box { padding: .95rem 1.1rem; font-size: 1rem; }
  .answer-box .label { font-size: .65rem; }
}

/* --- FAQ details: more breathing room ------------------- */
@media (max-width: 480px) {
  .faq summary { font-size: 1.05rem; padding-right: 1.6rem; }
  .faq summary::after { font-size: 1.2rem; }
  .faq details { padding: .85rem 0; }
}

/* --- Sanction list cards behave on phones --------------- */
@media (max-width: 480px) {
  .sanction-list li { padding: .85rem 1rem; }
  .sanction-list .name { font-size: 1.05rem; }
}

/* --- Footer grid + bottom row -------------------------- */
@media (max-width: 760px) {
  .foot { padding: 2.2rem 0 1.2rem; }
  .foot-grid { gap: 1.6rem; }
  .foot-grid > div { min-width: 0; }
}
.foot-bottom { row-gap: .5rem; align-items: center; }
@media (max-width: 480px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .foot-disclosure { padding: .85rem 1rem; font-size: .78rem; }
}

/* --- Hero kicker keeps its line ------------------------ */
.kicker { flex-wrap: wrap; row-gap: .25rem; }
@media (max-width: 480px) {
  .kicker { font-size: .72rem; gap: .4rem; }
  .kicker::before { width: 20px; }
}

/* --- Tag pills: never overflow row -------------------- */
.tag-pill { white-space: nowrap; }

/* --- Live pill alignment in section heads ------------- */
.section-head .live-pill { align-self: center; }

/* --- Brand mark never breaks weirdly ----------------- */
.brand-mark { white-space: nowrap; }
@media (max-width: 380px) {
  .brand-mark { font-size: 1.1rem; letter-spacing: -.025em; }
  .brand-mark .dot { margin: 0 .05em; }
}

/* --- Images in cards inside articles: cap height ---- */
.article-body .cards .card-img { aspect-ratio: 16 / 10; }

/* --- Navigation: roomier tap targets on touch -------- */
@media (max-width: 880px) {
  .nav a { padding: .55rem .25rem; }
}
@media (hover: none) {
  .nav a { padding: .6rem .25rem; min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- Wide screens: cap content even more ------------- */
@media (min-width: 1400px) {
  :root { --max: 1280px; }
  .article-body { font-size: 1.12rem; }
}

/* --- Tablet sweet spot: cards stay 2 across cleanly --- */
@media (min-width: 600px) and (max-width: 880px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Long word break in headlines ------------------- */
h1, h2, h3 { overflow-wrap: anywhere; }

/* --- Focus ring consistency ------------------------- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Compliance and answer-box anchor color on dark cards --- */
.foot a:focus-visible { outline-color: var(--gold); }

/* --- Sticky nav on mobile: shadow when scrolled feel --- */
.nav { box-shadow: 0 1px 0 var(--rule); }

/* --- Hero CTA pills wrap cleanly --------------------- */
.hero p { overflow-wrap: anywhere; }

/* --- Article body figure caption padding fix ---------- */
.article-body figure {
  border-radius: var(--r);
  overflow: hidden;
}

/* --- Equipo (team) cards: square-ish photos behave ---- */
@media (max-width: 480px) {
  .equipo-grid .card-img { aspect-ratio: 4 / 3; }
}
