/*
Theme Name: WinLegend Slate
Theme URI: https://winlegenduk.uk
Author: WinLegend UK
Description: Astra child theme for winlegenduk.uk — slate copper ledger
Template: astra
Version: 1.0.3
Text Domain: wlslate
*/

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

:root {
  --wl-graphite: #1f2430;
  --wl-slate: #2b3442;
  --wl-copper: #b06a3b;
  --wl-copper-light: #d08a55;
  --wl-paper: #f5f3ef;
  --wl-line: #dcd6cc;
  --wl-radius: 6px;
}

/* Base */

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--wl-graphite);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.wl-h {
  font-family: 'Libre Baskerville', serif;
  color: var(--wl-graphite);
  text-align: center;
}

table, .wl-score, .wl-tablewrap table td, .wl-tablewrap table th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a {
  color: var(--wl-copper);
}

a:hover {
  color: var(--wl-graphite);
}

:focus-visible {
  outline: 2px solid var(--wl-copper);
  outline-offset: 2px;
}

/* Astra width fix: one container, full width, no flex split */

#content .ast-container,
.ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

#primary,
.site-main,
#main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin-inline: auto !important;
}

/* Centered page measure: everything sits in a centered column */

.wl-page {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: left;
}

.wl-page > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Entry content column, centered, bordered blocks */

.entry-content {
  max-width: 1180px;
  margin-inline: auto;
}

.entry-content > * {
  max-width: 100%;
}

/* Bordered, framed content blocks (lists, paragraphs, quotes, embeds) */

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wl-fig,
.entry-content > .wl-aside,
.entry-content > .wl-calc,
.entry-content > .wl-faq,
.entry-content > .wl-toc {
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  background: #ffffff;
  padding: 14px 20px;
  margin-block: 18px;
}

.entry-content > blockquote {
  border-left: 4px solid var(--wl-copper);
  background: var(--wl-paper);
  font-style: italic;
}

/* Hide the empty Astra masthead once our header prints */

body.wl-has-header #masthead {
  display: none;
}

body.wl-has-header .ast-above-header,
body.wl-has-header .main-header-bar {
  display: none;
}

/* Header: brand row above nav row, one shell, centered */

.wl-header {
  background: var(--wl-graphite);
  color: var(--wl-paper);
  width: 100%;
  position: relative;
  z-index: 100;
}

.wl-header-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
  display: block;
}

.wl-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 10px;
}

.wl-header-brand .wl-logo {
  display: block;
  height: 40px;
  width: auto;
}

.wl-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wl-copper-light);
  letter-spacing: 0.02em;
}

.wl-header-nav {
  padding-bottom: 6px;
}

.wl-site-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem;
  color: var(--wl-paper);
  white-space: nowrap;
  text-decoration: none;
}

.wl-site-title:hover {
  color: var(--wl-copper-light);
}

/* Nav row: NO overflow scrolling on desktop — an overflow container clips
   the absolutely positioned dropdown panels. Horizontal scroll is allowed
   only on very small screens, where dropdowns are replaced by tapping
   through to the hub page itself. */

.wl-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-nav-item {
  position: relative;
  white-space: nowrap;
  flex: 0 0 auto;
}

.wl-nav-link {
  display: block;
  padding: 8px 11px;
  color: var(--wl-paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.wl-nav-link:hover,
.wl-nav-link:focus-visible {
  color: var(--wl-copper-light);
}

/* Open-on-hover indicator: small triangle after categories with children */

.wl-nav-item--has-drop > .wl-nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  margin-bottom: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

/* Dropdown panel: absolutely positioned wrapper above the list. The inner
   box carries the visual chrome; a 6px padding-top on the wrapper forms a
   hover bridge so the panel does not close while moving the pointer down. */

.wl-nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  padding-top: 6px;
  min-width: 260px;
  z-index: 50;
}

.wl-nav-item:hover > .wl-nav-drop,
.wl-nav-item:focus-within > .wl-nav-drop {
  display: block;
}

.wl-nav-drop-inner {
  background: var(--wl-paper);
  color: var(--wl-graphite);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  box-shadow: 0 6px 16px rgba(31, 36, 48, 0.18);
  max-height: 60vh;
  overflow-y: auto;
  min-width: 260px;
  padding: 4px 0;
}

.wl-nav-drop-link {
  display: block;
  padding: 8px 16px;
  color: var(--wl-graphite);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: normal;
}

.wl-nav-drop-link:hover,
.wl-nav-drop-link:focus-visible {
  background: #e8e3da;
  color: var(--wl-graphite);
}

/* Edge-aligned panels: the last hubs would otherwise overflow the right
   edge of the screen, the first ones the left edge. */

.wl-nav-item--edge-right > .wl-nav-drop {
  left: auto;
  right: 0;
}

.wl-nav-item--edge-left > .wl-nav-drop {
  left: 0;
}

/* Small screens: allow horizontal swipe of the nav row; dropdowns are
   replaced by the hub pages themselves. */

@media (max-width: 768px) {
  .wl-nav-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .wl-nav-list::-webkit-scrollbar {
    display: none;
  }
  .wl-nav-drop {
    display: none !important;
  }
}

/* Header responsive */

@media (max-width: 1100px) {
  .wl-nav-link {
    padding: 8px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .wl-header-inner {
    padding-inline: 16px;
  }
  .wl-header-brand {
    gap: 12px;
  }
  .wl-tagline {
    display: none;
  }
}

/* Breadcrumb */

.wl-breadcrumb {
  font-size: 0.82rem;
  color: var(--wl-slate);
  padding-block: 10px;
  border-bottom: 1px solid var(--wl-line);
  margin-bottom: 24px;
  text-align: center;
}

.wl-breadcrumb a {
  color: var(--wl-copper);
  text-decoration: none;
}

/* Contents bar */

.wl-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  background: var(--wl-paper);
  margin-block: 24px;
}

.wl-toc a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--wl-graphite);
  text-decoration: none;
  border-right: 1px solid var(--wl-line);
}

.wl-toc a:last-child {
  border-right: 0;
}

.wl-toc a:hover {
  color: var(--wl-copper);
}

/* Board columns */

.wl-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 32px;
}

@media (max-width: 1100px) {
  .wl-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .wl-cols {
    grid-template-columns: 1fr;
  }
}

.wl-col {
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-top: 3px solid var(--wl-copper);
  border-radius: var(--wl-radius);
  padding: 16px;
  text-align: center;
}

.wl-col-rank {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.6rem;
  color: var(--wl-slate);
}

.wl-col-brand {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  margin: 4px 0;
}

.wl-col-chips {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--wl-slate);
  text-align: left;
}

.wl-col-chips li {
  padding-block: 2px;
  border-bottom: 1px dashed var(--wl-line);
}

.wl-col-chips li:last-child {
  border-bottom: 0;
}

.wl-score {
  display: inline-block;
  background: var(--wl-copper);
  color: var(--wl-paper);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.wl-cta {
  display: inline-block;
  background: var(--wl-copper);
  color: var(--wl-paper);
  border: 0;
  border-radius: var(--wl-radius);
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.wl-cta:hover,
.wl-cta:focus-visible {
  background: var(--wl-copper-light);
  color: var(--wl-graphite);
}

/* Tables */

.wl-tablewrap {
  overflow-x: auto;
  margin-block: 24px;
  max-width: 100%;
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
}

.wl-tablewrap table,
table.wl-table {
  border-collapse: collapse;
  min-width: 640px;
  max-width: 100%;
  width: 100%;
  font-size: 0.92rem;
  margin-block: 0;
}

.wl-tablewrap th {
  background: var(--wl-graphite);
  color: var(--wl-paper);
  text-align: left;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.wl-tablewrap td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wl-line);
}

.wl-tablewrap tbody tr:nth-child(even) {
  background: var(--wl-paper);
}

/* Bare tables that escaped the wrapper still never widen the document */

.entry-content table,
#wl-page-casino-sites-uk table,
[class*="wl-page"] table {
  max-width: 100%;
}

/* Aside: honest offshore labelling, one per page */

.wl-aside {
  border-left: 4px solid var(--wl-copper);
  background: #edf0f4;
  padding: 16px 20px;
  margin-block: 24px;
  font-size: 0.92rem;
  color: var(--wl-slate);
}

/* FAQ */

.wl-faq {
  margin-block: 24px;
}

.wl-q {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  margin: 16px 0 6px;
  color: var(--wl-graphite);
}

.wl-a {
  margin: 0 0 12px;
  color: var(--wl-graphite);
}

/* Figures */

.wl-fig {
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  background: var(--wl-paper);
  padding: 16px;
  margin-block: 24px;
}

.wl-fig svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

.wl-fig figcaption {
  font-size: 0.85rem;
  color: var(--wl-slate);
  padding-top: 8px;
  text-align: center;
}

/* Calculator */

.wl-calc {
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  padding: 16px;
  margin-block: 24px;
  background: #ffffff;
}

.wl-calc-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

@media (max-width: 700px) {
  .wl-calc-rows {
    grid-template-columns: 1fr;
  }
}

.wl-calc label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wl-slate);
  margin-bottom: 4px;
}

.wl-calc input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--wl-paper);
}

.wl-calc input[type="number"]:focus {
  border-color: var(--wl-copper);
  outline: none;
}

.wl-calc-out {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px solid var(--wl-copper);
  border-radius: var(--wl-radius);
  background: var(--wl-paper);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--wl-graphite);
}

/* Footer */

.wl-footer {
  background: var(--wl-graphite);
  color: var(--wl-paper);
  margin-top: 48px;
}

.wl-footer-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 32px 24px;
  font-size: 0.9rem;
  text-align: center;
}

.wl-footer a {
  color: var(--wl-copper-light);
  text-decoration: none;
}

.wl-footer a:hover {
  color: var(--wl-paper);
}

.wl-footer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 12px 0;
  padding: 0;
}

/* Kill the Astra default footer bar (Copyright / Powered by) entirely */

#colophon,
.ast-footer-html,
.site-footer,
.ast-small-footer-wrap,
.ast-footer-credit,
.footer-adv-layout-1,
.ast-subfooter-container {
  display: none !important;
}

body.wl-has-header footer.site-footer,
body.wl-has-header #colophon {
  display: none !important;
}