/*
Theme Name: Benz Game
Theme URI: https://567223.com
Author: Benz Game Guide
Description: A clear, mobile-first user guide for the Benz Game Android app, written for adult readers in India.
Version: 1.0.1
Requires at least: 6.0
Text Domain: benz-game
*/

:root {
  --text: #111111;
  --heading: #2c2c2c;
  --muted: #4a4a4a;
  --line: #d5d5d5;
  --blue: #0b57d0;
  --blue-hover: #0842a0;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --max: 760px;
  --wide: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--blue);
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 #2c2c2c;
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner,
.sheet,
.site-footer .footer-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--heading);
  line-height: 1.2;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  min-height: 48px;
  min-width: 48px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-weight: 600;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--heading);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
}

.nav-legal {
  display: none;
}

.sheet {
  width: min(100% - 2rem, var(--max));
  padding: 2.25rem 0 3.5rem;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: 2.15rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.4rem 0 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 1.45rem;
}

h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.12rem;
}

p,
ul,
ol,
table,
.notice {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

li::marker {
  color: #333;
}

.contents {
  margin: 1.5rem 0 0.5rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.contents p {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--heading);
}

.contents ul {
  margin: 0;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0;
}

.spec + section > h2 {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
}

.spec caption {
  text-align: left;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.spec th,
.spec td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}

.spec th {
  width: 34%;
  font-weight: 700;
  background: #fafafa;
  color: var(--heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

a.btn,
a.btn:visited,
a.btn:hover,
button.btn {
  color: #fff;
  text-decoration: none;
}

a.btn:hover,
button.btn:hover {
  background: var(--blue-hover);
}

.notice {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: #fafafa;
}

.notice p:last-child {
  margin-bottom: 0;
}

.crumbs {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a {
  color: var(--muted);
}

.faq h3 {
  margin-bottom: 0.2rem;
}

.post-list article {
  padding-bottom: 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-row {
  margin: 0 0 1rem;
}

label {
  display: block;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-note {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.75rem 0 2.5rem;
}

.footer-block + .footer-block {
  margin-top: 1rem;
}

.footer-label {
  margin: 0 0 0.15rem;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.code-404 {
  margin: 0 0 0.4rem;
  color: var(--heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

@media (max-width: 800px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    position: static;
    flex: 1 0 100%;
    background: #fff;
    padding: 0.15rem 0 0.4rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    width: 100%;
  }

  .nav-legal {
    display: block;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
  }

  h1 {
    font-size: 1.75rem;
  }

  .spec th,
  .spec td {
    display: block;
    width: 100%;
  }

  .spec th {
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }

  .spec td {
    padding-top: 0.35rem;
  }

  .btn,
  button.btn {
    width: 100%;
  }
}
