/* ===================================================================
   Marathon Geeks — 2026 redesign
   Same wireframe as the 2004 original: header (logo + login),
   tab nav, content panel, footer. New skin: athletic navy + coral.
   =================================================================== */
:root {
  --navy: #2b2b2b;
  --navy-2: #383838;
  --navy-3: #8a5a1e;
  --coral: #e07b1a;
  --coral-dark: #c26a12;
  --gold: #f2b544;
  --bg: #f7f4ef;
  --card: #ffffff;
  --line: #e6e0d6;
  --text: #262626;
  --muted: #7d7568;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(43,43,43,.10), 0 8px 24px rgba(43,43,43,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--navy-3); }

/* ---------- header band ---------- */
#siteheader {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #454545 100%);
  color: #fff;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
#siteheader > .header-inner { padding-top: 22px; padding-bottom: 16px; }

#banner { min-width: 240px; }
.banner-logo { display: inline-block; line-height: 0; }
.logo-img {
  height: 84px; width: auto; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.banner-tag { color: #c8bfae; font-size: .85rem; margin-top: 6px; letter-spacing: .3px; }

/* ---------- login card ---------- */
#login {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 10px 16px; font-size: .82rem; color: #e9e2d6;
  backdrop-filter: blur(4px);
}
#login p { margin: 4px 0; }
#login form { margin: 4px 0; }
#login input[type=text], #login input[type=password] {
  width: 150px; margin: 2px 0; background: rgba(255,255,255,.92);
  border: 0; border-radius: 6px; padding: 5px 8px;
}
#login input[type=submit] { margin-top: 4px; }
#login label { color: #cdc4b4; }
.login-error { color: #ffb3a6; font-weight: 700; }

/* ---------- tab nav ---------- */
#tabmenu { background: rgba(0,0,0,.22); }
#tabmenu .header-inner { justify-content: flex-start; }
ul.tabs { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
ul.tabs li a {
  display: block; padding: 12px 18px; text-decoration: none;
  color: #cfc6b6; font-weight: 600; font-size: .92rem;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
ul.tabs li a:hover { color: #fff; border-bottom-color: rgba(224,123,26,.6); }
ul.tabs li a.active { color: #fff; border-bottom-color: var(--coral); }

/* ---------- layout ---------- */
#supercontainer { max-width: 1080px; margin: 0 auto; padding: 24px 20px 48px; }
#main {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; min-height: 420px;
}

/* ---------- home ---------- */
.home h3 { color: var(--navy); font-size: 1.5rem; margin-top: 0; }
.home .news {
  background: linear-gradient(90deg, #fdf4e7, #fffbf2);
  border-left: 4px solid var(--coral);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px; color: #7a4a20;
}
ul.features { padding-left: 0; list-style: none; }
ul.features li {
  margin: 10px 0; padding: 12px 16px 12px 44px; position: relative;
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px;
}
ul.features li::before {
  content: "\2713"; position: absolute; left: 16px; top: 11px;
  color: var(--coral); font-weight: 800;
}

/* ---------- tables ---------- */
table#table {
  border-collapse: separate; border-spacing: 0; width: 100%;
  margin: 14px 0; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
table#table th {
  background: var(--navy); color: #fff; padding: 10px 10px;
  text-align: center; font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .4px;
}
table#table th a { color: #fff; text-decoration: none; }
table#table th a:hover { color: var(--gold); }
table#table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: center; background: #fff; }
table#table tr:last-child td { border-bottom: 0; }
table#table tr:nth-child(even) td { background: #faf8f4; }
table#table tr:hover td { background: #fdf3e6; }
table#table td a { color: var(--coral-dark); font-weight: 600; text-decoration: none; }
table#table td a:hover { text-decoration: underline; }

/* ---------- search / filter panel ---------- */
.searchbox {
  background: #faf8f4; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 14px; font-size: .88rem; line-height: 2.1;
}
.searchbox label { margin-right: 12px; white-space: nowrap; }
.pager { margin: 10px 0; font-weight: 700; font-size: .9rem; color: var(--muted); }
.pager a { color: var(--coral-dark); text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ---------- maps + member page ---------- */
.maps { display: flex; flex-wrap: wrap; gap: 12px; }
.maps img {
  flex: 1 1 340px; min-width: 280px; max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); background: #fff;
}
.map-legend {
  margin: 12px 0 18px; padding: 8px 14px; background: #faf8f4;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; color: var(--muted); display: inline-block;
}
.seperator { font-weight: bold; color: #d5cdc0; }
.member-pic { max-width: 300px; height: auto !important; margin: 0 18px 10px 0; border-radius: 10px; box-shadow: var(--shadow); }
.member-info { line-height: 1.8; }
#main h3 { color: var(--navy); }
#main h3 a { color: var(--navy); }

/* ---------- profile wizard ---------- */
#profiletabs ul { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; border-bottom: 2px solid var(--line); }
#profiletabs li a {
  display: block; padding: 8px 16px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .88rem; border-radius: 8px 8px 0 0;
}
#profiletabs li a:hover { color: var(--navy); background: #f1ece3; }
#profiletabs li a.active { color: #fff; background: var(--navy); }

.forumline { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.forumline th { background: var(--navy); color: #fff; padding: 9px; font-size: .85rem; }
.forumline td { border-bottom: 1px solid var(--line); padding: 8px 10px; background: #fff; }
.forumline tr:nth-child(even) td { background: #faf8f4; }
.gensmall { font-size: .78rem; color: var(--muted); }
.catBottom { background: #f1ece3; }
.faq-answer { color: var(--navy-3); }

/* ---------- forms & buttons ---------- */
input[type=submit], input[type=button] {
  background: var(--coral); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 18px; cursor: pointer; font-weight: 700; font-size: .85rem;
  box-shadow: 0 2px 6px rgba(224,123,26,.3); transition: background .15s, transform .1s;
}
input[type=submit]:hover, input[type=button]:hover { background: var(--coral-dark); }
input[type=submit]:active, input[type=button]:active { transform: translateY(1px); }
input[type=text], input[type=password], input[type=email], input[type=date], select, textarea {
  border: 1px solid #cdd6e1; border-radius: 8px; padding: 6px 9px;
  font: inherit; font-size: .88rem; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(224,123,26,.35); outline-offset: 1px; border-color: var(--coral);
}

/* ---------- flash + notes + empty states ---------- */
.flash {
  padding: 11px 16px; border-radius: 10px; margin: 0 0 16px;
  font-weight: 600; font-size: .9rem;
  background: #eef7ec; border: 1px solid #bfe0b8; color: #2f6b28;
}
.flash-error { background: #fdeeec; border-color: #efc4bd; color: #a03325; }
.note { color: var(--muted); font-size: .85rem; font-style: italic; }
td.empty {
  padding: 26px 10px !important; color: var(--muted); font-style: italic;
  text-align: center !important;
}
.forgot-link { display: block; margin-top: 6px; font-size: .78rem; color: var(--gold); }
.narrow-form { max-width: 340px; }
.narrow-form input[type=password], .narrow-form input[type=email] { width: 100%; }

/* ---------- home stats ---------- */
.statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 0 0 22px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius); padding: 16px 10px;
  text-decoration: none; box-shadow: var(--shadow);
}
a.stat:hover { background: linear-gradient(160deg, var(--navy-2), #4a4a4a); }
.stat-n { font-size: 1.7rem; font-weight: 800; color: var(--gold); letter-spacing: -.5px; }
.stat-l { font-size: .78rem; color: #cfc6b6; text-transform: uppercase; letter-spacing: .6px; }

/* ---------- headings ---------- */
h1.pagetitle, h1.home-h1 { margin: 0 0 6px; font-size: 1.85rem; color: var(--navy); letter-spacing: -.5px; }
.home-lede { color: var(--muted); max-width: 60ch; margin: 0 0 22px; font-size: 1.02rem; }
h2.sec {
  margin: 30px 0 12px; font-size: 1.12rem; color: var(--navy);
  padding-bottom: 7px; border-bottom: 2px solid var(--line); font-weight: 700;
}
.sec-sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.morelink { font-size: .9rem; font-weight: 600; }
.morelink a, .cta a { text-decoration: none; }

/* ---------- profile hero ---------- */
.profile-hero {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
  padding: 22px; margin-bottom: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #4a4038 100%);
  color: #fff; box-shadow: var(--shadow);
}
.hero-pic {
  width: 128px; height: 128px; object-fit: cover; flex: none;
  border-radius: 14px; border: 3px solid rgba(255,255,255,.18);
}
.hero-initial {
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; font-weight: 800; color: var(--navy);
  background: linear-gradient(150deg, var(--gold), var(--coral));
}
.hero-body { flex: 1; min-width: 240px; }
.hero-body h1 { margin: 0; font-size: 2.1rem; color: #fff; letter-spacing: -.8px; }
.hero-realname { color: #cfc6b6; font-size: .95rem; margin-top: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 4px 12px; font-size: .78rem; color: #eae3d7;
}
.chip-type { background: var(--coral); border-color: var(--coral); color: #fff; font-weight: 700; }
a.chip-link { text-decoration: none; }
a.chip-link:hover { background: rgba(255,255,255,.22); }
.hero-quote {
  margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--gold);
  color: #e6dfd2; font-style: italic; font-size: .95rem;
}

/* ---------- PR cards ---------- */
.prgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.prcard {
  background: #faf8f4; border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: 10px; padding: 13px 16px;
}
.pr-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
.pr-time { font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1.15; }
.pr-where { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.profile-stats .stat-n .of { font-size: .9rem; opacity: .6; font-weight: 600; }

/* ---------- career chart ---------- */
.chartwrap {
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 12px 6px; overflow-x: auto;
}
svg.yearchart { width: 100%; height: auto; min-width: 320px; display: block; }
svg.yearchart rect { fill: var(--coral); transition: fill .12s; }
svg.yearchart .bar:hover rect { fill: var(--navy); }
svg.yearchart .yc-labels text { font-size: 9px; fill: var(--muted); font-family: inherit; }

/* ---------- 50-state progress ---------- */
.progress {
  height: 14px; background: #ece5da; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line);
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}
.trophy { color: var(--coral-dark); font-weight: 700; font-style: normal; }
.contbadges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.contbadge {
  padding: 5px 13px; border-radius: 999px; font-size: .78rem;
  background: #f1ece3; color: #b4a894; border: 1px solid var(--line);
}
.contbadge.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

/* ---------- about list ---------- */
.aboutlist {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px;
  margin: 0; font-size: .92rem;
}
.aboutlist dt { color: var(--muted); font-weight: 600; }
.aboutlist dd { margin: 0; }

/* ---------- owner bar ---------- */
.ownerbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 22px 0; padding: 14px 16px; background: #faf8f4;
  border: 1px dashed var(--line); border-radius: 10px;
}
.ownerbar .mailmap { margin: 0 0 0 auto; display: flex; gap: 6px; }
.btn {
  display: inline-block; background: var(--coral); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 8px 18px; font-weight: 700; font-size: .85rem;
  box-shadow: 0 2px 6px rgba(224,123,26,.3);
}
.btn:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: #f1ece3; color: var(--navy); }

/* ---------- race type tags ---------- */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: #ece5da; color: #6d6355;
}
.type-marathon { background: #fdefd7; color: #8a5a1e; }
.type-ultramarathon { background: #dff0dc; color: #2f6b28; }
.type-ironman { background: #dbe7f2; color: #2d5d8a; }
.type-half, .type-halfironman { background: #ececec; color: #5c5c5c; }
.type-charity { background: #fbe3f4; color: #94357c; }

/* ---------- map legend swatches ---------- */
.map-legend .lg {
  display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  margin: 0 5px 0 12px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15);
}
.map-legend .lg:first-child { margin-left: 0; }
.lg-charity { background: #c86fa0; } .lg-half { background: #b0a596; }
.lg-one { background: #f2b544; } .lg-mult { background: #bf3b21; }
.lg-ultra { background: #6f9c3d; } .lg-iron { background: #2b6b7f; }

/* ---------- geek cards (home) ---------- */
.geekgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.geekcard {
  display: flex; gap: 12px; align-items: center; text-decoration: none;
  background: #faf8f4; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s, transform .1s;
}
.geekcard:hover { border-color: var(--coral); transform: translateY(-1px); }
.gc-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), var(--coral));
  color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.gc-body { display: flex; flex-direction: column; min-width: 0; }
.gc-name { font-weight: 700; color: var(--navy); }
.gc-where, .gc-stats { font-size: .78rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 26px; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
}
.cta-text { font-size: 1rem; }

/* ---------- footer ---------- */
#copyright { margin-top: 22px; color: #a39a8b; font-size: .78rem; }
.footlinks { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.footlinks a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footlinks a:hover { color: var(--coral-dark); }
.footmeta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 10px; }

/* ---------- legacy store pages ---------- */
#main img { max-width: 100%; }
#main table td { vertical-align: top; }
#main table[border] { border: 1px solid var(--line) !important; border-radius: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  #login { width: 100%; }
  ul.tabs { overflow-x: auto; flex-wrap: nowrap; }
  ul.tabs li a { padding: 11px 12px; font-size: .84rem; white-space: nowrap; }
  #main { padding: 18px 14px; }
  table#table { display: block; overflow-x: auto; }
}
