/* Component stylesheet. Initial-paint masthead/intro rules remain inline in index.html.
   Component-local responsive queries retain all original design breakpoints. */

/* Content primitives */
:is(h1,h2,h3,h4) { color:var(--ink-primary); line-height:1.3; }
p { margin:0 0 1em; }
a { color:var(--brand-green); text-underline-offset:2px; }
a:hover { color:var(--brand-green-hover); }
:is(ul,ol) { margin:0 0 1.25em; padding-left:1.25em; }
li { margin-bottom:.45em; }
strong { font-weight:700; }
:focus-visible { outline:3px solid rgba(0,122,61,.45); outline-offset:2px; border-radius:4px; }
button { font-family:inherit; }

/* Masthead state */
.global-masthead.has-elevation { box-shadow:0 2px 12px rgba(26,31,39,.08); }

/* Operator ranking and card component */
.operator-rankings { padding-block:6px 28px; }
.rankings-heading { margin:10px 0 12px; font-size:1.25rem; font-weight:800; letter-spacing:-.01em; }
.ranked-operators { display:grid; gap:12px; margin:0; padding:0; list-style:none; counter-reset:none; }
.ranked-operators > .operator-record {
  display:grid;
  grid-template-columns:30px 1fr;
  grid-template-areas:'rank brand' 'bonus bonus' 'features features' 'cta cta';
  align-items:center;
  gap:12px 10px;
  margin:0;
  padding:14px;
  background:var(--panel-background);
  border:1px solid var(--line-subtle);
  border-radius:var(--corner-card);
}
/* Neutral grouping wrappers keep the grid-area placements identical. */
.operator-record > :is(.record-heading,.record-details) { display:contents; }
.operator-record:first-child { border-color:#c9d8cf; box-shadow:0 6px 20px rgba(0,122,61,.08); }
.operator-position {
  grid-area:rank;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  font-size:.9375rem;
  font-weight:800;
  color:#fff;
  background:var(--ink-primary);
  border-radius:50%;
}
.operator-record:first-child .operator-position { background:var(--brand-green); }
.operator-identity { grid-area:brand; display:flex; align-items:center; gap:12px; min-width:0; }
.operator-emblem {
  display:block;
  flex-shrink:0;
  width:104px;
  height:auto;
  aspect-ratio:2 / 1;
  object-fit:contain;
  background:#eef0f3;
  border-radius:var(--corner-control);
}
.operator-caption { display:flex; flex-direction:column; gap:3px; min-width:0; }
.operator-name { font-size:1rem; font-weight:800; line-height:1.25; overflow-wrap:anywhere; }
.operator-score { display:inline-flex; align-items:center; gap:6px; line-height:1; }
.score-number { font-size:.8125rem; font-weight:700; color:var(--ink-secondary); }
.score-stars { position:relative; display:inline-block; font-size:.9375rem; line-height:1; letter-spacing:1px; color:#d5d9df; white-space:nowrap; }
.score-stars::before, .score-stars::after { content:'\2605\2605\2605\2605\2605'; }
.score-stars::after {
  position:absolute;
  inset-block-start:0;
  inset-inline-start:0;
  width:var(--score-width,100%);
  overflow:hidden;
  color:#e8a317;
}
.score-fill-49 { --score-width:98%; }
.score-fill-48 { --score-width:96%; }
.score-fill-47 { --score-width:94%; }
.score-fill-46 { --score-width:92%; }
.score-fill-45 { --score-width:90%; }
.score-fill-44 { --score-width:88%; }
.score-fill-43 { --score-width:86%; }
.score-fill-42 { --score-width:84%; }
.score-fill-41 { --score-width:82%; }
.offer-summary {
  grid-area:bonus;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 12px;
  background:var(--page-background);
  border-radius:var(--corner-control);
}
.offer-eyebrow { font-size:.75rem; font-weight:700; color:var(--ink-secondary); }
.offer-terms { font-size:1rem; font-weight:800; line-height:1.3; }
.operator-highlights { grid-area:features; display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.operator-highlights li { display:flex; align-items:flex-start; gap:8px; margin:0; font-size:.875rem; line-height:1.4; color:#343b46; }
.operator-highlights svg { flex-shrink:0; width:18px; height:18px; margin-top:1px; color:var(--brand-green); }
.operator-action-slot { grid-area:cta; }
.outbound-action {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  padding:10px 18px;
  font-size:1rem;
  font-weight:800;
  color:#fff;
  background:var(--brand-green);
  border-radius:var(--corner-control);
  text-decoration:none;
  transition:background-color .15s;
}
:is(.outbound-action:hover,.outbound-action:focus-visible) { color:#fff; background:var(--brand-green-hover); }

@media (min-width:640px) {
  .ranked-operators > .operator-record {
    grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:'rank brand bonus' '. features cta';
    gap:14px 16px;
    padding:16px 18px;
  }
  .operator-position { width:32px; height:32px; }
  .operator-emblem { width:120px; }
  .operator-action-slot { align-self:end; }
}
@media (min-width:768px) {
  .operator-rankings { padding-block:28px 40px; }
  .rankings-heading { font-size:1.625rem; margin:0 0 16px; }
}
@media (min-width:1024px) {
  .ranked-operators > .operator-record {
    grid-template-columns:40px 270px minmax(0,1fr) minmax(0,1.1fr) 168px;
    grid-template-areas:'rank brand bonus features cta';
    gap:22px;
    padding:20px 24px;
  }
  .operator-position { width:36px; height:36px; font-size:1rem; }
  .operator-emblem { width:136px; }
  .operator-name, .offer-terms { font-size:1.0625rem; }
  .offer-summary { padding:12px 14px; }
  .operator-action-slot { align-self:center; }
  .operator-record:hover { border-color:#c9d0d8; }
}

/* Editorial article and utilities */
.guide-article {
  max-width:860px;
  margin:0 auto 28px;
  padding:22px 16px;
  background:var(--panel-background);
  border:1px solid var(--line-subtle);
  border-radius:var(--corner-card);
  overflow-wrap:break-word;
}
.guide-article h2 { margin:2.2em 0 .6em; font-size:1.375rem; font-weight:800; letter-spacing:-.01em; scroll-margin-top:calc(var(--masthead-height) + 14px); }
.guide-article h2:first-child { margin-top:0; }
.guide-article h3 { margin:1.7em 0 .5em; font-size:1.125rem; font-weight:700; }
.guide-article h2 + h3 { margin-top:1em; }
.guide-article :is(p,li) { color:#2b313b; }
.guide-article .editorial-subheading { margin-bottom:.4em; font-weight:700; color:var(--ink-primary); }
.unmarked-points { padding-left:0; list-style:none; }
.roomy-points li { margin-bottom:.8em; }
.appraisal-grid { display:grid; gap:4px 24px; margin:0 0 1em; }
.appraisal-column .unmarked-points { margin-bottom:.8em; }
.mobile-observation { padding:10px 14px; font-size:.9375rem; background:var(--page-background); border-left:3px solid #c3c9d1; border-radius:0 var(--corner-control) var(--corner-control) 0; }
.editorial-callout { padding:14px 16px; background:var(--page-background); border-radius:var(--corner-control); }
.responsible-play-notice { padding:14px 16px; font-size:.9375rem; border:1px solid var(--line-subtle); border-radius:var(--corner-control); }
.process-steps { display:grid; gap:10px; padding:0; list-style:none; }
.process-steps li { margin:0; padding:12px 14px; border:1px solid var(--line-subtle); border-radius:var(--corner-control); }
.process-steps strong { display:block; margin-bottom:2px; color:var(--ink-primary); }
@media (min-width:640px) { .appraisal-grid { grid-template-columns:1fr 1fr; } }
@media (min-width:768px) {
  .guide-article { padding:40px 48px; margin-bottom:28px; }
  .guide-article h2 { font-size:1.625rem; }
  .guide-article h3 { font-size:1.25rem; }
}

/* A single semantic table remains a stacked-cell comparison on phones. */
.responsive-table { margin:18px 0 22px; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.comparison-matrix { width:100%; border-collapse:collapse; font-size:.9375rem; }
.comparison-matrix thead { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.comparison-matrix :is(tbody,tr,td), .comparison-matrix { display:block; width:100%; }
.comparison-matrix tr { margin-bottom:10px; overflow:hidden; background:var(--panel-background); border:1px solid var(--line-subtle); border-radius:var(--corner-control); }
.comparison-matrix td { display:grid; grid-template-columns:minmax(96px,40%) 1fr; gap:10px; padding:8px 12px; text-align:left; border-bottom:1px solid #eef0f3; }
.comparison-matrix td:last-child { border-bottom:0; }
.comparison-matrix td::before { content:attr(data-label); font-size:.8125rem; font-weight:600; color:var(--ink-secondary); }
.comparison-matrix td:first-child { display:block; font-weight:800; color:var(--ink-primary); background:var(--page-background); }
.comparison-matrix td:first-child::before { content:none; }
@media (min-width:768px) {
  .comparison-matrix { display:table; font-size:.9375rem; }
  .comparison-matrix thead { display:table-header-group; position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:normal; }
  .comparison-matrix tbody { display:table-row-group; }
  .comparison-matrix tr { display:table-row; margin:0; border:0; border-radius:0; }
  .comparison-matrix :is(th,td) { display:table-cell; width:auto; padding:11px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line-subtle); }
  .comparison-matrix td::before { content:none; }
  .comparison-matrix td:first-child { font-weight:700; background:transparent; }
  .comparison-matrix th { font-size:.8125rem; font-weight:700; color:var(--ink-secondary); background:var(--page-background); }
  .comparison-matrix th:first-child { border-top-left-radius:var(--corner-control); }
  .comparison-matrix th:last-child { border-top-right-radius:var(--corner-control); }
  .comparison-matrix tbody tr:hover td { background:#fafbfc; }
}

/* Questions and page-end controls */
.reader-questions { display:grid; gap:10px; }
.reader-question { padding:14px 16px; border:1px solid var(--line-subtle); border-radius:var(--corner-control); }
.reader-question h3 { margin:0 0 .4em; font-size:1.0625rem; }
.reader-question p { margin:0; }
/* Match the original desktop article heading cascade inside FAQ cards. */
@media (min-width:768px) { .reader-question h3 { font-size:1.25rem; } }
.global-footer { padding:18px 0; background:#161a21; }
.footer-copyright { margin:0; padding:0 52px; font-size:.875rem; text-align:center; color:#c3c9d2; }
.scroll-top-control {
  position:fixed;
  inset-inline-end:14px;
  bottom:14px;
  z-index:40;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  color:#fff;
  background:var(--brand-green);
  border:0;
  border-radius:50%;
  box-shadow:0 4px 14px rgba(26,31,39,.2);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s,transform .2s,visibility .2s;
}
.scroll-top-control.is-on-screen { opacity:1; visibility:visible; transform:none; }
.scroll-top-control:hover { background:var(--brand-green-hover); }
.scroll-top-control svg { width:20px; height:20px; }
@media (prefers-reduced-motion:reduce) { .scroll-top-control, .outbound-action { transition:none; } }
