/* public.css — Horse Power Picks public site styles.
 *
 * Mirrors super-handicapper2's v2 base: beige paper background,
 * thin gray lines, deep navy text. Hamburger + left drawer.
 */

:root {
  --hp-bg:           #f4eede;
  --hp-paper:        #fbf6e8;
  --hp-ink:          #1a2638;
  --hp-ink-soft:     #45526b;
  --hp-line:         #c9c0ab;
  --hp-line-soft:    #e3dcc7;
  --hp-accent:       #8b5a2b;
  --hp-active:       #c89f33;
  --hp-error-bg:     #f5d6c8;
  --hp-error-fg:     #6e2a16;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hp-bg);
  color: var(--hp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
}

/* ── Hamburger button ───────────────────────────────────────── */

#hp-hamburger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  width: 38px;
  height: 38px;
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
#hp-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hp-ink);
}

/* ── Drawer + overlay ───────────────────────────────────────── */

#hp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 38, 56, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 60;
}
#hp-drawer-overlay.hp-open {
  opacity: 1;
  pointer-events: auto;
}

#hp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: var(--hp-paper);
  border-right: 1px solid var(--hp-line);
  transform: translateX(-100%);
  transition: transform .22s ease;
  z-index: 70;
  padding: 60px 0 0 0;
  overflow-y: auto;
}
#hp-drawer.hp-open {
  transform: translateX(0);
}

.hp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-menu li { border-bottom: 1px solid var(--hp-line-soft); }
.hp-leaf {
  display: block;
  padding: 14px 22px;
  color: var(--hp-ink);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.hp-leaf:hover {
  background: var(--hp-bg);
  color: var(--hp-accent);
}

/* ── Header ─────────────────────────────────────────────────── */

.hp-header {
  text-align: center;
  padding: 22px 14px 14px;
  border-bottom: 1px solid var(--hp-line);
  background: var(--hp-bg);
}
.hp-site-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--hp-ink);
  font-weight: normal;
  font-variant: small-caps;
}

/* ── Main / content ─────────────────────────────────────────── */

.hp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.hp-landing {
  text-align: center;
  padding: 60px 10px 30px;
}
.hp-intro {
  font-size: 22px;
  color: var(--hp-ink);
  margin: 0 0 14px;
  font-style: italic;
}
.hp-intro-sub {
  font-size: 15px;
  color: var(--hp-ink-soft);
  margin: 0;
}

.hp-content {
  background: var(--hp-paper);
  border: 1px solid var(--hp-line);
  padding: 24px 28px;
  border-radius: 4px;
}
.hp-page-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: normal;
  border-bottom: 1px solid var(--hp-line-soft);
  padding-bottom: 8px;
  color: var(--hp-ink);
  font-variant: small-caps;
  letter-spacing: 0.03em;
}
.hp-prose {
  font-size: 16px;
  color: var(--hp-ink);
  white-space: pre-wrap;
}
.hp-empty {
  font-style: italic;
  color: var(--hp-ink-soft);
}
.hp-error {
  background: var(--hp-error-bg);
  color: var(--hp-error-fg);
  border: 1px solid #c08772;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 14px;
}

/* ── FAQ ────────────────────────────────────────────────────── */

.hp-faq-list { display: flex; flex-direction: column; gap: 6px; }

.hp-faq {
  border: 1px solid var(--hp-line-soft);
  border-radius: 3px;
  background: var(--hp-bg);
}
.hp-faq[open] {
  background: var(--hp-paper);
  border-color: var(--hp-line);
}
.hp-faq-q {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--hp-ink);
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.hp-faq-q::-webkit-details-marker { display: none; }
.hp-faq-q::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--hp-accent);
  font-weight: normal;
}
.hp-faq[open] .hp-faq-q::after { content: '–'; }

.hp-faq-a {
  padding: 0 14px 14px;
  color: var(--hp-ink);
  font-size: 15px;
  border-top: 1px solid var(--hp-line-soft);
  margin-top: 4px;
  padding-top: 10px;
  white-space: pre-wrap;
}
