/* Guides: the blog index and every article. Loaded after /page.css, so the
   nav, footer, buttons and colour tokens are the same as support and privacy.
   This file only adds what long reading needs: darker body text, phrase
   tables, the answer box, the byline and the app panel. Light only, high
   contrast, no horizontal scroll at 390px (tables scroll inside their box). */

:root {
  --body: #3D3935;      /* 10:1 on cream, for long paragraphs */
  --tint: #FFF1E8;      /* table heads and the answer box */
  --rule: #F1D9C8;
}

nav .wrap { gap: 16px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange-ink); }

main { padding-top: 32px; }
.article { font-size: 18px; }
.article p, .article li { color: var(--body); }
.article h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; margin-top: 52px; }
.article h3 { font-size: 19px; color: var(--ink); }
.article ul, .article ol { margin-left: 24px; }

/* ── breadcrumb and byline ───────────────────────────────────────── */
/* page.css styles every <nav> as the top bar; the breadcrumb is a nav too. */
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 18px; border: 0; background: none; }
.crumbs ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); text-decoration: underline; }

.byline {
  margin-top: 18px; font-size: 15px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.byline a { color: var(--orange-ink); }

/* ── the answer an engine can quote ──────────────────────────────── */
.answer {
  margin-top: 28px; padding: 20px 22px;
  background: var(--tint); border-left: 5px solid var(--orange-ink);
  border-radius: 0 14px 14px 0;
}
.answer p { color: var(--ink); font-size: 19px; line-height: 1.55; }
.short { color: var(--ink) !important; font-weight: 500; }

/* ── Spanish on the page ─────────────────────────────────────────── */
.es { color: var(--ink); font-weight: 700; }
.say {
  color: var(--orange-ink); font-weight: 600; font-size: 0.86em;
  letter-spacing: 0.03em; white-space: nowrap;
}

/* ── tables ──────────────────────────────────────────────────────── */
.table-wrap {
  margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; }
th {
  background: var(--tint); color: var(--ink); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em;
}
td { color: var(--body); border-top: 1px solid var(--line); }
td:first-child { color: var(--ink); font-weight: 700; }
td .say { display: block; margin-top: 2px; }
.table-wrap + p, .table-wrap + ul, ul + p, ol + p, .script + p { margin-top: 18px; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 14px; color: var(--faint); }

/* ── a short scene, line by line ─────────────────────────────────── */
.script { list-style: none; margin: 18px 0 0 !important; padding: 0; display: grid; gap: 10px; }
.script li {
  margin: 0; padding: 12px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.script li.them { background: var(--tint); border-color: var(--rule); }
.script .who {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}
.script .line { display: block; color: var(--ink); font-weight: 700; }
.script .en { display: block; font-size: 15px; color: var(--muted); }

/* ── where the app fits ──────────────────────────────────────────── */
.app-panel {
  margin-top: 22px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start;
}
.app-panel img { width: 84px; height: 84px; border-radius: 20px; }
.app-panel p + p { margin-top: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stores .btn { padding: 11px 18px; font-size: 15px; color: #fff; text-decoration: none; }
@media (max-width: 520px) {
  .app-panel { grid-template-columns: 1fr; }
  .app-panel img { width: 64px; height: 64px; border-radius: 16px; }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq h3 { margin-top: 28px; }

/* ── more guides ─────────────────────────────────────────────────── */
.related { list-style: none; margin: 16px 0 0 !important; display: grid; gap: 12px; }
.related li { margin: 0; }
.related a {
  display: block; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: #fff; border: 1px solid var(--line);
}
.related a:hover { border-color: var(--orange-ink); }
.related strong { display: block; color: var(--ink); font-size: 17px; }
.related span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ── the blog index ──────────────────────────────────────────────── */
.posts { list-style: none; margin: 32px 0 0 !important; display: grid; gap: 16px; }
.posts li { margin: 0; }
.post-card {
  display: block; padding: 22px; border-radius: 18px; text-decoration: none !important;
  background: #fff; border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 160ms ease;
}
.post-card:hover { border-color: var(--orange-ink); transform: translateY(-2px); }
.post-card h2 { margin: 0; font-size: clamp(21px, 3vw, 25px); line-height: 1.25; color: var(--ink); }
.post-card p { margin-top: 8px; color: var(--body); }
.post-card .meta { margin-top: 10px; font-size: 14px; color: var(--faint); }

@media (max-width: 520px) {
  .article { font-size: 17px; }
  .answer p { font-size: 18px; }
  th, td { padding: 10px 11px; }
  table { font-size: 15px; }
}
