/* rummyora — mobile-first */
:root {
  --ro-bg: #f7f3ea;
  --ro-surface: #fff;
  --ro-ink: #171717;
  --ro-muted: #6a655c;
  --ro-line: #e5dfd3;
  --ro-accent: #1f8a4c;
  --ro-accent-soft: #e8f6ee;
  --ro-danger: #b42318;
  --ro-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
  --ro-radius: 14px;
  --ro-max: 1180px;
  --ro-font: "DM Sans", "Segoe UI", sans-serif;
  --ro-display: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ro-font);
  color: var(--ro-ink);
  background: var(--ro-bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ro-accent); text-decoration: none; }
a:hover { color: #146338; }
h1,h2,h3 { font-family: var(--ro-display); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.ro-skip { position:absolute; left:-999px; top:0; background:#111; color:#fff; padding:.75rem 1rem; z-index:1000; }
.ro-skip:focus { left:1rem; top:1rem; }
.ro-container { width: min(100% - 1.25rem, var(--ro-max)); margin-inline: auto; }
.ro-narrow { width: min(100% - 1.25rem, 760px); }
.ro-main { padding-bottom: 2rem; }

.ro-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid #111;
}
/* Mobile-first: logo left + hamburger right */
.ro-header__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: calc(56px + 0.5cm);
  padding: calc(.35rem + 0.2cm) 0;
  position: relative;
}
.ro-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  width: auto;
  max-width: min(210px, calc(100% - 56px));
  min-height: calc(48px + 0.5cm);
  padding: .25rem .15rem .25rem 0;
  overflow: hidden;
  pointer-events: auto;
}
.ro-brand__link,
.ro-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  max-width: 100%;
  position: relative;
  z-index: 6;
}
/* Logo only — hide any English site title / description next to brand */
.ro-brand .site-title,
.ro-brand .site-description,
.ro-brand__name,
.ro-brand__text {
  display: none !important;
}
/* Full horizontal logo: icon + rummyora text — never crop/stretch */
.ro-brand__link img,
.ro-brand .custom-logo {
  width: calc(150px + 0.9cm);
  max-width: 100%;
  height: auto;
  max-height: calc(44px + 0.9cm);
  object-fit: contain;
  object-position: left center;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  visibility: visible;
  opacity: 1;
}
.ro-footer__brand img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.ro-footer__brand span { color: #fff; font-weight: 700; margin-left: .45rem; }

/* Mobile hamburger — top-right three lines */
.ro-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(5px + 0.08cm);
  flex: 0 0 auto;
  width: calc(44px + 0.3cm);
  height: calc(44px + 0.3cm);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 8;
  -webkit-tap-highlight-color: transparent;
}
.ro-nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: calc(22px + 0.3cm);
  height: calc(2px + 0.04cm);
  background: #111;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.ro-header.is-nav-open .ro-nav-toggle span:nth-child(1) {
  transform: translateY(calc(7px + 0.1cm)) rotate(45deg);
}
.ro-header.is-nav-open .ro-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.ro-header.is-nav-open .ro-nav-toggle span:nth-child(3) {
  transform: translateY(calc(-7px - 0.1cm)) rotate(-45deg);
}

/* Mobile: nav hidden until hamburger opens */
.ro-nav {
  display: none;
  flex: 0 0 100%;
  width: 100%;
  margin: .35rem 0 0;
  border-top: 1px solid #ddd;
  background: #fff;
  order: 10;
}
.ro-nav.is-open {
  display: block;
}
.ro-nav__list {
  list-style: none;
  margin: 0;
  padding: .35rem 0 .55rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
.ro-nav__list > li { flex: 0 0 auto; position: relative; z-index: 2; width: 100%; }
.ro-nav__list a {
  display: block;
  position: relative;
  z-index: 3;
  padding: .85rem .35rem;
  color: #333;
  font-family: var(--ro-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .03em;
  white-space: normal;
  border-radius: 0;
  border-bottom: 1px solid #eee;
  pointer-events: auto;
  cursor: pointer;
}
.ro-nav__list > li:last-child > a { border-bottom: 0; }
.ro-nav__list a:hover {
  color: #000;
  background: #f7f3ea;
}
.ro-nav__list .current-menu-item > a,
.ro-nav__list .current_page_item > a {
  color: #111;
  background: transparent;
  text-decoration: none;
}
.ro-nav__list .current-menu-item > a::after,
.ro-nav__list .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.1em;
  right: auto;
  bottom: auto;
  background: #111;
}

.ro-search { display: flex; gap: 0; align-items: stretch; }
.ro-search input[type=search] {
  flex: 1;
  min-width: 0;
  border: 1px solid #111;
  border-radius: 0;
  padding: .7rem .85rem;
  font: inherit;
  background: #fff;
}
.ro-search--header { display: none; }
.ro-search--header input[type=search] {
  border-right: 0;
  min-width: 140px;
}
.ro-search--header button {
  width: 44px;
  min-width: 44px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ro-btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.7rem 1.1rem;
  border-radius:10px; border:1px solid transparent; font:inherit; font-weight:700; cursor:pointer;
}
.ro-btn--download { background:#fff; border-color:#111; color:#111; min-width:110px; }
.ro-btn--download:hover { background:#111; color:#fff; }
.ro-btn--dark { background:#111; color:#fff; }
.ro-btn--ghost { background:#fff; border-color:var(--ro-accent); color:#146338; }
.ro-btn--primary {
  background: var(--ro-accent); color: #fff; border-color: var(--ro-accent);
  min-width: 160px; text-transform: none; letter-spacing: .01em;
}
.ro-btn--primary:hover { background: #146338; border-color: #146338; color: #fff; }
.ro-btn--outline {
  background: #fff; color: #111; border-color: #111; min-width: 160px;
}
.ro-btn--outline:hover { background: #111; color: #fff; }

.ro-section { padding:1.25rem 0; }
.ro-section__head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.ro-section__head h2, .ro-page-header h1, .ro-hero h1, .ro-detail__hero h1 { font-size: clamp(1.45rem, 4vw, 2.2rem); }
.ro-eyebrow { color:var(--ro-danger); text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; font-weight:700; margin:0 0 .7rem; }

/* Per-nav intro modules (light blue) — size changes with each page */
.ro-intro { padding-top: 1rem; }
.ro-intro__card,
.ro-hero__card {
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  background-image: none !important;
  padding: clamp(1.2rem, 3.5vw, 2.2rem) clamp(1.1rem, 3.2vw, 2.4rem);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}
.ro-intro__card--sm { max-width: 52rem; padding: 1.15rem 1.35rem 1.25rem; }
.ro-intro__card--md { max-width: 100%; }
.ro-intro__card--lg { max-width: 100%; padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 3.5vw, 2.6rem); }
.ro-intro__card > *,
.ro-hero__card > * { max-width: 48rem; }
.ro-intro__card h1,
.ro-hero__card h1 {
  margin: 0 0 .75rem;
  color: #111;
  font-family: var(--ro-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}
.ro-intro__card--sm h1 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); margin-bottom: .45rem; }
.ro-intro__text,
.ro-hero__text {
  margin: 0;
  color: #222;
  font-family: var(--ro-display);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  max-width: 44rem;
}
.ro-intro__card--sm .ro-intro__text { font-size: 1rem; }
/* Align content block under intro (same container + same max-width / left edge) */
.ro-intro-follow { margin-top: 0; padding-top: 0; }
.ro-intro + .ro-intro-follow { padding-top: 0; }
.ro-intro-follow__card {
  max-width: 52rem; /* match .ro-intro__card--sm */
  margin-left: 0;
  margin-right: auto;
  border: 1px solid #111;
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

/* About Us — match reference directory prose (serif + h2 rules) */
.ro-prose--about {
  max-width: 48rem;
  margin: 0;
  padding: 0 0 1.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #222;
  font-family: var(--ro-display);
  font-size: clamp(1.02rem, 2vw, 1.125rem);
  line-height: 1.7;
}
.ro-prose--about p { margin: 0 0 1.1em; }
.ro-prose--about h2 {
  margin: 1.75rem 0 .9rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid #111;
  color: #111;
  font-family: var(--ro-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.ro-prose--about ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.ro-prose--about li { margin: 0 0 .45rem; }
.ro-prose--about a { color: var(--ro-accent); text-decoration: underline; }
.ro-search--hero { margin-top:1rem; max-width:34rem; }

.ro-app-grid { display:grid; gap:.85rem; }
.ro-app-card {
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: .85rem .9rem;
  align-items: center;
  background: #fff;
  border: 1px solid #d9d3c7;
  border-radius: 10px;
  padding: .95rem 1rem;
  box-shadow: none;
}
.ro-app-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
}
.ro-app-card__title { font-size: 1.05rem; margin: 0 0 .3rem; font-family: var(--ro-display); }
.ro-app-card__title a { color: var(--ro-ink); }
.ro-app-card__meta {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  color: #555;
  font-size: .88rem;
  margin-bottom: 0;
  line-height: 1.35;
}
.ro-app-card .ro-rating { display: none; }
.ro-app-card .ro-btn {
  grid-column: 1 / -1;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .82rem;
}

.ro-rating { display:inline-flex; align-items:center; gap:.1rem; color:#c48a00; font-weight:700; font-size:.9rem; }
.ro-rating__star { opacity:.28; }
.ro-rating__star.is-on { opacity:1; }
.ro-rating__value { margin-left:.25rem; color:var(--ro-ink); }
.ro-chip { display:inline-flex; padding:.15rem .5rem; border-radius:999px; background:var(--ro-accent-soft); color:#146338; font-weight:700; font-size:.82rem; }

.ro-cat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.ro-cat-card {
  display:grid; gap:.25rem; justify-items:start; background:#fff; border:1px solid var(--ro-line);
  border-radius:12px; padding:1rem; color:var(--ro-ink); box-shadow:var(--ro-shadow);
}
.ro-cat-card img { border-radius:10px; }
.ro-cat-card span { font-weight:700; font-family:var(--ro-display); }
.ro-cat-card em { font-style:normal; color:var(--ro-muted); font-size:.88rem; }

.ro-section--tight { padding-top: .35rem; padding-bottom: .85rem; }
#ro-section-guides { margin-top: 1cm; }
.ro-section__head--rule {
  align-items: baseline;
  border-bottom: 2px solid #111;
  padding-bottom: .55rem;
  margin-bottom: 1rem;
}
.ro-section__head--rule h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); }

.ro-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
.ro-entry-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .85rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ro-line);
  border-left: 4px solid #1e3a5f;
  padding: 1rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.ro-entry-card--rules { border-left-color: #b8860b; }
.ro-entry-card:hover { box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.ro-entry-card__title { margin: 0 0 .25rem; font-size: 1.05rem; font-family: var(--ro-font); font-weight: 700; }
.ro-entry-card__title a { color: var(--ro-ink); }
.ro-entry-card__title a:hover { color: #1e3a5f; text-decoration: underline; }
.ro-entry-card__meta {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ro-muted);
  line-height: 1.35;
}
.ro-entry-card__actions { flex-shrink: 0; }
.ro-btn--sm {
  min-height: 36px;
  padding: .4rem .75rem;
  font-size: .72rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ro-faq { display: grid; gap: .55rem; margin: 0; }
.ro-faq__item {
  background: #fff;
  border: 1px solid var(--ro-line);
  border-radius: 0;
  padding: 0;
}
.ro-faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--ro-display);
  font-size: 1rem;
  color: var(--ro-ink);
  padding: .95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.ro-faq__item summary::-webkit-details-marker { display: none; }
.ro-faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  background: #f3f0e8;
  color: #111;
  border-radius: 6px;
}
.ro-faq__item[open] summary::after {
  content: "−";
  background: #111;
  color: #fff;
}
.ro-faq__answer {
  padding: 0 1.1rem 1rem;
  color: var(--ro-muted);
  font-size: .92rem;
  line-height: 1.7;
}
.ro-faq__answer p { margin: 0 0 .5em; }
.ro-faq__answer p:last-child { margin-bottom: 0; }
.ro-faq__answer a { color: #1e3a5f; text-decoration: underline; }

.ro-guide-steps {
  padding-left: 1.35rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 1rem;
}
.ro-guide-steps li { margin-bottom: .35rem; }
.ro-prose--guide h2 { margin-top: 1.75rem; }
.ro-prose--guide h2:first-child { margin-top: 0; }
.ro-prose--guide ul { margin-left: 1.25rem; line-height: 2; }
.ro-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ro-data-table, .ro-score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: .75rem 0 0;
  background: #fff;
}
.ro-data-table th {
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: left;
  padding: .75rem 1rem;
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
.ro-data-table td {
  padding: .75rem 1rem;
  border: 1px solid var(--ro-line);
  font-family: "Courier New", Courier, monospace;
  font-size: .88rem;
  color: #444;
}
.ro-data-table tr:nth-child(even) td { background: #faf8f3; }
.ro-score-table th, .ro-score-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.ro-score-table th { background: #f0f0f0; font-weight: 700; }
.ro-guide-cta { margin-top: 2rem; }

.ro-card, .ro-empty { background:#fff; border:1px solid var(--ro-line); border-radius:var(--ro-radius); padding:1.15rem; box-shadow:var(--ro-shadow); }
.ro-empty { display:grid; gap:.75rem; justify-items:start; }
.ro-page-header { margin-bottom:1rem; }
.ro-breadcrumbs { display:flex; flex-wrap:wrap; gap:.4rem; padding:1rem 0 .4rem; color:var(--ro-muted); font-size:.92rem; }
.ro-detail { display:grid; gap:1rem; }
.ro-detail__main, .ro-detail__sidebar { display:grid; gap:1rem; align-content:start; }
.ro-detail__hero { display:grid; gap:1rem; }
.ro-detail__icon { width:96px; height:96px; border-radius:22px; object-fit:cover; }
.ro-detail__stats, .ro-detail__actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.8rem; }
.ro-info-grid { list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.ro-info-grid li { display:grid; gap:.15rem; padding:.8rem .9rem; border:1px solid var(--ro-line); border-radius:10px; background:#fbfaf7; }
.ro-info-grid span { color:var(--ro-muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.ro-screenshots { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(140px,170px); gap:.75rem; overflow-x:auto; }
.ro-screenshots img { border-radius:12px; border:1px solid var(--ro-line); }
.ro-pros-cons { display:grid; gap:1rem; }
.ro-related { display:grid; gap:.65rem; }
.ro-related a { display:grid; grid-template-columns:48px 1fr; gap:.7rem; align-items:center; color:var(--ro-ink); padding:.5rem; border-radius:10px; }
.ro-related a:hover { background:var(--ro-accent-soft); }
.ro-related img { width:48px; height:48px; border-radius:12px; object-fit:cover; }
.ro-related em { display:block; font-style:normal; color:var(--ro-muted); font-size:.86rem; }

/* Reference-style single app page */
.ro-app-hero { padding: .35rem 0 1.25rem; }
.ro-app-hero__card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem;
  background: #fff; border: 1px solid #111; padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 4px 4px 0 rgba(0,0,0,.08);
}
.ro-app-hero__icon {
  width: min(100%, 280px); aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--ro-line); background: #f4f1ea; flex-shrink: 0;
}
.ro-app-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.ro-app-hero__content { width: 100%; min-width: 0; }
.ro-app-hero__label {
  display: block; margin: 0 0 .85rem;
  font-family: "Courier New", Courier, monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ro-danger);
}
.ro-app-hero__title {
  margin: 0 0 1rem; font-size: clamp(1.55rem, 4.2vw, 2.45rem); font-weight: 800; line-height: 1.15;
}
.ro-app-hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem 1.35rem; margin: 0 0 1.15rem;
}
.ro-app-hero__stat {
  font-family: "Courier New", Courier, monospace; font-size: clamp(.95rem, 2.2vw, 1.1rem); font-weight: 600; color: #333;
}
.ro-app-hero__stat--bonus { color: var(--ro-accent); }
.ro-app-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.ro-app-details-section { padding: 0 0 1.5rem; }
.ro-app-details-section__title {
  margin: 0 0 .85rem; padding-bottom: .55rem; border-bottom: 1px solid #111;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.ro-app-details {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: .55rem;
}
.ro-app-details li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--ro-line); padding: .85rem 1rem;
}
.ro-app-details__label {
  font-family: "Courier New", Courier, monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ro-muted); white-space: nowrap;
}
.ro-app-details__value {
  font-family: "Courier New", Courier, monospace; font-size: .92rem; font-weight: 600; color: #111; text-align: right;
}
.ro-app-details__value--highlight { color: var(--ro-accent); }
.ro-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; background:#111; color:#fff; border:0; }
.ro-cta h2 { color:#fff; margin:0; }
.ro-pagination { margin-top:1.25rem; }
.ro-pagination .nav-links { display:flex; flex-wrap:wrap; gap:.45rem; }
.ro-pagination a, .ro-pagination span {
  display:inline-flex; min-width:42px; min-height:42px; align-items:center; justify-content:center;
  padding:.35rem .65rem; border-radius:10px; border:1px solid var(--ro-line); background:#fff;
}
.ro-pagination .current { background:#111; border-color:#111; color:#fff; }

.ro-footer { margin-top:2rem; background:#171717; color:#d8d8d8; }
.ro-footer a { color:#f2f2f2; }
.ro-footer__grid { display:grid; gap:1.4rem; padding:2.2rem 0 1.4rem; grid-template-columns:1fr; }
.ro-search-panel, .ro-guide-card {
  background:#fff; border:1px solid var(--ro-line); border-radius:var(--ro-radius); padding:1.15rem; box-shadow:var(--ro-shadow);
}
.ro-guide-card { display:grid; gap:1rem; align-items:center; }
.ro-guide-card img { width:100%; max-width:220px; height:120px; object-fit:cover; border-radius:12px; }
.ro-filter-bar { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1rem; }
.ro-filter-bar a {
  display:inline-flex; min-height:40px; align-items:center; padding:.45rem .8rem; border-radius:999px;
  border:1px solid var(--ro-line); background:#fff; color:var(--ro-ink); font-weight:600; font-size:.9rem;
}
.ro-filter-bar a.is-active, .ro-filter-bar a:hover { background:#111; border-color:#111; color:#fff; }
.ro-link-type { font-size:.85rem; color:var(--ro-muted); align-self:center; }
.ro-muted { color:var(--ro-muted); }
.ro-section__link { font-weight:700; white-space:nowrap; }
.ro-footer h3 { color:#fff; font-size:1rem; }
.ro-footer__list { list-style:none; margin:0; padding:0; display:grid; gap:.4rem; }
.ro-social { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.8rem; }
.ro-social a { border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:.4rem .7rem; font-size:.86rem; }
.ro-footer__bottom { border-top:1px solid rgba(255,255,255,.12); padding:1rem 0 1.3rem; }
.ro-footer__note { color:#9a9a9a; font-size:.88rem; margin:0; }

@media (min-width:900px) {
  .ro-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .85rem;
    flex-direction: row;
    min-height: 70px;
    padding: .55rem 0;
  }
  /* Logo slot ~207×88 reference; keep header row height unchanged */
  .ro-brand {
    width: 207px;
    max-width: 207px;
    min-height: 0;
    height: auto;
    max-height: 88px;
    padding: 0 10px 0 0;
    margin-right: .35rem;
    justify-content: center;
    align-self: center;
    overflow: hidden;
    z-index: 5;
  }
  .ro-brand__link {
    width: 100%;
    min-height: 64px;
    justify-content: center;
  }
  .ro-brand__link img,
  .ro-brand .custom-logo {
    width: 190px;
    max-width: 190px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: center center;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    pointer-events: none; /* clicks go to the fixed home <a> only */
  }
  .ro-nav-toggle { display: none; }
  .ro-nav {
    display: block !important;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    border-top: 0;
    overflow: visible;
    position: relative;
    z-index: 1;
    order: 0;
    background: transparent;
  }
  .ro-nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .05rem;
    padding: 0;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }
  .ro-nav__list > li { width: auto; }
  .ro-nav__list a {
    padding: .45rem .55rem;
    font-size: .84rem;
    white-space: nowrap;
    border-bottom: 0;
  }
  .ro-nav__list a:hover { background: transparent; }
  .ro-nav__list .current-menu-item > a::after,
  .ro-nav__list .current_page_item > a::after {
    left: .55rem;
    right: .55rem;
    top: auto;
    bottom: 0;
    transform: none;
    width: auto;
    height: 2px;
    background: #111;
  }
  .ro-search--header {
    display: flex;
    width: auto;
    min-width: 200px;
    max-width: 240px;
  }
}
@media (min-width:768px) {
  .ro-app-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ro-app-card { grid-template-columns:64px 1fr auto; align-items:center; }
  .ro-app-card .ro-btn {
    grid-column: auto;
    width: auto;
    min-width: 118px;
    align-self: center;
  }
  .ro-cat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .ro-info-grid, .ro-pros-cons { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ro-detail__hero { grid-template-columns:96px 1fr; }
  .ro-app-hero__card {
    flex-direction: row; align-items: flex-start; text-align: left; gap: 1.75rem;
  }
  .ro-app-hero__icon { width: 220px; }
  .ro-app-hero__stats, .ro-app-hero__actions { justify-content: flex-start; }
  .ro-app-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-footer__grid { grid-template-columns:1.5fr 1fr 1fr 1fr; }
  .ro-guide-card { grid-template-columns:180px 1fr; }
  .ro-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width:1024px) {
  .ro-detail { grid-template-columns:minmax(0,1.7fr) minmax(260px,.75fr); }
  .ro-nav__list a { font-size: .9rem; padding: .45rem .65rem; }
  .ro-app-hero__icon { width: 260px; }
}
@media (max-width:767px) {
  body { overflow-x:hidden; }
  .ro-app-card {
    grid-template-columns:56px 1fr;
    padding:.8rem .85rem;
  }
  .ro-app-card__icon img { width:56px; height:56px; border-radius:12px; }
  .ro-app-card .ro-btn {
    grid-column:1 / -1;
    width:100%;
    min-height:42px;
  }
  .ro-app-card__title { font-size:1rem; }
  .ro-app-card__meta { font-size:.82rem; }
  .ro-detail__actions .ro-btn { width:100%; }
  .ro-app-hero__actions .ro-btn { width: 100%; }
  .ro-hero__card,
  .ro-intro__card { padding:1.1rem 1rem; }
  .ro-section { padding:1rem 0; }
  .ro-footer__grid { gap:1.1rem; }
}
