/* ==========================================================================
   TryCasino rebuild — /css/style.css
   Niche: online-casino reviews & responsible-play guide (information-only)
   Design: casino felt + brass. Editorial, premium, deliberately not neon.
   Logo: pure-CSS text wordmark — no image dependency.
   Works with JavaScript disabled; JS is enhancement only.
   ========================================================================== */

:root {
  /* palette — 6 core values + semantic tints */
  --felt:      #0B2F22;  /* deep table felt — header, hero */
  --felt-700:  #123F2E;  /* felt shade for gradients */
  --felt-600:  #16543C;  /* link green (7.9:1 on paper) */
  --felt-50:   #E8F0EA;  /* pale felt — panels, thead */
  --brass:     #C9A227;  /* brass accent — on dark only (6.0:1 on felt) */
  --brass-ink: #7A5E12;  /* brass readable on light (5.5:1 on paper) */
  --ink:       #16201B;  /* body text */
  --paper:     #FBF9F4;  /* warm page ground */
  --stone:     #5F675E;  /* secondary text */
  --line:      #DDD8CB;  /* hairline borders */
  --warn-bg:   #FDF3E3;
  --warn-edge: #C98A2B;

  /* semantic */
  --link:       var(--felt-600);
  --link-hover: var(--felt);
  --bg:         var(--paper);
  --text:       var(--ink);
  --muted:      var(--stone);
  --border:     var(--line);

  --font-head: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11,47,34,.06), 0 1px 3px rgba(11,47,34,.05);
  --shadow: 0 6px 16px rgba(11,47,34,.09), 0 2px 4px rgba(11,47,34,.05);
  --maxw: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--felt);
  line-height: 1.22;
  font-weight: 600;
  margin: 1.5em 0 .55em;
}
h1 { font-size: clamp(1.95rem, 1.1rem + 2.6vw, 2.85rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
  background: var(--felt-50);
  color: var(--felt-700);
  padding: .1em .35em;
  border-radius: 4px;
  border: 1px solid #D3DED5;
}
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 92px; }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--felt); color: #fff; padding: .65rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--felt) 0%, var(--felt-700) 100%);
  color: #F7F4EA;
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 2px 12px rgba(11,47,34,.2);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
}

/* text wordmark + icon — no image file */
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__icon { flex: 0 0 auto; color: var(--brass); }
.brand__text {
  font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em;
  line-height: 1; color: #fff; white-space: nowrap;
}

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: #E9EDE8; text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .3rem .1rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: #fff; border-bottom-color: var(--brass); }
.main-nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- layout ---------- */
.page {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1.1rem 2.5rem;
  display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr);
}
.page.page--full { grid-template-columns: minmax(0, 1fr); }
.page.page--narrow { max-width: 42rem; margin-inline: auto; }
.main { min-width: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--felt) 0%, var(--felt-700) 55%, #0E3A29 100%);
  color: #F3F1E7;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2.5vw, 2.6rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%);
  pointer-events: none;
}
.hero h1 { color: #FBF9F2; }
.hero .lede { color: #DCE3DA; font-size: 1.06rem; max-width: 62ch; }
.hero__eyebrow {
  margin: 0 0 .6rem; font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.hero__meta li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(201,162,39,.35);
  border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; color: #EDEFE9;
}

/* ---------- cards ---------- */
.cards {
  list-style: none; margin: 1rem 0 1.4rem; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--brass);
  border-radius: var(--radius); padding: 1.05rem 1.1rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- prose bits ---------- */
.lede { font-size: 1.06rem; color: #26302A; }
.byline {
  font-size: .85rem; color: var(--muted);
  border-bottom: 1px solid var(--border); padding-bottom: .7rem; margin-bottom: 1.2rem;
}
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--felt-600);
  background: var(--felt-50); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 1.4rem 0;
}
.callout--warn { background: var(--warn-bg); border-color: #EFDDBE; border-left-color: var(--warn-edge); }
.callout h2, .callout h3 { margin-top: 0; }

/* ---------- tables ---------- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 1rem 0; font-size: .93rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
caption { text-align: left; font-size: .85rem; color: var(--muted); padding: .5rem 0; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  background: var(--felt-50); font-family: var(--font-head);
  color: var(--felt); font-weight: 600; font-size: .9rem;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- spec list ---------- */
.spec {
  display: grid; margin: 1.2rem 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.spec > div {
  display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .5rem;
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
}
.spec > div:last-child { border-bottom: none; }
.spec dt {
  font-weight: 600; color: var(--felt); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.spec dd { margin: 0; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; margin: .5rem 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: .75rem 1rem; font-weight: 600;
  color: var(--felt); font-family: var(--font-head); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "\25B8"; color: var(--brass-ink); margin-right: .5rem;
  display: inline-block; transition: transform .15s ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details > p { padding: 0 1rem .9rem; margin: 0; }

/* ---------- related ---------- */
.related {
  background: var(--felt-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.6rem 0;
}
.related h2 { margin-top: 0; font-size: 1.1rem; }

/* ---------- sidebar ---------- */
.sidebar { display: grid; gap: 1.2rem; align-content: start; }
.module {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
}
.module h2 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--stone); margin: 0 0 .6rem; font-family: var(--font-body);
}
.module ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.module li { margin: .4rem 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--felt); color: #D9DFD6;
  margin-top: 2.5rem; border-top: 3px solid var(--brass);
}
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.1rem;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer h2 {
  color: var(--brass); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; font-family: var(--font-body); margin: 0 0 .7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #DCE3DA; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 1.1rem;
  text-align: center; font-size: .83rem; color: #A9B4A7;
  max-width: var(--maxw); margin: 0 auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--felt-600); color: #fff !important;
  text-decoration: none; padding: .5rem 1rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; border: 1px solid transparent;
}
.btn:hover { background: var(--felt); }
.btn--ghost { background: transparent; color: var(--felt-600) !important; border-color: var(--border); }

/* ---------- ad slots ---------- */
.ad-slot {
  position: relative; max-width: 100%; overflow-wrap: anywhere;
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 1.7rem 1rem 1rem; margin: 1.2rem 0;
  background: repeating-linear-gradient(45deg, #F5F2E9, #F5F2E9 9px, #F9F7F0 9px, #F9F7F0 18px);
  color: var(--stone); font-size: .8rem; text-align: center;
}
.ad-slot::before {
  content: "Advertisement"; position: absolute; top: .35rem; left: .7rem;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); opacity: .85;
}
.ad-banner    { min-height: 90px;  display: flex; align-items: center; justify-content: center; }
.ad-sidebar   { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ad-incontent { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ad-popular   { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.site-header__ad { flex: 1 1 100%; }
.site-header__ad .ad-slot {
  background: rgba(255,255,255,.05); border-color: rgba(201,162,39,.5); color: #D8DED6; margin: .2rem 0 .4rem;
}
.site-header__ad .ad-slot::before { color: var(--brass); }

/* ---------- consent ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 3px solid var(--brass);
  box-shadow: 0 -4px 18px rgba(11,47,34,.14); padding: 1rem 1.1rem;
}
.consent h2 { font-size: .95rem; margin: 0 0 .35rem; }
.consent p { margin: 0 0 .7rem; font-size: .88rem; color: var(--muted); }
.consent .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
body:has(#consent-dismiss:target) .consent { display: none; }

/* ---------- responsive ---------- */
@media (min-width: 960px) {
  .page { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: .97rem; }
  .site-header__inner { padding: .6rem .8rem; gap: .6rem .9rem; }
  .main-nav { margin-inline-start: 0; flex: 1 1 100%; }
  .main-nav ul { gap: .1rem .9rem; }
  .page { padding: 1.2rem .8rem 2rem; }
  .brand__text { font-size: 1.12rem; }
}
@media (max-width: 520px) {
  .spec > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- link lists (sitemap, 404, hub navigation) ---------- */
.linklist { list-style: none; padding: 0; margin: .6rem 0 1.4rem; }
.linklist li {
  margin: 0; border-bottom: 1px solid var(--border); padding: .55rem 0;
}
.linklist li:last-child { border-bottom: none; }
.linklist a { font-weight: 600; }
.linklist--grid {
  display: grid; gap: 0 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ---------- responsible-play / status note ---------- */
.note-responsible {
  background: var(--felt-50); border: 1px solid var(--border);
  border-left: 4px solid var(--felt-600); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin: 0 0 1.4rem; font-size: .93rem; color: #26302A;
}

/* ---------- contact form (Formspree, plain POST — works with JS off) ---------- */
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; margin: 1.2rem 0 1.6rem; box-shadow: var(--shadow-sm);
  max-width: 42rem;
}
.contact-form .field { margin: 0 0 1rem; }
.contact-form label {
  display: block; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--felt); margin-bottom: .35rem;
}
.contact-form .req {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  color: var(--stone); font-size: .78rem; margin-left: .35rem;
}
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid #C6CFC6; border-radius: 8px;
  padding: .6rem .7rem;
}
.contact-form textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--felt-600); }

/* honeypot — hidden from sighted users, still focusable-free for bots */
.contact-form .hp {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}

/* ---------- alias / moved stubs ---------- */
.breadcrumbs-simple {
  font-size: .8rem; color: var(--muted); margin: 0 0 1.2rem;
}

/* ---------- consent state set by js/app.js ---------- */
.consent.is-hidden { display: none; }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .consent, .sidebar, .ad-slot, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .page { display: block; max-width: none; padding: 0; }
  .hero { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; }
  .hero h1, .hero .lede, .hero__eyebrow { color: #000; }
}
