/* ============================================================
   EMBERGROVE — Stylesheet
   
   STRUCTURE: functional rules that make the site work correctly.
   Do not remove these.
   
   DESIGN: everything visual is marked with [DESIGN] and is
   intended to be replaced. These are placeholder values only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* TC Emberline local webfont */
@font-face {
  font-family: 'TC Emberline';
  src: url('../fonts/TC_Emberline_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   DESIGN TOKENS
   [DESIGN] Set all your brand values here. Everything else
   references these variables.
   ============================================================ */
:root {
  --color-deep:        #0D1B36;
  --color-ember:       #9A2713;
  --color-parchment:   #FAF7EB;
  --color-ember-hover: #C4350F;
  --color-text-muted:  #C8BFAA;
  --color-gold:        #C9A84C;

  --font-heading:       'TC Emberline', Georgia, serif;
  --font-heading-round: 'TC Emberline', Georgia, serif;
  --font-body:          'Montserrat', sans-serif;

  --page-max:     1208px;
  --page-pad:     116px;
  --nav-height:   72px;

  --radius-btn:   32px;   /* [DESIGN] */
  --radius-card:  28px;   /* [DESIGN] */
  --radius-tag:   28px;   /* [DESIGN] */

  --pad-section:    80px; /* [DESIGN] */
  --pad-section-sm: 48px; /* [DESIGN] */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--color-deep);
  color: var(--color-parchment);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }


/* ============================================================
   TYPOGRAPHY
   [DESIGN] sizes, weights and colours
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-parchment);
}

h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 0.8rem;
}

.text-muted { color: var(--color-text-muted); }


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

section { padding: var(--pad-section) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }


/* ============================================================
   BUTTONS
   [DESIGN] size, radius, colour, weight
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-ember);
  color: var(--color-parchment);
  border: 3px solid var(--color-ember);
}
.btn--primary:hover {
  background: var(--color-ember-hover);
  border-color: var(--color-ember-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-parchment);
  border: 3px solid var(--color-parchment);
}
.btn--outline:hover {
  border-color: var(--color-ember-hover);
  color: var(--color-ember-hover);
}
.btn--text {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-parchment);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: opacity 0.2s, gap 0.2s;
  text-decoration: none;
}
.btn--text:hover { opacity: 1; gap: 10px; }

.btn--outline-dark {
  background: transparent;
  color: var(--color-deep);
  border: 3px solid var(--color-deep);
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 27, 54, 0.96);
  border-color: rgba(154, 39, 19, 0.3);
  backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading-round);
  font-size: 1.3rem;
  color: var(--color-parchment);
  letter-spacing: 0.08em;
}
.nav__logo svg { width: 44px; height: 44px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 235, 0.7);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--color-parchment); }

.nav__links a.active {
  color: var(--color-parchment);
  position: relative;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--color-ember);
  opacity: 0.7;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-parchment);
  transition: transform 0.2s, opacity 0.2s;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  padding-top: var(--nav-height);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url('../images/sparks.jpg') center/cover no-repeat;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-deep);
  opacity: .5;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 792px;
  padding: var(--pad-section) var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__overline {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-ember);
  line-height: 1;
  margin: 0;
}

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  text-shadow: 0 0 48px var(--color-deep);
}

.hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: white;
  line-height: 1.85;
  margin: 0;
  text-shadow: 0 0 12px var(--color-deep);
  max-width: 600px;
}

.hero__buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__buttons .btn {
  flex: 1;
  max-width: 376px;
  min-width: 180px;
  text-shadow: none;
}


/* ============================================================
   SECTION MODIFIERS
   ============================================================ */
.section--next {
  padding: var(--pad-section) 0;
}

.section--next h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-parchment);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card__img-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(154, 39, 19, 0.1);
}

.card__body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-deep);
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-deep);
  line-height: 1.2;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__text {
  font-size: 0.875rem;
  font-weight: 400;
  color: #333;
  line-height: 1.85;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.tag {
  background: var(--color-parchment);
  border: 2px solid var(--color-ember);
  border-radius: var(--radius-tag);
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-deep);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.card__btns { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }


/* ============================================================
   ORNAMENTAL DIVIDER
   ============================================================ */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2rem 0;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.35);
}
.ornament--center { justify-content: center; }
.ornament--center::before,
.ornament--center::after { max-width: 120px; }
.ornament__glyph { font-size: 0.9rem; color: var(--color-gold); opacity: 0.7; }


/* ============================================================
   ARCHIVE / BOS LIST
   ============================================================ */
.archive-list { list-style: none; }

.archive-item {
  border-bottom: 1px solid rgba(250, 247, 235, 0.08);
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.archive-item:hover { background: rgba(250, 247, 235, 0.03); }

.archive-item__date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.7;
  text-align: right;
}

.archive-item__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-parchment);
}

.archive-item__type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ember);
  padding: 4px 10px;
  border: 1px solid rgba(154, 39, 19, 0.4);
  border-radius: var(--radius-tag);
}


/* ============================================================
   ANNOUNCEMENTS
   ============================================================ */
.announcement {
  border-left: 2px solid var(--color-ember);
  padding: 20px 24px;
  background: rgba(154, 39, 19, 0.06);
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

.announcement__date {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.announcement__text { font-size: 0.95rem; color: var(--color-text-muted); }


/* ============================================================
   CALENDAR & FORM EMBEDS
   ============================================================ */
.calendar-wrap {
  border: 1px solid rgba(250, 247, 235, 0.1);
  background: rgba(250, 247, 235, 0.02);
  padding: 4px;
  border-radius: 8px;
}
.calendar-wrap iframe { display: block; width: 100%; border: none; min-height: 600px; }
.form-wrap iframe { display: block; width: 100%; border: none; min-height: 820px; }


/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding: 140px 0 60px; position: relative; overflow: hidden; text-align: center; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero__subtitle { color: var(--color-text-muted); font-size: 0.95rem; font-weight: 300; margin-top: 0.5rem; }

/* Hero background images — shared base styles */
.about-hero__bg-img,
.bos-hero__bg-img,
.contact-hero__bg-img,
.members-hero__bg-img,
.local-scene-hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.about-hero__bg-img   { background-image: url('../images/about.jpg'); }
.bos-hero__bg-img     { background-image: url('../images/bos.jpg'); }
.contact-hero__bg-img { background-image: url('../images/contact.jpg'); }
.members-hero__bg-img { background-image: url('../images/members.jpg'); }
.local-scene-hero__bg-img { background-image: url('../images/local-scene.jpg'); }

/* ============================================================
   MEMBERS BADGE
   ============================================================ */
.members-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(154, 39, 19, 0.5);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 2rem;
  border-radius: var(--radius-tag);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-deep);
  border-top: 1px solid rgba(250, 247, 235, 0.08);
  padding: var(--pad-section) 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-logo { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.footer__brand-logo svg { width: 36px; height: 36px; }

.footer__brand-name {
  font-family: var(--font-heading-round);
  font-size: 1.1rem;
  color: var(--color-parchment);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__detail {
  font-size: 0.75rem;
  color: white;
  line-height: 1.85;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  line-height: 1;
  margin-bottom: 14px;
}

.footer__link {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(250, 247, 235, 0.6);
  line-height: 1.85;
  display: block;
  transition: color 0.2s;
  margin-bottom: 6px;
}
.footer__link:hover { color: var(--color-parchment); }

.footer__bottom {
  border-top: 1px solid rgba(250, 247, 235, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy,
.footer__legal { font-size: 0.7rem; color: rgba(250, 247, 235, 0.4); }
.footer__legal a { text-decoration: underline; }


/* ============================================================
   LOADING STATE
   ============================================================ */
.loading {
  text-align: center;
  padding: 48px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.5;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; }
.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.25s; }
.fade-up--d3 { animation-delay: 0.4s; }
.fade-up--d4 { animation-delay: 0.55s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --page-pad: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --page-pad: 24px; --pad-section: 56px; --nav-height: 64px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-height));
    background: rgba(13, 27, 54, 0.98);
    padding: 2rem var(--page-pad);
    gap: 1.6rem;
    align-items: flex-start;
    justify-content: flex-start;
    backdrop-filter: blur(12px);
    z-index: 99;
    overflow-y: auto;
  }
  .nav__toggle { display: flex; }

  .hero__buttons { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__buttons .btn { max-width: 100%; min-width: unset; width: 100%; }
  .hero__content { gap: 20px; }

  .archive-item { grid-template-columns: 1fr; gap: 6px; }
  .archive-item__type { display: none; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


/* ============================================================
   GOOGLE DOCS RENDERED CONTENT
   Styles for content fetched from Google Docs API
   [DESIGN] Adjust colours/sizes to match your design
   ============================================================ */

/* Entry page wrapper */
.doc-entry { display: none; padding: var(--pad-section) 0; }
.doc-entry.open { display: block; }

.doc-entry__meta { margin-bottom: 3rem; }

.doc-entry__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-parchment);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.1;
}

.doc-entry__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.back-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.7;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.back-btn:hover { opacity: 1; }

/* Doc body */
.doc-entry__body { width: 100%; }

.doc-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-parchment);
  margin: 2.5rem 0 1rem;
  font-weight: 400;
}

.doc-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--color-parchment);
  margin: 2rem 0 0.8rem;
  font-weight: 400;
}
.doc-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--color-parchment);
  margin: 2rem 0 0.8rem;
  font-weight: 400;
}


.doc-h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-gold);
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.85;
}

.doc-h4 br {
  display: block;
  content: '';
  margin-top: 0.25rem;
}

.doc-p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.95;
  margin-bottom: 1.3em;
}

.doc-p strong { font-weight: 600; color: var(--color-parchment); }
.doc-p em     { font-style: italic; color: var(--color-parchment); opacity: 0.85; }

.doc-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.doc-list .doc-list {
  margin: 0;
  padding-left: 1.5rem;
}

.doc-list__item {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.doc-list__item::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-ember);
  font-size: 0.8rem;
  top: 0.35rem;
}

.doc-list .doc-list .doc-list__item::before {
  content: '●';
  font-size: 0.8rem;
  top: 0.35rem;
}

.doc-bold {
  font-weight: 600;
  color: var(--color-parchment);
}

.doc-tabs {
  margin: 2rem 0;
}

.doc-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(250,247,235,0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.doc-tab {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.doc-tab:hover { color: var(--color-parchment); }

.doc-tab.active {
  color: var(--color-ember);
  border-bottom-color: var(--color-ember);
}

.doc-tab-panel { display: none; }
.doc-tab-panel.active { display: block; }

.doc-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.doc-link:hover { color: var(--color-parchment); }

.doc-img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: var(--radius-card); 
}

.doc-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ember);
  border: 1px solid rgba(154, 39, 19, 0.4);
  border-radius: var(--radius-tag);
  padding: 4px 12px;
  margin: 0.5rem 0;
}



/* Archive item subtitle (shown below title in list) */
.archive-item__subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  margin-top: 2px;
}

/* Left-aligned ornament variant */
.ornament--left {
  justify-content: flex-start;
}
.ornament--left::before { display: none; }
.ornament--left::after  { max-width: 160px; }


/* ============================================================
   ARCHIVE FOLDER STRUCTURE
   Section headings for Drive subfolders displayed in BOS/Notes
   [DESIGN] Adjust colours, spacing, typography to match your design
   ============================================================ */

.bos-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-deep);
  border-top: 1px solid rgba(250,247,235,0.07);
  border-bottom: 1px solid rgba(250,247,235,0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0 2.5rem;
}

.bos-subnav__link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.bos-subnav__link:hover { color: var(--color-parchment); }

.bos-subnav__link.active {
  color: var(--color-ember);
  border-bottom-color: var(--color-ember);
}

.archive-folder {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

/* Top-level folder heading — e.g. "Sabbats", "2025" */
.archive-folder-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-parchment);
  letter-spacing: 0.04em;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(154, 39, 19, 0.4); /* [DESIGN] */
}

/* Nested folder heading — e.g. "Beltane" inside "Sabbats" */
.archive-folder-heading--sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ember);
  border-bottom: 1px solid rgba(154, 39, 19, 0.2); /* [DESIGN] */
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Nested folder indented slightly */
.archive-folder .archive-folder {
  margin-left: 1rem;
}

/* Column header row above each doc list */
.archive-list-header {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(250, 247, 235, 0.06);
  margin-bottom: 0;
}

.archive-list-header__title,
.archive-list-header__date {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.archive-list-header__date {
  text-align: right;
}

/* ─── Moon Phase Widget ────────────────────────────────────────────── */

.footer__moon-item {
  flex: 1;
  max-width: 200px;
}

.footer__moon-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: -0.25rem;
}

.footer__moon-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-parchment);
  margin-bottom: -0.25rem;
}

.footer__moon-meta {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(250,247,235,0.5);
  margin-bottom: -0.25rem;
}

.footer__moon-countdown {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: .5rem;
}

@media (max-width: 480px) {
  .footer__moon-item { max-width: 100%; }
}

/* ─── Moon Phase Widget (footer column) ────────────────────────────── */
.footer__moon-col {
  flex: 1.2;
}

.footer__moon-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer__moon-date {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(250,247,235,0.7);
}

.footer__moon-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(250,247,235,0.5);
}

.footer__moon-countdown {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ember);
}

@media (max-width: 600px) {
  .footer__moon-col {
    flex: 1 0 100%;
  }
}
