/* ==========================================================================
   Montgomery County York Rite — Design System
   --------------------------------------------------------------------------
   "Keystone & Arch" — historic Masonic heritage meets refined contemporary
   institutional design.

   Contents
   1.  Fonts (self-hosted, OFL-licensed)
   2.  Design tokens
   3.  Base / reset
   4.  Typography & prose
   5.  Utilities & skip link
   6.  Buttons
   7.  Header, brand, navigation
   8.  Mobile navigation drawer
   9.  Hero (home)
   10. Page band + breadcrumbs
   11. Body (Chapter/Council/Commandery) hero
   12. Sections: intro, bodies, tradition, events, CTA band
   13. Cards: body cards, info cards
   14. Meeting tables and lists
   15. Calendar embed
   16. Contact actions
   17. Progression components
   18. Divider ornament
   19. Footer
   20. 404
   21. Reduced motion / print
   ========================================================================== */

/* 1. Fonts — self-hosted WOFF2 (latin subsets), SIL Open Font License.
      EB Garamond © 2017 The EB Garamond Project Authors.
      Source Sans 3 © 2010–2019 Adobe. */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

/* 2. Design tokens */

:root {
  /* Palette */
  --navy: #101E35;
  --navy-deep: #0B1526;
  --navy-soft: #1B2A47;
  --gold: #BA9555;
  --gold-bright: #D9BC85;
  --bronze: #7A5F2D;      /* gold family darkened for text on light grounds */
  --burgundy: #7A2632;
  --burgundy-deep: #5E1D27;
  --cryptic: #4A3B6B;
  --templar: #1E3357;
  --ivory: #F8F4E9;
  --ivory-deep: #EFE8D6;
  --slate: #283446;
  --slate-soft: #46536B;
  --white: #FFFFFF;
  --hairline: rgba(16, 30, 53, 0.14);
  --hairline-light: rgba(248, 244, 233, 0.22);

  /* Type */
  --font-serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --tracking-label: 0.16em;

  /* Scale */
  --container: 67.5rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-soft: 0 1px 2px rgba(16, 30, 53, 0.08);
}

/* 3. Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--burgundy-deep);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The header is sticky, so keep in-page anchor targets from hiding
   underneath it when a fragment link scrolls the page. */
[id] {
  scroll-margin-top: 6rem;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.body-hero :focus-visible,
.cta-band :focus-visible,
.mobile-nav :focus-visible {
  outline-color: var(--gold-bright);
}

::selection {
  background: rgba(186, 149, 85, 0.35);
}

/* 4. Typography & prose */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.prose {
  max-width: 46rem;
}

.prose > p,
.prose li {
  font-size: 1.0625rem;
}

.prose h2 {
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  margin-top: 2.2em;
  padding-top: 0.35em;
  border-top: 1px solid var(--hairline);
}

.prose h2:first-of-type {
  border-top: 0;
  margin-top: 0.5em;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 1.8em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--slate);
}

.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
}

.prose > ol,
.prose > ul {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 1rem;
}

.section-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--slate-soft);
  max-width: 42rem;
  margin: 0;
}

/* 5. Utilities */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1.1rem;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.15s ease-in-out;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ivory);
}

.arrow-link {
  display: inline-block;
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

.arrow-link::after {
  content: "\2192"; /* → */
  display: inline-block;
  margin-left: 0.45em;
  transition: transform 0.15s ease-in-out;
}

.arrow-link:hover {
  color: var(--burgundy-deep);
}

.arrow-link:hover::after {
  transform: translateX(0.25em);
}

/* 6. Buttons */

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
  min-height: 44px;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--burgundy-deep);
  color: var(--white);
}

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

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

.btn--outline {
  background: transparent;
  color: var(--slate);
  border-color: rgba(40, 52, 70, 0.45);
}

.btn--outline:hover {
  border-color: var(--slate);
  color: var(--navy);
  background: rgba(40, 52, 70, 0.05);
}

.btn--outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(248, 244, 233, 0.55);
}

.btn--outline-light:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* 7. Header, brand, navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(186, 149, 85, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
  min-height: 44px;
}

.brand__mark {
  color: var(--gold);
  display: grid;
  place-items: center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__overline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ivory);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 244, 233, 0.6);
  white-space: nowrap;
}

@media (max-width: 359px) {
  .brand__sub {
    display: none;
  }
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list--desktop {
  display: flex;
  gap: 0.25rem;
}

.nav-list--desktop .nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  line-height: 1.6;
}

.nav-list--desktop .nav-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-list--desktop .is-current .nav-link {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* Mobile-only toggle */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(248, 244, 233, 0.4);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.nav-toggle__box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 8. Mobile navigation drawer */

.mobile-nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 38, 0.6);
  z-index: 60;
}

.mobile-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(20rem, 88vw);
  background: var(--navy-deep);
  color: var(--ivory);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  border-left: 1px solid rgba(186, 149, 85, 0.45);
}

.mobile-nav__heading {
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.nav-list--mobile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list--mobile .nav-link {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 244, 233, 0.12);
  min-height: 44px;
}

.nav-list--mobile .nav-link:hover {
  color: var(--gold-bright);
}

.nav-list--mobile .is-current .nav-link {
  color: var(--gold-bright);
}

.nav-sublist {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid rgba(186, 149, 85, 0.35);
}

.nav-sublist__item + .nav-sublist__item {
  margin-top: 0.15rem;
}

.nav-sublink {
  display: block;
  padding: 0.5rem 0.25rem;
  color: rgba(248, 244, 233, 0.85);
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.5;
}

.nav-sublink:hover {
  color: var(--gold-bright);
}

.mobile-nav__meta {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 244, 233, 0.12);
}

.mobile-nav__contact {
  color: var(--gold-bright);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-all;
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}

/* 9. Hero (home) */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}

.hero__ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__ornament svg {
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  padding-top: clamp(4.5rem, 11vw, 8rem);
  padding-bottom: clamp(4.5rem, 11vw, 8rem);
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1.4rem;
}

.hero__title {
  color: var(--ivory);
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  max-width: 22ch;
  margin: 0 auto 1.1rem;
}

.hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: rgba(248, 244, 233, 0.88);
  max-width: 44rem;
  margin: 0 auto 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.hero__baseline {
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 50%,
    transparent 100%
  );
  opacity: 0.7;
}

/* 10. Page band + breadcrumbs */

.breadcrumbs {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(186, 149, 85, 0.25);
}

.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.65rem var(--gutter) 0.65rem;
  max-width: var(--container);
  margin-inline: auto;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "\203A"; /* › */
  color: var(--gold);
  font-weight: 600;
}

.breadcrumbs__link {
  color: rgba(248, 244, 233, 0.82);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.breadcrumbs__current {
  color: var(--gold-bright);
  font-weight: 600;
}

.page-band {
  background: var(--navy);
  color: var(--ivory);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.page-band__title {
  color: var(--ivory);
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 0 0 0.6rem;
}

.page-band__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}

.page-band__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(248, 244, 233, 0.85);
  max-width: 44rem;
  margin: 0;
}

.prose--page {
  padding-block: var(--section-y);
  max-width: none;
}

/* Reading measure for running text; component blocks (card grids, calendar,
   meeting info, map) are exempt so they can use the full container width. */
.prose--page > p:not(.contact-email),
.prose--page > h1,
.prose--page > h2,
.prose--page > h3,
.prose--page > ul,
.prose--page > ol:not(.progression-steps) {
  max-width: 48rem;
}

/* 11. Body hero (Chapter / Council / Commandery) */

.body-hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}

.body-hero__ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.body-hero__ornament svg {
  width: 100%;
  height: 100%;
}

.body-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.body-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}

.body-hero__title {
  color: var(--ivory);
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 0.7rem;
  max-width: 24ch;
}

.body-hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: rgba(248, 244, 233, 0.85);
  margin: 0;
}

.body-hero__medallion {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(186, 149, 85, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.body-hero__medallion img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 4px;
}

.body-hero__baseline {
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 50%,
    transparent 100%
  );
  opacity: 0.7;
}

@media (min-width: 760px) {
  .body-hero__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 3rem;
  }
  .body-hero__text {
    align-self: center;
  }
}

.prose--body {
  padding-block: var(--section-y);
}

/* 12. Sections */

.intro-band {
  padding-block: var(--section-y);
  background: var(--ivory);
}

.intro-band__inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .intro-band__inner {
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.intro-band__text p {
  margin-block: 0.9em;
  max-width: 38rem;
}

.bodies-section {
  padding-block: var(--section-y);
  background: var(--ivory-deep);
  border-block: 1px solid var(--hairline);
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.75rem;
}

.tradition-section {
  padding-block: var(--section-y);
  background: var(--ivory);
}

.tradition-section__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.tradition-section__text p {
  margin-block: 0.9em;
  max-width: 38rem;
}

.tradition-section__art {
  color: var(--gold);
  display: grid;
  place-items: center;
}

.tradition-section__art svg {
  width: min(280px, 60vw);
  height: auto;
}

@media (min-width: 900px) {
  .tradition-section__inner {
    grid-template-columns: 1.7fr 1fr;
    gap: 4rem;
  }
}

.events-section {
  padding-block: var(--section-y);
  background: var(--ivory-deep);
  border-top: 1px solid var(--hairline);
}

.events-section__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .events-section__inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 4rem;
  }
  .events-section__actions {
    justify-self: end;
  }
}

.cta-band {
  background: var(--navy);
  color: var(--ivory);
  border-top: 1px solid rgba(186, 149, 85, 0.4);
}

.cta-band__inner {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.cta-band__title {
  color: var(--ivory);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.cta-band__text-lede {
  color: rgba(248, 244, 233, 0.85);
  max-width: 36rem;
  margin: 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }
  .cta-band__actions {
    justify-self: end;
  }
}

/* 13. Cards */

.body-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .body-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.body-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.body-card--burgundy {
  border-top-color: var(--burgundy);
}

.body-card--cryptic {
  border-top-color: var(--cryptic);
}
.body-card--templar {
  border-top-color: var(--templar);
}

.body-card__medallion {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--hairline);
  display: grid;
  place-items: center;
}

.body-card__emblem {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.body-card__ordinal {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--slate-soft);
  margin: 0 0 0.5rem;
}

.body-card__title {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.body-card__tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--slate-soft);
  margin: 0 0 0.9rem;
}

.body-card__summary {
  font-size: 0.98rem;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.body-card__link {
  margin-top: auto;
  align-self: flex-start;
}

.body-grid--compact .body-card {
  padding: 1.6rem 1.4rem 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.info-card__foot {
  font-size: 0.9rem;
  color: var(--slate-soft);
  margin: 0.9rem 0 0.9rem;
}

/* 14. Meeting tables and lists */

.meeting-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.meeting-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}

.meeting-list li:last-child {
  border-bottom: 0;
}

.meeting-list__time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--burgundy);
}

.meeting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0.25rem 0 1rem;
}

.meeting-table th,
.meeting-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.meeting-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-soft);
  border-bottom: 2px solid var(--gold);
}

.meeting-table tbody th {
  font-weight: 600;
  color: var(--navy);
}

.meeting-info {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.meeting-info__heading {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.meeting-info__place {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.meeting-info__note {
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin: 0;
}

.meeting-info__col--map {
  min-width: 0;
}

.map-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.map-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

@media (min-width: 900px) {
  .meeting-info {
    grid-template-columns: 1.1fr 1.6fr;
    gap: 2.5rem 3rem;
  }
  .meeting-info__col--map {
    grid-column: span 2;
  }
}

/* 15. Calendar embed */

.calendar-frame {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  border: 0;
}

/* Month-view calendars have a hard internal minimum width; below it the
   grid is clipped. Let the frame scroll horizontally on narrow screens
   instead of cutting columns off at the right edge. */
@media (max-width: 600px) {
  .calendar-frame {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-frame iframe {
    min-width: 480px;
  }
}

.calendar-fallback {
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin-top: 1rem;
}

.prose .calendar-fallback {
  max-width: none;
}

/* 16. Contact actions */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-block: 1.5rem;
}

.copy-address {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.copy-address__status {
  font-size: 0.9rem;
  color: var(--slate-soft);
}

.contact-email__link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  word-break: break-all;
}

.contact-email__link:hover {
  color: var(--burgundy-deep);
}

/* 17. Progression components */

.progression-steps {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .progression-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.progression-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}

.progression-step--burgundy {
  border-left-color: var(--burgundy);
}
.progression-step--cryptic {
  border-left-color: var(--cryptic);
}
.progression-step--templar {
  border-left-color: var(--templar);
}

.progression-step__ordinal {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--slate-soft);
}

.progression-step__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.progression-step__body {
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin-bottom: 0.5rem;
}

.rite-progression {
  margin-top: var(--section-y);
}

.rite-progression__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.rite-progression__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .rite-progression__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rite-progression__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  text-decoration: none;
  color: var(--slate);
}

.rite-progression__card:hover {
  border-color: var(--gold);
}

.rite-progression__card--burgundy {
  border-top-color: var(--burgundy);
}
.rite-progression__card--cryptic {
  border-top-color: var(--cryptic);
}
.rite-progression__card--templar {
  border-top-color: var(--templar);
}

.rite-progression__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.rite-progression__desc {
  font-size: 0.95rem;
  color: var(--slate-soft);
  font-style: italic;
}

.rite-progression__card .arrow-link {
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

/* Degree navigation (sibling degrees on degree history pages) */

.degree-nav {
  margin-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.degree-nav__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.degree-nav__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .degree-nav__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.degree-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.degree-nav__item--parent {
  border-left-color: var(--burgundy);
}

.degree-nav__link {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.15em;
  align-self: flex-start;
}

.degree-nav__link:hover {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

.degree-nav__note {
  font-size: 0.85rem;
  color: var(--slate-soft);
}

/* Degree list on body pages */

.degree-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: degree;
}

.degree-list__item {
  position: relative;
  counter-increment: degree;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem 0.9rem 2.9rem;
}

.degree-list__item::before {
  content: counter(degree);
  position: absolute;
  left: 1.1rem;
  top: 0.95rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bronze);
}

.degree-list__link {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.degree-list__link:hover {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.degree-list__note {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-soft);
}

@media (min-width: 700px) {
  .degree-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 18. Divider ornament */

.keystone-divider {
  display: grid;
  place-items: center;
  color: var(--bronze);
  padding-block: 0.25rem;
}

/* 19. Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 244, 233, 0.85);
  border-top: 1px solid rgba(186, 149, 85, 0.45);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
  }
}

.site-footer__col--identity {
  max-width: 22rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--gold);
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-footer__brand-overline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ivory);
}

.site-footer__blurb {
  margin: 0;
  color: rgba(248, 244, 233, 0.75);
  line-height: 1.6;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.9rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__link {
  color: rgba(248, 244, 233, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.site-footer__link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.site-footer__address {
  font-style: normal;
  line-height: 1.6;
  color: rgba(248, 244, 233, 0.75);
  margin: 0 0 0.6rem;
}

.site-footer__col .site-footer__link {
  display: inline-block;
  margin-bottom: 0.45rem;
}

.site-footer__col .site-footer__address + .site-footer__link {
  margin-top: 0.15rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid rgba(248, 244, 233, 0.14);
  padding-block: 1.1rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(248, 244, 233, 0.6);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__credit a {
  color: rgba(248, 244, 233, 0.8);
}

.site-footer__credit a:hover {
  color: var(--gold-bright);
}

/* 20. 404 */

.error-section {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.error-section__inner {
  text-align: center;
  max-width: 34rem;
}

.error-section__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 600;
  color: var(--bronze);
  margin: 0;
  line-height: 1;
}

.error-section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.error-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* 21. Reduced motion / print */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .skip-link {
    transition: none;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .cta-band,
  .site-footer,
  .breadcrumbs,
  .calendar-frame,
  .map-frame {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}
