/* Edward and Alexandra Lodge No. 3171 — site styles */

:root {
  --navy: #12233F;
  --navy-dark: #0D1B30;
  --parchment: #F7F2E7;
  --parchment-alt: #EFE9D8;
  --card-bg: #FFFDF7;
  --border: #E4D9BE;
  --border-strong: #D9C99A;
  --gold: #D4AF6A;
  --gold-dark: #B8902F;
  --text: #1B2A41;
  --text-muted: #4A5568;
  --text-soft: #C9D2E0;
  --placeholder: #A08A54;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }

/* The [hidden] attribute must always win, even on elements whose class also
   sets display:flex/grid (e.g. .login-card, .field) — those ties otherwise
   let the later class rule override the browser's default display:none. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--parchment);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 10;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--navy);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--parchment);
}

.brand-sub {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Seasonal badge — quietly added by assets/seasonal.js during Remembrance
   week, St George's Day and Christmas, as a corner accent overlapping the
   header's left edge. Inert the rest of the year (the script simply never
   inserts it). Positioned absolutely against .site-header .container,
   which is already position:relative. */
.seasonal-badge {
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
@media (max-width: 860px) {
  .seasonal-badge { width: 46px; height: 46px; left: -4px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--parchment);
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-link.active { color: var(--parchment); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: #c9a44a; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--parchment);
}
.btn-outline:hover { background: rgba(247, 242, 231, 0.08); }

.btn-navy {
  background: var(--navy);
  color: var(--parchment);
}
.btn-navy:hover { opacity: 0.9; }

.nav-cta { padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { stroke: var(--parchment); }

/* ---------- Hero ---------- */

.hero {
  background-color: var(--navy);
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; z-index: 1; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--parchment);
  max-width: 900px;
  line-height: 1.15;
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 620px;
  line-height: 1.75;
}

.hero p.tagline {
  font-style: italic;
  font-size: 19px;
  color: var(--text-soft);
}

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.hero-small {
  padding: 60px 0;
}
.hero-small h1 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background-color: var(--parchment-alt); position: relative; overflow: hidden; }
.section-alt > .container { position: relative; z-index: 1; }

/* Sections that sit directly above another section of the same background
   colour have no visual break between them, so the two full paddings read
   as one oversized gap. Trim the bottom padding just for those specific
   joins, site-wide, while every section that ends where the background
   actually changes colour keeps the full padding.
   Homepage: gallery slideshow -> Welcome.
   About Us: Our Banner -> Our Values -> Past Masters. */
[data-slideshow-section],
[data-banner-section],
[data-values-section] { padding-bottom: clamp(24px, 4vw, 40px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.two-col {
  display: flex;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  flex-wrap: wrap;
}
.two-col > * { flex: 1 1 380px; }

.placeholder-box {
  background: var(--parchment-alt);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
}
.placeholder-box.has-photo { padding: 0; overflow: hidden; }
.placeholder-box.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px;
}

.pillar-card {
  background: var(--card-bg);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-card svg { stroke: var(--gold-dark); }
.pillar-card h3 { font-size: 20px; }
.pillar-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.value-card svg { flex-shrink: 0; stroke: var(--gold-dark); margin-top: 2px; }
.value-card h3 { font-size: 19px; margin-bottom: 6px; }
.value-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ---------- History timeline (About Us) ---------- */
.history-timeline { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.history-entry { border-left: 3px solid var(--gold); padding-left: 24px; }
.history-entry .era {
  display: block; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; margin-bottom: 6px;
}
.history-entry h3 { font-size: 20px; margin-bottom: 10px; }
.history-entry p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--text-muted); }
.history-attribution {
  text-align: center; font-size: 13.5px; color: var(--placeholder); font-style: italic;
  margin: 6px 0 0; padding-top: 24px; border-top: 1px solid var(--border);
}

.entry-photos {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px;
}
.entry-photos figure {
  margin: 0; flex: 1 1 200px; max-width: 260px;
}
.entry-photos img {
  width: 100%; height: 170px; object-fit: cover;
  border: 1px solid var(--border-strong); border-radius: 4px; display: block; background: var(--card-bg);
}
.entry-photos figcaption {
  font-size: 12.5px; color: var(--placeholder); text-align: center; margin-top: 8px; font-style: italic;
}

.banner-history-row {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
}
.banner-history-row figure {
  margin: 0; flex: 1 1 220px; max-width: 260px; text-align: center;
}
.banner-history-row img {
  width: 100%; aspect-ratio: 1086 / 1448; object-fit: contain;
  border: 4px double var(--gold); border-radius: 2px; display: block; background: var(--card-bg);
}
.banner-history-row figcaption {
  font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.55;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px;
  display: flex;
  gap: 20px;
}
.event-date {
  width: 68px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 4px;
  text-align: center;
  padding: 10px 0;
}
.event-date .mon { color: var(--gold); font-size: 11.5px; letter-spacing: 0.06em; display: block; }
.event-date .day { color: var(--parchment); font-size: 22px; font-weight: 700; font-family: var(--font-display); display: block; }
.event-body { display: flex; flex-direction: column; gap: 6px; }
.event-tag { font-size: 12px; letter-spacing: 0.06em; color: var(--gold-dark); font-weight: 600; }
.event-body h3 { font-size: 18px; }
.event-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.chip.active { background: var(--navy); color: var(--parchment); border-color: var(--navy); }

/* ---------- Gallery / slideshow ---------- */

.gallery-frame { display: flex; align-items: center; gap: 18px; }
.slide-box {
  flex-grow: 1;
  min-height: 380px;
  background: var(--parchment-alt);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.slide-box svg { stroke: var(--placeholder); }
.slide-caption { font-size: 15px; letter-spacing: 0.04em; color: var(--placeholder); }
.slide-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.slide-arrow:hover { background: var(--navy); }
.slide-arrow:hover svg { stroke: var(--parchment); }
.slide-arrow svg { stroke: var(--navy); }
.dots { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong); border: none; padding: 0; cursor: pointer;
}
.dot.active { background: var(--gold); }
.slide-counter { margin-left: 10px; font-size: 13.5px; color: var(--placeholder); }
.gallery-note { text-align: center; font-size: 13.5px; color: var(--placeholder); font-style: italic; margin-top: 16px; }

/* ---------- CTA band ---------- */

.cta-band {
  background-color: var(--navy);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 1; }
.cta-band h2 { color: var(--parchment); font-size: 30px; }
.cta-band p { margin: 0; color: var(--text-soft); max-width: 540px; line-height: 1.7; }

/* ---------- Steps (Join Us) ---------- */

.steps { display: flex; gap: 0; flex-wrap: wrap; }
.step { flex: 1 1 220px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
}
.step h3 { font-size: 17px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Matches the "WHERE WE MEET" .card on the Contact page — same corner
   radius and padding as the other boxes in that layout. */
.contact-form-card { border-radius: 4px; padding: 30px; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold-dark); }
.form-status {
  font-size: 14px;
  color: var(--gold-dark);
  display: none;
}
.form-status.visible { display: block; }
.form-status.error { color: #9C2B2B; }

/* Honeypot field for the Contact / Join Us forms — invisible to real
   visitors and screen readers' tab order, but a bot's form-filler will
   often fill it in, which is how we quietly detect it. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-detail-list { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail svg { flex-shrink: 0; stroke: var(--gold-dark); margin-top: 2px; }
.contact-detail .label { font-size: 13px; color: var(--placeholder); display: block; }
.contact-detail .value { font-size: 15.5px; color: var(--navy); line-height: 1.6; }

/* ---------- Activities Manager ---------- */

.admin-header {
  background: var(--navy);
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.admin-pill {
  color: var(--text-soft);
  font-size: 14px;
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid var(--gold);
  padding: 7px 18px;
  border-radius: 20px;
}

.manager-list { display: flex; flex-direction: column; gap: 16px; }
.manager-row {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.manager-row:hover { border-color: var(--gold); }
.manager-row.dragging { opacity: 0.4; }
.manager-row.drag-over { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold); }
.drag-handle { flex-shrink: 0; stroke: none; }
.manager-date {
  width: 72px; flex-shrink: 0; text-align: center;
  background: var(--navy); border-radius: 4px; padding: 9px 0;
  color: var(--gold); font-size: 12.5px; font-weight: 600;
}
.manager-body { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.manager-body .cat { font-size: 11.5px; letter-spacing: 0.06em; color: var(--gold-dark); font-weight: 600; }
.manager-body h3 { font-size: 18px; }
.manager-actions { display: flex; gap: 10px; flex-shrink: 0; }
.arrow-btn {
  width: 50px; height: 50px; border-radius: 6px; border: 2px solid var(--navy);
  background: var(--card-bg); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.arrow-btn svg { stroke: var(--navy); }
.arrow-btn:hover:not(:disabled) { background: var(--navy); }
.arrow-btn:hover:not(:disabled) svg { stroke: var(--parchment); }
.arrow-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.add-activity-box {
  border: 2px dashed #C9B67F;
  background: var(--parchment-alt);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.add-activity-box svg { stroke: var(--gold-dark); flex-shrink: 0; }
.add-activity-text { display: flex; flex-direction: column; gap: 4px; }
.add-activity-text strong { font-family: var(--font-display); font-size: 17px; color: var(--navy); }
.add-activity-text span { font-size: 14px; color: var(--text-muted); }

.help-band {
  background: var(--navy);
  padding: 32px 0;
  display: flex;
}
.help-band .container { display: flex; align-items: center; gap: 16px; }
.help-band svg { stroke: var(--gold); flex-shrink: 0; }
.help-band p { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

/* ---------- Footer ---------- */

.site-footer { background-color: var(--navy-dark); padding: 56px 0 30px; margin-top: auto; position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-top { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; margin-bottom: 36px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer-col.brand-col { flex: 1.4 1 260px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.footer-brand span { font-family: var(--font-display); font-size: 16px; color: var(--parchment); }
.footer-col p { margin: 0; font-size: 14px; line-height: 1.7; color: #90A0B8; max-width: 380px; }
.footer-heading { font-size: 12.5px; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--text-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-rule { height: 1px; background: #223350; margin-bottom: 26px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-approval { margin: 0; font-size: 13.5px; color: var(--gold); font-weight: 600; }
.footer-approval a:hover { color: var(--parchment) !important; }
.footer-copy { margin: 0; font-size: 13px; color: #6E7F99; }

/* ---------- Watermark crest ---------- */
/* One single mark, fixed to the viewport so it sits as a layer on top of
   every section's colour and never resets, crops, or duplicates as the
   page scrolls. */

.wm-crest-fixed {
  position: fixed;
  top: 90px;
  right: -104px;
  height: 709px;
  width: auto;
  opacity: 0.517;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .wm-crest-fixed { height: 459px; right: -68px; }
}

@media (max-width: 560px) {
  .wm-crest-fixed { height: 291px; right: -44px; }
}

/* ---------- Committee area (login + dashboard) ---------- */

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 92px); padding: 40px 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.login-card h1 { font-size: 24px; margin: 0; }
.login-card p.sub { margin: -12px 0 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

.login-loading { align-items: center; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--gold-dark);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg { font-size: 14px; line-height: 1.6; padding: 12px 16px; border-radius: 4px; display: none; }
.form-msg.visible { display: block; }
.form-msg.error { background: #FBEAEA; color: #9C2B2B; border: 1px solid #E7B8B8; }
.form-msg.success { background: #EAF3EA; color: #2B6B2F; border: 1px solid #B8DABA; }

.recovery-key-box {
  font-family: monospace; font-size: 18px; letter-spacing: 0.06em; text-align: center;
  background: var(--navy); color: var(--gold); padding: 20px 16px; border-radius: 6px; word-break: break-all;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; border-bottom: 1px solid var(--border); }
.tab-btn {
  border: none; background: none; cursor: pointer; padding: 12px 4px; margin-right: 24px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-help { font-size: 14.5px; color: var(--text-muted); margin: 0 0 22px; max-width: 640px; line-height: 1.6; }
.tab-count {
  display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 10px;
  background: var(--gold); color: var(--navy); font-size: 11.5px; font-weight: 700; vertical-align: 2px;
}

.messages-list { display: flex; flex-direction: column; gap: 16px; }
.messages-empty { font-size: 15px; color: var(--text-muted); padding: 30px 0; text-align: center; font-style: italic; }
.message-card { border: 2px solid var(--border); border-radius: 6px; background: var(--card-bg); padding: 18px 20px; }
.message-card:hover { border-color: var(--gold); }
.message-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.message-form-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 3px;
  background: var(--navy); color: var(--gold); flex-shrink: 0;
}
.message-form-badge.join { background: var(--gold-dark); color: var(--navy); }
.message-date { font-size: 13px; color: var(--text-muted); }
.message-top .remove-btn { margin-left: auto; width: 34px; height: 34px; font-size: 15px; }
.message-name { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; color: var(--navy); font-weight: 700; }
.message-contact { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); }
.message-contact a { color: var(--navy); font-weight: 600; }
.message-subject { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.message-text { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); white-space: pre-wrap; }

.manager-row.editable { flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; }
.manager-row.editable .row-top { display: flex; align-items: center; gap: 14px; width: 100%; }
.manager-row.editable .row-fields { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 220px; }
.manager-row.editable input[type="text"],
.manager-row.editable select,
.manager-row.editable textarea {
  box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid var(--border-strong);
  border-radius: 4px; font-size: 14.5px; font-family: var(--font-body); color: var(--text); background: #fff;
}
.manager-row.editable .field-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.manager-row.editable .field-inline > * { flex: 1 1 90px; }
.manager-row.editable textarea { resize: vertical; min-height: 44px; }
.manager-row.editable .field-title { font-family: var(--font-display); font-size: 16px; }
.remove-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; border: 2px solid #C97A6E; background: #FFFDF7;
  color: #C97A6E; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.remove-btn:hover { background: #C97A6E; color: #fff; }

.dropzone {
  border: 2px dashed var(--border-strong); border-radius: 6px; background: var(--card-bg);
  padding: 36px 24px; text-align: center; cursor: pointer; color: var(--text-muted); font-size: 15px;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--gold-dark); background: var(--parchment-alt); }
.dropzone.uploading { opacity: 0.6; pointer-events: none; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.photo-tile { border: 2px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--card-bg); cursor: grab; }
.photo-tile.dragging { opacity: 0.4; }
.photo-tile.drag-over { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold); }
.photo-tile .thumb { position: relative; }
.photo-tile img { width: 100%; height: 140px; object-fit: cover; display: block; }
.photo-tile .remove-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 15px; }
.photo-tile .tile-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.photo-tile input[type="text"] {
  box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: 4px; font-size: 13.5px; font-family: var(--font-body);
}
.photo-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--placeholder); font-style: italic; }

.content-photo-preview {
  max-width: 360px; min-height: 160px; border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--parchment-alt); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.content-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-photo-empty { font-size: 13px; color: var(--placeholder); text-align: center; padding: 20px; }

.masters-row { display: flex; align-items: center; gap: 14px; }
.masters-row input[type="text"] {
  box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 4px;
  font-size: 15px; font-family: var(--font-body); color: var(--text);
}
.masters-row .m-year { width: 130px; flex-shrink: 0; }
.masters-row .m-name { flex-grow: 1; }

/* ---------- Homepage slideshow ---------- */
.hero-slideshow { position: relative; width: 100%; max-width: 900px; margin: 0 auto; border-radius: 8px; overflow: hidden; border: 1px solid rgba(212,175,106,0.4); }
.hero-slideshow .slide-img-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--navy-dark); }
.hero-slideshow img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slideshow .slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; font-size: 14px; color: var(--parchment);
  background: linear-gradient(to top, rgba(13,27,48,0.85), transparent);
}
.hero-slideshow .slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(13,27,48,0.55); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-slideshow .slide-arrow svg { stroke: var(--parchment); }
.hero-slideshow .slide-arrow:hover { background: rgba(13,27,48,0.85); }
.hero-slideshow .slide-arrow.prev { left: 12px; }
.hero-slideshow .slide-arrow.next { right: 12px; }
.hero-slideshow .slide-dots { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 6px; }
.hero-slideshow .slide-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(247,242,231,0.5); border: none; padding: 0; cursor: pointer; }
.hero-slideshow .slide-dots .dot.active { background: var(--gold); }

/* ---------- Mobile nav ---------- */

@media (max-width: 860px) {
  .nav { position: absolute; top: 92px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; display: none; border-top: 1px solid #223350; }
  .nav.open { display: flex; }
  .nav-link, .nav-cta { width: 100%; padding: 14px clamp(20px, 5vw, 64px); border-bottom: none; }
  .nav-cta { width: calc(100% - 2 * clamp(20px, 5vw, 64px)); margin: 8px clamp(20px, 5vw, 64px); }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .steps { flex-direction: column; }
  .step { padding: 0; }
  .manager-row { flex-wrap: wrap; }
  .manager-date { order: -1; }
}
