
/* TN Pride Co‑op — theme-hrc.css (v2.4.0) */
/* Additive stylesheet; include AFTER /assets/styles.css */

:root{
  --primary:#0d6efd;
  --link:#0d6efd;
  --bg:#ffffff;
  --text:#111111;
  --border:#e5e7eb;
}

/* Type scale */
html { font-size: 18px; }
body { line-height: 1.6; letter-spacing: .01em; color: var(--text); background: var(--bg); }
h1, .h1 { font-weight: 800; line-height: 1.15; margin: 0 0 .4em; font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
h2, .h2 { font-weight: 800; line-height: 1.2;  margin: 1em 0 .5em; font-size: clamp(1.5rem, 1.8vw + 1rem, 2.125rem); }
h3, .h3 { font-weight: 700; line-height: 1.25; margin: .9em 0 .5em; font-size: 1.375rem; }

/* Layout rhythm */
.container { max-width: 1200px; }
.section { padding: 56px 0; }
.hero { padding: 72px 0; background: #f3f6ff; }

/* Header / nav */
header.site { padding: 10px 0; background:#fff; border-bottom:1px solid var(--border); }
header.site nav { gap: 14px !important; flex-wrap: wrap; }
header.site nav .navpill {
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; border: none; padding: 10px 12px;
  position: relative; color: var(--text);
}
header.site nav .navpill:after {
  content:""; position:absolute; left:10px; right:10px; bottom:4px; height:2px;
  background: transparent; transition: background .2s;
}
header.site nav .navpill:hover:after { background: var(--primary); }

/* Buttons */
.btn { padding: 10px 16px; font-weight: 700; border-radius: 10px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn-primary:hover { filter: brightness(.96); transform: translateY(-1px); transition: transform .15s; }

/* Cards & tiles */
.cards { gap: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.card.small { padding: 12px; }
.card .item-name { font-weight: 800; }
.logo-wrap img { max-height: 86px; border-radius: 8px; }

/* Inputs */
label { display:block; margin: 10px 0; font-weight: 600; }
input, select, textarea { padding: 12px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--text); }
input::placeholder, textarea::placeholder { color:#888; }

/* Footer */
footer.site-footer { padding: 40px 0; background:#fff; border-top:1px solid var(--border); }
.footer-links a { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 12px; }

/* Favorites state */
.fav-form .active { background:#ffe5ea; border-color:#ffd1db; }

/* Admin polish */
.admin-subnav { display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 18px; }
.admin-subnav a { border:1px solid var(--border); border-radius: 999px; padding: 8px 12px; text-decoration:none; }
.admin-subnav a:hover { background:#f6f8ff; }
.table { width:100%; border-collapse: collapse; background:#fff; border-radius:12px; overflow:hidden; }
.table th, .table td { padding:12px 10px; border-bottom:1px solid var(--border); text-align:left; }
.table thead th { background:#f8f9fb; font-weight:700; }
.table tr:hover { background:#fafcff; }
.table .actions a, .table .actions button { margin-right:6px; }
.alert { padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.alert.ok { border-color:#d1e7dd; background:#f0fff7; }
.alert.err { border-color:#f8d7da; background:#fff5f5; }

/* Utility bands used on homepage; safe globally */
.band-blue{ background: linear-gradient(135deg, #0d6efd 0%, #133eaa 100%); color:#fff; }
.band-sky{ background:#f3f6ff; }
.band-cream{ background:#fff8e6; }
.band-pink{ background:#fff0f3; }

/* Accessible focus */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(13,110,253,.35); outline-offset: 2px;
}
/* --- Button & link hover contrast fixes --- */
:root { --brand-blue: #1e40af; } /* deep accessible blue */

.btn { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }

/* Primary (blue) buttons: invert on hover -> white bg, blue text */
.btn-primary {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(30,64,175,.2);
}

/* Generic buttons that become light on hover: ensure text stays blue */
.btn:hover,
.btn:focus-visible { color: var(--brand-blue); }

/* Nav pills: white hover with blue text/border */
header.site nav a.navpill:hover {
  background: #fff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Inline links: keep simple, readable hover */
a:hover { color: var(--brand-blue); text-decoration: underline; }
