@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,700&family=Nunito+Sans:wght@400;600;700&display=swap");

:root {
  --bg: #e8f2ec;
  --panel: #ffffff;
  --ink: #1c3328;
  --muted: #4f6759;
  --forest: #2f6b4f;
  --sky: #3d7ea6;
  --line: rgba(28,51,40,.12);
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", sans-serif;
  --wrap: min(1400px, calc(100% - 2.5rem));
  --prose: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(800px 380px at 0% 0%, rgba(47,107,79,.16), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(61,126,166,.16), transparent 50%),
    linear-gradient(180deg, #f4fbf6, var(--bg));
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: var(--forest); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--forest); color: #fff; padding: .5rem 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,251,246,.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-logo { border-radius: 50%; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--forest); display: block; }
.brand-tag { font-size: .75rem; color: var(--muted); display: block; max-width: 34ch; }
.site-nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--forest); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; padding: .45rem .8rem; font: inherit; cursor: pointer; border-radius: 999px; }

.hero, .page-hero {
  background:
    linear-gradient(135deg, rgba(47,107,79,.12), rgba(61,126,166,.1)),
    #f7fcf9;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 3.6rem 0 2.8rem; }
.eyebrow {
  color: var(--sky); text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 700; margin: 0 0 .7rem;
}
.hero h1, .page-hero h1 {
  font-family: var(--display); font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1; margin: 0 0 .8rem; max-width: 16ch;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 48ch; margin: 0; }

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem 0 4.5rem;
  align-items: start;
}
.side-rail {
  position: sticky; top: 5.5rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
}
.rail-title {
  margin: 0 0 .8rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest); font-weight: 700;
}
.rail-nav { display: grid; gap: .45rem; }
.rail-nav a {
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem;
  padding: .35rem .2rem; border-radius: 8px;
}
.rail-nav a[aria-current="page"], .rail-nav a:hover {
  color: var(--forest); background: rgba(47,107,79,.08);
}
.site-main { min-width: 0; }
.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: 0 18px 40px rgba(28,51,40,.06);
  max-width: 1200px;
}

.prose { font-size: 1.05rem; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--display); line-height: 1.2; margin: 1.8rem 0 .75rem;
}
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.5rem; color: var(--forest); }
.prose h3 { font-size: 1.2rem; color: var(--sky); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose img { margin: 1.2rem 0; border-radius: 14px; }

.site-footer {
  background: #173528;
  color: #d7e7dd;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem;
  padding: 2.8rem 0 1.8rem;
}
.footer-brand { display: flex; gap: 1rem; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1.25rem; }
.footer-brand p, .footer-note p { margin: .4rem 0 0; color: #b7cfc1; }
.footer-label {
  margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .12em;
  font-size: .7rem; color: #8fd0ff; font-weight: 700;
}
.footer-links nav { display: grid; gap: .4rem; }
.footer-links a { color: #e7f4ec; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0 1.4rem; color: #9fbfad; font-size: .85rem;
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side-rail { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; }
  .site-nav.is-open { display: flex; }
}
@media (max-width: 560px) {
  :root { --wrap: min(1400px, calc(100% - 1.2rem)); }
  .brand-tag { display: none; }
}
/* === FIX: short brand + working footer === */

.site-footer {
  position: relative;
  z-index: 5;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 2.2rem 0 1.4rem;
}
.footer-brand { display: flex; }
.footer-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.footer-home strong { font-size: 1.15rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  transition: background .15s ease, transform .15s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0 1.35rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.brand-tag { display: none !important; }
.footer-links a{border-color:rgba(143,208,255,.35);}
.brand-name{font-family:var(--display);color:var(--forest);}
/* === POLISH V2 === */

/* polish v2 */
:root { --prose: min(1200px, 100%) !important; }
.site-main .wrap,
.literary,
.cinema-frame {
  display: flex !important;
  justify-content: center;
  width: var(--wrap);
  margin-inline: auto;
}
.shell {
  width: var(--wrap);
  margin-inline: auto;
}
.content-panel,
.prose.content-panel,
.care-card {
  width: min(960px, 100%) !important;
  max-width: 1200px !important;
  margin-inline: auto;
}
.prose { font-size: 1.1rem; }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 1rem; line-height: 1.2; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2rem 0 .85rem; line-height: 1.25; }
.prose h3 { font-size: 1.22rem; margin: 1.5rem 0 .65rem; }
.prose p, .prose li { line-height: 1.75; }
.prose ul.story-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.prose ul.story-list li { margin: 0; border-bottom: 1px solid rgba(127,127,127,.22); }
.prose ul.story-list a {
  display: block; padding: 1rem .15rem; text-decoration: none; font-weight: 700;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .98rem;
  display: table;
}
.prose th, .prose td {
  border: 1px solid rgba(127,127,127,.28);
  padding: .75rem .9rem;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 700; }
.prose tr:nth-child(even) td { background: rgba(127,127,127,.07); }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid currentColor;
}
.prose blockquote cite {
  display: block; margin-top: .55rem; font-style: normal; opacity: .75; font-size: .92rem;
}
.site-footer {
  position: relative !important;
  z-index: 30 !important;
  clear: both;
  margin-top: 2rem;
}
.footer-grid {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 2rem 0 1.25rem !important;
}
.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
}
.footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  padding: .65rem 1.05rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}
.footer-links a:hover { background: rgba(255,255,255,.24) !important; }
.footer-home {
  display: inline-flex !important;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}
.brand-tag, .footer-note, .footer-label { display: none !important; }
@media (max-width: 700px) {
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
.prose h2{color:var(--forest);}


/* === premium tables v20260721e === */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6rem 0;
  border-radius: 14px;
  border: 1px solid rgba(127,127,127,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.04));
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.table-scroll table {
  margin: 0;
  min-width: 640px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  font-size: .95rem;
}
.prose .table-scroll table,
.prose table.premium,
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.prose th,
.prose td {
  border: none;
  border-bottom: 1px solid rgba(127,127,127,.18);
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: middle;
}
.prose thead th,
.prose tr:first-child th {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(127,127,127,.28);
  background: rgba(127,127,127,.1);
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: rgba(127,127,127,.08); }
.prose tr:nth-child(even) td { background: rgba(127,127,127,.04); }

/* Casino offers table */
.table-offers { min-width: 920px !important; }
.casino-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 160px;
}
.casino-logo {
  /* superseded by lists + logo polish */
}
.casino-name { font-weight: 700; line-height: 1.2; }
.payout-pill {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(127,127,127,.14);
  white-space: nowrap;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn-play:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-play:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.theme-asharedfuture .prose thead th,
.theme-asharedfuture .prose tr:first-child th { color: #2f6b4f; background: rgba(47,107,79,.1); }
.theme-asharedfuture .btn-play {
  color: #fff; background: linear-gradient(135deg, #3f8a66, #2f6b4f);
}
.theme-asharedfuture .table-scroll { border-color: rgba(47,107,79,.2); }

/* === wider containers v20260721f === */
:root {
  --wrap: min(1400px, calc(100% - 2.5rem)) !important;
  --prose: min(1200px, 100%) !important;
}
.content-panel,
.prose.content-panel,
.care-card {
  max-width: 1200px !important;
  width: min(1200px, 100%) !important;
}
.cinema-frame,
.site-main .wrap,
.shell.wrap {
  width: var(--wrap) !important;
  max-width: none;
}
.table-offers { min-width: 860px !important; }
@media (max-width: 560px) {
  :root { --wrap: min(1400px, calc(100% - 1.2rem)) !important; }
}


/* === lists + logo polish v20260721h === */
.casino-logo {
  width: 72px !important;
  height: 48px !important;
  object-fit: contain;
  flex: 0 0 auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.casino-cell { gap: .9rem; }
.casino-name { font-size: 1.02rem; }

.prose ul,
.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.1rem 0 1.4rem;
}
.prose ul > li,
.prose ol > li {
  position: relative;
  margin: 0 0 .7rem;
  padding: .55rem .85rem .55rem 2.35rem;
  border-radius: 10px;
  line-height: 1.55;
  border: 1px solid rgba(127,127,127,.16);
  background: rgba(127,127,127,.05);
}
.prose ul > li::before,
.prose ol > li::before {
  position: absolute;
  left: .75rem;
  top: .72rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
}
.prose ul > li::before {
  content: "";
  background: currentColor;
  opacity: .85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / 70% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / 70% no-repeat;
  background: currentColor;
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; }
.prose ol > li::before {
  content: counter(prose-ol);
  color: #fff;
  background: currentColor;
  color: #111;
  font-size: .7rem;
}
.prose ul ul > li,
.prose ol ol > li,
.prose ul ol > li,
.prose ol ul > li {
  margin-top: .45rem;
  background: transparent;
  border-style: dashed;
}
.prose ul.story-list > li {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.prose ul.story-list > li::before { display: none; }

.theme-asharedfuture .prose ul > li,
.theme-asharedfuture .prose ol > li {
  border: none;
  background: transparent;
}
.theme-asharedfuture .prose ul > li::before { background-color: #2f6b4f; }
.theme-asharedfuture .prose ol > li::before { background: #2f6b4f; color: #fff; }

/* === list borderless v20260721j === */
.prose ul > li,
.prose ol > li {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 2.1rem !important;
  padding-top: .2rem !important;
  padding-bottom: .2rem !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
}
.prose ul > li::before,
.prose ol > li::before {
  top: .35rem !important;
}

/* === asf page-hero title v20260721k === */
.theme-asharedfuture .page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  line-height: 1.2 !important;
  max-width: none !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
}
span.btn-play { cursor: default; pointer-events: none; user-select: none; }

/* === asf article TOC v20260721m === */
.theme-asharedfuture .side-rail {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.theme-asharedfuture .rail-toc {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.theme-asharedfuture .rail-toc a {
  display: block;
  padding: .4rem .55rem;
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.35;
  text-decoration: none;
  color: inherit;
  opacity: .88;
  border-left: 2px solid transparent;
}
.theme-asharedfuture .rail-toc a:hover {
  opacity: 1;
  background: rgba(47,107,79,.1);
  border-left-color: #2f6b4f;
}
.theme-asharedfuture .rail-toc a.toc-sub {
  padding-left: 1.1rem;
  font-size: .82rem;
  opacity: .75;
}
.theme-asharedfuture .prose h2[id],
.theme-asharedfuture .prose h3[id] {
  scroll-margin-top: 1.25rem;
}
@media (max-width: 960px) {
  .theme-asharedfuture .side-rail {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 1rem;
  }
}

/* === themed TOC scroll v20260721p === */
.theme-asharedfuture .side-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(47,107,79,.55) rgba(47,107,79,.08);
}
.theme-asharedfuture .side-rail::-webkit-scrollbar {
  width: 6px;
}
.theme-asharedfuture .side-rail::-webkit-scrollbar-track {
  background: rgba(47,107,79,.08);
  border-radius: 999px;
  margin: 6px 0;
}
.theme-asharedfuture .side-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f8a66, #2f6b4f);
  border-radius: 999px;
}
.theme-asharedfuture .side-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4a9d76, #357a59);
}

