/* ==========================================================================
   Draw Strategies — shared foundation for the member-facing side
   (public website, sign-in pages, member portal, Hunt Planner).

   Change a color or the font here and every member-facing page follows.
   The operator console has its own palette at the top of console.css.
   Load order on every page: base.css → area file → utilities.css
   Guide to every file, and the open design decisions: docs/Stylesheets-Guide.md
   ========================================================================== */

:root{
  /* The brand, from the designer's style sheet (2026-11-17). Each
     setting names the job the style sheet gave it. */
  --bar:#373724;         /* the top bar behind the logo and menu */
  --bar-text:#cabeae;    /* menu words on the top bar */
  --bar-line:#a65c32;    /* the line under the page you're on */
  --bar-dim:#8d8676;     /* outlines and quieter words on the top bar */
  --button:#934829;      /* buttons */
  --button-hover:#7a3b21;/* a button you point at */
  --heading:#1e3226;     /* headlines */
  --heading-alt:#595336; /* small labels over a headline, table headings */
  --box:#595336;         /* outlines on boxes that need to stand out */
  --step-on:#934829;     /* progress steps done and current */
  --step-off:#bab9a6;    /* progress steps still ahead */
  --map-pick:#babdb4;    /* a picked state's button beside the map */

  /* The designer's home-page layout (2026-11-17), taken from his page */
  --band-dark:#2b2b2b;   /* the dark "Your goals. Our game plan." band */
  --band-earth:#36302d;  /* behind "Two ways to get started" (under his topographic background) */
  --cream:#faf1e7;       /* the two cards under "Two ways to get started" */
  --map-chosen:#a65c32;  /* a state picked on the home map and in the Hunt Planner */
  --photo-shade:rgba(0,0,0,.5); /* darkens a photo behind white words */

  /* Neutrals, warmed to sit on the brand's off-white */
  --ink:#171717;         /* main text */
  --gray:#66625a;        /* secondary text */
  --faint:#9a958b;       /* labels, hints, small print */
  --line:#e2ddd5;        /* borders and dividers */
  --bg:#f4f0ef;          /* page background */
  --card:#fff;           /* cards, footer */
  --soft:#efeae4;        /* subtle fills: notices, pills */
  --line-strong:#d0ccc8; /* stronger lines and quiet fills: map outlines, disabled buttons, placeholders */
  --line-dark:#bab9a6;   /* outlines that must show; hover on gray map areas */
  --dark:#373724;        /* dark notices such as form errors */
  --on-dark:#fff;        /* text and icons on dark or green fills */

  /* Brand greens: maps, chosen items, completed steps */
  --green:#6c7a4a;
  --green-dark:#1e3226;  /* hover on green */
  --green-mid:#babdb4;   /* partial matches, secondary green */
  --green-soft:#edefe9;  /* light green backgrounds */
  --green-mid-dark:#939b7f; /* hover on green-mid */
  --green-deep:#1e3226;  /* text on green-mid */

  /* Maps: the US map, the Hunt Planner map and hunt-unit maps */
  --map-live:#6c7a4a;    /* states we cover */
  --map-hover:#1e3226;   /* a state you point at or pick */
  --map-off:#d0ccc8;     /* states and units with nothing to show */
  --map-land:#f4f0ef;    /* the land around hunt units */

  /* Status */
  --error:#b33;          /* error text */
  --success:#176b33;     /* success text */
  --alert:#ed1c24;       /* the count of new updates by Updates in the menu (the designer's red) */

  /* See-through layers */
  --shade:rgba(0,0,0,.08);        /* shadows and hover tints */
  --shade-strong:rgba(0,0,0,.14); /* shadow on hover */
  --veil:rgba(255,255,255,.9);    /* white over pictures */

  /* Type: the fonts load from Google Fonts in each area's base template.
     Figtree stands in for the style sheet's Azo Sans until it's licensed. */
  --font:'Figtree',Arial,sans-serif;                          /* body text */
  --font-head:'Barlow Condensed','Arial Narrow',Arial,sans-serif; /* headlines, menu, buttons */
}

*{box-sizing:border-box;}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;}
a{color:var(--ink);}
h1,h2{font-family:var(--font-head);font-weight:700;color:var(--heading);}
h3{font-family:var(--font-head);font-weight:600;color:var(--heading);}

/* ---- The top bar: the logo and the menu on the brand's dark olive ---- */
header{background:var(--bar);color:var(--bar-text);}
.logo{line-height:0;}
.logo a{display:inline-block;}
.logo-img{display:block;height:40px;width:auto;}
header nav a{font-family:var(--font-head);font-weight:600;font-size:16px;letter-spacing:.05em;text-transform:uppercase;color:var(--bar-text);text-decoration:none;border-bottom:3px solid transparent;}
header nav a:hover{color:var(--on-dark);}
header nav a.on{color:var(--on-dark);border-bottom-color:var(--bar-line);}
header .btn.ghost{color:var(--bar-text);border-color:var(--bar-dim);}
header .btn.ghost:hover{color:var(--on-dark);border-color:var(--bar-text);}

/* The designer's animal and weapon drawings */
.animal-icon,.weapon-icon,.title-icon{display:inline-block;object-fit:contain;flex:none;}
.title-icon{width:40px;height:40px;vertical-align:-7px;margin-right:12px;}

/* An expandable section's clickable title */
.fold{cursor:pointer;font-weight:700;}

/* ---- Buttons: one set for the whole member side ---- */
.btn{display:inline-block;background:var(--button);color:var(--on-dark);border:0;border-radius:9px;padding:9px 18px;font-family:var(--font-head);font-size:16px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;line-height:1.35;cursor:pointer;text-decoration:none;}
.btn:hover{background:var(--button-hover);}
.btn.ghost{background:none;color:var(--button);border:1.5px solid var(--button);}
.btn.ghost:hover{background:var(--soft);}
.btn.lg{padding:12px 28px;font-size:18px;border-radius:11px;}   /* large */
.btn.sm{padding:5px 14px;font-size:15px;}                       /* small */
.btn.xs{padding:3px 12px;font-size:14px;}                       /* extra small */

/* ---- Card entry: Stripe draws the fields inside .card-entry ---- */
.card-entry{max-width:520px;margin:4px 0 0;}
.card-error{color:var(--error);font-size:14px;min-height:20px;margin:8px 0 6px;}
.card-entry + .card-error:empty{margin:4px 0;}
.btn:disabled{background:var(--line-strong);cursor:default;}

/* Zoom buttons on a unit map (static/js/unitzoom.js): the state page and
   the Hunt Planner's units step. The map's box needs position:relative. */
.zoom{position:absolute;top:16px;left:16px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:2;}
.zbtn{min-width:40px;height:40px;border:1.5px solid var(--box);border-radius:9px;background:var(--card);color:var(--ink);font:700 24px/1 var(--font);cursor:pointer;box-shadow:0 1px 3px var(--shade);}
.zbtn:hover{border-color:var(--button);color:var(--button);}
.zbtn.whole{font:600 15px/1 var(--font-head);text-transform:uppercase;letter-spacing:.03em;padding:0 10px;}
@media (max-width:520px){
  /* on a phone the buttons sit above the map, not over it */
  .zoom{position:static;flex-direction:row;margin:0 0 6px;}
}
