:root {
  color-scheme: light;
  --ink: #1c1f24;
  --muted: #626a73;
  --line: #dce0e5;
  --panel: #ffffff;
  --soft: #f5f6f8;
  --field: #fbfcfd;
  --green: #3d4752;
  --green-dark: #262b33;
  --gold: #b7791f;
  --red: #a13a31;
  --blue: #2d5f8b;
  --shadow: 0 18px 45px rgba(25, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.boot-fallback {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.boot-fallback h1 {
  font-size: 3rem;
}

.boot-fallback p {
  color: var(--muted);
}

.lead-popover {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: min(440px, 100%);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.gate-copy {
  padding: 0;
}

.gate-copy h1 {
  font-size: 2.25rem;
  line-height: 1.03;
}

.gate-copy .lead {
  margin-top: 12px;
  font-size: 0.98rem;
}

.lead-popover h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.compact-signup {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 4.2rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.signup,
.info-panel,
.comments,
.table-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signup {
  display: grid;
  gap: 20px;
  padding: 24px;
  backdrop-filter: blur(14px);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  color: #2b2f34;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 104, 78, 0.16);
}

.primary-action,
.ghost-button,
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-action {
  min-height: 46px;
  border: 1px solid var(--green-dark);
  background: var(--green-dark);
  color: white;
  padding: 11px 16px;
}

.primary-action:hover,
.ghost-button:hover,
.row-action:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ghost-button,
.row-action {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  padding: 8px 12px;
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.microcopy {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 88px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  max-width: 42vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.workspace {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer strong {
  color: var(--ink);
}

.overview,
.detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.overview h1,
.detail-head h1 {
  font-size: 3.4rem;
}

.index-hero-copy {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.index-logo {
  display: block;
  width: min(340px, 100%);
  height: auto;
  object-fit: contain;
}

.new-user-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: 18px;
  margin: 22px 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.guide-copy h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.guide-copy p:not(.eyebrow) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.guide-copy p:last-child {
  margin-bottom: 0;
}

.guide-emphasis {
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: #f1f2f4;
  color: #2b2f34 !important;
  font-size: 0.92rem !important;
  font-weight: 600;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-steps article {
  padding: 14px;
  border: 1px solid #dde1e6;
  border-radius: 8px;
  background: #fbfcfd;
}

.guide-steps span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.guide-steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.guide-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin: 22px 0;
}

.table-wrap {
  overflow-x: auto;
  box-shadow: none;
}

.scope-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scope-note a {
  color: var(--green);
  font-weight: 600;
}

.more-templates {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px dashed var(--line);
}

.more-templates-head {
  max-width: 620px;
  margin-bottom: 16px;
}

.more-templates-head h2 {
  margin: 2px 0 6px;
  font-size: 1.3rem;
}

.more-templates-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.more-templates-head a {
  color: var(--green);
  font-weight: 600;
}

.more-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-templates-grid li {
  margin: 0;
}

.more-templates-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.more-templates-grid a:hover {
  background: #f1f2f4;
  border-color: var(--green);
}

.more-templates-grid .mt-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-templates-grid .mt-value {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f2f4;
  color: #2b2f34;
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

tbody tr:hover td,
tbody tr:focus-within td {
  background: #fbfcfd;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:focus {
  outline: 3px solid rgba(47, 104, 78, 0.22);
  outline-offset: -3px;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.sort-button .sort-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cdd3da;
  border-radius: 999px;
  background: #f8f9fb;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

.sort-button.active .sort-icon {
  border-color: rgba(47, 104, 78, 0.36);
  background: #eceef1;
  color: var(--green-dark);
}

.name-column {
  width: 68%;
}

.value-column {
  width: 92px;
}

.country-column {
  width: 20%;
}

.muted-column {
  color: var(--muted);
}

.table-title {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.casino-title-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.casino-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}

.casino-copy {
  min-width: 0;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.value-cell {
  width: 1%;
  white-space: nowrap;
}

.value-cell span {
  display: block;
  color: #59626c;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.value-cell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 36px;
  border: 1px solid rgba(47, 104, 78, 0.22);
  border-radius: 8px;
  background: #eef0f3;
  color: var(--green-dark);
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1;
  margin-top: 4px;
}

.country-cell {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.row-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--muted);
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.row-badges .badge-blue-ink {
  border-color: #9cc3ed;
  background: #eaf4ff;
  color: #174d96;
}

.row-badges .badge-code {
  border-color: #c8b27d;
  background: #fff6dd;
  color: #76500e;
}

.row-badges .badge-identity {
  border-color: #c2c8cf;
  background: #f1f3f5;
  color: #333b44;
}

.row-badges .badge-signature {
  border-color: #d7b4a9;
  background: #fff0ea;
  color: #873b2d;
}

.row-badges .badge-date {
  border-color: #c9bddf;
  background: #f4efff;
  color: #57408a;
}

.row-badges .badge-placement {
  border-color: #b9c0c8;
  background: #f0f3f6;
  color: #39434e;
}

.version,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.version.current,
.status-pill.current {
  background: #eceef1;
  color: #2b323b;
}

.version.review,
.status-pill.review {
  background: #fff0db;
  color: #8a4d12;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  font-weight: 800;
}

.detail-grid,
.document-grid,
.detail-priority-grid {
  display: grid;
  gap: 16px;
}

.statement-box {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: #f4f8fc;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.statement-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.statement-box .eyebrow {
  margin: 0;
  color: var(--blue);
}

.statement-copy {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 7px;
  padding: 6px 15px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.statement-copy:hover {
  background: var(--blue);
  color: #fff;
}

.statement-text {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d5e2ef;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
}

.statement-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.detail-grid,
.detail-priority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-panel {
  padding: 20px;
  box-shadow: none;
}

.priority-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.priority-panel h2 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.priority-panel p {
  margin: 0;
  color: #3a4048;
  line-height: 1.55;
}

.address-block {
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.5;
}

.detail-tagline {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--green-dark);
}

.faq-panel {
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item dt {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.faq-item dd {
  margin: 0;
  color: #3a4048;
  line-height: 1.55;
}

.amoe-card-figure {
  margin: 16px 0 0;
}

.amoe-card-figure img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.amoe-instructions {
  margin-top: 16px;
}

.amoe-instructions ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: #3a4048;
  line-height: 1.55;
}

.amoe-instr-statement {
  margin: 10px 0 6px;
  padding: 12px 16px;
  background: #f4f8fc;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
}

.amoe-instr-hint {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
}

.amoe-instr-foot {
  margin: 16px 0 0;
  font-weight: 650;
  color: var(--ink);
}

.amoe-terms {
  margin-top: 16px;
}

.amoe-terms ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #3a4048;
  line-height: 1.55;
}

.amoe-foot {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mail-to-hint {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.detail-value-card {
  flex: 0 0 auto;
  min-width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.detail-value-card span,
.detail-value-card strong {
  display: block;
}

.detail-value-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-value-card strong {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 1.45rem;
  line-height: 1.1;
}

dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.plain-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.wait-meter {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.wait-meter div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef0;
}

.wait-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.featured-documents {
  margin: 22px 0 12px;
}

.document-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.document-card h2 {
  margin: 0 0 4px;
}

.document-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f2f4;
}

.document-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-rules-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

.current-rules-callout .eyebrow {
  margin-bottom: 6px;
}

.current-rules-callout h2 {
  margin: 0;
  font-size: 1.05rem;
}

.current-rules-callout p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.current-rules-callout .primary-action {
  flex: 0 0 auto;
}

.more-info {
  margin-top: 18px;
}

.more-info summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  padding: 8px 14px;
  font-weight: 850;
  cursor: pointer;
}

.more-info-grid {
  margin-top: 14px;
}

.comments {
  margin-top: 18px;
  padding: 20px;
  box-shadow: none;
}

.comments-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.comments-head h2 {
  margin: 0;
}

.comments-head span {
  color: var(--muted);
  font-weight: 800;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 14px;
}

.comment div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comment p {
  margin: 0;
  color: #3a4048;
  line-height: 1.55;
}

@media (max-width: 940px) {
  .detail-grid,
  .document-grid,
  .detail-priority-grid,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .overview,
  .detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .index-hero-copy {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .new-user-guide,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .current-rules-callout {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 3.25rem;
  }

  .overview h1,
  .detail-head h1 {
    font-size: 2.7rem;
  }
}

@media (max-width: 650px) {
  .lead-popover {
    inset: 0;
    align-content: center;
    justify-items: stretch;
    z-index: 100;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    gap: 18px;
    padding: 72px 18px 28px;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(rgba(245, 248, 244, 0.92), rgba(245, 248, 244, 0.96)),
      url("brand/amoeguy-logo.png") center 11vh / min(72vw, 360px) auto no-repeat;
    box-shadow: none;
  }

  .lead-popover::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(23, 33, 31, 0.18);
    backdrop-filter: blur(4px);
  }

  .lead-popover .gate-copy,
  .lead-popover .compact-signup {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .lead-popover .gate-copy {
    margin-top: 165px;
    padding: 18px 16px 0;
    text-align: center;
  }

  .lead-popover h2 {
    max-width: none;
    font-size: 1.72rem;
    line-height: 1.02;
  }

  .lead-popover .lead {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .lead-popover .compact-signup {
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(23, 33, 31, 0.14);
  }

  .lead-popover .close-button {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    color: var(--green-dark);
  }

  .signup {
    padding: 18px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
  }

  .topbar nav {
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 6px;
    width: auto;
  }

  .topbar nav a {
    display: none;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 64px;
    height: 43px;
  }

  .brand strong {
    font-size: 0.96rem;
    line-height: 1;
  }

  .brand small {
    max-width: 38vw;
    font-size: 0.72rem;
  }

  #open-lead-prompt {
    min-height: 34px;
    width: auto;
    padding: 7px 12px;
  }

  .workspace {
    width: min(100% - 22px, 1220px);
    padding-top: 14px;
  }

  .site-footer {
    width: min(100% - 22px, 1220px);
    padding: 18px 0 28px;
    font-size: 0.76rem;
  }

  .overview {
    margin-bottom: 12px;
  }

  .index-hero-copy {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .index-logo {
    width: 118px;
  }

  .new-user-guide {
    gap: 14px;
    margin: 14px 0 16px;
    padding: 14px;
  }

  .guide-copy h2 {
    font-size: 1.25rem;
  }

  .guide-copy p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .guide-emphasis {
    font-size: 0.86rem !important;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-steps article {
    padding: 11px 12px;
  }

  .guide-steps span {
    width: 22px;
    height: 22px;
    margin-bottom: 7px;
  }

  h1,
  .overview h1,
  .detail-head h1 {
    font-size: 2rem;
    line-height: 1.04;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .lead {
    margin-top: 9px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .controls {
    grid-template-columns: 1fr;
    margin: 12px 0;
  }

  .controls label:not(:first-child) {
    display: none;
  }

  label,
  legend {
    gap: 5px;
    font-size: 0.78rem;
  }

  input,
  select,
  textarea {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 6px;
  }

  .table-wrap {
    overflow: visible;
    border-radius: 8px;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
  }

  tbody tr:hover,
  tbody tr:focus-within {
    background: #fbfcfd;
  }

  th,
  td {
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  tbody tr:hover td,
  tbody tr:focus-within td {
    background: transparent;
  }

  .casino-cell {
    min-width: 0;
  }

  .casino-title-line {
    gap: 8px;
  }

  .casino-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    padding: 3px;
  }

  .table-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  td small {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .value-cell {
    justify-self: start;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 56px;
    max-width: none;
    padding: 0;
    text-align: center;
    line-height: 1.15;
  }

  .value-cell span {
    display: block;
    color: #59626c;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .value-cell strong {
    min-width: 48px;
    min-height: 34px;
    font-size: 1.18rem;
  }

  .country-cell {
    display: none;
  }

  .row-badges {
    gap: 5px;
    margin-top: 9px;
  }

  .row-badges span {
    padding: 2px 7px;
    font-size: 0.68rem;
  }

  .document-grid {
    gap: 10px;
  }

  .document-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .document-frame {
    aspect-ratio: 4 / 3;
  }

  .document-card h2 {
    font-size: 0.9rem;
  }

  .current-rules-callout,
  .info-panel,
  .comments {
    padding: 14px;
  }

  .detail-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .detail-head .lead {
    margin-top: 5px;
  }

  .detail-value-card {
    padding: 12px 14px;
  }

  .detail-value-card strong {
    font-size: 1.18rem;
  }

  .detail-priority-grid {
    gap: 10px;
  }

  .priority-panel {
    gap: 6px;
  }

  .priority-panel h2 {
    font-size: 1rem;
  }

  .priority-panel p {
    line-height: 1.42;
  }

  .address-block {
    font-size: 0.96rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .primary-action,
  .ghost-button,
  .row-action {
    width: 100%;
  }

  #open-lead-prompt {
    width: auto;
  }
}


/* ---- Blog (styled to match the detail / template pages) ---- */
.blog-index .blog-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.blog-card { transition: transform 0.15s ease, border-color 0.15s ease; }
.blog-card a { display: block; text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-2px); border-color: rgba(183, 121, 31, 0.45); }
.blog-card h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; color: var(--ink); }
.blog-card-lead h2 { font-size: 1.55rem; }
.blog-card .blog-excerpt { margin: 0; color: #3a4048; line-height: 1.55; }
.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}
.blog-readmore em { font-style: normal; transition: transform 0.15s ease; }
.blog-card:hover .blog-readmore em { transform: translateX(4px); }

/* Article */
.blog-post .blog-article { max-width: 760px; margin: 0 auto; }
.blog-article-head { display: block; margin-bottom: 18px; }
.blog-article-head h1 { font-size: 2.4rem; line-height: 1.18; }
.blog-article-head .lead { margin-top: 12px; font-weight: 700; color: var(--green-dark); }

/* Body reuses the panel look; type matches the detail pages */
.blog-body { display: grid; gap: 16px; }
.blog-section { padding: 24px 28px; font-size: 1.08rem; line-height: 1.7; color: #3a4048; }
.blog-section > :first-child { margin-top: 0; }
.blog-body p { margin: 0 0 18px; }
.blog-body p:last-child { margin-bottom: 0; }
.blog-body h2 { margin: 0 0 12px; font-size: 1.35rem; color: var(--green-dark); }
.blog-body ul { margin: 0 0 18px; padding-left: 22px; }
.blog-body li { margin-bottom: 9px; line-height: 1.55; }

/* Pull-quote reuses the site's statement-box shape (blue left border) */
.blog-body .blog-lead {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: #f4f8fc;
  border: 1px solid #d5e2ef;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}
.blog-body .blog-lead strong { font-weight: 800; }
.blog-body .blog-search {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--blue);
  background: #f4f8fc;
  border: 1px solid #d5e2ef;
  border-radius: 8px;
  padding: 7px 13px;
  margin: 0 0 16px;
}
.blog-body .blog-fill {
  color: var(--muted);
  font-size: 0.98rem;
  padding: 11px 15px;
  background: var(--field);
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
}
.blog-body .blog-signoff {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.blog-body .blog-signoff strong { color: var(--green-dark); }
.blog-article-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 640px) {
  .blog-article-head h1 { font-size: 1.85rem; }
  .blog-section { font-size: 1.02rem; padding: 20px 18px; }
  .blog-card h2, .blog-card-lead h2 { font-size: 1.3rem; }
}

/* ---- Featured: 1 AMOE per month ---- */
.monthly-feature {
  margin: 28px 0 8px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b313a 0%, #262b33 100%);
  color: #eef0f3;
  box-shadow: 0 18px 40px rgba(25, 30, 38, 0.16);
}
.monthly-feature-head { margin-bottom: 20px; }
.monthly-feature-head .eyebrow { color: var(--gold); }
.monthly-feature-head h2 {
  font-size: 1.7rem;
  margin: 4px 0 8px;
  color: #fff;
}
.monthly-feature-head p { color: #b9c0c9; margin: 0; max-width: 60ch; }
.monthly-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.mf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mf-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--soft);
  padding: 4px;
}
.mf-value {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-dark);
}
.mf-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.mf-name:hover { color: var(--gold); }
.mf-sponsor { color: var(--muted); font-size: 0.85rem; margin: 0; }
.mf-pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(183, 121, 31, 0.12);
  border: 1px solid rgba(183, 121, 31, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 2px;
}
.mf-amoe-link {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
}
.mf-amoe-link:hover { text-decoration: underline; }

/* Referral name links (table + detail) */
.referral-link .ext-arrow,
.detail-title-link .ext-arrow {
  font-size: 0.72em;
  color: var(--gold);
  vertical-align: baseline;
}
.detail-title-link {
  color: inherit;
  text-decoration: none;
}
.detail-title-link:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.table-title.referral-link { text-decoration: none; }

@media (max-width: 720px) {
  .monthly-feature-grid { grid-template-columns: 1fr; }
}

/* ---- No-mail (in-app photo request) sites ---- */
.submit-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
.submit-steps li { margin-bottom: 7px; }
.photo-note {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.photo-note p:not(.eyebrow) { color: var(--muted); margin: 0; line-height: 1.6; }

/* Small blog-article links in the top nav */
.topbar nav .nav-article {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.topbar nav .nav-article:hover { color: var(--green-dark); text-decoration: underline; }

/* Comments status + empty state */
.comment-status{min-height:18px;margin:0;color:var(--muted);font-size:.9rem;font-weight:600;}
.comment-empty{color:var(--muted);margin:0;}
