/* ============================================================
   /pokelike/ page styles  —  pokelike keyword landing page
   Depends on css/tokens.css (linked before this file).
   No token is re-declared here; tokens are only referenced.
   House rules: hard edges, double stroke, hard (unblurred) shadow.
   ============================================================ */

/* ---------- shell ---------- */
.pl-article {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 56px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  overflow-wrap: break-word;
}

.pl-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pl-ic {
  flex: 0 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
}

/* breadcrumbs: shared .breadcrumbs component from style.css, only tuned here */
.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs a { color: var(--accent-2); }

/* ---------- hero ---------- */
.pl-hero {
  padding: 24px 22px 26px;
  background: var(--panel);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--hard);
  border-radius: var(--r);
  background-image: radial-gradient(circle at 82% 12%, rgba(79, 180, 255, 0.16), transparent 58%);
}

.pl-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.pl-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.2vw, 30px);
  line-height: 1.45;
  color: var(--ps-ink);
  text-shadow: 2px 2px 0 var(--ps-shadow);
}

.pl-lede {
  margin: 0 0 20px;
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.7;
  color: var(--dim);
}

.pl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
}
.pl-cta-row .ps-btn { text-align: center; }

.pl-statline {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

/* ---------- table of contents ---------- */
.pl-toc {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--bg-2);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--line), var(--hard-sm);
  border-radius: var(--r);
}
.pl-toc__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}
.pl-toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-toc li { min-width: 0; }
.pl-toc a {
  display: inline-block;
  padding: 4px 0;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pl-toc a:hover,
.pl-toc a:focus-visible { border-bottom-color: var(--accent-2); }

/* ---------- sections ---------- */
.pl-section { margin: 44px 0 0; }

.pl-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(12px, 2.3vw, 16px);
  line-height: 1.7;
  color: var(--ps-gold);
  text-shadow: 2px 2px 0 var(--ps-shadow);
  border-bottom: var(--edge-w) solid var(--line);
}

.pl-section p { margin: 0 0 16px; max-width: 76ch; }

.pl-article a { color: var(--accent-2); }
.pl-section a:hover,
.pl-section a:focus-visible { color: var(--accent); }

/* ---------- snippet answer ---------- */
.pl-answer {
  margin: 0 0 22px;
  padding: 18px 20px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 2px var(--ps-edge), var(--hard);
}
.pl-answer__label {
  margin: 0 0 10px !important;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.pl-answer__text {
  margin: 0 !important;
  max-width: 70ch;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ps-ink);
}

.pl-note {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
}
.pl-note--scroll { margin-top: 10px; }

/* ---------- feature checklist ---------- */
.pl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--gap);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pl-feature {
  position: relative;
  min-width: 0;
  padding: 16px 18px 14px 46px;
  background: var(--panel);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--hard-sm);
  border-radius: var(--r);
}
.pl-feature::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--ps-green);
  box-shadow: inset 0 0 0 2px var(--ps-edge-out), 2px 2px 0 rgba(0, 0, 0, 0.55);
}
.pl-feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
}
.pl-feature p {
  margin: 0;
  max-width: none;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--dim);
}

/* ---------- comparison table ---------- */
/* wrapper: shared .table-scroll component (style.css §7), widened for 5 columns */
.pl-section .table-scroll { margin: 22px 0 0; }
.table-scroll:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--focus);
}

.pl-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 16.5px;
  line-height: 1.6;
}
.pl-table caption {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--bg-2);
  border-bottom: var(--edge-w) solid var(--ps-edge-out);
  text-transform: uppercase;
  /* the table is wider than a phone screen; keep the caption inside the visible strip */
  max-width: 90vw;
}
.pl-table th,
.pl-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 2px solid var(--line);
}
.pl-table thead th {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--ps-ink);
  background: var(--panel-2);
}
.pl-table tbody th {
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-3);
  white-space: nowrap;
}
.pl-table tbody tr:nth-child(even) td { background: rgba(18, 39, 90, 0.4); }
.pl-table td { color: var(--dim); }

/* ---------- games list ---------- */
.pl-games {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--gap);
}
.pl-game {
  min-width: 0;
  padding: 18px 20px 16px;
  background: var(--panel);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--hard-sm);
  border-radius: var(--r);
}
.pl-game--lead {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 2px var(--ps-gold), var(--hard);
}
.pl-game h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ps-ink);
}
.pl-game__num {
  display: inline-block;
  padding: 3px 7px;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.6;
  color: var(--ps-edge-out);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--ps-gold2);
}
.pl-game__meta {
  margin: 0 0 10px !important;
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.pl-game p {
  margin: 0;
  max-width: 78ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* ---------- how to choose ---------- */
.pl-pick {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: plpick;
}
.pl-pick li {
  position: relative;
  counter-increment: plpick;
  margin-bottom: 14px;
  padding: 14px 18px 14px 62px;
  background: var(--panel);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--hard-sm);
  border-radius: var(--r);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--dim);
}
.pl-pick li::before {
  content: counter(plpick, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 4px 6px;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.6;
  color: var(--ps-edge-out);
  background: var(--accent-2);
  box-shadow: inset 0 0 0 2px var(--ps-edge-out);
}
.pl-pick strong { color: var(--text); }

/* ---------- FAQ ---------- */
.pl-faq {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.pl-faq__item {
  background: var(--panel);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge-in), var(--hard-sm);
  border-radius: var(--r);
}
.pl-faq__item[open] { background: var(--bg-3); }

.pl-faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ps-ink);
}
.pl-faq__item summary::-webkit-details-marker { display: none; }
.pl-faq__item summary:hover { color: var(--accent); }
.pl-faq__item summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.pl-faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--ps-edge-out);
}
.pl-faq__mark::before,
.pl-faq__mark::after {
  content: "";
  position: absolute;
  background: var(--ps-edge-out);
}
.pl-faq__mark::before { left: 3px; right: 3px; top: 7px; height: 2px; }
.pl-faq__mark::after { top: 3px; bottom: 3px; left: 7px; width: 2px; }
.pl-faq__item[open] .pl-faq__mark { background: var(--ps-green); }
.pl-faq__item[open] .pl-faq__mark::after { display: none; }

.pl-faq__body { padding: 0 18px 16px 48px; }
.pl-faq__body p {
  margin: 0;
  max-width: 74ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* ---------- final CTA ---------- */
.pl-final {
  padding: 22px;
  background: var(--bg-3);
  border: var(--edge-w) solid var(--ps-edge-out);
  box-shadow: inset 0 0 0 2px var(--ps-edge), var(--hard);
  border-radius: var(--r);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .pl-article { padding: 20px 14px 44px; }
  .pl-hero { padding: 18px 16px 20px; }
  .pl-lede { font-size: 18px; }
  .pl-section { margin-top: 34px; }
  .pl-features { grid-template-columns: 1fr; }
  .pl-table { min-width: 640px; font-size: 16px; }
  .pl-table th,
  .pl-table td { padding: 10px 11px; }
  .pl-toc ul { grid-template-columns: 1fr; }
  .pl-faq__item summary { font-size: 17px; padding: 13px 14px; }
  .pl-faq__body { padding: 0 14px 14px; }
  .pl-pick li { padding-left: 56px; }
  .pl-cta-row { flex-direction: column; align-items: stretch; }
  .pl-cta-row .ps-btn { width: 100%; }
}

@media (max-width: 420px) {
  .pl-hero h1 { font-size: 17px; }
  .pl-h2 { font-size: 11px; }
  .pl-game h3 { font-size: 19px; }
}
