/* ==========================================================================
   Diwa X - divax.org
   Layout/chrome: 1:1 Appyn ("ALL DIWA GAME") clone, body class `rounded`.
   Palette: marigold (the brand logo's own gold), replacing the reference magenta.
   Two accessibility-forced deviations from the reference are marked A11Y.
   ========================================================================== */

:root {
  /* accent - two stops, because a single gold cannot be both a fill and 4.5:1 text */
  --brand:       #F5A300;   /* fills, borders, chrome            (7.67:1 vs --dark) */
  --brand-deep:  #9A5F00;   /* accent TEXT on white              (5.24:1 vs #fff)   */
  --brand-soft:  #FFF4E0;
  --brand-ink:   #1d222d;   /* text sitting ON a --brand fill    (7.67:1)           */

  --page:    #e6e9ef;
  --surface: #ffffff;
  --tint:    #f7f8fa;
  --ink:     #4c4c4c;
  --head:    #444444;
  --meta:    #767676;       /* A11Y: reference uses #a7a7a7 (2.41:1). 4.54:1 here.  */
  --faint:   #ababab;
  --line:    #eaeaea;

  --dark:  #1d222d;
  --deep:  #13161d;

  --dl:    #5edd1f;         /* fixed by the clone */
  --tg:    #006fa7;         /* fixed by the clone */

  --r-card: 20px;
  --r-pill: 50px;
  --r-icon: 25px;
  --shadow: 2px 2px 2px 0 #e3e3e3;

  --cap: 1220px;
  --side: 300px;
  --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

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

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

/* >=16px body text on mobile (C10) */
@media (max-width: 767px) { body { font-size: 16px; line-height: 27px; } }

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--brand-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-ink); }
button { font: inherit; }

a, button, summary, [role="button"], input[type="submit"] { cursor: pointer; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-card) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- the one shared measure (D1) --------------------------------- */
/* Header, content, footer and the disclaimer band all use this exact rule,  */
/* so their left/right edges line up on one vertical guide.                  */
.container {
  width: 100%;
  max-width: var(--cap);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
/* Same measure, block flow - for long content that must NOT sit beside the
   sidebar (editorial, article, FAQ, related row). Prevents the dead gutter. */
.container.is-block { display: block; }

/* ---------- header ------------------------------------------------------ */
#site-head {
  background: var(--dark);
  border-bottom: 2px solid var(--brand);
  position: sticky; top: 0; z-index: 60;
}
.head-in { height: 60px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; object-fit: contain; display: block; }

#nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
#nav a {
  display: block; padding: 8px 12px; color: #cfd4de; font-size: 13px;
  border-radius: var(--r-card); transition: color .18s ease, background .18s ease;
}
#nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
#nav a.is-active { color: var(--brand); }
#nav a.nav-cta {
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
  padding: 8px 18px; margin-left: 6px; border-radius: var(--r-pill);
}
#nav a.nav-cta:hover { background: #ffb524; color: var(--brand-ink); }
#nav a.nav-cta.is-active { color: var(--brand-ink); }

.burger {
  display: none; background: transparent; border: 0; color: #fff;
  padding: 8px; border-radius: var(--r-card);
}

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

@media (max-width: 767px) {
  .hero { padding: 54px 0 32px; }
  .hero h1 { font-size: 28px; line-height: 34px; }
  .hero h2 { font-size: 15px; line-height: 26px; }
}

/* search */
.searchbox { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.searchbox input {
  flex: 1 1 auto; height: 44px; border: 0; border-radius: var(--r-pill);
  background: #f2f2f2; padding: 0 20px; font-size: 16px; color: #222; min-width: 0;
}
.searchbox input::placeholder { color: #6b6b6b; }
.searchbox button {
  width: 70px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--brand); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.searchbox button:hover { background: #ffb524; }

.search-out {
  max-width: 600px; margin: 10px auto 0; background: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.search-out:empty { display: none; }
.search-out a {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px;
}
.search-out a:last-child { border-bottom: 0; }
.search-out a:hover { background: var(--brand-soft); }
.search-out img { width: 30px; height: 30px; border-radius: 8px; }
.search-out .none { padding: 10px 14px; color: var(--meta); font-size: 13px; }

/* category icon row */
.catic { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 26px 0 0; }
.catic a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #cfd4de; font-size: 12px; }
.catic span {
  width: 40px; height: 40px; border-radius: 50%; opacity: .5;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: opacity .18s ease, transform .18s ease;
}
.catic a:hover { color: #fff; }
.catic a:hover span { opacity: 1; transform: translateY(-2px); }
.catic .c1 { background: #e2445c; } .catic .c2 { background: #2e7d32; }
.catic .c3 { background: #1565c0; } .catic .c4 { background: #ad1457; }
.catic .c5 { background: #ef6c00; } .catic .c6 { background: #00838f; }

/* ---------- main grid --------------------------------------------------- */
#main-site { padding: 0 0 30px; }
/* spacing lives on the containers, so .hero / .s-search / .p-hero stay
   flush against the header instead of showing a strip of page colour */
#main-site > main > .container { margin-top: 20px; }
.mainwrap { flex: 1 1 auto; min-width: 0; }
.sidebar {
  flex: 0 0 var(--side); width: var(--side);
  position: sticky; top: 80px; align-self: flex-start;
}

.title-section {
  font-size: 22px; font-weight: 400; line-height: 30px; color: var(--head);
  margin: 3px 10px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.title-section .accent { color: var(--brand-deep); }

/* 6-up card grid */
.bav1 { display: flex; flex-wrap: wrap; margin: 0 0 10px; }
.bav1 .cell { width: 16.6666%; padding: 10px; }
.card {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--brand); overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 3px 5px 10px 0 #d8dce4; }
.card-img { display: block; padding: 15px 15px 8px; }
.card-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; display: block; }
.card-meta {
  padding: 0 15px 12px; border-radius: 0 0 var(--r-card) var(--r-card);
  display: flex; flex-direction: column; margin-top: auto;
}
.card-t {
  font-size: 14px; font-weight: 600; line-height: 20px; height: 20px; color: var(--head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.card-t:hover { color: var(--brand-deep); }
.card-d, .card-s {
  font-size: 12px; line-height: 18px; height: 18px; color: var(--meta);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 3-up wide tiles (top rated) */
.bav2 { display: flex; flex-wrap: wrap; margin: 0 0 10px; }
.bav2 .wcell { width: 33.3333%; padding: 10px; }
.wcard {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  border-bottom: 2px solid var(--brand); padding: 15px; display: flex; gap: 14px; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wcard:hover { transform: translateY(-3px); box-shadow: 3px 5px 10px 0 #d8dce4; }
.wcard-img { flex: 0 0 80px; }
.wcard-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 14px; display: block; }
.wcard-b { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wcard-t {
  font-size: 14px; font-weight: 600; line-height: 20px; color: var(--head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wcard-t:hover { color: var(--brand-deep); }
.wcard-r { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--meta); white-space: nowrap; }
.wcard-r b { color: var(--head); font-weight: 700; margin-left: 5px; }
.wcard-max { color: var(--meta); }
.wcard-v { font-size: 12px; line-height: 17px; color: var(--meta); white-space: nowrap; }
.wcard-btn {
  margin-top: auto; align-self: flex-start; background: var(--brand); color: var(--brand-ink);
  font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: var(--r-pill);
  transition: background .18s ease;
}
.wcard-btn:hover { background: #ffb524; color: var(--brand-ink); }

/* stars */
.star { width: 12px; height: 12px; display: inline-block; background: #d6d9df;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.star.is-on { background: var(--brand); }
.star.is-half { background: linear-gradient(90deg, var(--brand) 50%, #d6d9df 50%); }

.viewmore { text-align: center; margin: 6px 0 24px; }
.viewmore a {
  display: inline-block; width: 225px; max-width: 100%; line-height: 40px;
  border-radius: var(--r-pill); background: var(--brand); color: var(--brand-ink);
  text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: background .18s ease;
}
.viewmore a:hover { background: #ffb524; color: var(--brand-ink); }

/* ---------- sidebar widgets --------------------------------------------- */
.widget {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 20px;
}
.widget-t {
  font-size: 17px; text-transform: uppercase; color: var(--faint); font-weight: 700;
  margin: 0 0 14px; letter-spacing: .04em; position: relative; padding-bottom: 10px;
}
.widget-t::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--brand); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-size: 13px; }
.widget li a:hover { color: var(--brand-deep); }
.widget li img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: 0 0 34px; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wchips a {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 5px 12px; font-size: 12px; color: var(--ink);
}
.wchips a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }

.wsearch { display: flex; gap: 8px; }
.wsearch input {
  flex: 1 1 auto; min-width: 0; height: 38px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: #f2f2f2; padding: 0 16px; font-size: 14px; color: #222;
}
.wsearch button {
  width: 46px; height: 38px; border: 0; border-radius: var(--r-pill);
  background: var(--brand); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- boxes / single page ----------------------------------------- */
/* NOTE the selector trap: the editorial box must match inside BOTH the app
   wrapper and the homepage sections wrapper, so both are listed. */
.box, .app-s .box, .sections .box {
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px 25px; margin-bottom: 20px;
}

.crumb { font-size: 12px; color: var(--meta); margin: 0 0 8px; }
.crumb a { color: var(--brand-deep); }
.crumb span { color: var(--meta); }

.cat-label { font-size: 12px; text-transform: uppercase; color: var(--faint); letter-spacing: .06em; }

.s-top { display: flex; gap: 25px; align-items: flex-start; }
.s1 { order: -1; flex: 0 0 150px; width: 150px; min-width: 0; }              /* icon column floats left, H1 precedes it in the DOM */
.s2 { flex: 1 1 auto; min-width: 0; }
.app-icon { width: 150px; height: 150px; border-radius: var(--r-icon); object-fit: cover; display: block; }

h1.main-box-title { font-size: 38px; line-height: 48px; font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
@media (max-width: 767px) { h1.main-box-title { font-size: 27px; line-height: 35px; } }
.src-tag { font-size: 12px; color: var(--meta); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.chips li {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 4px 12px; font-size: 12px; color: var(--ink);
}
/* C7: detail-page New/Hot badge is static, never absolute. */
.badge {
  position: static; display: inline-block; border-radius: var(--r-card);
  padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: var(--brand); color: var(--brand-ink); letter-spacing: .05em;
}
.badge.is-new { background: var(--tg); color: #fff; }

.short-d { margin: 10px 0 0; }

.da-s { display: flex; flex-wrap: wrap; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); margin: 16px 0 0; }
.da-s > div { width: 33.3333%; padding: 10px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.da-s > div:nth-child(3n) { border-right: 0; }
.da-s b { display: block; font-size: 11px; text-transform: uppercase; color: var(--faint); font-weight: 600; letter-spacing: .05em; }
.da-s span { font-size: 13px; color: var(--ink); }

.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.share a {
  width: 104px; min-height: 31px; border-radius: var(--r-card); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter .18s ease;
}
.share a:hover { filter: brightness(1.12); color: #fff; }
.share .f { background: #1877f2; } .share .t { background: #111; }
.share .p { background: #bd081c; } .share .tg { background: var(--tg); }
.share .w { background: #1faf38; }

/* download buttons - green/blue fixed by the clone */
.dlbtns { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.dlbtn {
  position: relative; display: flex; align-items: center; min-height: 33px;
  border-radius: var(--r-card); font-size: 12px; font-weight: 700;
  padding: 8px 5px 8px 38px; text-transform: uppercase; letter-spacing: .04em;
  transition: filter .18s ease;
}
.dlbtn:hover { filter: brightness(1.06); }
.dlbtn .ib {
  position: absolute; left: 0; top: 0; bottom: 0; width: 30px;
  background: rgba(0,0,0,.1); border-radius: var(--r-card) 0 0 var(--r-card);
  display: inline-flex; align-items: center; justify-content: center;
}
/* A11Y: white-on-#5edd1f is 1.77:1, so the green button takes dark ink (8.98:1). */
.dlbtn-apk { background: var(--dl); color: var(--brand-ink); }
.dlbtn-apk:hover { color: var(--brand-ink); }
.dlbtn-tg { background: var(--tg); color: #fff; }
.dlbtn-tg:hover { color: #fff; }

.rate-row { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--meta); margin-top: 12px; }
.rate-line { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.rate-line b { color: var(--head); font-weight: 700; margin-left: 5px; }
.rate-max { color: var(--meta); }
.rate-v { white-space: nowrap; }
.report { font-size: 12px; color: var(--meta); margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; }

.entry h2.box-title, h2.box-title, .box-title {
  font-size: 17px; text-transform: uppercase; color: var(--faint); font-weight: 700;
  letter-spacing: .05em; margin: 0 0 16px; padding-bottom: 10px; position: relative;
}
.entry h2.box-title::after, h2.box-title::after, .box-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--brand); }

/* ---------- article + editorial body ------------------------------------ */
.entry { }
.entry h2 { font-size: 21px; line-height: 25px; font-weight: 700; color: var(--head); text-align: start; margin: 26px 0 10px; }
.entry h3 { font-size: 16px; line-height: 26px; font-weight: 600; color: var(--head); margin: 18px 0 6px; }
.entry h4 { font-size: 14px; font-weight: 600; color: var(--head); margin: 14px 0 6px; }
.entry p  { margin: 0 0 12px; }
.entry a  { color: var(--brand-deep); text-decoration: underline; }
.entry > *:first-child { margin-top: 0; }
.e-list { margin: 0 0 14px; padding-left: 0; list-style: none; }
.e-list li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.e-list li::before {
  content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg);
}

.e-lede { font-size: 15px; line-height: 27px; color: #3d434d; margin-bottom: 8px; }
@media (max-width: 767px) { .e-lede { font-size: 17px; line-height: 29px; } }

.e-sec { margin: 26px 0 0; }
.entry h2.e-h2, h2.e-h2, .e-h2 {
  font-size: 21px; line-height: 28px; font-weight: 700; color: var(--head);
  text-align: start; margin: 0 0 10px; padding-bottom: 10px; position: relative;
}
.entry h2.e-h2::after, h2.e-h2::after, .e-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--brand); }
.e-intro { margin-bottom: 16px; }

/* editorial card grid - tinted, never white-on-white inside the white .box */
.e-grid { display: grid; gap: 14px; }
.e-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.e-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.e-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; transition: border-color .2s ease, transform .2s ease;
}
.e-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.e-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 10px;
}
.e-card-h { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--head); margin: 0 0 6px; }
.e-card-b p { margin: 0 0 8px; }
.e-card-b p:last-child { margin-bottom: 0; }

@media (max-width: 1023px) { .e-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .e-grid.cols-4, .e-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px)  { .e-grid.cols-4, .e-grid.cols-3 { grid-template-columns: 1fr; } }

/* CTA band. `.entry a` sets an accent colour, so the button rules are
   out-specified here or the labels render accent-on-accent and vanish. */
.ecta {
  margin: 30px 0 0; background: var(--dark); border-radius: var(--r-card);
  padding: 34px 30px; position: relative; overflow: hidden; text-align: center;
}
.ecta::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: 420px; height: 420px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(245,163,0,.30) 0%, rgba(245,163,0,0) 68%);
}
/* `.entry h2` sets text-align:start, which does NOT inherit the band centring. */
.entry h2.ecta-h, .ecta h2.ecta-h, .ecta-h { position: relative; font-size: 24px; line-height: 33px; font-weight: 600; color: #fff; text-align: center; margin: 0 0 10px; }
.ecta-b { position: relative; color: #c8cdd8; max-width: none; }
.ecta-b p { margin: 0 0 10px; }
.ecta-row { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

.entry .hx-btn, a.hx-btn, .ecta .hx-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border-radius: var(--r-pill); padding: 11px 24px; font-size: 13px; font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.entry .hx-btn-primary, a.hx-btn-primary, .ecta .hx-btn-primary { background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); }
.entry .hx-btn-primary:hover, a.hx-btn-primary:hover, .ecta .hx-btn-primary:hover { background: #ffb524; color: var(--brand-ink); }
.entry .hx-btn-ghost, a.hx-btn-ghost, .ecta .hx-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.entry .hx-btn-ghost:hover, a.hx-btn-ghost:hover, .ecta .hx-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* FAQ accordion */
.faq-block { margin: 30px 0 0; }
.entry h2.faq-head, h2.faq-head, .faq-head {
  font-size: 21px; line-height: 28px; font-weight: 700; color: var(--head);
  text-align: start; margin: 0 0 14px; padding-bottom: 10px; position: relative;
}
.entry h2.faq-head::after, h2.faq-head::after, .faq-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--brand); }
.faq-i {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  margin-bottom: 10px; overflow: hidden;
}
.faq-i[open] { border-color: var(--brand); }
.faq-i > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; list-style: none;
}
.faq-i > summary::-webkit-details-marker { display: none; }
.faq-i > summary::marker { content: ""; }
.faq-i summary h3 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--head); }
.faq-chev { flex: 0 0 20px; color: var(--brand-deep); transition: transform .22s ease; }
.faq-i[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px 14px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- related row (full measure, 5 up) ---------------------------- */
.rlat { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.rlat .cell { width: 20%; padding: 10px; }

/* ---------- footer ------------------------------------------------------ */
#site-foot { background: var(--dark); border-top: 2px solid var(--brand); color: #b9bfcb; margin-top: 10px; }
.foot-in { padding: 34px 10px 26px; flex-wrap: wrap; gap: 24px; }
.foot-col { flex: 1 1 180px; min-width: 0; }
.foot-brand { flex: 1 1 260px; }
.foot-brand img { height: 56px; width: auto; object-fit: contain; border-radius: 12px; }
.foot-brand p { margin: 12px 0 0; font-size: 13px; line-height: 23px; }
.foot-col h3 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: #b9bfcb; font-size: 13px; }
.foot-col a:hover { color: var(--brand); }

.foot-trust { background: var(--deep); }
.foot-trust-in { flex-wrap: wrap; gap: 22px; padding: 14px 10px; justify-content: space-between; }
.foot-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa1b0; }
.foot-trust .ic { color: var(--brand); }

.disclaimer-band { background: var(--deep); color: #8d94a3; padding: 16px 0 22px; }
.disclaimer-band .container { display: block; }
.disclaimer-band p { margin: 0 0 8px; font-size: 12px; line-height: 21px; }
.disclaimer-band strong { color: var(--brand); }
.disclaimer-band .copy { margin: 0; }

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

.totop {
  position: fixed; right: 16px; bottom: 74px; z-index: 70;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--dark); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }

/* Card fade-in. Cards are VISIBLE by default; JS hides only the ones that start
   below the fold, so the first screen can never render blank and a failed or
   slow script can never strand the catalogue at opacity 0. */
.rv { transition: opacity .45s ease, transform .45s ease; }
.rv.rv-hide { opacity: 0; transform: translateY(14px); }

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 1200px) { .bav1 .cell { width: 20%; } }
@media (max-width: 1023px) {
  .container { flex-wrap: wrap; }
  .sidebar { position: static; flex: 1 1 100%; width: 100%; }   /* reset sticky when stacked */
  .bav1 .cell { width: 25%; }
  .bav2 .wcell { width: 50%; }
  .rlat .cell { width: 33.3333%; }
  .s-top { flex-wrap: wrap; }
  .s1 { order: 0; flex: 0 0 100%; }
  .app-icon { margin: 0 auto; }
  .da-s > div { width: 50%; }
  .da-s > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .da-s > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 767px) {
  .burger { display: inline-flex; }
  #nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    background: var(--dark); border-bottom: 2px solid var(--brand); padding: 8px 10px 14px;
  }
  #nav.is-open { display: block; }
  #nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #nav a { padding: 12px 14px; font-size: 16px; }
  #nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .bav1 .cell { width: 50%; }
  .bav2 .wcell { width: 100%; }
  .rlat .cell { width: 50%; }
  .box, .app-s .box, .sections .box { padding: 18px 16px; }
  .float-cta { font-size: 12px; padding: 10px 18px; }
  .share a { width: calc(50% - 4px); }
}
@media (max-width: 519px) { .catic { gap: 12px; } }
@media (max-width: 339px) { .bav1 .cell, .rlat .cell { width: 100%; } }

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

/* alternating tinted editorial panel (rhythm for long h2+p runs) */
.e-panel {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px 24px; margin-top: 22px;
}
.e-panel .e-h2 { margin-top: 0; }
.e-panel .e-badge { margin-bottom: 12px; }
@media (max-width: 767px) { .e-panel { padding: 18px 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* compact search band on interior templates */
.s-search { background: var(--dark); border-radius: 0 0 var(--r-card) var(--r-card); padding: 20px 0 24px; }
.s-search .container { max-width: var(--cap); }
.s-search .search-out { text-align: left; }

.is-center { text-align: center; }
.is-center .hx-btn { margin-top: 10px; }

/* static page hero */
.p-hero { position: relative; background: #000; padding: 46px 0 34px; overflow: hidden; }
.p-hero .imgbg { position: absolute; inset: 0; overflow: hidden; }
.p-hero .imgbg img {
  width: 120%; height: 100%; object-fit: cover; opacity: .3; filter: blur(22px);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.p-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.82)); }
.p-hero .container { position: relative; }
.p-hero h1 { font-size: 34px; line-height: 44px; font-weight: 300; color: #fff; margin: 6px 0 0; }
.crumb-hero, .crumb-hero span { color: #b9bfcb; }
.crumb-hero a { color: var(--brand); }
@media (max-width: 767px) { .p-hero h1 { font-size: 25px; line-height: 33px; } }

/* sidebar extras */
.widget li a span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-rate { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--brand-deep); }
.w-note p { margin: 0 0 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.w-note .ic { flex: 0 0 18px; color: var(--brand-deep); margin-top: 4px; }
.w-note-btn { width: 100%; justify-content: center; }

/* keep the floating pill clear of the last line of content */
.disclaimer-band { padding-bottom: 84px; }
@media (max-width: 767px) { .disclaimer-band { padding-bottom: 76px; } }
