/* ==========================================================================
   Rummy Ho - rummyhogame.com
   Layout, radii, widths and typography clone the ALL DIWA GAME reference.
   Palette is this site's own: azure cobalt #0F5BCB in place of the
   reference's magenta.
   ========================================================================== */

:root {
  /* palette */
  --accent:        #0f5bcb;
  --accent-dark:   #0a4299;
  --accent-ink:    #0c4eaf;
  --accent-soft:   #dce8fa;
  --accent-tint:   #f0f5fd;
  --ground:        #e6e9ef;
  --card:          #ffffff;
  --card-tint:     #f7f8fa;
  --ink:           #4c4c4c;
  --ink-strong:    #444444;
  --ink-mute:      #656565;   /* ref #a7a7a7 is 2.41:1 on white; this clears 4.5:1 on white, tint and ground */
  --ink-label:     #6f6f6f;   /* ref #ababab fails 4.5:1 on white */
  --hair:          #eaeaea;
  --dark:          #1d222d;
  --dark-deep:     #13161d;
  --shadow:        2px 2px 2px 0 #e3e3e3;
  --dl-green:      #5edd1f;
  --dl-green-dk:   #46a914;
  --tg-blue:       #006fa7;

  /* geometry */
  --r-card:        20px;
  --r-pill:        50px;
  --r-icon:        25px;
  --measure:       1220px;
  --side:          10px;
  --sidebar:       300px;
  --gap:           17px;

  /* motion */
  --t: 200ms cubic-bezier(.16,1,.3,1);
}

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

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

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

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-ink); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
a, button, summary, [role="button"] { cursor: pointer; }
button { font: inherit; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------------------------------------------------------- shared measure */
/* Header, content, footer and the disclaimer band all share these two edges. */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* --------------------------------------------------------------- header bar */
#header {
  position: sticky; top: 0; z-index: 90;
  height: 60px;
  background: var(--dark);
  border-bottom: 2px solid var(--accent);
}
#header .container {
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#header .logo { display: flex; align-items: center; flex: 0 0 auto; }
#header .logo a { display: flex; align-items: center; }
#header .logo img { height: 42px; width: auto; object-fit: contain; display: block; }
.wordmark { font-size: 25px; font-weight: 700; letter-spacing: -.3px; line-height: 1; white-space: nowrap; }
.wm-a { color: #fff; }
.wm-b { color: #74a6f5; margin-left: 4px; }

.menu-main-menu-container { display: flex; align-items: center; }
.menu-main-menu-container > .menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.menu-main-menu-container > .menu > li > a {
  display: block; padding: 8px 12px;
  font-size: 13px; font-weight: 600; color: #c9ced9;
  border-radius: var(--r-card);
  transition: color var(--t), background var(--t);
}
.menu-main-menu-container > .menu > li > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu-main-menu-container > .menu > li.current > a { color: #fff; background: rgba(255,255,255,.12); }
.menu-main-menu-container > .menu > li.is-cta > a {
  background: var(--accent); color: #fff; padding: 8px 18px;
}
.menu-main-menu-container > .menu > li.is-cta > a:hover { background: var(--accent-dark); }
.menu-main-menu-container > .menu > li.is-cta.current > a { background: var(--accent-dark); }

.menu-open {
  display: none; background: none; border: 0; color: #fff;
  padding: 8px; border-radius: 12px; line-height: 0;
}

#menu-mobile {
  background: var(--dark-deep);
  border-bottom: 2px solid var(--accent);
}
#menu-mobile[hidden] { display: none; }
#menu-mobile .menu { list-style: none; margin: 0 auto; padding: 8px 20px 14px; max-width: var(--measure); }
#menu-mobile .menu a {
  display: block; padding: 12px 10px; color: #d6dae3; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
#menu-mobile .menu li.current a { color: #fff; }

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

/* compact search band on inner pages */
#subheader.is-compact { padding: 26px 0 22px; border-radius: 0 0 var(--r-card) var(--r-card); }
#subheader.is-compact h1,
#subheader.is-compact h2 { display: none; }

/* --------------------------------------------------------------- searchbox */
#searchBox { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
#searchBox form { position: relative; display: block; }
.sb_search {
  width: 100%; height: 44px;
  padding: 0 110px 0 20px;
  font-family: inherit; font-size: 16px; line-height: 1.618; color: #43454b;
  background: #f2f2f2; border: 0; border-radius: var(--r-pill);
}
.sb_search::placeholder { color: #70737c; }
.sb_submit {
  position: absolute; top: 0; right: 0;
  width: 70px; height: 44px; padding: 0 25px;
  font-size: 21px; line-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--r-pill);
  transition: background var(--t);
}
.sb_submit:hover { background: var(--accent-dark); }

#sbResults {
  position: absolute; z-index: 40; left: 0; right: 0; top: 50px;
  background: #fff; border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(10,20,40,.22);
  overflow: hidden; text-align: left; max-height: 332px; overflow-y: auto;
}
#sbResults[hidden] { display: none; }
#sbResults a {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  color: var(--ink); border-bottom: 1px solid var(--hair); font-size: 13px;
}
#sbResults a:last-child { border-bottom: 0; }
#sbResults a:hover { background: var(--accent-tint); }
#sbResults img { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
#sbResults .sbr-none { padding: 12px 14px; color: var(--ink-mute); font-size: 13px; }

/* ------------------------------------------------------- category icon row */
.cats {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  list-style: none; margin: 24px 0 0; padding: 0;
}
.cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #eef1f6; }
.cat-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: .5;
  transition: opacity var(--t), transform var(--t);
}
.cats a:hover .cat-ic, .cats a:focus-visible .cat-ic { opacity: 1; transform: translateY(-2px); }
.cats .cat-lb { font-size: 11px; line-height: 14px; letter-spacing: .02em; }
.cat-1 { background: #0f5bcb; }
.cat-2 { background: #c2185b; }
.cat-3 { background: #e07b1f; }
.cat-4 { background: #0f766e; }
.cat-5 { background: #6d28a8; }
.cat-6 { background: #1e7a36; }

/* --------------------------------------------------------- main grid shell */
#main-site { padding: 20px 0 10px; }
#main-site .container { display: flex; align-items: flex-start; gap: var(--gap); }
#main-site .container.is-block { display: block; }
.sections { width: calc(100% - var(--sidebar) - var(--gap)); min-width: 0; }

#sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  position: sticky; top: 76px; align-self: flex-start;
}

/* ------------------------------------------------------------ section head */
.section { margin-bottom: 22px; }
.title-section {
  margin: 3px 10px 10px;
  padding-bottom: 10px;
  font-size: 22px; line-height: 30px; font-weight: 400; color: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.title-section::after {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--accent); margin-top: 10px; margin-bottom: -12px;
}

/* ------------------------------------------------------------ catalogue grid */
.baps { display: flex; flex-wrap: wrap; }
.baps[data-cols="6"] > .bav { width: 16.6666%; }
.baps[data-cols="5"] > .bav { width: 20%; }
.baps[data-cols="3"] > .bav { width: 33.3333%; }

.bav { padding: 10px; }
.bav > a { display: block; height: 100%; }

.bav1 { text-align: center; }
.bav1 > a {
  background: var(--card); border-radius: var(--r-card);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 15px;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.bav1 > a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(12,40,90,.14); }
.bav1 .bloque-imagen { margin: 0 auto 9px; width: 100%; }
.bav1 .bloque-imagen img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-icon); display: block;
}
.bav1 .title {
  display: block; height: 20px; overflow: hidden;
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-strong);
  white-space: nowrap; text-overflow: ellipsis;
}
.bav1 .version, .bav1 .developer {
  display: block; height: 18px; overflow: hidden;
  font-size: 12px; line-height: 18px; color: var(--ink-mute);
  white-space: nowrap; text-overflow: ellipsis;
}
.bav1 .px-postmeta {
  margin: 0 -15px; padding: 0 16px 10px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  color: var(--accent);
}
.box-rating { display: flex; align-items: center; justify-content: center; gap: 6px; height: 15px; }
.bav2 .box-rating, .dl-rating { height: 20px; }
.rate-num { font-size: 12px; line-height: 18px; color: var(--ink-mute); }

/* star row: only rendered where the source brief states a rating */
.rating { position: relative; display: block; width: 68px; height: 13px; }
.rating::before, .stars::before {
  content: "★★★★★"; position: absolute; left: 0; top: 0;
  font-size: 13px; line-height: 13px; letter-spacing: 1px; white-space: nowrap;
}
.rating::before { color: #d3d8e2; }
.stars { position: absolute; left: 0; top: 0; height: 13px; overflow: hidden; }
.stars::before { color: var(--accent); }

/* wide "Top rated" tile */
.bav2 > a {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r-card);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow); padding: 15px;
  transition: transform var(--t), box-shadow var(--t);
}
.bav2 > a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(12,40,90,.14); }
.bav2 .bloque-imagen.w75 { flex: 0 0 75px; }
.bav2 .bloque-imagen.w75 img { width: 75px; height: 75px; border-radius: var(--r-icon); object-fit: cover; display: block; }
.bav2-txt { min-width: 0; flex: 1 1 auto; }
.bav2 .title {
  display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bav2 .developer {
  display: block; font-size: 12px; line-height: 18px; color: var(--ink-mute);
  max-height: 36px; overflow: hidden;
}
.bav2 .box-rating { justify-content: flex-start; height: 20px; }

/* ----------------------------------------------------------- view-more pill */
.vermas { text-align: center; padding: 6px 10px 2px; }
.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 var(--t), transform var(--t);
}
.vermas a:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------------ sidebar */
.widget {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 15px; margin: 10px 10px 20px;
}
.widget-title {
  margin: 0 0 12px; padding-bottom: 9px;
  font-size: 17px; line-height: 22px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--hair); text-transform: uppercase; letter-spacing: .03em;
}
.widget-title::after {
  content: ""; display: block; width: 34px; height: 3px; background: var(--accent); margin-top: 9px; margin-bottom: -11px;
}
.wg-list { list-style: none; margin: 0; padding: 0; }
.wg-list li { border-bottom: 1px solid var(--hair); }
.wg-list li:last-child { border-bottom: 0; }
.wg-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); }
.wg-list a:hover { color: var(--accent-dark); }
.wg-list img { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; }
.wg-name { display: block; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink-strong); }
.wg-sub { display: block; font-size: 12px; line-height: 16px; color: var(--ink-mute); }
.wg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-card);
  background: var(--accent-tint); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; border: 1px solid var(--accent-soft);
  transition: background var(--t), color var(--t);
}
.wg-chips a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.widget .sb_search { background: #f2f2f2; }
.widget #searchBox { max-width: none; }

/* ------------------------------------------------------- white editorial box */
.sections .box,
.app-s .box,
.container .box {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px 25px; margin: 10px;
}

/* breadcrumb + labels */
.crumbs { margin: 10px 10px 0; font-size: 12px; line-height: 18px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--accent-dark); }
.cat-label {
  display: inline-block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent);
}

h1.main-box-title {
  margin: 0 0 8px;
  font-size: 38px; line-height: 48px; font-weight: 700; color: var(--ink);
}
.src-tag { display: block; font-size: 12px; line-height: 18px; color: var(--ink-mute); margin-bottom: 12px; }

.box-title {
  margin: 26px 0 14px; padding: 0;
  font-size: 17px; line-height: 22px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-label);
}
.box-title::after {
  content: ""; display: block; width: 34px; height: 3px; background: var(--accent); margin-top: 8px;
}

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags a {
  display: inline-block; padding: 5px 13px; border-radius: var(--r-card);
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  color: var(--accent-ink); font-size: 12px; font-weight: 600;
  transition: background var(--t), color var(--t);
}
.tags a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* short description */
.short-desc { margin: 0 0 16px; font-size: 14px; line-height: 24px; }

/* app header row: icon column floated left, title block first in the DOM */
.app-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.app-head .s1 { order: -1; flex: 0 0 150px; text-align: center; }
.app-head .s2 { flex: 1 1 320px; min-width: 0; }
.image-single {
  width: 150px; height: 150px; border-radius: var(--r-icon);
  object-fit: cover; display: block; margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(12,40,90,.18);
}

/* download + telegram buttons */
.dl-btn, .tg-btn {
  position: relative; display: block; width: 100%;
  min-height: 33px; margin-bottom: 8px;
  padding: 8px 5px 8px 38px;
  border-radius: var(--r-card);
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-align: center;
  transition: filter var(--t), transform var(--t);
}
.dl-btn { background: var(--dl-green); color: var(--dark-deep); }
.tg-btn { background: var(--tg-blue); color: #fff; }
.dl-btn:hover { color: var(--dark-deep); filter: brightness(1.07); transform: translateY(-1px); }
.tg-btn:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.dl-btn .bic { background: rgba(0,0,0,.14); }
.dl-btn .bic, .tg-btn .bic {
  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-card) 0 0 var(--r-card);
}
.dl-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 6px; }
.dl-report { font-size: 12px; color: var(--ink-mute); }

/* badge: static on the detail page (C7) */
.badge {
  position: static; display: inline-block;
  padding: 3px 11px; border-radius: var(--r-card);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: #fff; margin-bottom: 8px;
}
.badge.is-hot { background: #c2185b; }

/* info table */
.da-s { display: flex; flex-wrap: wrap; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hair); }
.da-s > div { width: 33.3333%; padding: 11px 14px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.da-s > div:nth-child(3n) { border-right: 0; }
.da-s > div:nth-last-child(-n+3) { border-bottom: 0; }
/* a partial last row fills the width instead of leaving empty cells */
.da-s > div:last-child { flex: 1 1 auto; border-right: 0; }
.da-s .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-label); }
.da-s .v { display: block; font-size: 13px; font-weight: 600; color: var(--ink-strong); line-height: 20px; }

/* share row */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 104px; min-height: 31px; border-radius: var(--r-card);
  font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .03em;
  transition: filter var(--t), transform var(--t);
}
.share-btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
/* each brand hue darkened just enough for the white label to clear 4.5:1 */
.sh-fb { background: #0b5ed7; }
.sh-tw { background: #16181c; }
.sh-pi { background: #b00718; }
.sh-tg { background: #1178a8; }
.sh-wa { background: #117e63; }

/* ------------------------------------------------------------ article body */
.entry { font-size: 14px; line-height: 26px; }
.entry > :first-child { margin-top: 0; }
.entry p { margin: 0 0 16px; }
.entry h2.entry-h2 {
  margin: 26px 0 12px;
  font-size: 21px; line-height: 29px; font-weight: 700; color: var(--ink);
  text-align: start;
}
.entry h3 { margin: 20px 0 10px; font-size: 17px; line-height: 25px; font-weight: 700; color: var(--ink-strong); }
.entry h4 { margin: 18px 0 8px; font-size: 15px; line-height: 23px; font-weight: 700; color: var(--ink-strong); }
.entry a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.entry a:hover { color: var(--accent-dark); }
.entry-list { margin: 0 0 16px; padding-left: 0; list-style: none; }
.entry-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.entry-list li::before {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.entry-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.entry-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden;
}
.entry-table td {
  padding: 11px 14px; font-size: 13px; line-height: 20px;
  border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair);
}
.entry-table tr:last-child td { border-bottom: 0; }
.entry-table td:last-child { border-right: 0; }
.entry-table tr:nth-child(odd) td { background: var(--card-tint); }

/* ------------------------------------------------------------ FAQ accordion */
.faq-acc { margin: 0 0 18px; }
.faq-item {
  background: var(--card-tint); border: 1px solid var(--hair);
  border-radius: var(--r-card); margin-bottom: 10px; overflow: hidden;
}
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; list-style: none;
  transition: background var(--t);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary:hover { background: var(--accent-tint); }
.faq-item > summary h3 {
  margin: 0; font-size: 15px; line-height: 23px; font-weight: 700; color: var(--ink-strong);
}
.faq-chev { flex: 0 0 auto; color: var(--accent); transition: transform var(--t); }
.faq-item[open] > summary { background: var(--accent-tint); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 2px 18px 6px; border-top: 1px solid var(--hair); }
.faq-a > :first-child { margin-top: 14px; }

/* ------------------------------------------------ editorial layout (C11) */
.ed-lede { font-size: 15px; line-height: 28px; margin-bottom: 8px; }
.ed-lede p { margin: 0 0 14px; }
.ed-sec { margin-top: 26px; }
.ed-h2 {
  margin: 0 0 14px; padding-bottom: 10px;
  font-size: 21px; line-height: 29px; font-weight: 700; color: var(--ink);
  text-align: start; border-bottom: 1px solid var(--hair);
}
.ed-h2::after { content: ""; display: block; width: 34px; height: 3px; background: var(--accent); margin: 10px 0 -12px; }
.ed-sec > p { margin: 0 0 16px; font-size: 14px; line-height: 26px; }
.ed-sec > h3 { margin: 18px 0 8px; font-size: 17px; line-height: 25px; font-weight: 700; color: var(--ink-strong); }

.ed-grid { display: grid; gap: 14px; margin: 16px 0 6px; }
.ed-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* cards sit on the white box, so they are tinted, never white-on-white */
.ed-card {
  background: var(--card-tint); border: 1px solid var(--hair);
  border-bottom: 2px solid var(--accent);
  border-radius: var(--r-card); padding: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.ed-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12,40,90,.12); }
.ed-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 10px;
}
.ed-card-h { margin: 0 0 8px; font-size: 15px; line-height: 23px; font-weight: 700; color: var(--ink-strong); }
.ed-card-b { font-size: 13px; line-height: 23px; }
.ed-card-b p { margin: 0 0 10px; }
.ed-card-b > :last-child { margin-bottom: 0; }

/* CTA band */
.ed-cta {
  position: relative; overflow: hidden;
  margin: 30px 0 10px; padding: 30px 26px;
  border-radius: var(--r-card);
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-deep) 100%);
}
.ed-cta::before {
  content: ""; position: absolute; width: 360px; height: 360px; top: -190px; right: -90px;
  background: radial-gradient(circle, rgba(15,91,203,.55) 0%, rgba(15,91,203,0) 70%);
  pointer-events: none;
}
.ed-cta-in { position: relative; z-index: 2; text-align: center; }
.ed-cta .ed-cta-h {
  margin: 0 0 12px; font-size: 24px; line-height: 32px; font-weight: 700; color: #fff;
  text-align: center;
}
.ed-cta p { margin: 0 auto 12px; color: #d3d9e5; font-size: 14px; line-height: 26px; text-align: center; }
.ed-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* scoped so .entry a / .ed-cta a cannot win the colour (the specificity trap) */
.entry .hx-btn, .ed-cta .hx-btn, a.hx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.entry .hx-btn-primary, .ed-cta .hx-btn-primary, a.hx-btn-primary {
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
}
.entry .hx-btn-primary:hover, .ed-cta .hx-btn-primary:hover, a.hx-btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px);
}
.entry .hx-btn-ghost, .ed-cta .hx-btn-ghost, a.hx-btn-ghost {
  background: rgba(255,255,255,.06); color: #fff; border: 2px solid rgba(255,255,255,.55);
}
.entry .hx-btn-ghost:hover, .ed-cta .hx-btn-ghost:hover, a.hx-btn-ghost:hover {
  background: #fff; color: var(--dark); border-color: #fff; transform: translateY(-2px);
}

/* ---------------------------------------------------------- trust strip */
.trust-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 10px;
}
.trust-bar .tb {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 14px 15px; border-bottom: 2px solid var(--accent);
}
.tb-ic {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.tb-tx { min-width: 0; }
.tb-t { display: block; font-size: 13px; font-weight: 700; line-height: 19px; color: var(--ink-strong); }
.tb-s { display: block; font-size: 12px; line-height: 18px; color: var(--ink-mute); }

/* ------------------------------------------------------- responsible notice */
.rg-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff8ec; border: 1px solid #f3dca8; border-left: 4px solid #e0a100;
  border-radius: var(--r-card); padding: 15px 17px; margin: 18px 0 4px;
}
.rg-note .rg-ic { flex: 0 0 auto; color: #a06c00; }
.rg-note p { margin: 0; font-size: 13px; line-height: 22px; color: #6b4a00; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rg-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-card);
  background: var(--card-tint); border: 1px solid var(--hair);
  font-size: 12px; font-weight: 600; color: var(--ink-strong);
}
.rg-chips svg { color: var(--accent); }

/* ------------------------------------------------------------ related row */
.related { margin: 10px 0; }
.related .baps[data-cols="5"] > .bav { width: 20%; }

/* ----------------------------------------------------------------- footer */
#footer { background: var(--dark); border-top: 2px solid var(--accent); color: #fff; margin-top: 14px; }
#footer .container { padding: 30px 20px 26px; }
.footer-promo {
  background: var(--dark-deep); border-radius: var(--r-card);
  padding: 28px 24px; text-align: center; border-top: 3px solid var(--accent);
}
.fp-title { margin: 0 0 10px; font-size: 26px; line-height: 34px; font-weight: 700; color: #fff; }
.fp-lead { margin: 0 auto; font-size: 14px; line-height: 26px; color: #c0c6d3; }
.fp-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.fp-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 19px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 13px; font-weight: 600;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.fp-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 30px; }
.fc-h {
  margin: 0 0 12px; padding-bottom: 9px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fc-list, .fc-trust { list-style: none; margin: 0; padding: 0; }
.fc-list a { display: block; padding: 5px 0; color: #b9c0ce; font-size: 13px; }
.fc-list a:hover { color: #fff; }
.fc-trust li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 21px; color: #b9c0ce; }
.fc-trust svg { flex: 0 0 auto; color: #74a6f5; margin-top: 2px; }

/* ------------------------------------------------------- disclaimer band */
.disclaimer { background: var(--dark-deep); color: #8f97a7; }
.disclaimer .container { padding: 22px 20px 86px; }
.disclaimer p { margin: 0 0 10px; font-size: 12px; line-height: 21px; }
.dc-rg { display: flex; gap: 9px; align-items: flex-start; color: #cbb27a; }
.dc-rg svg { flex: 0 0 auto; margin-top: 3px; }
.dc-copy { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); color: #868e9e; }

/* -------------------------------------------------- floating CTA + to-top */
.float-cta {
  position: fixed; z-index: 80; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--r-pill);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, #0b6ea8, #0a5fd4, #0f5bcb, #a8154f);
  background-size: 300% 300%;
  box-shadow: 0 8px 26px rgba(8,28,70,.38);
  animation: ctaShift 9s ease infinite;
}
.float-cta:hover { color: #fff; filter: brightness(1.08); }
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.to-top {
  position: fixed; z-index: 80; right: 16px; bottom: 70px;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0;
  box-shadow: 0 6px 18px rgba(8,28,70,.34);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t), background var(--t);
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent-dark); }

/* ---------------------------------------------------------------- 404 page */
.nf { text-align: center; padding: 30px 10px 10px; }
.nf-code { font-size: 72px; line-height: 1; font-weight: 700; color: var(--accent); }
.nf h1 { font-size: 26px; line-height: 34px; margin: 10px 0; }

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

/* ============================= breakpoints ============================= */
@media (max-width: 1439px) {
  .baps[data-cols="6"] > .bav { width: 20%; }
}
@media (max-width: 1199px) {
  #main-site .container { flex-wrap: wrap; }
  .sections { width: 100%; }
  #sidebar { width: 100%; flex: 0 0 100%; position: static; }
  #sidebar .widget { margin-inline: 10px; }
  .baps[data-cols="6"] > .bav { width: 25%; }
  .related .baps[data-cols="5"] > .bav { width: 25%; }
}
@media (max-width: 1023px) {
  .ed-grid[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baps[data-cols="6"] > .bav,
  .baps[data-cols="5"] > .bav { width: 33.3333%; }
  .related .baps[data-cols="5"] > .bav { width: 33.3333%; }
  .da-s > div { width: 50%; }
  .da-s > div:nth-child(3n) { border-right: 1px solid var(--hair); }
  .da-s > div:nth-child(2n) { border-right: 0; }
  .da-s > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--hair); }
  .da-s > div:nth-last-child(-n+2) { border-bottom: 0; }
  #subheader h1 { font-size: 34px; line-height: 40px; }
}
@media (max-width: 767px) {
  /* C10: >=16px body text on mobile */
  body { font-size: 16px; line-height: 28px; }
  .menu-main-menu-container > .menu { display: none; }
  .menu-open { display: flex; }
  #subheader { padding: 44px 0 30px; }
  #subheader h1 { font-size: 28px; line-height: 35px; }
  #subheader h2 { font-size: 15px; line-height: 26px; }
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baps[data-cols="6"] > .bav,
  .baps[data-cols="5"] > .bav,
  .baps[data-cols="3"] > .bav { width: 50%; }
  .related .baps[data-cols="5"] > .bav { width: 50%; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .sections .box, .app-s .box, .container .box { padding: 18px 16px; }
  h1.main-box-title { font-size: 27px; line-height: 36px; }
  .entry { font-size: 16px; line-height: 28px; }
  .entry h2.entry-h2, .ed-h2 { font-size: 19px; line-height: 27px; }
  .ed-card-b { font-size: 15px; line-height: 26px; }
  .bav1 .title, .bav2 .title { font-size: 15px; }
  .bav1 .version, .bav1 .developer, .bav2 .developer { font-size: 13px; }
  .app-head { gap: 16px; }
  .app-head .s1 { flex: 0 0 100%; }
  .share-btn { width: calc(50% - 4px); }
  .da-s > div { width: 100%; border-right: 0 !important; }
  .float-cta { font-size: 12px; padding: 10px 18px; }
  .trust-bar { grid-template-columns: 1fr; }
}
@media (max-width: 519px) {
  .ed-grid[data-cols="4"], .ed-grid[data-cols="3"], .ed-grid[data-cols="2"] { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .baps[data-cols="6"] > .bav,
  .baps[data-cols="5"] > .bav,
  .baps[data-cols="3"] > .bav,
  .related .baps[data-cols="5"] > .bav { width: 100%; }
  #subheader h1 { font-size: 25px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .float-cta { animation: none; background-position: 0 50%; }
}

/* sidebar search results panel */
.sb-side .sb_search { font-size: 14px; }
.sb-results {
  position: absolute; z-index: 40; left: 0; right: 0; top: 50px;
  background: #fff; border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(10,20,40,.22);
  overflow: hidden; text-align: left; max-height: 332px; overflow-y: auto;
}
.sb-results[hidden] { display: none; }
.sb-results a {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  color: var(--ink); border-bottom: 1px solid var(--hair); font-size: 13px; font-weight: 600;
}
.sb-results a:last-child { border-bottom: 0; }
.sb-results a:hover, .sb-results a.is-sel { background: var(--accent-tint); }
.sb-results img { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.sb-results .sbr-none { padding: 12px 14px; color: var(--ink-mute); font-size: 13px; }
.sb-results .sbr-sub { color: var(--ink-mute); font-weight: 400; margin-left: auto; font-size: 12px; }
.wg-tx { min-width: 0; }
h2.main-box-title.is-ed { font-size: 30px; line-height: 40px; }
@media (max-width: 767px) { h2.main-box-title.is-ed { font-size: 23px; line-height: 32px; } }

/* ghost button on a light surface (404) */
a.hx-btn-ghost.hx-on-light {
  background: #fff; color: var(--accent-ink); border: 2px solid var(--accent);
}
a.hx-btn-ghost.hx-on-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.nf .ed-cta-btns { justify-content: center; }
.no-hits { margin: 10px; font-size: 14px; }
