/* Guide pages: /how-to-play, /scoring, /wordable-vs-wordle */

.guide-body { max-width: 760px; margin: 0 auto; padding: 44px 24px 64px; }

.guide-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 22px;
}
.guide-lede strong { color: var(--pink-deep); }

.guide-article h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.guide-article h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 26px 0 8px;
}
.guide-article p, .guide-article li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.guide-article p { margin: 0 0 16px; }
.guide-article ul { padding-left: 22px; margin: 0 0 16px; }
.guide-article li { margin-bottom: 8px; }
.guide-article li strong, .guide-article p strong { color: var(--ink); }
.guide-article a { color: var(--pink-deep); font-weight: 600; }

.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid rgba(255, 102, 153, 0.22);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 2px 8px rgba(255, 102, 153, 0.08);
  font-size: 15.5px;
}
.guide-table th, .guide-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(255, 102, 153, 0.14);
  line-height: 1.45;
}
.guide-table th {
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
.guide-table td.word { font-weight: 800; letter-spacing: 0.06em; color: var(--ink); }
.guide-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.formula {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 20px;
}

.tile-row { display: inline-flex; gap: 4px; vertical-align: middle; margin: 0 4px; }
/* Inline tiles = the app's idle tile: white, black letter; J/X/Q/Z lavender */
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: #fff; color: #000; border: none;
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.14);
  font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: 15px;
}
.tile.rare { background: #E9E0FF; color: #5E3BBF; }

/* Value tiles = the app's SELECTED tile (gold, pink letter, blue value badge;
   rare J/X/Q/Z: purple, white letter, gold badge) — the same tile the app's
   results breakdown and the homepage board use. */
.tile.big {
  position: relative;
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 21px; font-weight: 900;
  background: #FFD700; color: #FF6699;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  border: none;
  font-family: Arial, Helvetica, sans-serif;
}
.tile.big[data-p]::after {
  content: attr(data-p);
  position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 122, 255, 0.7); color: #fff;
  font-family: var(--font, inherit); font-size: 9.5px; font-weight: 800; line-height: 1;
}
.tile.big.rare { background: #8E62F0; color: #fff; }
.tile.big.rare::after { background: #FFD84D; color: #3B1A78; }
.tile.big.hl { outline: 3px solid var(--pink); outline-offset: 1px; }

.guide-article .sub { font-size: 16px; color: var(--ink-soft); margin: -4px 0 14px; }

/* Visual formula (WORD = 24) */
.formula-visual {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fv-tiles { display: flex; gap: 6px; }
.fv-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.fv-steps b { color: var(--ink); font-size: 20px; }
.fv-x { color: var(--pink); font-weight: 900; font-size: 20px; }
.fv-total b { font-size: 30px; color: var(--pink-deep); }

/* Letter values grid */
.lv-grid { background: var(--white); border: 1px solid rgba(255, 102, 153, 0.22); border-radius: 16px; padding: 4px 16px; margin: 0 0 20px; box-shadow: 0 2px 8px rgba(255, 102, 153, 0.08); }
.lv-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 102, 153, 0.14); }
.lv-row:last-child { border-bottom: none; }
.lv-pts { flex: 0 0 52px; font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.lv-pts small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8B7355; margin-top: 3px; }
.lv-tiles { display: flex; flex-wrap: wrap; gap: 6px; }

/* Multiplier cards */
.mult-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
.mult-card { background: var(--white); border: 1px solid rgba(255, 102, 153, 0.22); border-radius: 16px; padding: 16px 10px 14px; text-align: center; box-shadow: 0 2px 8px rgba(255, 102, 153, 0.08); }
.mult-card.hot { border: 2px solid var(--pink); }
.mc-len { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8B7355; }
.mc-x { font-size: 30px; font-weight: 900; color: var(--pink-deep); line-height: 1.1; margin: 8px 0 6px; text-wrap: balance; }
.mult-card.hot .mc-x { font-size: 22px; }
.mc-eg { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* Word math rows: tiles · sum × mult = score */
.wmath {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: var(--white); border: 1px solid rgba(255, 102, 153, 0.22); border-radius: 14px;
  padding: 12px 14px; margin: 0 0 10px;
  box-shadow: 0 2px 8px rgba(255, 102, 153, 0.08);
}
.wmath .wlabel { flex: 1 0 100%; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #8B7355; }
.wmath .wtiles { display: flex; flex-wrap: wrap; gap: 5px; }
.wmath .wcalc { margin-left: auto; display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wmath .wc-op { color: var(--pink); font-weight: 900; }
.wmath .wcalc b { font-size: 24px; color: var(--pink-deep); min-width: 2ch; text-align: right; }

/* Tip cards */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.tip { background: var(--white); border: 1px solid rgba(255, 102, 153, 0.22); border-radius: 14px; padding: 14px 16px; }
.tip .ti { font-size: 22px; display: block; margin-bottom: 6px; }
.tip b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.guide-article .tip p { font-size: 14.5px; line-height: 1.5; margin: 0; }

@media (max-width: 600px) {
  .tile.big { width: 36px; height: 36px; font-size: 17px; border-radius: 8px; }
  .tile.big[data-p]::after { width: 13px; height: 13px; font-size: 8px; top: 1.5px; left: 1.5px; }
  .lv-pts { flex-basis: 44px; font-size: 24px; }
  .lv-row { gap: 10px; }
  .mult-cards { gap: 8px; }
  .mult-card { padding: 12px 6px 10px; }
  .mc-x { font-size: 24px; }
  .mult-card.hot .mc-x { font-size: 17px; }
  .mc-eg { font-size: 11px; }
  .wmath { padding: 10px 12px; gap: 8px 12px; }
  .wmath .tile.big { width: 32px; height: 32px; font-size: 15px; border-radius: 7px; }
  .wmath .tile.big[data-p]::after { width: 12px; height: 12px; font-size: 7.5px; }
  .wmath .wtiles { gap: 4px; }
  .wmath .wcalc { font-size: 15px; margin-left: auto; }
  .wmath .wcalc b { font-size: 20px; }
  .tips-grid { grid-template-columns: 1fr; }
}

/* "Best on iPhone" card */
.app-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--pink-soft);
  text-align: center;
  margin: 28px 0;
}
.app-card h2, .app-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.app-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.app-card .appstore-cta { display: inline-block; }
.app-card .appstore-badge { height: 54px; width: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18)); }
.app-card .rating-line { font-size: 13px; color: #8B7355; margin: 12px 0 0; }
.app-card .rating-line .stars { color: #F5A623; letter-spacing: 1px; }
.app-card .web-note { font-size: 14px; color: #8B7355; margin: 10px 0 0; }
.app-card .web-note a { color: var(--pink-deep); font-weight: 700; }

.app-card.compact { padding: 18px 20px 16px; margin: 0 0 30px; }
.app-card.compact h2 { font-size: 18px; }
.app-card.compact p { font-size: 15px; margin-bottom: 12px; }
.app-card.compact .appstore-badge { height: 46px; }

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 8px;
}
.guide-nav a {
  background: var(--white);
  border: 1.5px solid var(--pink-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.guide-nav a:hover { border-color: var(--pink); color: var(--pink-deep); }

.guide-body .faq { margin-top: 36px; }

@media (max-width: 600px) {
  .guide-body { padding: 32px 18px 48px; }
  .guide-lede { font-size: 17.5px; }
  .guide-article h2 { font-size: 23px; margin-top: 34px; }
  .guide-article p, .guide-article li { font-size: 16px; }
  .guide-table { font-size: 14.5px; }
  .guide-table th, .guide-table td { padding: 9px 10px; }
  .app-card { padding: 22px 18px 18px; }
}

/* FAQ questions are real H3s (for crawlers) but render like the support page's summaries */
.faq summary h3 { display: inline; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }

/* App Store screenshots inside guide copy */
.shot {
  margin: 4px 0 14px;
  width: 160px;
  max-width: 40%;
}
.shot-right { float: right; margin-left: 22px; }
.shot-left { float: left; margin-right: 22px; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img {
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(123, 47, 190, 0.2);
}
.shot figcaption {
  font-size: 12.5px;
  line-height: 1.4;
  color: #8B7355;
  text-align: center;
  margin-top: 8px;
}
.guide-article h2, .guide-article h3 { clear: both; }
.guide-article::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .shot { width: 136px; max-width: 44%; }
  .shot-right { margin-left: 14px; }
  .shot-left { margin-right: 14px; }
}

/* Guide "tabs" in the pink hero (mirrors the homepage .site-nav) */
.hero .tagline { margin-bottom: 18px; }
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 520px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.32); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--white); color: var(--pink-deep); border-color: var(--white); }
