:root {
  --lodge-green: #6b0f2a;
  --lodge-green-light: #8e1a3c;
  --lodge-green-dark: #3f0816;
  --lodge-gold: #f0b400;
  --lodge-gold-bright: #ffd34d;
  --ink: #1b212b;
  --paper: #f7f2f8;
  --lilac: #e0c8ee;
  /* raffle ticket: lilac accent behind the holder's name */
  --ticket-holder-bg: rgba(224, 200, 238, 0.45);
  --ticket-cream: #fcf6ec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: #26202a;
  line-height: 1.6;
}
a { color: var(--lodge-green); }
img { max-width: 100%; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--lodge-green-dark);
  border-bottom: 3px solid var(--lodge-gold);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--lodge-gold-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { height: 2.2rem; }
.topbar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar nav a {
  color: #f3e3ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a.active {
  color: var(--lodge-gold-bright);
  border-bottom-color: var(--lodge-gold);
}

.hero {
  background: linear-gradient(160deg, var(--lodge-green-dark), var(--lodge-green));
  color: #f6ecf1;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--lodge-gold-bright);
}
.hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; opacity: 0.92; }

.container { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-title {
  color: var(--lodge-green);
  border-bottom: 2px solid var(--lodge-gold);
  padding-bottom: 0.4rem;
  margin: 2.5rem 0 1rem;
}
.section-title:first-child { margin-top: 0; }

.card {
  background: #fff;
  border: 1px solid #e3d9e6;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.officer-card { text-align: center; }
.officer-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lodge-gold);
  margin-bottom: 0.6rem;
}
.officer-card .name { font-weight: 700; color: var(--lodge-green); }
.officer-card .position { font-size: 0.85rem; color: #6b5f6b; }

.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e3d9e6;
}
.event-card:last-child { border-bottom: none; }
.event-date-block {
  flex-shrink: 0;
  width: 68px;
  text-align: center;
  background: var(--lodge-green);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
}
.event-date-block .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-block .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lodge-gold-bright); }
.event-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.event-type-badge.type-meeting { background: #ece0f3; color: var(--lodge-green); }
.event-type-badge.type-gathering { background: #f6ecc9; color: #7a5d00; }
.event-type-badge.type-social { background: #f0e0e6; color: #8a1f5a; }
.event-title { font-weight: 700; color: var(--lodge-green); }
.event-meta { font-size: 0.85rem; color: #6b5f6b; margin-top: 0.15rem; }

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--lodge-gold);
  margin: 1.5rem 0;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b5f6b;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -2px;
}
.admin-tab-btn:hover { color: var(--lodge-green); }
.admin-tab-btn.active { color: var(--lodge-green); border-bottom-color: var(--lodge-green); }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e3d9e6;
}
.stat-row:last-child { border-bottom: none; }
.stat-count {
  font-weight: 700;
  color: var(--lodge-green);
  background: #ece0f3;
  border-radius: 6px;
  padding: 0.15rem 0.7rem;
  min-width: 2.5rem;
  text-align: center;
}

.placeholder-badge {
  display: inline-block;
  background: #fff3cd;
  border: 1px dashed var(--lodge-gold);
  color: #7a5d00;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.3rem;
}

form.stacked { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
form.stacked label { font-weight: 600; font-size: 0.9rem; color: var(--lodge-green); }
form.stacked input, form.stacked textarea, form.stacked select {
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #cdbfd3;
  font-family: inherit;
  width: 100%;
}
form.stacked textarea { resize: vertical; min-height: 110px; }

.floating-donate-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(160deg, var(--lodge-gold-bright), var(--lodge-gold));
  color: var(--lodge-green-dark) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--lodge-green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.floating-donate-btn img { height: 1.1rem; }
.floating-donate-btn:hover { background: var(--lodge-gold-bright); }

.btn {
  display: inline-block;
  background: var(--lodge-green);
  color: #fff !important;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  align-self: flex-start;
}
.btn:hover { background: var(--lodge-green-light); }
.btn.secondary { background: transparent; border: 2px solid var(--lodge-gold); color: var(--lodge-green) !important; }
.btn.gold { background: var(--lodge-gold); color: var(--lodge-green-dark) !important; }
.btn.gold:hover { background: var(--lodge-gold-bright); }

.apply-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.apply-nav .btn { font-size: 1.05rem; padding: 0.85rem 1.8rem; }
html { scroll-behavior: smooth; }

.tenets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.tenet { text-align: center; padding: 1rem; }
.tenet .glyph { font-size: 2rem; color: var(--lodge-gold); }
.tenet h3 { color: var(--lodge-green); margin: 0.4rem 0; }

.success-box {
  background: #eaf6ec;
  border: 1px solid #8fcf9a;
  color: #1a5c2a;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b5f6b;
  font-size: 0.85rem;
  border-top: 1px solid #e3d9e6;
  margin-top: 2rem;
}

/* ---- membership application wizard ---- */
.apply-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 0 0 1rem; }
.apply-part { background: #fff; border: 1px solid #e3d9e6; border-top: 4px solid var(--lodge-green); border-radius: 10px; padding: 1.1rem 1.3rem; }
.apply-part h3 { margin: .4rem 0 .4rem; color: var(--lodge-green); }
.apply-part p { margin: 0 0 .7rem; font-size: .95rem; }
.apply-part-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--lodge-green); color: var(--lodge-gold-bright); border-radius: 999px; padding: .15rem .7rem; }
.apply-part-tag.alt { background: var(--lodge-gold); color: var(--lodge-green-dark); }
.doc-list { margin: 0 0 .8rem; padding-left: 1.3rem; font-weight: 600; }
.doc-list li { margin: .25rem 0; }

.wizard { max-width: none; }
.wiz-progress { display: flex; list-style: none; margin: 0 0 .6rem; padding: 0; gap: .25rem; justify-content: space-between; }
.wiz-progress li { flex: 1; text-align: center; font-size: .78rem; color: #85788a; }
.wiz-progress .dot { display: block; width: 2rem; height: 2rem; line-height: 2rem; margin: 0 auto .2rem; border-radius: 50%; background: #e3d9e6; color: #5d5360; font-weight: 700; }
.wiz-progress li.active .dot { background: var(--lodge-green); color: var(--lodge-gold-bright); box-shadow: 0 0 0 3px rgba(240,180,0,.5); }
.wiz-progress li.done .dot { background: var(--lodge-gold); color: var(--lodge-green-dark); cursor: pointer; }
.wiz-progress li.active .lbl { color: var(--lodge-green); font-weight: 700; }
.wiz-bar { height: 5px; background: #e3d9e6; border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.wiz-bar-fill { height: 100%; width: 25%; background: linear-gradient(90deg, var(--lodge-green), var(--lodge-gold)); transition: width .3s; }
.wiz-step h3 { color: var(--lodge-green); margin: 0 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--lodge-gold); }
.wiz-js .wiz-step[hidden] { display: none; }
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.wiz-field { display: flex; flex-direction: column; gap: .3rem; }
.wiz-field.full { grid-column: 1 / -1; }
.wiz-field label { font-weight: 600; font-size: .9rem; color: var(--lodge-green); display: block; }
.yn-details label { font-weight: 600; font-size: .9rem; color: var(--lodge-green); display: flex; flex-direction: column; gap: .3rem; }
.wiz-field input, .wiz-field textarea, .yn-details input { font: inherit; padding: .65rem .75rem; border: 1px solid #cdbfd3; border-radius: 8px; width: 100%; background: #fff; }
.wiz-field input:focus, .wiz-field textarea:focus, .yn-details input:focus { outline: 2px solid var(--lodge-gold); border-color: var(--lodge-green-light); }
.wiz-field input.bad, .wiz-field textarea.bad { border-color: #c0392b; background: #fff6f5; }
.req { color: #c0392b; }
.yn-field { background: #faf6fb; border: 1px solid #ece0f3; border-radius: 10px; padding: .8rem 1rem; }
.yn-field.bad { border-color: #c0392b; background: #fff6f5; }
.yn-q { font-weight: 600; font-size: .95rem; color: var(--lodge-green); margin-bottom: .5rem; }
.yn { display: flex; gap: .6rem; }
.yn-opt { cursor: pointer; }
.yn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.yn-opt span { display: inline-block; min-width: 4.5rem; text-align: center; padding: .4rem 1rem; border-radius: 999px; border: 2px solid #cdbfd3; background: #fff; font-weight: 700; color: #5d5360; }
.yn-opt input:checked + span { background: var(--lodge-green); border-color: var(--lodge-green); color: var(--lodge-gold-bright); }
.yn-opt input:focus-visible + span { outline: 2px solid var(--lodge-gold); outline-offset: 2px; }
.yn-details { margin-top: .7rem; display: grid; gap: .7rem; }
.yn-details[hidden] { display: none; }
.upload { background: #faf6fb; border: 1px dashed var(--lodge-gold); border-radius: 10px; padding: .8rem 1rem; }
.upload input[type=file] { border: 0; padding: .3rem 0; background: transparent; }
.upload .num { display: inline-block; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; background: var(--lodge-green); color: var(--lodge-gold-bright); font-size: .8rem; margin-right: .3rem; }
.muted-note { margin: -.4rem 0 1rem; color: #6b5f6b; }
.partb-note { margin: 1.2rem 0; padding: .8rem 1rem; background: #fff8dc; border: 1px solid var(--lodge-gold); border-radius: 8px; }
.declare { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; margin-top: 1rem; cursor: pointer; }
.declare input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #e3d9e6; }
.wiz-nav .btn { align-self: auto; }
.wiz-count { color: #85788a; font-size: .85rem; flex: 1; text-align: center; }
@media (max-width: 640px) {
  .wiz-grid { grid-template-columns: 1fr; }
  .wiz-progress .lbl { display: none; }
  .wiz-count { display: none; }
}

/* ---- contact people ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 1.5rem; }
.contact-card { background: #fff; border: 1px solid #e3d9e6; border-top: 4px solid var(--lodge-gold); border-radius: 10px; padding: 1.1rem 1.2rem; }
.contact-rank { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6a00; }
.contact-name { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--lodge-green); margin: .15rem 0 .5rem; }
.contact-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--lodge-green); text-decoration: none; }
.contact-phone:hover { text-decoration: underline; }
.contact-wa { display: inline-block; margin-left: .6rem; font-size: .8rem; font-weight: 700; color: #1b7f4b; text-decoration: none; border: 1px solid #1b7f4b; border-radius: 999px; padding: .05rem .6rem; }

/* ---- lodge introduction on the front page ---- */
.intro-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.intro-banner { text-align: center; }
.intro-banner img { width: 100%; max-width: 240px; border-radius: 6px; border: 3px solid var(--lodge-gold); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.intro-banner figcaption { font-size: .8rem; color: #6b5f6b; margin-top: .5rem; font-style: italic; }
.intro-text p { margin: 0 0 1rem; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.6rem; }
.tl-item { border-left: 4px solid var(--lodge-gold); padding: .2rem 0 .2rem .8rem; }
.tl-year { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--lodge-green); line-height: 1; }
.tl-text { font-size: .88rem; color: #5d5360; margin-top: .25rem; }
@media (max-width: 720px) { .intro-grid { grid-template-columns: 1fr; } .intro-banner { order: -1; } }
