/* Gibraltar Watch · crecimiento, atractivo y monetización responsable · 2026-08-04 */
:root {
  --gwb-ink: #0d2c3a;
  --gwb-blue: #0d6278;
  --gwb-red: #c43a2b;
  --gwb-green: #087d68;
  --gwb-amber: #a85e05;
  --gwb-paper: #f5f0e6;
  --gwb-line: rgba(13,44,58,.18);
}

.gw-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}
.gw-reading-progress i { display: block; width: 0; height: 100%; background: var(--gwb-red); }

/* Repair the typography regression from the previous emergency patch. */
.gwc-status-grid article,
.gw-live-ledger article { min-width: 0; overflow: hidden; }
.gwc-status-grid strong,
.gw-live-ledger strong,
.gw-ope-route strong {
  display: block;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: none;
  text-wrap: balance;
}
.gwc-status-grid strong { font-size: clamp(1.75rem, 2.8vw, 2.6rem) !important; line-height: .92 !important; }
.gwc-status-grid article[data-gwc-status="security"] strong { font-size: clamp(1.55rem, 2.35vw, 2.15rem) !important; }
.gw-live-ledger strong { font-size: clamp(1.75rem, 2.65vw, 2.65rem) !important; line-height: .94 !important; }
.gw-live-ledger article:last-child strong { font-size: clamp(1.45rem, 2.15vw, 2.15rem) !important; }
.gw-ope-route strong { font-size: clamp(2rem, 4.5vw, 3.5rem) !important; }

/* Native details navigation remains the single source of truth. */
.site-header, .gwc-site-nav, .gwc-nav-group { overflow: visible; }
.gwc-nav-group { position: relative; }
.gwc-nav-group > summary { cursor: pointer; }
.gwc-nav-menu { z-index: 3000; }

.gw-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .75fr);
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.gw-discovery-main,
.gw-newsletter-card,
.gw-quick-read,
.gw-sponsor-strip,
.gw-commercial-panel,
.gw-policy-panel {
  border: 1px solid var(--gwb-line);
  background: rgba(255,255,255,.52);
}
.gw-discovery-main { padding: clamp(1.35rem, 3vw, 2.2rem); }
.gw-business-kicker {
  margin: 0 0 .65rem;
  color: var(--gwb-blue);
  font: 600 .68rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gw-discovery-main h2,
.gw-newsletter-card h2,
.gw-quick-read h2,
.gw-commercial-hero h1,
.gw-commercial-panel h2,
.gw-policy-panel h2 {
  margin: 0;
  color: var(--gwb-ink);
  font-family: "Newsreader", Georgia, serif;
  line-height: .98;
  text-wrap: balance;
}
.gw-discovery-main h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 16ch; }
.gw-discovery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 1.4rem; border: 1px solid var(--gwb-line); }
.gw-discovery-grid a {
  min-width: 0;
  padding: 1.2rem;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--gwb-line);
  border-bottom: 1px solid var(--gwb-line);
  transition: background .18s ease, transform .18s ease;
}
.gw-discovery-grid a:nth-child(2n) { border-right: 0; }
.gw-discovery-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.gw-discovery-grid a:hover { background: rgba(13,98,120,.07); transform: translateY(-2px); }
.gw-discovery-grid small { display: block; color: var(--gwb-red); font: 600 .64rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .1em; }
.gw-discovery-grid strong { display: block; margin: .55rem 0 .35rem; color: var(--gwb-ink); font: 600 clamp(1.35rem,2.1vw,2rem)/1 "Newsreader", Georgia, serif; }
.gw-discovery-grid span { color: #627680; font-size: .84rem; line-height: 1.5; }

.gw-newsletter-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--gwb-ink);
  color: #fff;
}
.gw-newsletter-card .gw-business-kicker { color: #63c8bb; }
.gw-newsletter-card h2 { color: #fff; font-size: clamp(2rem,3.4vw,3.25rem); }
.gw-newsletter-card p { color: rgba(255,255,255,.72); line-height: 1.55; }
.gw-newsletter-card form { display: grid; gap: .65rem; }
.gw-newsletter-card input {
  width: 100%; padding: .85rem .9rem; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.08); color: #fff; font: inherit;
}
.gw-newsletter-card button,
.gw-newsletter-card .gw-newsletter-fallback {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .75rem 1rem; border: 0; background: #fff; color: var(--gwb-ink); font-weight: 700; text-decoration: none; cursor: pointer;
}
.gw-newsletter-note { font-size: .72rem; opacity: .72; }

.gw-article-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1180px);
  margin: .75rem auto 1.25rem;
  padding: .75rem 1rem;
  border-block: 1px solid var(--gwb-line);
  color: #5e737d;
  font-size: .78rem;
}
.gw-article-meta,
.gw-share-actions { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; }
.gw-share-actions button,
.gw-share-actions a {
  border: 0;
  background: transparent;
  color: var(--gwb-blue);
  font: 600 .75rem/1 "IBM Plex Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: .2rem;
  cursor: pointer;
}

.gw-quick-read {
  width: min(100%, 1180px);
  margin: 1rem auto 1.5rem;
  padding: clamp(1.25rem,3vw,2rem);
}
.gw-quick-read h2 { font-size: clamp(2rem,3.4vw,3.2rem); }
.gw-quick-read-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 1.1rem; border: 1px solid var(--gwb-line); }
.gw-quick-read-grid article { min-width: 0; padding: 1rem; border-right: 1px solid var(--gwb-line); }
.gw-quick-read-grid article:last-child { border-right: 0; }
.gw-quick-read-grid b { display: block; margin-bottom: .35rem; color: var(--gwb-red); font: 600 .67rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.gw-quick-read-grid p { margin: 0; font-size: .82rem; line-height: 1.5; }

.gw-ad-slot[hidden] { display: none !important; }
.gw-ad-slot {
  width: min(100% - 2rem, 970px);
  min-height: 130px;
  margin: 2rem auto;
  padding: 1.5rem 1rem;
  border-block: 1px solid var(--gwb-line);
  background: rgba(255,255,255,.28);
  text-align: center;
}
.gw-ad-label { display: block; margin-bottom: .8rem; color: #71848c; font: 500 .62rem/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }

.gw-sponsor-strip {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(100%,1180px);
  margin: 1.5rem auto;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--gwb-green);
}
.gw-sponsor-strip h2 { margin: 0 0 .25rem; color: var(--gwb-ink); font: 600 clamp(1.45rem,2.6vw,2.35rem)/1 "Newsreader", Georgia, serif; }
.gw-sponsor-strip p { margin: 0; color: #667981; }
.gw-sponsor-strip a { display: inline-flex; padding: .75rem 1rem; background: var(--gwb-ink); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }

.gw-commercial-page main { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.gw-commercial-hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(16rem,.6fr);
  gap: 1rem;
  padding: clamp(2rem,5vw,4.5rem) 0 2rem;
  border-bottom: 1px solid var(--gwb-line);
}
.gw-commercial-hero h1 { font-size: clamp(3.2rem,7vw,7rem); max-width: 10ch; }
.gw-commercial-hero p { max-width: 62ch; color: #5f747d; font-size: 1.02rem; line-height: 1.65; }
.gw-commercial-highlight { padding: 1.5rem; background: var(--gwb-ink); color: #fff; }
.gw-commercial-highlight strong { display: block; color: #f0ad55; font: 600 clamp(2.7rem,5vw,4.5rem)/.9 "Newsreader",Georgia,serif; }
.gw-commercial-highlight p { color: rgba(255,255,255,.72); }
.gw-commercial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.gw-commercial-panel,
.gw-policy-panel { padding: clamp(1.25rem,3vw,2rem); }
.gw-commercial-panel h2,
.gw-policy-panel h2 { font-size: clamp(2rem,3.5vw,3.4rem); }
.gw-commercial-panel ul,
.gw-policy-panel ul { padding-left: 1.15rem; line-height: 1.65; }
.gw-commercial-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 2rem; padding: 1.5rem; background: #dcebee; }
.gw-commercial-cta a { padding: .8rem 1rem; background: var(--gwb-red); color: #fff; text-decoration: none; font-weight: 700; }

.gw-business-footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: .8rem; font-size: .78rem; }
.gw-business-footer-links a { color: inherit; }
.gw-privacy-advertising { margin-top: 1.5rem; }

.gw-404 { min-height: 70vh; display: grid; place-items: center; padding: 2rem; }
.gw-404 > div { max-width: 48rem; text-align: center; }
.gw-404 strong { display: block; color: var(--gwb-red); font: 600 clamp(5rem,16vw,11rem)/.8 "Newsreader",Georgia,serif; }
.gw-404 h1 { margin: .7rem 0; font-size: clamp(2.3rem,6vw,5rem); }
.gw-404 nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.2rem; }
.gw-404 a { padding: .75rem 1rem; border: 1px solid var(--gwb-line); color: var(--gwb-ink); text-decoration: none; }

@media (max-width: 980px) {
  .gw-discovery,
  .gw-commercial-hero { grid-template-columns: 1fr; }
  .gw-commercial-grid { grid-template-columns: 1fr 1fr; }
  .gw-quick-read-grid { grid-template-columns: 1fr 1fr; }
  .gw-quick-read-grid article:nth-child(2) { border-right: 0; }
  .gw-quick-read-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--gwb-line); }
  .gwc-status-grid,
  .gw-live-ledger { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 640px) {
  .gw-discovery-grid,
  .gw-commercial-grid,
  .gw-quick-read-grid { grid-template-columns: 1fr; }
  .gw-discovery-grid a,
  .gw-quick-read-grid article { border-right: 0; border-bottom: 1px solid var(--gwb-line); }
  .gw-discovery-grid a:last-child,
  .gw-quick-read-grid article:last-child { border-bottom: 0; }
  .gw-article-tools,
  .gw-sponsor-strip,
  .gw-commercial-cta { align-items: stretch; flex-direction: column; }
  .gw-sponsor-strip { display: flex; }
  .gw-sponsor-strip a,
  .gw-commercial-cta a { text-align: center; }
  .gwc-status-grid,
  .gw-live-ledger { grid-template-columns: 1fr !important; }
  .gwc-status-grid strong { font-size: clamp(1.9rem,10vw,2.8rem) !important; }
  .gwc-status-grid article[data-gwc-status="security"] strong { font-size: clamp(1.65rem,9vw,2.35rem) !important; }
  .gw-live-ledger strong,
  .gw-live-ledger article:last-child strong { font-size: clamp(1.8rem,9vw,2.55rem) !important; }
  .gw-commercial-hero h1 { font-size: clamp(3rem,15vw,5.2rem); }
}

/* Final overflow guard after full-page rendering tests. */
.gw-ope-route { min-width: 0; overflow: hidden; }
.gw-ope-route strong {
  width: 100%;
  max-width: 100% !important;
  font-size: clamp(1.65rem, 3vw, 2.5rem) !important;
  overflow-wrap: anywhere !important;
}
.map-placeholder-art { max-width: 100%; overflow: hidden; }
.strategic-verdict,
.strategic-verdict-title,
.strategic-verdict-copy { min-width: 0; overflow: hidden; }
.strategic-verdict-title strong {
  width: 100%;
  max-width: 100% !important;
  font-size: clamp(2.65rem, 4.1vw, 3.2rem) !important;
  line-height: .9 !important;
  overflow-wrap: anywhere !important;
}
.impact-chain { overflow: hidden; }

@media (max-width: 780px) {
  .strategic-verdict-title strong {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 10vw, 3rem) !important;
  }
  .gw-ope-route strong { font-size: clamp(1.55rem, 8vw, 2.35rem) !important; }
}
