/* RummyKhoj — fresh light-green brand system */
:root {
  --rk-bg: #F3F8F2;
  --rk-hero-bg: #E6F3DF;
  --rk-brand: #153D2C;
  --rk-brand-soft: #1f4f39;
  --rk-accent: #34764C;
  --rk-lime: #DDF4B5;
  --rk-card: #FFFFFF;
  --rk-line: #D5E2D3;
  --rk-text: #263B30;
  --rk-muted: #657568;
  --rk-panel: #153D2C;
  --rk-topbar-a: #153D2C;
  --rk-topbar-b: #1f4f39;
  --rk-hero-a: #E6F3DF;
  --rk-hero-b: #E6F3DF;
  --rk-hero-a2: #E6F3DF;
  --rk-hero-b2: #E6F3DF;
  --rk-green-text: #153D2C;
  --rk-btn: #DDF4B5;
  --rk-btn-text: #153D2C;
  --rk-link: #34764C;
  --rk-max: 980px;
  --rk-dir-max: 860px;
  --rk-content: 780px;
  --rk-radius: 14px;
  --rk-radius-sm: 10px;
  --rk-shadow: 0 6px 16px rgba(21, 61, 44, 0.06);
  --rk-space: 16px;
  --rk-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rk-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--rk-text);
  background: var(--rk-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 0 var(--rk-space);
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100000;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: var(--rk-brand);
  border-radius: 8px;
}

/* ===== Header ===== */
.site-header.rank1-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rk-brand);
  box-shadow: 0 6px 18px rgba(21, 61, 44, 0.16);
}

.rank1-header .topbar {
  background: var(--rk-brand);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank1-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px var(--rk-space);
  max-width: var(--rk-max);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 0;
}

.brand-link img,
.site-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 38px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.brand-link strong {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(221, 244, 181, 0.45);
  background: rgba(221, 244, 181, 0.12);
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--rk-lime);
  border-radius: 2px;
}

.site-nav {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 16px rgba(21, 61, 44, 0.08);
  max-width: var(--rk-max);
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--rk-line);
  border-top: 0;
}

.site-nav .menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav .menu li {
  flex: 1 1 auto;
  border-right: 1px solid var(--rk-line);
  text-align: center;
  list-style: none;
  min-width: 0;
}

.site-nav .menu li:last-child { border-right: 0; }

.site-nav .menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--rk-brand) !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}

.site-nav .menu .current-menu-item a,
.site-nav .menu .current_page_item a {
  box-shadow: inset 0 -3px 0 var(--rk-lime);
  color: var(--rk-accent) !important;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 28px;
  background: var(--rk-brand);
  color: #eef7ea;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 14px 10px;
  max-width: var(--rk-dir-max);
  margin: 0 auto;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(221, 244, 181, 0.35);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(221, 244, 181, 0.1);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  background: rgba(221, 244, 181, 0.22);
}

.important-notice {
  background: transparent;
  color: #d7e8d2;
  padding: 8px 0 18px;
  border: 0;
}

.important-notice .container {
  max-width: 760px;
}

.important-notice h2 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 800;
}

.important-notice p {
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0;
  color: #c5d9c0;
}

.footer-bottom {
  background: #102e21;
  color: #e8f2e4;
  text-align: center;
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.4;
}

:focus-visible {
  outline: 3px solid var(--rk-accent);
  outline-offset: 3px;
}

.pagination {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 13px;
  background: var(--rk-lime);
  border-radius: 8px;
  color: var(--rk-brand);
  font-weight: 700;
  font-size: 13px;
}

.pagination .page-numbers.current {
  background: var(--rk-brand);
  color: #fff;
}

/* Mobile nav */
@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }
  .site-nav.is-open {
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 12px 28px rgba(21, 61, 44, 0.14);
  }
  .site-nav .menu {
    display: none;
    flex-direction: column;
    overflow: visible;
  }
  .site-nav.is-open .menu {
    display: flex;
  }
  .site-nav .menu li {
    border-right: 0;
    border-bottom: 1px solid var(--rk-line);
    flex: none;
    width: 100%;
  }
  .site-nav .menu a {
    justify-content: flex-start;
    padding: 14px 16px;
    min-height: 48px;
  }
  .brand-link strong { font-size: 15px; }
  .footer-links {
    gap: 8px;
    padding: 18px 12px 8px;
  }
  .footer-links a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
  .important-notice p { font-size: 12.5px; }
}

@media (min-width: 701px) {
  .nav-toggle { display: none !important; }
  .site-nav .menu { display: flex !important; }
  .site-nav {
    max-height: none !important;
    overflow: visible !important;
  }
}
