/* ==========================================================================
   Max Rummy - maxrummyslot.com
   Layout, metrics and component anatomy clone the ALL DIWA GAME reference.
   The accent is this brand's own ruby, substituted everywhere the reference
   used its magenta. Three reference greys are darkened to clear WCAG AA;
   those are the only deliberate colour divergences and they are noted inline.
   ========================================================================== */

:root {
  /* Brand */
  --accent: #be123c;          /* ruby. white label on it = 6.29:1 */
  --accent-dark: #9f1239;
  --accent-soft: #fdeaef;

  /* Reference chrome */
  --page: #e6e9ef;
  --surface: #fff;
  --ink: #4c4c4c;
  --ink-strong: #444;
  --dark: #1d222d;
  --dark-deep: #13161d;
  --line: #eaeaea;
  --shadow: 2px 2px 2px 0 #e3e3e3;

  /* AA-corrected greys. Reference values fail contrast and carry real text:
     #a7a7a7 = 2.41:1, #ababab = 2.30:1. */
  --meta: #6f6f6f;            /* was #a7a7a7 -> now 5.02:1 */
  --box-t: #747474;           /* was #ababab -> now 4.67:1 */

  /* Fixed reference button colours */
  --dl: #5edd1f;
  --dl-ink: #0d2b06;          /* 8.67:1 on the green; white would be 1.77:1 */
  --tg: #006fa7;

  /* Radius system */
  --r: 20px;
  --r-pill: 50px;
  --r-icon: 25px;

  /* Measure: one container width for header, content, footer and disclaimer. */
  --wrap: 1220px;
  --gutter: 10px;
  --side: 300px;
  --gap: 17px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  line-height: 25px;
  color: var(--ink);
  background: var(--page);
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r);
}
.skip-link:focus { left: 10px; top: 10px; }

/* ----------------------------------------------------------- shared measure */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
/* Long blocks run the full measure below the sidebar row, so no dead gutter. */
.container.is-block { display: block; }

/* --------------------------------------------------------------- header bar */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: var(--dark);
  border-bottom: 2px solid var(--accent);
}
#header .container {
  height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#logo { display: flex; align-items: center; flex: 0 0 auto; }
#logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
#menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#menu a {
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 20px;
  border-radius: var(--r);
  transition: color .2s ease, background-color .2s ease;
}
#menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
#menu a.active { color: #fff; background: rgba(255, 255, 255, .12); }
#menu a.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  margin-left: 6px;
}
#menu a.nav-cta:hover { background: var(--accent-dark); }

#nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  color: #fff;
  border-radius: var(--r);
}
.nav-ic { width: 26px; height: 26px; display: block; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 90px 0 40px;
  background: #000;
  overflow: hidden;
  text-align: center;
}
.imgbg { position: absolute; inset: 0; overflow: hidden; }
.imgbg img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .48) 45%, rgba(0, 0, 0, .78) 100%);
}
.hero .subcontainer {
  position: relative;
  z-index: 2;
  max-width: 730px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 46px;
  font-weight: 300;
  color: #fff;
}
.hero h2 {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
  color: rgba(255, 255, 255, .9);
}

/* search pill */
.sb_search {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
}
.sb_search input {
  flex: 1 1 auto;
  min-width: 0;             /* a flex input will not shrink below its content without this */
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: #f2f2f2;
  color: #43454b;
  font-size: 16px;
  padding: 0 84px 0 20px;
  font-family: inherit;
}
.sb_search input::placeholder { color: #6b6d73; }
.sb_search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 70px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}
.sb_search button:hover { background: var(--accent-dark); }
.sb_search button svg { width: 20px; height: 20px; }

/* search results panel */
.search-res {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin: 10px auto 0;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.search-res[hidden] { display: none; }
.search-res a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.search-res a:last-child { border-bottom: 0; }
.search-res a:hover { background: var(--accent-soft); }
.search-res img { width: 32px; height: 32px; border-radius: 8px; }
.search-res .sr-cat { margin-left: auto; color: var(--meta); font-size: 12px; }
.search-res .sr-none { padding: 12px 14px; color: var(--meta); }

/* category icon row */
.cats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 26px auto 0;
}
.cats a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  line-height: 18px;
  transition: transform .2s ease;
}
.cats a:hover { transform: translateY(-2px); color: #fff; }
.cats .cat-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  color: #fff;
}
.cats a:hover .cat-ic { opacity: 1; }
.cats .cat-ic svg { width: 21px; height: 21px; }
.cat-1 { background: #be123c; }
.cat-2 { background: #0f766e; }
.cat-3 { background: #b45309; }
.cat-4 { background: #4338ca; }
.cat-5 { background: #15803d; }
.cat-6 { background: #0369a1; }

/* --------------------------------------------------------------- page body */
#main-site { padding: 20px 0 0; }
.sections { flex: 1 1 auto; min-width: 0; }

.title-section {
  margin: 3px 10px 10px;
  padding: 0 0 10px;
  font-size: 22px;
  line-height: 31px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.title-section .ts-n { color: var(--meta); font-size: 14px; }

/* ------------------------------------------------------------- 6-up tiles */
.grid { display: flex; flex-wrap: wrap; }
.bav1 { width: 16.666%; padding: 10px; }
.px-post {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
  padding: 15px 15px 0;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.px-post:hover { transform: translateY(-3px); box-shadow: 2px 6px 12px 0 #d8dbe2; }
.px-postimg { display: block; margin: 0 auto 8px; }
.px-postimg img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.px-posttitle {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  height: 20px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.px-posttitle:hover { color: var(--accent); }
.px-postcat {
  display: block;
  font-size: 12px;
  line-height: 18px;
  height: 18px;
  color: var(--meta);
}
.px-postmeta {
  margin: 8px -15px 0;
  padding: 0 6px 10px;        /* 16px side padding ellipsised the CTA at 147px */
  border-radius: 0 0 var(--r) var(--r);
  margin-top: auto;
}
.tile-cta {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 25px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-cta:hover { color: var(--accent-dark); text-decoration: underline; }

/* ------------------------------------------------------- wide 3-up rail */
.bav2 { width: 33.333%; padding: 10px; }
.px-post2 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
  padding: 12px 15px;
  color: var(--ink);
  height: 100%;
  transition: transform .2s ease;
}
.px-post2:hover { transform: translateY(-3px); }
.px-postimg2 img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.px-post2-tx { min-width: 0; display: block; }
.px-posttitle2 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.px-post2:hover .px-posttitle2 { color: var(--accent); }
.px-postcat2, .px-postbonus {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--meta);
}
.px-postbonus { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- VIEW MORE */
.vermas { text-align: center; padding: 10px 0 24px; }
.vermas a {
  display: inline-block;
  width: 225px;
  max-width: 100%;
  line-height: 40px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background-color .2s ease;
}
.vermas a:hover { background: var(--accent-dark); color: #fff; }

/* ---------------------------------------------------------------- sidebar */
#sidebar {
  flex: 0 0 var(--side);
  width: var(--side);
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.widget {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
  padding: 15px;
  margin: 0 0 20px;
}
.widget h3 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.widget ul { margin: 0; padding: 0; list-style: none; }
.w-apps li { border-bottom: 1px solid var(--line); }
.w-apps li:last-child { border-bottom: 0; }
.w-apps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
}
.w-apps a:hover { color: var(--accent); }
.w-apps img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.w-apps .wa-t { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.w-apps .wa-c { display: block; font-size: 12px; line-height: 16px; color: var(--meta); }
.w-cats a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.w-cats li:last-child a { border-bottom: 0; }
.w-cats a:hover { color: var(--accent); }
.w-cats .wc-n {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

/* ------------------------------------------------------- single-page box */
.app-s { flex: 1 1 auto; min-width: 0; }
.box {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 25px;
  margin: 0 0 20px;
}
.box-title, .entry .box-title, h2.box-title {
  margin: 0 0 14px;
  padding: 15px 0 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--box-t);
}
.box-title::after, .entry .box-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--accent);
  margin: 6px 0 0;
}

.sb-compact {
  background: var(--dark);
  border-radius: 0 0 var(--r) var(--r);
  padding: 16px 25px;
  margin: 0 0 16px;
}
.sb-compact .sb_search { max-width: none; }

.breadcrumb { margin: 0 0 10px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--meta);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--meta); }
.breadcrumb a { color: var(--meta); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }

.s-head { display: flex; flex-wrap: wrap; gap: 20px; }
.s1 { flex: 0 0 150px; width: 150px; order: -1; }
.image-single {
  width: 150px;
  height: 150px;
  border-radius: var(--r-icon);
  object-fit: cover;
  display: block;
}
.s2col { flex: 1 1 320px; min-width: 0; }

.cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
h1.main-box-title {
  margin: 2px 0 4px;
  font-size: 38px;
  line-height: 48px;
  font-weight: 700;
  color: var(--ink);
}
.src-tag { font-size: 12px; color: var(--meta); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.tags a {
  display: inline-block;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 3px 10px;
}
.tags a:hover { background: var(--accent-dark); color: #fff; }
.main-box-desc { margin: 10px 0 0; }

/* info table */
.da-t { display: flex; flex-wrap: wrap; margin: 14px 0 0; }
.da-s { width: 33.333%; padding: 0 10px 0 0; margin: 0 0 12px; }
.da-s dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--box-t);
  line-height: 16px;
}
.da-s dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 20px; }

/* download + telegram buttons */
.dl-wrap { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.dl-btn, .tg-btn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 33px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 8px 5px 8px 38px;
  transition: filter .2s ease;
}
.dl-btn { background: var(--dl); color: var(--dl-ink); }
.tg-btn { background: var(--tg); color: #fff; }
.dl-btn:hover, .tg-btn:hover { filter: brightness(.93); }
.dl-btn:hover { color: var(--dl-ink); }
.tg-btn:hover { color: #fff; }
.dl-ic {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .1);
  border-radius: var(--r) 0 0 var(--r);
}
.dl-ic svg { width: 17px; height: 17px; }

.report-row { margin: 10px 0 0; font-size: 12px; color: var(--meta); }
.report-row a { color: var(--meta); text-decoration: underline; }
.report-row a:hover { color: var(--accent); }

/* share row */
.share-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 104px;
  min-height: 31px;
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  transition: filter .2s ease;
}
.share-btn:hover { filter: brightness(.9); color: #fff; }
.share-ic svg { width: 14px; height: 14px; display: block; }
.share-fb { background: #1877f2; }
.share-tw { background: #0f1419; }
.share-pn { background: #bd081c; }
.share-tg { background: #229ed9; }
.share-wa { background: #128c3e; }

/* notice block */
.notice {
  background: var(--accent-soft);
  border-radius: var(--r);
  border-left: 3px solid var(--accent);
  padding: 12px 15px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 22px;
}
.notice strong { color: var(--accent-dark); }

/* --------------------------------------------------------- article body */
.entry { font-size: 14px; line-height: 26px; }
.entry h2 {
  margin: 26px 0 10px;
  font-size: 21px;
  line-height: 30px;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
}
.entry h3 {
  margin: 20px 0 6px;
  font-size: 16.38px;
  line-height: 25px;
  font-weight: 700;
  color: var(--ink);
}
.entry h4 { margin: 16px 0 6px; font-size: 15px; line-height: 24px; font-weight: 700; }
.entry p { margin: 0 0 14px; }
.entry a { color: var(--accent); text-decoration: underline; }
.entry a:hover { color: var(--accent-dark); }
.src-list { margin: 0 0 14px; padding: 0 0 0 20px; }
.src-list li { margin: 0 0 6px; }

.tbl-wrap { overflow-x: auto; margin: 0 0 16px; }
.src-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  font-size: 13px;
}
.src-table th {
  background: var(--dark);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
.src-table td { padding: 10px 14px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ FAQ accordion */
.faq-block { margin: 26px 0 0; }
.faq-item {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 0 0 8px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary h3 {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink);
}
.faq-chev {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item[open] summary { background: var(--surface); }
.faq-ans { padding: 0 16px 4px; background: var(--surface); }
.faq-ans p:last-child { margin-bottom: 14px; }

/* ------------------------------------------------- editorial layout engine */
.ed-lede { font-size: 15px; line-height: 28px; }
.ed-lede p { margin: 0 0 14px; }
.ed-sec { margin: 28px 0 0; }
.sec-head {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 30px;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
}
.sec-rule { display: block; width: 46px; height: 3px; background: var(--accent); margin: 8px 0 0; }
.ed-intro { margin: 0 0 14px; }

.ed-grid { display: grid; gap: 14px; }
.ed-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* The editorial column is a white .box, so cards inside it are tinted. */
.ed-card {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-bottom: 2px solid var(--accent);
  padding: 16px;
}
.ed-card-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 0 0 10px;
}
.ed-card-ic svg { width: 20px; height: 20px; }
.ed-card-t { margin: 0 0 6px; font-size: 15px; line-height: 23px; font-weight: 700; color: var(--ink); }
.ed-card-b { font-size: 13px; line-height: 23px; }
.ed-card-b p:last-child { margin-bottom: 0; }

/* CTA band. .entry a and .entry h2 both out-specify a single class here, so
   the heading, body and buttons are all scoped explicitly. */
.ed-cta {
  position: relative;
  margin: 30px 0 0;
  padding: 28px 24px;
  border-radius: var(--r);
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}
.ed-cta::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(190, 18, 60, .42) 0%, rgba(190, 18, 60, 0) 68%);
  pointer-events: none;
}
.entry .ed-cta-h, .ed-cta .ed-cta-h, h2.ed-cta-h {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.ed-cta .ed-cta-body { position: relative; }
.ed-cta .ed-cta-body p {
  color: rgba(255, 255, 255, .88);
  text-align: center;
  margin: 0 auto 12px;
}
.ed-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 0;
}
.entry .hx-btn, .ed-cta .hx-btn, a.hx-btn {
  display: inline-block;
  min-width: 190px;
  line-height: 40px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.entry .hx-btn-primary, .ed-cta .hx-btn-primary, a.hx-btn-primary {
  background: var(--accent);
  color: #fff;
}
.entry .hx-btn-primary:hover, .ed-cta .hx-btn-primary:hover, a.hx-btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.entry .hx-btn-ghost, .ed-cta .hx-btn-ghost, a.hx-btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.entry .hx-btn-ghost:hover, .ed-cta .hx-btn-ghost:hover, a.hx-btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ------------------------------------------------------------ related row */
.related { margin: 0 0 24px; }
.related .grid { flex-wrap: nowrap; }
.related .bav1 { width: 20%; }      /* 5 items fill the full measure */

/* ------------------------------------------------------------- trust bar */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 10px;
}
.trust-i {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
  padding: 12px 15px;
}
.trust-ic {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-ic svg { width: 18px; height: 18px; }
.trust-i > span { min-width: 0; }
.trust-t { display: block; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 18px; }
.trust-s { display: block; font-size: 12px; color: var(--meta); line-height: 17px; }

/* ---------------------------------------------------------------- footer */
#footer { background: var(--dark); color: #fff; border-top: 2px solid var(--accent); margin: 24px 0 0; }
#footer .container { display: block; padding-top: 28px; padding-bottom: 20px; }
.ft-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--dark-deep);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 0 0 24px;
}
.ft-logo { height: 56px; width: auto; object-fit: contain; }
.ft-promo-tx { flex: 1 1 220px; }
.ft-promo-tx strong { display: block; font-size: 17px; line-height: 26px; }
.ft-promo-tx span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.ft-policy { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-policy a {
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 12px;
  line-height: 30px;
  padding: 0 16px;
  transition: background-color .2s ease;
}
.ft-policy a:hover { background: var(--accent); color: #fff; }

.ft-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.ft-col { flex: 1 1 200px; min-width: 0; }
.ft-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}
.ft-col ul { margin: 0; padding: 0; list-style: none; }
.ft-col li { margin: 0 0 6px; }
.ft-col a { color: rgba(255, 255, 255, .78); font-size: 13px; }
.ft-col a:hover { color: #fff; }
.ft-n { color: rgba(255, 255, 255, .55); }
.ft-trust li { display: flex; gap: 8px; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 21px; }
.ft-ic { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }

.disclaimer { background: var(--dark-deep); color: rgba(255, 255, 255, .72); padding: 20px 0 80px; }
.disclaimer .container { display: block; }
.disclaimer p { margin: 0 0 10px; font-size: 12px; line-height: 20px; }
.disclaimer strong { color: #fff; }
.ft-copy { color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------- floating CTA pill */
.float-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  line-height: 44px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #00c6ff, #0072ff, #8e2de2, #ff0080);
  background-size: 300% 300%;
  animation: fcta 9s ease infinite;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.float-cta:hover { color: #fff; }
.fc-ic { width: 18px; height: 18px; }
@keyframes fcta {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#to-top {
  position: fixed;
  right: 16px;
  bottom: 74px;
  z-index: 41;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
#to-top.show { display: flex; }
.tt-ic { width: 20px; height: 20px; }

/* -------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 1200px) {
  .bav1 { width: 20%; }
  .related .bav1 { width: 20%; }
}

@media (max-width: 1023px) {
  .container { flex-wrap: wrap; }
  #sidebar {
    flex: 1 1 100%;
    width: 100%;
    position: static;
  }
  .bav1 { width: 25%; }
  .ed-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related .grid { flex-wrap: wrap; }
  .related .bav1 { width: 33.333%; }
  h1.main-box-title { font-size: 30px; line-height: 40px; }
}

@media (max-width: 767px) {
  #nav-toggle { display: block; }
  #menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 2px solid var(--accent);
    padding: 8px 10px 14px;
  }
  #menu.open { display: block; }
  #menu ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #menu a { padding: 10px 12px; }
  #menu a.nav-cta { margin: 6px 0 0; text-align: center; }

  .hero { padding: 48px 0 30px; }
  .hero h1 { font-size: 28px; line-height: 36px; }
  .hero h2 { font-size: 14px; line-height: 24px; }

  .bav1 { width: 33.333%; }
  .bav2 { width: 100%; }
  .related .bav1 { width: 33.333%; }
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { padding: 16px; }
  .sb-compact { padding: 14px 16px; }
  .da-s { width: 50%; }
  h1.main-box-title { font-size: 25px; line-height: 34px; }
  .s-head { gap: 14px; }
  .s1 { flex: 0 0 110px; width: 110px; }
  .image-single { width: 110px; height: 110px; }
  .share-btn { flex: 1 1 calc(50% - 6px); width: auto; }
  body { font-size: 16px; line-height: 27px; }
  .entry { font-size: 16px; line-height: 28px; }
  .ed-card-b, .ed-lede { font-size: 16px; line-height: 28px; }
  .px-posttitle, .tile-cta { font-size: 13px; }
}

@media (max-width: 519px) {
  .bav1 { width: 50%; }
  .related .bav1 { width: 50%; }
  .ed-grid.cols-3, .ed-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .da-s { width: 100%; }
  .float-cta { font-size: 12px; padding: 0 16px; }
  .cats { gap: 12px; }
  .title-section { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------- detail badge + sp hero */
/* Detail-page badge sits in the text flow: position:static, never absolute. */
.badge {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  border-radius: var(--r);
  padding: 1px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}
.badge-new { background: var(--accent); }
.badge-hot { background: #b45309; }

.sp-hero { padding: 0; overflow: hidden; }
.sp-hero-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.sp-hero h1.main-box-title { padding: 18px 25px 20px; margin: 0; }

@media (max-width: 767px) {
  .sp-hero-img { height: 150px; }
  .sp-hero h1.main-box-title { padding: 14px 16px 16px; }
}
