/* PakPlay Guide — www.pakplay.web.pk
   Light theme: white surfaces, brand green from the logo, near-black text.
   Single stylesheet, no external requests. */

:root {
  --brand: #00b81f;        /* logo green — fills and accents */
  --brand-dark: #00861a;   /* hover */
  --brand-ink: #006b16;    /* green text on white (contrast-safe) */
  --brand-soft: #e8f8ea;   /* tinted surfaces */
  --brand-line: #bfe9c6;

  --ink: #0b0f0c;          /* headings, near-black */
  --body: #33393a;         /* body copy */
  --muted: #5b6366;        /* captions, meta */
  --on-brand: #06240b;     /* label on a green fill */
  --on-dark: #ffffff;

  --bg: #ffffff;
  --bg-2: #f4f7f5;         /* tinted panel */
  --bg-3: #0b0f0c;         /* black panel */
  --line: #dfe6e1;

  --wrap: 1180px;
  --read: 760px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 12, .06), 0 4px 14px rgba(11, 15, 12, .06);
  --shadow-md: 0 10px 34px rgba(11, 15, 12, .12);
  --header-h: 74px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); letter-spacing: -.02em; margin: 0 0 14px; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); margin: 2em 0 .6em; }
h3 { font-size: 1.18rem; margin: 1.6em 0 .5em; }
p { margin: 0 0 1.05em; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------- Header -------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; max-width: 190px; display: block; }

/* Without an explicit flex here the nav takes a full line and pushes the CTA
   onto a second row at desktop widths. */
.nav-panel { display: flex; align-items: center; gap: 18px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 650; font-size: .96rem;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; }
  .btn-nav { width: 100%; justify-content: center; }
}

/* -------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 800; font-size: 1rem; line-height: 1.2; cursor: pointer;
  text-decoration: none; transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1.06rem; }

.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-blue { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-blue:hover { background: #22292a; color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.btn-dark { background: var(--bg-2); color: var(--ink); border-color: var(--line); font-weight: 700; }
.btn-dark:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }

.btn-nav { min-height: 42px; padding: 10px 18px; font-size: .95rem; }

/* ------------------------------- CTA rows ------------------------------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; max-width: var(--read); margin-inline: auto; }
.cta-row .btn { flex: 1 1 250px; }
.cta-note { flex: 1 1 100%; margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.cta-top { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }

/* -------------------------------- Article ------------------------------- */

.post { padding-block: 34px 10px; }
.post-head { max-width: var(--read); margin-inline: auto; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 13px;
  background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line);
  border-radius: 999px; font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: var(--read); margin-inline: auto; }

.banner { margin: 28px auto 10px; max-width: var(--read); }
.banner img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); display: block; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }

.post-body { max-width: var(--read); margin-inline: auto; padding-bottom: 20px; }
.post-body > h2:first-of-type { margin-top: 1.4em; }
.post-body ul li::marker { color: var(--brand-dark); }

/* ---------------------------------- TOC --------------------------------- */

.toc {
  margin: 30px 0 34px; padding: 22px 24px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2 { margin: 0 0 12px; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ----------------------------- Content parts ---------------------------- */

.steps { list-style: none; counter-reset: s; margin: 24px 0; padding: 0; }
.steps li {
  counter-increment: s; position: relative;
  margin-bottom: 14px; padding: 16px 18px 16px 60px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 15px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  border-radius: 50%; font-weight: 800; font-size: .92rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px; background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid var(--brand-line); border-radius: 999px; font-size: .9rem; font-weight: 650;
}

.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 24px 0; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--brand-dark);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 7px; }
.card.pros { border-top-color: var(--brand-dark); }
.card.cons { border-top-color: #d64545; }

.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { padding: 14px 16px; text-align: left; font-weight: 700; color: var(--ink); background: var(--bg-2); border-bottom: 1px solid var(--line); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); color: var(--ink); font-weight: 800; }
tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.callout {
  margin: 24px 0; padding: 18px 20px;
  background: var(--brand-soft); border-left: 4px solid var(--brand-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

.shot-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 26px 0; }
.shot { max-width: 300px; text-align: center; }
.shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: block; }
.shot.wide { max-width: 360px; margin-inline: auto; }

.faq { margin: 20px 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; background: #fff; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); border-radius: 50%; font-weight: 800;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

.cta-band {
  margin: 40px 0 10px; padding: 34px 30px;
  background: linear-gradient(135deg, #0b0f0c 0%, #11341a 55%, #00861a 100%);
  border: 1px solid var(--brand-line);
  border-radius: 16px; color: #eaf3ec;
}
.cta-band h2 { margin-top: 0; color: #fff; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.cta-band p { color: #d6e6d9; }
.cta-band .cta-row { margin-bottom: 0; }
.cta-band .cta-note { color: #b9cfbe; }

.disclaimer {
  margin: 26px 0; padding: 18px 20px;
  background: #fff8e6; border: 1px solid #f0dca5; border-radius: var(--radius);
  font-size: .96rem;
}
.disclaimer p:last-child { margin-bottom: 0; }

.review {
  margin: 24px 0; padding: 20px 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-nav a { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; background: #fff; }
.post-nav a:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.post-nav span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

/* ----------------------------- Generic pages ---------------------------- */

.page { padding-block: 46px 20px; }
.page-head { max-width: var(--read); margin-inline: auto; margin-bottom: 18px; }
.page-body { max-width: var(--read); margin-inline: auto; }

.card-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 26px 0 10px; padding: 0; list-style: none; }
.card-list li { margin: 0; }
.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; }
.post-card h2, .post-card h3 { margin-top: 0; font-size: 1.2rem; }
.post-card p { font-size: .95rem; color: var(--muted); }
.post-card .btn { align-self: flex-start; }

/* ------------------------------- Footer --------------------------------- */

.site-footer { margin-top: 50px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; padding: 44px 0 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand img { width: 150px; height: auto; display: block; margin-bottom: 10px; }
.footer-name { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.footer-name span { color: var(--brand-ink); }
.footer-tag { margin: 2px 0 12px; font-size: .9rem; color: var(--muted); font-weight: 650; }
.footer-about { font-size: .94rem; color: var(--muted); margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: var(--body); font-size: .96rem; }
.footer-nav a:hover { color: var(--brand-ink); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.age-badge { font-weight: 800; color: var(--ink); }

/* ------------------------------ Back to top ----------------------------- */

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; display: none; place-items: center;
  background: var(--brand); color: var(--on-brand);
  border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.15rem; font-weight: 800; box-shadow: var(--shadow-md);
}
.to-top.is-visible { display: grid; }

/* --------------------------------- Print -------------------------------- */

@media print {
  .site-header, .to-top, .cta-row, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .post-body, .page-body { max-width: none; }
}
