/* ==========================================================================
   gamingo.news — site-wide styles (one file for every page)
   File on the server: public_html/assets/site.css — editable in place.

   Identity kept from the WordPress site: the logo red, the hot-pink accent,
   Oswald headlines and Roboto text, PT Serif for reading.
   One signature device: region chips. Every region has its own chip colour
   (like casino chip denominations) and the chip marks the region wherever a
   story appears, so a reader scanning a list can see where it happened.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --wash: #f4f4f6;
  --ink: #1b1b1f;
  --ink-2: #44444b;
  --muted: #6b6b73;
  --rule: #e4e4e8;
  --brand: #ea3017;          /* logo red */
  --accent: #ff005b;         /* the site's hot accent: rules, hover bars, chips */
  --accent-text: #c8004a;    /* accessible text version of the accent (4.9:1 on white) */
  --night: #17171c;          /* footer and dark bands */
  /* region chips */
  --emea: #2b59c3;
  --north-america: #c8102e;
  --latam-carribean: #0f8a5f;
  --asia: #d4880f;
  --oceania: #0e8fa8;
  --africa: #7a4bb6;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --read: 'PT Serif', Georgia, serif;
  --wrap: 1200px;
  --gut: 16px;
}
@media (min-width: 720px) { :root { --gut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: #c9c9d1; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; }
.social svg { width: 16px; height: 16px; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.logo img { width: 232px; height: auto; }
@media (max-width: 719px) { .logo img { width: 164px; } .masthead .wrap { min-height: 64px; } }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--wash); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.join { font: 500 15px/1 var(--head); background: var(--brand); color: #fff; padding: 11px 16px; border-radius: 3px; }
.join:hover { background: #c92611; color: #fff; }
@media (max-width: 560px) { .join { display: none; } }

/* Main navigation: <details> dropdowns work without JavaScript. */
.nav { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 3px solid var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > .wrap > ul { display: flex; gap: 2px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav > .wrap > ul::-webkit-scrollbar { display: none; }
.nav a, .nav summary { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; font: 500 16px/1 var(--head); white-space: nowrap; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.nav details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.nav [aria-current="page"], .nav .on > summary { box-shadow: inset 0 -4px 0 var(--accent); }
.nav a:hover, .nav summary:hover { color: var(--accent-text); }
.nav details { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--ink); box-shadow: 0 18px 30px -18px rgba(23, 23, 28, .35); }
.mega .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 18px; padding-top: 14px; padding-bottom: 18px; }
.mega a { height: auto; padding: 10px 0; font: 400 15px/1.3 var(--text); border-bottom: 1px solid var(--rule); white-space: normal; }
.mega a small { margin-left: auto; color: var(--muted); font-size: 12px; }
.mega .hub { font: 500 15px/1.3 var(--head); color: var(--accent-text); }

/* Search */
.search-box { display: flex; gap: 8px; margin: 0 0 18px; }
.search-box input { flex: 1; min-width: 0; font: 400 18px/1.2 var(--text); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 3px; }
.search-box button, .btn { font: 500 16px/1 var(--head); background: var(--ink); color: #fff; border: 0; padding: 0 18px; min-height: 46px; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; }
.btn:hover, .search-box button:hover { background: var(--brand); color: #fff; }
.btn.light { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }

/* ---------- Region chips (the signature) ---------- */
.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--text); color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 3.5px rgba(255, 255, 255, .85); flex: none; }
.chip.r-emea { --c: var(--emea); } .chip.r-north-america { --c: var(--north-america); } .chip.r-latam-carribean { --c: var(--latam-carribean); }
.chip.r-asia { --c: var(--asia); } .chip.r-oceania { --c: var(--oceania); } .chip.r-africa { --c: var(--africa); }
a.chip:hover { color: var(--ink); text-decoration: underline; }

/* Kicker = the story's section, in the accent. Sentence case. */
.kicker { font: 500 14px/1.2 var(--head); color: var(--accent-text); letter-spacing: .01em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.meta .sep { color: var(--rule); }

/* ---------- Story cards ---------- */
.story { position: relative; display: grid; gap: 8px; align-content: start; }
.story h3, .story h2 { margin: 0; font: 500 19px/1.22 var(--head); color: var(--ink); }
.story a.cover::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.story .chip, .story .kicker-link { position: relative; z-index: 2; }
.story:hover h3, .story:hover h2 { color: var(--accent-text); }
.story .img { aspect-ratio: 5 / 3; background: var(--wash); overflow: hidden; border-radius: 2px; }
.story .img img { width: 100%; height: 100%; object-fit: cover; }
.story .dek { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* Lead story */
.lead { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.lead-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .lead-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.story.big h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.005em; }
.story.big .dek { font: 400 18px/1.55 var(--read); -webkit-line-clamp: 4; }
.lead-side { display: grid; gap: 0; align-content: start; }
.lead-side .story { grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lead-side .story:first-child { padding-top: 0; }
.lead-side .story .img { aspect-ratio: 1; grid-row: span 3; }
.lead-side .story h3 { font-size: 17px; }

/* River (latest list) */
.river { display: grid; gap: 0; }
.river .story { grid-template-columns: minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .river .story { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; } .river .story .img { grid-row: span 4; } }
.river .story h3 { font-size: 22px; }

.grid3 { display: grid; gap: 26px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid4 { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid4 .story h3 { font-size: 17px; }

/* ---------- Sections ---------- */
section.band { padding: 34px 0; }
section.band + section.band { border-top: 1px solid var(--rule); }
.band.wash { background: var(--wash); }
.band.night { background: var(--night); color: #e9e9ee; }
.band.night .story h3 { color: #fff; } .band.night .chip, .band.night .meta { color: #b9b9c3; } .band.night .kicker { color: #ff5c8f; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; border-top: 3px solid var(--ink); padding-top: 10px; }
.band.night .band-head { border-top-color: var(--accent); }
.band-head h2 { margin: 0; font: 600 26px/1.1 var(--head); }
.band-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.band-head .more { font: 500 15px/1 var(--head); color: var(--accent-text); white-space: nowrap; }
.band.night .band-head .more { color: #ff5c8f; }
.cols { display: grid; gap: 34px; }
@media (min-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; } }

/* Region board on the homepage: one column per region, keyed by its chip */
.regions { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.region-col { border-top: 4px solid var(--c, var(--ink)); padding-top: 12px; }
.region-col h3 { margin: 0 0 6px; font: 600 21px/1.1 var(--head); }
.region-col ol { list-style: none; margin: 0; padding: 0; }
.region-col li { padding: 10px 0; border-bottom: 1px solid var(--rule); font: 400 16px/1.35 var(--head); }
.region-col li .meta { margin-top: 4px; font-family: var(--text); }

/* Sidebar */
.side { display: grid; gap: 30px; align-content: start; }
.side h2 { margin: 0 0 6px; font: 600 20px/1.1 var(--head); border-top: 3px solid var(--ink); padding-top: 10px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ranked li::before { content: counter(r); font: 600 26px/1 var(--head); color: var(--accent); }
.ranked a { font: 400 16px/1.3 var(--head); }
.ranked .meta { grid-column: 2; }
.join-card { background: var(--night); color: #e9e9ee; padding: 20px; border-radius: 3px; }
.join-card h2 { border: 0; padding: 0; color: #fff; }
.join-card p { margin: 0 0 14px; font-size: 15px; color: #c9c9d1; }
.join-card .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.join-card .btn { background: var(--brand); }
.join-card .btn.light { background: transparent; color: #fff; border-color: #6b6b73; }

/* ---------- Archive / page heads ---------- */
.page-head { padding: 26px 0 22px; border-bottom: 1px solid var(--rule); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.page-head h1 { margin: 0; font: 600 clamp(32px, 5vw, 52px)/1.05 var(--head); }
.page-head .lede { margin: 10px 0 0; max-width: 70ch; color: var(--ink-2); font-size: 17px; }
.page-head.region { border-bottom: 6px solid var(--c); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 30px; font-size: 14px; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.subnav small { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 30px 0 10px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; font: 500 15px/1 var(--head); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; }

/* ---------- Article ---------- */
.article-head { padding: 26px 0 0; }
.article-head .wrap > * { max-width: 800px; }
.article-head h1 { margin: 8px 0 12px; font: 600 clamp(30px, 4.6vw, 48px)/1.08 var(--head); letter-spacing: -.005em; }
.article-head .dek { margin: 0 0 18px; font: 400 20px/1.5 var(--read); color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 16px/1 var(--head); flex: none; }
.byline .who { display: flex; align-items: center; gap: 10px; }
.byline .who b { font-weight: 500; }
.byline .who-txt { display: grid; line-height: 1.3; }
.byline .who-txt span { font-size: 13px; color: var(--muted); }
.byline .meta { flex: 1; }
.hero-img { margin: 22px 0 0; }
.hero-img img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.hero-img figcaption { font-size: 13px; color: var(--muted); padding: 6px 0 0; }
.article-body { padding-top: 28px; padding-bottom: 10px; }
.prose { font: 400 19px/1.75 var(--read); color: #222227; max-width: 68ch; }
.prose > * { margin: 0 0 1.05em; }
.prose h2 { font: 600 28px/1.18 var(--head); margin: 1.5em 0 .5em; color: var(--ink); }
.prose h3 { font: 500 23px/1.22 var(--head); margin: 1.3em 0 .4em; color: var(--ink); }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--text); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-weight: 500; background: var(--wash); }
.prose hr { border: 0; border-top: 1px solid var(--rule); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.share ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.share a, .share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 17px; height: 17px; }
.share .label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.topics li { font-size: 14px; }
.topics a, .topics span { display: inline-block; padding: 6px 12px; background: var(--wash); border-radius: 30px; }
.topics a:hover { background: var(--ink); color: #fff; }
.topics span { color: var(--muted); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; margin: 30px 0 0; padding: 20px 0; border-top: 3px solid var(--ink); }
.author-box .avatar { width: 64px; height: 64px; font-size: 24px; }
.author-box h2 { margin: 0 0 4px; font: 600 20px/1.2 var(--head); }
.author-box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.notice { margin: 0 0 22px; padding: 12px 16px; background: var(--wash); border-left: 4px solid var(--muted); font-size: 15px; color: var(--ink-2); max-width: 68ch; }
.article-cols { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }

/* Simple pages */
.page-body { padding: 30px 0 50px; }
.page-body .prose h2:first-child { margin-top: 0; }
.cards-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0 0 1.2em; }
.contact-card { border: 1px solid var(--rule); border-top: 4px solid var(--brand); padding: 18px; font: 400 16px/1.5 var(--text); }
.contact-card h3 { margin: 0 0 6px !important; }
.contact-card p { margin: 0 0 8px; }
.empty { padding: 40px 0; color: var(--muted); }
.results .story { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.results mark { background: #ffe1ec; color: inherit; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #c9c9d1; padding: 44px 0 26px; margin-top: 40px; font-size: 14px; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h2 { margin: 0 0 10px; font: 500 17px/1.2 var(--head); color: #fff; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-about img { width: 190px; margin-bottom: 14px; }
.foot-about p { margin: 0 0 10px; max-width: 46ch; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; border-top: 1px solid #33333b; margin-top: 30px; padding-top: 18px; font-size: 13px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #c9c9d1; border-radius: 50%; font: 600 13px/1 var(--head); color: #fff; }
.foot-base .rg { display: flex; align-items: center; gap: 10px; max-width: 60ch; }

/* Consent banner */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(23, 23, 28, .25); }
.consent-t { margin: 0 0 4px; font: 600 18px/1.2 var(--head); }
.consent-p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.consent-p a { text-decoration: underline; }
.consent-b { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent-btn { font: 500 15px/1 var(--head); min-height: 42px; padding: 0 16px; border-radius: 3px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; }
.consent-btn[data-v="granted"] { background: var(--ink); color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .nav, .side, .site-foot, .share, .consent { display: none !important; } .prose { font-size: 12pt; } }
