/* Text pages for whatsacross.com (/across/). Same palette as the globe (styles.css). */
:root {
  --bg: #0a0f1a;
  --panel: #111827;
  --ink: #e8edf5;
  --muted: #8b95a8;
  --line: #24304a;
  --accent: #ffc857;
  --link: #8fc1ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; }
a { color: var(--link); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

header.site { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
header.site .brand { color: var(--ink); font-weight: 700; font-size: 19px; text-decoration: none; }
header.site .tld { color: var(--accent); }
header.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }

h1 { font-size: 28px; line-height: 1.25; margin: 28px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 32px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { font-size: 17px; color: #cfd7e6; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 14px; }
.sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.card h2 { margin-top: 0; }
.card p { margin: 6px 0; }
.place { scroll-margin-top: 12px; }

dl.dirs { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0; font-size: 15px; }
dl.dirs dt { color: var(--muted); }
dl.dirs dd { margin: 0; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { font-weight: 600; }
/* Phones: each row becomes a small block with its own labels. */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.stack th, table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td::before { content: attr(data-label) ": "; color: var(--muted); }
  h1 { font-size: 23px; }
}

.cta { display: inline-block; background: var(--accent); color: #1a1406; font-weight: 700; padding: 10px 18px; border-radius: 8px; text-decoration: none; margin: 10px 0; }
.cta:hover { color: #1a1406; filter: brightness(1.08); }

.faq h3 { margin-top: 18px; }
footer.site { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
