/* ============================================================
   Lancashire Knights Templar — Provincial Priory
   Stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --c-bg:           #0c0a09;        /* near-black */
  --c-bg-soft:      #181513;
  --c-cream:        #f5efe3;        /* warm ivory used for body sections */
  --c-cream-deep:   #ece4d2;
  --c-red:          #a51c1c;        /* templar red */
  --c-red-dark:     #7a1414;
  --c-red-bright:   #c92626;
  --c-gold:         #b89465;
  --c-ink:          #1d1a17;        /* primary text on cream */
  --c-ink-soft:     #5a5048;
  --c-line:         rgba(255,255,255,0.08);
  --c-line-dark:    rgba(0,0,0,0.08);
  --shadow-lg:      0 30px 60px -20px rgba(0,0,0,0.5);
  --shadow-md:      0 10px 30px -10px rgba(0,0,0,0.4);

  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body:    "Lora", Georgia, serif;
  --f-eyebrow: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--dark  { background: var(--c-bg); color: var(--c-cream); }
.section--cream { background: var(--c-cream); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.5rem 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-cream);
}
.brand__seal {
  width: 56px; height: 56px;
  flex: 0 0 56px;
}
.brand__text {
  line-height: 1.1;
}
.brand__pre {
  display: block;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-cream);
  text-transform: uppercase;
  opacity: 0.9;
}
.brand__name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-cream);
}
.brand__sub {
  display: block;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--c-red-bright);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.6rem 1rem;
  color: var(--c-cream);
  font-family: var(--f-eyebrow);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--c-red-bright);
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--c-red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--c-cream);
  padding: 0.5rem;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 720px;
  background: var(--c-bg);
  color: var(--c-cream);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(165,28,28,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(122,20,20,0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0c0a09 0%, #1a0d0d 60%, #0c0a09 100%);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: 8rem 5rem;
}
.hero__copy { max-width: 560px; }
.hero__heading {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.hero__heading span { display: block; }
.hero__heading .dot { color: var(--c-red-bright); }
.hero__rule {
  width: 80px; height: 2px;
  background: var(--c-red-bright);
  margin-bottom: 1.5rem;
}
.hero__eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245,239,227,0.85);
  margin-bottom: 2rem;
  max-width: 38ch;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__seal {
  width: clamp(280px, 38vw, 520px);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
  animation: gentle-float 8s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-eyebrow);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-red-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(165,28,28,0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: rgba(245,239,227,0.4);
}
.btn--ghost:hover {
  border-color: var(--c-cream);
  background: rgba(245,239,227,0.06);
}
.btn--dark {
  background: var(--c-bg);
  color: var(--c-cream);
}
.btn--dark:hover { background: #2a201c; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.72rem; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- Section headings ---------- */
.section-eyebrow {
  text-align: center;
  font-family: var(--f-eyebrow);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--c-red);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
}
.section-title--dark { color: var(--c-cream); }
.section-rule {
  width: 56px; height: 1px;
  background: var(--c-red);
  margin: 1.25rem auto 0;
}

/* ---------- Principles grid ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}
.principle {
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}
.principle + .principle::before {
  content: '';
  position: absolute;
  left: -1.25rem; top: 25%; bottom: 25%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18), transparent);
}
.principle__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--c-red);
}
.principle__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
.principle__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 22ch;
  margin: 0 auto;
}

/* ---------- Heritage band ---------- */
.heritage {
  background: var(--c-bg);
  color: var(--c-cream);
}
.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 460px;
}
.heritage__image {
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, rgba(12,10,9,0.45), rgba(12,10,9,0.15)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500'><defs><linearGradient id='g' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%23241712'/><stop offset='0.5' stop-color='%231a0f0c'/><stop offset='1' stop-color='%23120a08'/></linearGradient></defs><rect width='600' height='500' fill='url(%23g)'/><g fill='none' stroke='%23b89465' stroke-opacity='0.25' stroke-width='1.5'><path d='M150 80 L150 380 Q150 420 200 420 L400 420 Q450 420 450 380 L450 80 Q450 40 400 40 L200 40 Q150 40 150 80 Z'/><path d='M200 100 Q200 80 220 80 L380 80 Q400 80 400 100 L400 380 L200 380 Z'/><path d='M250 380 L250 200 Q300 150 350 200 L350 380'/></g><g fill='%23a51c1c' opacity='0.4'><rect x='240' y='340' width='30' height='40'/><rect x='285' y='340' width='30' height='40'/><rect x='330' y='340' width='30' height='40'/></g></svg>");
}
.heritage__content {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.heritage__eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--c-red-bright);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.heritage__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}
.heritage__body {
  color: rgba(245,239,227,0.78);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.heritage__points {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.heritage__point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.3;
}
.heritage__point svg { width: 24px; height: 24px; color: var(--c-cream); flex: 0 0 24px; }

/* ---------- Why join band ---------- */
.why-join { text-align: center; position: relative; overflow: hidden; }
.why-join__inner { max-width: 820px; margin: 0 auto; }
.why-join__heading {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}
.why-join__body {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- Bottom dock nav (visual element from mock) ---------- */
.dock-nav {
  background: var(--c-bg);
  color: var(--c-cream);
  padding: 1.25rem 0;
}
.dock-nav__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0; padding: 0;
}
.dock-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  font-family: var(--f-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.dock-nav__list a:hover { color: var(--c-red-bright); }
.dock-nav__list svg { width: 18px; height: 18px; color: var(--c-red-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: #050403;
  color: rgba(245,239,227,0.5);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.site-footer a { color: rgba(245,239,227,0.7); }
.site-footer a:hover { color: var(--c-cream); }

/* ---------- Generic page styles ---------- */
.page {
  background: var(--c-cream);
  min-height: calc(100vh - 200px);
}
.page__header {
  background: var(--c-bg);
  color: var(--c-cream);
  padding: 9rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page__header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(165,28,28,0.25) 0%, transparent 60%);
}
.page__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0;
  position: relative;
}
.page__lede {
  margin: 1rem auto 0;
  max-width: 60ch;
  color: rgba(245,239,227,0.75);
  position: relative;
}

/* ---------- Cards / post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card__image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-soft);
}
.post-card__image--placeholder {
  background:
    linear-gradient(135deg, rgba(165,28,28,0.15), transparent),
    var(--c-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red-bright);
}
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.post-card__title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin-bottom: 1rem;
  flex: 1;
}
.post-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--c-ink-soft);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.75rem;
}
.post-card__locked { display: inline-flex; gap: 0.3rem; align-items: center; color: var(--c-red); }

/* ---------- Single post ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.article__cat {
  font-family: var(--f-eyebrow);
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--c-red);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}
.article__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.15;
}
.article__meta {
  text-align: center;
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.article__featured {
  width: 100%;
  margin: 0 auto 2.5rem;
  max-height: 460px;
  object-fit: cover;
}
.article__body { font-size: 1.08rem; line-height: 1.75; }
.article__body p { margin: 0 0 1.25rem; }
.article__body h2 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin: 2.25rem 0 0.75rem;
}
.article__body img { margin: 1.5rem auto; }
.article__body a { color: var(--c-red); border-bottom: 1px solid currentColor; }
.attachments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.attachments h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.attachments ul { list-style: none; padding: 0; margin: 0; }
.attachments li {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
}
.attachments svg { width: 22px; height: 22px; color: var(--c-red); flex: 0 0 22px; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.08);
}
.form-card--wide { max-width: 760px; }
.form-card h1 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  text-align: center;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--f-eyebrow);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--c-ink-soft);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: #fff;
}
.form-group textarea { min-height: 220px; font-family: var(--f-body); }
.form-help { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 0.35rem; }
.form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ---------- Alerts ---------- */
.alert {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
  background: #fff;
  font-size: 0.95rem;
}
.alert--error   { border-color: var(--c-red); color: var(--c-red-dark); background: #fdecec; }
.alert--success { border-color: #2f7d32; color: #1b5e20; background: #e8f5e9; }
.alert--info    { border-color: var(--c-gold); color: #5c4a2e; background: #f7efe3; }

/* ---------- Admin shell ---------- */
.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--c-cream);
}
.admin__side {
  background: var(--c-bg);
  color: var(--c-cream);
  padding: 1.5rem 0;
}
.admin__brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin__brand strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.3rem;
}
.admin__brand small {
  font-family: var(--f-eyebrow);
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--c-red-bright);
}
.admin__nav { list-style: none; padding: 1rem 0; margin: 0; }
.admin__nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--f-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,239,227,0.7);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.admin__nav a:hover,
.admin__nav a.is-active {
  background: rgba(255,255,255,0.05);
  color: var(--c-cream);
  border-left-color: var(--c-red-bright);
}
.admin__nav svg { width: 16px; height: 16px; }
.admin__main { padding: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin__header h1 {
  font-family: var(--f-display);
  font-size: 2rem;
  margin: 0;
  font-weight: 500;
}

/* ---------- Data tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
}
.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.data-table th {
  background: #faf6ec;
  font-family: var(--f-eyebrow);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fdfbf5; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--f-eyebrow);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.badge--green  { color: #2f7d32; }
.badge--gold   { color: #8a6a2f; }
.badge--red    { color: var(--c-red); }
.badge--gray   { color: var(--c-ink-soft); }

/* ---------- Calendar ---------- */
.calendar {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--c-bg);
  color: var(--c-cream);
}
.calendar__head h2 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  margin: 0;
  font-weight: 500;
}
.calendar__nav { display: flex; gap: 0.5rem; }
.calendar__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--c-cream);
  transition: background 0.2s;
}
.calendar__nav a:hover { background: rgba(255,255,255,0.08); }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar__dow {
  padding: 0.6rem;
  text-align: center;
  font-family: var(--f-eyebrow);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #faf6ec;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: var(--c-ink-soft);
}
.calendar__cell {
  min-height: 110px;
  padding: 0.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.calendar__cell--other { background: #faf8f3; color: rgba(0,0,0,0.3); }
.calendar__cell--today .calendar__date {
  background: var(--c-red);
  color: #fff;
  border-radius: 50%;
}
.calendar__date {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-eyebrow);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  align-self: flex-end;
}
.calendar__event {
  display: block;
  background: var(--c-red);
  color: #fff;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s;
}
.calendar__event:hover { background: var(--c-red-bright); }
.calendar__event--member    { background: #8a6a2f; }
.calendar__event--bodyguard { background: #3b3833; }
.calendar__event--admin     { background: #1d1a17; }

/* ---------- Login/auth bar ---------- */
.auth-link {
  margin-left: 1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(245,239,227,0.4);
  font-family: var(--f-eyebrow);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.auth-link:hover { border-color: var(--c-cream); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-block: 7rem 4rem; }
  .hero__copy  { margin: 0 auto; }
  .hero__rule  { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .principles  { grid-template-columns: repeat(2, 1fr); }
  .principle + .principle::before { display: none; }
  .heritage__grid { grid-template-columns: 1fr; }
  .heritage__image { min-height: 280px; }
  .main-nav ul { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; right: 1rem; left: 1rem;
    background: var(--c-bg);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .admin { grid-template-columns: 1fr; }
  .admin__side { padding: 1rem 0; }
  .admin__nav { display: flex; overflow-x: auto; padding: 0.5rem; }
  .admin__nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .admin__nav a.is-active { border-left: 0; border-bottom-color: var(--c-red-bright); }
  .dock-nav__list { grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .calendar__cell { min-height: 70px; padding: 0.25rem; }
  .calendar__event { font-size: 0.6rem; }
}
