:root {
  /* Game site: dark nav/footer + gold accent */
  --bg: #f8f9fc;
  --primary: #1a1a2e;
  --primary-deep: #0f0f1a;
  --accent: #ffb300;
  --accent-light: #ffd54f;
  --ink: #1a1a2e;
  --muted: #4a4a5e;
  --soft: #e8eaf0;
  --light: #ffffff;
  --nav-text: #e4e6ed;
  --nav-hover: #ffffff;
  --footer-bg: #1a1a2e;
  --footer-text: #b8bcc8;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(165deg, #1a1a2e 0%, #2a2538 15%, #3d3528 30%, #5c4a20 50%, #b8860b 70%, #daa520 85%, #f5e6c8 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.72;
  overflow-x: hidden;
}

@media (max-width: 940px) {
  body {
    background-attachment: scroll;
  }
}

img:not(.brand-logo) {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: clamp(1rem, 4vw, 2rem);
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border-radius: 6px;
  transition: top 0.2s ease;
}

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

.container {
  width: 100%;
  /* Keep content area to ~80% of viewport width */
  max-width: 90vw;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.2rem);
}

/* Desktop: full width – har section, same padding sab jagah */
@media (min-width: 941px) {
  main .container,
  .page-hero .container,
  .page-section .container {
    max-width: 90vw;
    width: 100%;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  main .reading,
  .page-hero .reading,
  .page-section .reading {
    max-width: 100%;
    margin-inline: 0;
  }

  .clean-list {
    max-width: 100%;
  }

  .site-footer .container {
    max-width: 90vw;
    width: 100%;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.site-header .container {
  max-width: none;
  width: 100%;
  min-width: 0;
  padding-inline: clamp(1rem, 4vw, 2rem);
  overflow-x: hidden;
}

.nav-shell {
  height: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--light);
  flex-shrink: 0;
  height: 72px;
  min-height: 0;
  overflow: hidden;
}

.brand-logo {
  width: 118px;
  height: 118px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.05rem;
}

.brand-text strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--nav-hover);
  white-space: nowrap;
}

.brand-text small {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 179, 0, 0.5);
  background: transparent;
  color: var(--nav-hover);
  padding: 0.45rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  z-index: 1002;
  position: relative;
}


.nav-links a {
  color: var(--nav-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--nav-hover);
  background: rgba(255, 179, 0, 0.12);
}

.nav-links a.active {
  color: var(--accent-light);
  background: rgba(255, 179, 0, 0.15);
}

main {
  padding-top: 72px;
  padding-bottom: 1rem;
}

.page-hero {
  padding: clamp(2rem, 6vw, 3rem) 0 clamp(2rem, 5vw, 2.5rem);
  background: linear-gradient(180deg, rgba(245, 230, 200, 0.92) 0%, rgba(255, 248, 235, 0.95) 50%, rgba(250, 242, 225, 0.93) 100%);
  margin-top: 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

/* Hero: split into two separate cards (content + image) */
.hero-split {
  width: 100%;
  max-width: 90vw; /* hero content should take 90vw */
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center; /* prevents children stretching full width */
  gap: clamp(1.25rem, 3vw, 2rem); /* visible gap between the two cards */
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.88) 0%, rgba(255, 248, 235, 0.92) 50%, rgba(250, 245, 232, 0.88) 100%);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 15, 26, 0.12);
  overflow: clip;
}

.hero-card--content {
  width: 100%;
  overflow: visible;
}

/* Keep your existing centered look inside the content card */
.hero-card--content .container {
  max-width: 90vw;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(1.25rem, 3.2vw, 2rem);
}

/* Image card should be 75vw */
.hero-card--image {
  width: 75vw;
  max-width: 75vw;
  margin-inline: auto;
  justify-self: center;
  /* No border / no "card" behind the image */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.hero-banner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

.hero-banner-below {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.page-hero .reading {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  text-align: center;
}

.page-hero .reading .kicker {
  margin-bottom: 0.6rem;
}

.page-hero .reading h1 {
  margin-bottom: 1rem;
}

.page-hero .reading p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-hero .reading p + p {
  margin-top: 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta {
    text-align: center;
  }
}

.hero-cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.35);
}

.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

.kicker {
  display: inline-block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.65rem, 2vw, 0.72rem);
  margin-bottom: 0.72rem;
}

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  max-width: 16ch;
  color: var(--primary);
  line-height: 1.2;
}

.page-hero h1 {
  max-width: 100%;
  margin-inline: auto;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  padding-inline: 0;
  color: var(--primary);
  position: relative;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  margin-bottom: 0.72rem;
  color: var(--primary);
}

.section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.32rem;
  color: var(--primary);
}

.reading {
  max-width: 78ch;
  width: 100%;
}

.page-hero p,
.reading p {
  color: var(--muted);
}

.reading p + p {
  margin-top: 0.9rem;
}

.step-subheading {
  font-weight: 800;
  color: var(--primary);
}

/* Keeps step title close to its description paragraph */
.step-subheading + p {
  margin-top: 0.35rem;
}

.page-hero h1 + p {
  margin-top: 1.2rem;
}

.page-hero p + p {
  margin-top: 1.15rem;
}

.page-section {
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.88) 0%, rgba(255, 248, 235, 0.9) 50%, rgba(250, 245, 232, 0.88) 100%);
  width: 100%;
  max-width: 90vw;
  margin-inline: auto;
  margin-block: clamp(1rem, 3vw, 1.5rem);
  border-radius: 16px;
  overflow: clip;
  box-shadow: 0 10px 24px rgba(15, 15, 26, 0.12);
}

@media (max-width: 640px) {
  .page-section {
    max-width: 100%;
    border-radius: 12px;
  }
}

.page-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.25) 0%, rgba(255, 248, 235, 0.9) 50%, rgba(245, 238, 220, 0.88) 100%);
}

.page-section .container {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Feature cards - Why choose */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 179, 0, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.15);
  border-color: rgba(255, 179, 0, 0.35);
}

.feature-card-icon {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 940px) {
  .feature-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

/* Game pills - Popular games */
.game-pills {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.game-pills li {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(255, 179, 0, 0.12);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 179, 0, 0.25);
}

.game-pills li:hover {
  background: rgba(255, 179, 0, 0.2);
  border-color: rgba(255, 179, 0, 0.4);
}

/* Two-column content + image sections */
.content-image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  width: 100%;
  max-width: min(90vw, 1100px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.content-image-section .section-content {
  min-width: 0;
}

.content-image-section .section-image {
  min-width: 0;
}

.content-image-section .section-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.content-image-section.image-right .section-image {
  order: 2;
}

.content-image-section.image-left .section-content {
  order: 2;
}

.content-image-section.image-left .section-image {
  order: 1;
}

@media (max-width: 768px) {
  .content-image-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .content-image-section .section-content,
  .content-image-section .section-image {
    order: unset;
  }
}

.clean-list {
  max-width: 76ch;
  padding-left: 1.1rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

.clean-list li + li {
  margin-top: 0.45rem;
}

/* Numbered steps (ordered bullets) used in guides */
.numbered-steps {
  margin-top: 0.9rem;
  padding-left: 1.45rem; /* restore list indentation after global padding reset */
}

.numbered-steps li {
  color: var(--muted);
  margin-bottom: 0.95rem;
}

.numbered-steps li::marker {
  color: var(--primary);
  font-weight: 800;
}

.numbered-steps li strong {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.numbered-steps li p {
  margin-top: 0.35rem;
}

.post-list article {
  padding: 0.95rem 0;
}

.post-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.btn {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.68rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

form {
  max-width: 700px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c5c8d4;
  background: #ffffff;
  color: var(--ink);
  padding: 0.62rem 0.65rem;
  font: inherit;
  border-radius: 6px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.site-footer {
  margin-top: 2.6rem;
  padding: 2rem 0 2.2rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer h3 {
  color: var(--nav-hover);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-intro {
  color: var(--accent-light);
  font-weight: 600;
}

.site-footer .reading p,
.site-footer p {
  color: var(--footer-text);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-note {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--footer-text);
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.content-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}
.content-table th,
.content-table td {
  border: 1px solid #c5c8d4;
  padding: clamp(0.5rem, 2vw, 0.6rem) clamp(0.5rem, 2vw, 0.75rem);
  text-align: left;
}
.content-table th {
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.4) 0%, var(--soft) 100%);
  color: var(--primary);
  font-weight: 600;
  border-color: rgba(255, 179, 0, 0.25);
}
.content-table td {
  color: var(--muted);
}
.content-table tr:nth-child(even) td {
  background: rgba(232, 234, 240, 0.5);
}

/* FAQ accordion (arrow dropdowns) */
.guide-raw {
  white-space: pre-wrap;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 179, 0, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--primary);
  font-weight: 800;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  line-height: 1.25;
}

.faq-arrow {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

/* Draw a chevron using borders (no external assets) */
.faq-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}

details[open].faq-item .faq-arrow::after {
  transform: translate(-50%, -40%) rotate(-135deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-weight: 500;
}

.faq-answer p {
  margin-top: 0.25rem;
}

/* Blog pages */
.blog-page-body .container {
  max-width: min(90vw, 1100px);
}

.blog-status {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-post-card {
  display: block;
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.blog-post-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-post-body {
  padding: 0.9rem;
}

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

.blog-post-card__excerpt {
  margin-top: 0.55rem;
}

.blog-post-card__readmore {
  margin-top: 0.7rem;
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
}

.blog-pagination {
  margin-top: 1rem;
}

.pager-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.pager-btn {
  border: 1px solid rgba(255, 179, 0, 0.4);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}

.blog-detail-main,
.blog-detail-sidebar section {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.blog-detail-hero img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.blog-detail-body {
  color: var(--muted);
}

.blog-recent-list--sidebar {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.blog-sidebar-item + .blog-sidebar-item {
  margin-top: 0.6rem;
}

.blog-sidebar-item__link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.6rem;
}

.blog-sidebar-item__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
}

.blog-sidebar-item__title {
  font-weight: 700;
}

.blog-sidebar-item__date {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 940px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet and below */
@media (max-width: 940px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
  }

  main {
    padding-top: 64px;
    transition: padding-top 0.2s ease;
  }

  /* Fixed offset avoids JS layout reads (forced reflow); matches ~3 stacked nav links + header */
  body.nav-open main {
    padding-top: calc(64px + 12.5rem);
  }

  .nav-shell {
    height: 64px;
    min-height: 64px;
    overflow: visible;
  }

  .brand {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    min-width: 100%;
    width: 100%;
    max-width: none;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links a {
    border: none;
    border-radius: 0;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-section {
    padding: clamp(1.25rem, 4vw, 1.65rem) 0;
  }

  form {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .brand-text strong {
    white-space: normal;
  }

  .brand-logo {
    width: 118px;
    height: 118px;
  }

  .page-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .page-hero .reading p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5vw, 1.45rem);
  }

  h3 {
    font-size: 1.1rem;
  }

  .footer-note {
    font-size: 0.8rem;
    text-align: center;
  }

  .site-footer h3 {
    font-size: 0.95rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  main {
    padding-top: 60px;
  }

  .container {
    padding-inline: 0.75rem;
  }

  .nav-shell {
    height: 60px;
    min-height: 60px;
  }

  .brand {
    height: 60px;
  }

  .nav-links {
    right: 0.5rem;
    min-width: 180px;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text small {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: 1.35rem;
  }

  .content-table th,
  .content-table td {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }
}
