/* =========================================================
   ProSolitaire guide pages: shared styles
   (Same colors and fonts as the game page. Change the look of every guide page here.)
   ========================================================= */
:root {
  --felt: #1a4a43; --felt-deep: #0e2b27; --paper: #fbfaf6; --ink: #1c2331;
  --red: #c8372d; --gold: #f2b134;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--paper); font: 17px/1.7 var(--sans);
  background: var(--felt-deep) radial-gradient(120% 80% at 50% 0%, var(--felt) 0%, var(--felt-deep) 100%) no-repeat;
}
a { color: var(--gold); }
a:hover { color: #fff; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  width: min(100%, 1000px); margin: 0 auto; padding: 16px 16px 8px;
}
.brand { font: 700 1.4rem/1 var(--serif); text-decoration: none; color: var(--paper); letter-spacing: .01em; }
.brand:hover { color: #fff; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.site-header nav a { color: rgba(251,250,246,.8); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* Article */
main { width: min(100%, 760px); margin: 0 auto; padding: 18px 16px 40px; }
.crumbs { font-size: .88rem; color: rgba(251,250,246,.6); margin: 0 0 14px; }
.crumbs a { color: rgba(251,250,246,.75); }
h1 { margin: 0 0 14px; font: 700 clamp(1.8rem, 5vw, 2.4rem)/1.15 var(--serif); color: var(--paper); letter-spacing: .005em; }
h1::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--gold); }
h2 { margin: 36px 0 8px; font: 700 1.45rem/1.25 var(--serif); color: var(--paper); }
h3 { margin: 22px 0 4px; font: 600 1.05rem/1.4 var(--sans); color: var(--gold); }
p { margin: 0 0 14px; color: rgba(251,250,246,.88); }
.lead { font-size: 1.1rem; color: rgba(251,250,246,.95); }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; color: rgba(251,250,246,.88); }
li { margin-bottom: 6px; }
strong { color: var(--paper); }

/* Boxes */
.note, .play-cta, .related {
  margin: 26px 0; padding: 18px 20px; background: rgba(0,0,0,.18);
  border: 1px solid rgba(251,250,246,.12); border-radius: 12px;
}
.note { border-left: 3px solid var(--gold); }
.note p:last-child, .play-cta p:last-child { margin-bottom: 0; }
.play-cta { text-align: center; }
.play-cta h2 { margin-top: 0; font-size: 1.3rem; }
.btn-play {
  display: inline-block; margin-top: 4px; padding: 13px 26px;
  font: 700 1.05rem/1 var(--sans); color: #241a05; background: var(--gold);
  border-radius: 10px; text-decoration: none;
}
.btn-play:hover { background: #ffc552; color: #241a05; }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { margin-bottom: 0; }

/* Diagram + table + glossary */
figure { margin: 22px 0; }
figure svg { display: block; width: 100%; height: auto; border-radius: 12px; }
figcaption { margin-top: 8px; font-size: .9rem; color: rgba(251,250,246,.65); }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .97rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(251,250,246,.14); }
th { color: var(--gold); font-weight: 600; }
dl { margin: 0; }
dt { margin-top: 20px; font: 700 1.1rem/1.3 var(--serif); color: var(--paper); }
dd { margin: 4px 0 0; color: rgba(251,250,246,.88); }

/* Footer: 100px of space underneath, like the game page, so a bottom ad has room */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 18px; width: min(100%, 1000px);
  margin: auto auto 100px; padding: 16px;
  border-top: 1px solid rgba(251,250,246,.15); color: rgba(251,250,246,.65); font-size: .9rem;
}
.site-footer a { color: rgba(251,250,246,.75); }
@media (max-width: 480px) { body { font-size: 16.5px; } main { padding-top: 10px; } }
