/*
 * Editorial casino directory — component-oriented stylesheet.
 * Structure: tokens, document primitives, masthead, introduction, directory,
 * editorial elements, endcap and viewport adaptations.
 * AWeber's embedded form CSS is an independent third-party contract.
 */

:root {
  --surface-main: #ffffff;
  --surface-directory: #f2f7f5;
  --brand-green: #24b86a;
  --brand-green-hover: #198f50;
  --brand-blue: #2477a8;
  --text-headline: #263b4d;
  --text-primary: #2f3437;
  --text-muted: #6f7d82;
  --line-muted: #dfe8e4;
  --layout-max: 1180px;
  --radius-card: 14px;
  --speed-action: 0.2s ease;
}

/* Foundation — reset and shared responsive measure. */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(*) { padding: 0; margin: 0; }
html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--surface-main);
  color: var(--text-primary);
  font: 400 1rem/1.65 Inter, Arial, sans-serif;
}
img { max-width: 100%; }
.content-frame,
.masthead-viewport,
.editorial-content,
.footer-content {
  width: min(100% - 40px, var(--layout-max));
  margin-inline: auto;
}

/* Masthead: the viewport controls measure; the inner flex row controls layout. */
.site-masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255, 255, 255, .97);
  border-block-end: 1px solid var(--line-muted);
  box-shadow: 0 4px 18px rgba(38, 59, 77, .08);
  backdrop-filter: blur(8px);
}
.masthead-viewport { height: 100%; }
.masthead-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}
.masthead-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.masthead-brand img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}
.masthead-navigation ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.masthead-navigation a {
  color: var(--text-headline);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--speed-action);
}
.masthead-navigation a:is(:hover, :focus-visible) { color: var(--brand-green-hover); }
.masthead-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--surface-main);
  background: var(--brand-green);
  box-shadow: 0 5px 14px rgba(36, 184, 106, .22);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--speed-action), transform var(--speed-action);
}
.masthead-cta:is(:hover, :focus-visible) {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
}

/* Introduction and editorial byline now live within one semantic header. */
.intro-banner {
  padding-block: 64px 42px;
  background: linear-gradient(145deg, #fbfdfc 0%, #edf5f2 100%);
  border-block-end: 1px solid var(--line-muted);
  text-align: center;
}
.intro-copy { display: flow-root; }
.intro-title {
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--text-headline);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
}
.intro-deck {
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.06rem;
}
.byline-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line-muted);
  border-radius: 14px;
  background: var(--surface-main);
  box-shadow: 0 6px 20px rgba(38, 59, 77, .07);
}
.byline-portrait {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}
.byline-information {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.byline-signature {
  color: var(--text-headline);
  font-size: .94rem;
  font-weight: 700;
}
.byline-signature a { color: inherit; }
.byline-duty {
  display: inline-block;
  margin-inline-start: 5px;
  color: var(--brand-blue);
  font-size: .76rem;
  font-weight: 600;
}
.byline-updated { color: var(--text-muted); font-size: .8rem; }

/* Ranked operator collection, with identity / promotion / action card regions. */
.directory-section {
  padding-block: 46px 52px;
  background: var(--surface-directory);
}
.directory-title {
  margin-block-end: 34px;
  color: var(--text-headline);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.25;
  text-align: center;
}
.operator-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line-muted);
  border-radius: var(--radius-card);
  background: var(--surface-main);
  box-shadow: 0 9px 26px rgba(38, 59, 77, .07);
  transition: box-shadow .22s ease, transform .22s ease;
}
.listing-card:hover {
  box-shadow: 0 13px 30px rgba(38, 59, 77, .1);
  transform: translateY(-3px);
}
.listing-position {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-blue);
  color: var(--surface-main);
  box-shadow: 0 4px 10px rgba(36, 119, 168, .2);
  font-size: .88rem;
  font-weight: 800;
}
.listing-card-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  min-width: 0;
  margin-block-end: 18px;
  padding-inline-start: 36px;
}
.listing-brand-icon {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.listing-brand-copy { min-width: 0; }
.listing-brand-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-headline);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}
.listing-stars {
  color: #e6a900;
  font-size: 1rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.promotion-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.promotion-feature {
  margin-block-end: 18px;
  padding: 14px;
  border: 1px solid rgba(36, 184, 106, .17);
  border-radius: 10px;
  background: rgba(36, 184, 106, .08);
  text-align: center;
}
.promotion-eyebrow {
  display: block;
  color: var(--brand-green-hover);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.promotion-value {
  overflow-wrap: anywhere;
  color: var(--text-headline);
  font-size: 1.08rem;
  font-weight: 750;
}
.promotion-points {
  flex-grow: 1;
  margin-block-end: 22px;
  list-style: none;
}
.promotion-points > li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-block-end: 9px;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.promotion-check-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-block-start: 3px;
  color: var(--brand-green);
}
.licensing-warning {
  margin: 10px 0 12px;
  padding: 7px 10px;
  border-left: 3px solid #b45309;
  border-radius: 4px;
  background: #fff7ed;
  color: #92400e;
  font-size: .85rem;
  font-weight: 700;
}
.listing-card-footer { display: block; flex: 0 0 auto; width: 100%; }
.listing-action {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-radius: 9px;
  background: var(--brand-blue);
  color: var(--surface-main);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background var(--speed-action), transform var(--speed-action);
}
.listing-action:is(:hover, :focus-visible) {
  background: var(--text-headline);
  transform: translateY(-1px);
}

/* Article typography, tabular data and dedicated user guidance panels. */
.editorial-region { padding-block: 58px; }
.editorial-content h2 {
  margin: 40px 0 18px;
  color: var(--text-headline);
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  line-height: 1.3;
}
.editorial-content h3 {
  margin: 26px 0 13px;
  color: var(--brand-blue);
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  line-height: 1.35;
}
.editorial-content p { margin-block-end: 19px; }
.editorial-content :is(ol, ul:not(.promotion-points)) { margin: 0 0 22px 24px; }
.editorial-content li { margin-block-end: 8px; }
.editorial-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
.editorial-content tbody {
  display: table;
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.editorial-content :is(th, td) {
  padding: 12px;
  border: 1px solid var(--line-muted);
  text-align: left;
  vertical-align: top;
}
.editorial-content tr:nth-child(even) { background: #f8faf9; }
.responsive-data-table { overflow-x: auto; }
:is(.legal-information, .player-safety-notice) {
  margin: 16px 0;
  padding: 12px 16px;
  border-inline-start: 4px solid currentColor;
  border-radius: 6px;
  background: rgba(127, 127, 127, .08);
  font-size: .95em;
}
.questions-panel {
  margin-block-start: 58px;
  padding: 30px;
  border: 1px solid var(--line-muted);
  border-inline-start: 4px solid var(--brand-green);
  border-radius: 12px;
  background: #fbfdfc;
}
.questions-panel h2:first-child { margin-block-start: 0; }

/* Endcap — advisory and copyright use separate semantic blocks. */
.site-endcap {
  margin-block-start: 58px;
  padding-block: 46px 28px;
  background: var(--text-headline);
  color: var(--surface-main);
}
.footer-safety-notice {
  margin-block-end: 18px;
  padding-block-start: 18px;
  border-block-start: 1px solid rgba(255, 255, 255, .16);
  color: #b8c5ca;
  font-size: .8rem;
  text-align: center;
}
.footer-copyright {
  display: block;
  color: #c8d2d6;
  font-size: .84rem;
  text-align: center;
}

/* Viewport-specific component adjustments; original breakpoints are retained. */
@media (max-width: 900px) {
  .masthead-navigation { display: none; }
}
@media (max-width: 768px) {
  :is(.content-frame, .masthead-viewport, .editorial-content, .footer-content) { width: min(100% - 30px, var(--layout-max)); }
  .site-masthead { height: 68px; }
  .intro-banner { padding-block: 48px 34px; }
  .operator-directory { grid-template-columns: 1fr; }
  .listing-card { width: 100%; }
  .editorial-region { padding-block: 46px; }
}
@media (max-width: 430px) {
  :is(.content-frame, .masthead-viewport, .editorial-content, .footer-content) { width: min(100% - 24px, var(--layout-max)); }
  .masthead-layout { gap: 8px; }
  .masthead-brand img { width: auto; max-width: 118px; height: 36px; }
  .masthead-cta {
    gap: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .77rem;
    white-space: nowrap;
  }
  .masthead-cta svg { width: 16px; height: 16px; }
  .intro-title { font-size: 1.82rem; }
  .intro-deck { font-size: .98rem; }
  .byline-panel { width: 100%; justify-content: flex-start; padding-inline-end: 12px; }
  .directory-title { margin-block-end: 26px; }
  .listing-card { padding: 20px 16px; border-radius: 12px; }
  .listing-position { inset-block-start: 12px; inset-inline-start: 12px; }
  .listing-card-header { gap: 11px; padding-inline-start: 34px; }
  .listing-brand-icon { width: 68px; height: 68px; flex-basis: 68px; }
  .listing-brand-name { font-size: 1.05rem; }
  .promotion-value { font-size: 1rem; }
  .questions-panel { padding: 22px 18px; }
}
@media (max-width: 350px) {
  .masthead-cta { padding-inline: 9px; font-size: .72rem; }
  .masthead-cta svg { display: none; }
  .masthead-brand img { max-width: 105px; }
}
