/* Village Fairways guide pages: /install and /help. */
:root {
  --g1: #0e3d21; --g2: #14532d; --g3: #2f6b45;
  --gl: #e9f1ea; --gb: #cfe0d4; --brass: #b3872f;
  --bg: #f3f6f1; --card: #fff; --text: #16211a; --muted: #55615a;
  --link: #14532d; --edge: #cfe0d4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10150f; --card: #1a2018; --text: #edf2ea; --muted: #aeb8ae;
    --gl: #202d21; --gb: #344536; --edge: #344536; --link: #93d3a8; --brass: #d0a659;
  }
}
/* Status bar backdrop for the installed app (black-translucent status bar). Height is 0 in a browser tab. */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: #0e3d21; z-index: 90; pointer-events: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
.band {
  background: linear-gradient(160deg, var(--g1), var(--g2) 55%, var(--g3));
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
}
.band-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.mark {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: #f4f8f2; color: #14532d;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.band h1 { margin: 0; font-size: 22px; line-height: 1.2; }
main, .page-nav { max-width: 680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-top: 8px; padding-bottom: 24px; }
.page-nav { padding-top: 14px; padding-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid #d4a94f; outline-offset: 3px; }
h2 { margin: 36px 0 8px; font-size: 24px; line-height: 1.25; scroll-margin-top: 16px; }
h3 { margin: 24px 0 6px; font-size: 20px; line-height: 1.3; }
p { margin: 0 0 14px; }
ol, ul { margin: 0 0 16px; padding-left: 1.4em; }
li { margin-bottom: 8px; }
.lead { color: var(--muted); }
.toc { background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px 6px; margin: 16px 0; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: inline-block; min-height: 44px; padding: 8px 0; font-weight: 600; }
.toc li { margin: 0; }
figure { margin: 18px auto; max-width: 360px; text-align: center; }
img { max-width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 12px; display: block; margin: 0 auto; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.share-icon { width: 22px; height: 22px; vertical-align: -5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { background: var(--gl); border: 1px solid var(--gb); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.note p:last-child { margin-bottom: 0; }
footer { max-width: 680px; margin: 0 auto; padding: 8px 16px calc(32px + env(safe-area-inset-bottom)); }

@media print {
  body::before { display: none; }
  .back-link, .page-nav, footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .band { background: none; color: #000; border-bottom: 2px solid #000; padding: 0 0 8px; }
  .mark { background: none; border: 2px solid #000; color: #000; }
  .toc, .note { background: none; border-color: #999; }
  /* Tall phone screenshots fill a printed page at screen size; print them as
     side-by-side thumbnails so consecutive shots share a row. */
  figure { display: inline-block; vertical-align: top; width: 1.95in; max-width: 1.95in; margin: 6px 0.08in; break-inside: avoid; page-break-inside: avoid; }
  figcaption { font-size: 9pt; }
  h2, h3 { break-after: avoid; }
  a { color: #000; }
}
