/*
Theme Name: Ordre de Saint Sigismond
Theme URI: https://ordresigismond.fr/
Author: Order of Saint Sigismund
Description: Bilingual institutional theme for the Order of Saint Sigismund, including its relics library and map.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ordre-saint-sigismond
*/

:root {
  --red: #861f30;
  --red-deep: #4b0f1a;
  --red-soft: #f3e7e7;
  --white: #ffffff;
  --paper: #f8f4ed;
  --ink: #281d1d;
  --muted: #746866;
  --line: #dfd0cd;
  --blue: #092c68;
  --gold: #b68a32;
  --gold-soft: #eadbb8;
  --shadow-soft: 0 22px 60px rgba(61, 18, 25, .09);
  --shadow-deep: 0 28px 70px rgba(28, 3, 8, .28);
  --font-garamond: "EB Garamond", "Adobe Garamond Pro", "Garamond Premier Pro", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(182,138,50,.035) 0 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-garamond);
  font-size: 15px;
  line-height: 1.64;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
main { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--red-deep); background: #f1cbd1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .65rem .9rem;
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--red);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .55rem clamp(1.1rem, 4vw, 4.5rem);
  background: rgba(255,253,249,.97);
  color: var(--red-deep);
  border-top: 3px solid var(--red-deep);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 20px rgba(58, 24, 25, .045);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--red-deep);
  text-decoration: none;
}
.brand-cross {
  width: 30px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(46,20,20,.18));
  transition: transform .24s ease, filter .24s ease;
}
.brand:hover .brand-cross { transform: translateY(-1px) scale(1.04); filter: drop-shadow(0 4px 5px rgba(46,20,20,.24)); }
.brand-name { display: grid; gap: .05rem; }
.brand-name strong {
  font: 600 .9rem/1.05 var(--font-garamond);
  text-transform: uppercase;
  letter-spacing: .065em;
}
.brand-name span {
  color: var(--red);
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.site-nav a {
  color: #4f4144;
  text-decoration: none;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .135em;
  text-transform: uppercase;
  text-underline-offset: .45rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); text-decoration: underline; text-decoration-color: var(--gold); }
.lang-switch {
  min-width: 44px;
  padding: .42rem .6rem;
  cursor: pointer;
  color: var(--red);
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  box-shadow: inset 0 0 0 2px var(--white);
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--white); background: var(--red); }
.site-nav a.lang-switch { min-width: 44px; padding: .42rem .6rem; color: var(--red); text-align: center; text-decoration: none; font-size: .72rem; letter-spacing: .12em; }
.site-nav a.lang-switch:hover, .site-nav a.lang-switch:focus-visible { color: var(--white); background: var(--red); text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 72%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    linear-gradient(135deg, #3d0b14, var(--red-deep) 43%, var(--red) 100%);
  background-size: 28px 28px, 36px 36px, auto;
  color: var(--white);
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(234,219,184,.42), var(--shadow-deep);
}
.hero::before {
  content: "";
  z-index: -1;
  position: absolute;
  width: 34rem;
  height: 34rem;
  left: -15rem;
  bottom: -19rem;
  border: 1px solid rgba(234,219,184,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 2.4rem rgba(255,255,255,.018), 0 0 0 2.45rem rgba(234,219,184,.08);
}
.hero::after {
  content: "";
  z-index: 4;
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(234,219,184,.16);
  pointer-events: none;
}
.hero-content {
  z-index: 2;
  position: relative;
  align-self: center;
  max-width: 760px;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.2rem, 7vw, 8rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--gold-soft);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  max-width: 690px;
  margin: .9rem 0 1.1rem;
  font: 500 clamp(2.9rem, 6vw, 5.4rem)/.98 var(--font-garamond);
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(21,2,6,.28);
}
.hero-intro {
  max-width: 600px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font: 400 clamp(1.02rem, 1.5vw, 1.22rem)/1.68 var(--font-garamond);
}
.hero-mandate {
  max-width: 620px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .95rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.075);
  border-block: 1px solid rgba(234,219,184,.34);
  border-right: 1px solid rgba(234,219,184,.18);
  box-shadow: inset 3px 0 0 var(--gold), 0 12px 30px rgba(23,2,6,.12);
  backdrop-filter: blur(4px);
}
.hero-mandate > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  border: 1px solid rgba(234,219,184,.48);
  border-radius: 50%;
  font-size: .95rem;
}
.hero-mandate p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  line-height: 1.58;
}
.hero-mandate strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .72rem 1.05rem;
  color: var(--red-deep);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .135em;
  text-transform: uppercase;
  box-shadow: 0 7px 20px rgba(37,5,10,.12);
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); color: var(--white); background: transparent; border-color: var(--white); }
.button.secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.6); }
.button.secondary:hover { color: var(--red-deep); background: var(--white); }
.arrow { font-size: .9rem; transition: transform .18s ease; }
.button:hover .arrow { transform: translate(2px, -2px); }
.hero-art {
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(237,193,97,.26), transparent 34%),
    linear-gradient(155deg, #21070c, #3d0b14 54%, #741a29);
  border-left: 1px solid rgba(255,255,255,.18);
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: 48px;
  left: 50%;
  translate: -50% 0;
  border: 1px solid rgba(234,219,184,.48);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255,255,255,.025), 0 0 0 21px rgba(239,210,146,.1);
  pointer-events: none;
}
.hero-art::after {
  content: "";
  z-index: 2;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(24,2,6,.36) 100%);
  pointer-events: none;
}
.hero-figure {
  z-index: 1;
  width: auto;
  max-width: 96%;
  height: min(650px, 100%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.42));
}
.hero-art-label {
  z-index: 2;
  position: absolute;
  top: 2.1rem;
  right: 1.35rem;
  color: rgba(234,219,184,.82);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.intro-band,
.pillars,
.timeline-section {
  padding-inline: clamp(1.2rem, 7vw, 8rem);
}
.intro-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 -16px 45px rgba(25,3,7,.08);
}
.intro-band::before {
  content: "✥";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  translate: -50% 0;
  color: var(--red);
  background: #fffdf9;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(61,18,25,.12);
  font-size: 1rem;
}
.section-kicker {
  margin: 0 0 .9rem;
  color: var(--red);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-kicker::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: .65rem;
  background: var(--gold);
}
.intro-band h2,
.section-heading h2 {
  margin: 0;
  font: 500 clamp(2rem, 4vw, 3.7rem)/1.05 var(--font-garamond);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.intro-copy .lead {
  max-width: 760px;
  margin: 0 0 1.2rem;
  color: #382c2e;
  font: 400 clamp(1.22rem, 2vw, 1.72rem)/1.48 var(--font-garamond);
}
.intro-copy p:not(.lead) { max-width: 720px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

.pillars {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 92% 18%, rgba(182,138,50,.09), transparent 22%),
    var(--paper);
}
.section-heading { max-width: 750px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gold); }
.pillar-card { min-height: 270px; position: relative; padding: 1.7rem clamp(1rem, 2.5vw, 2.1rem) 1.4rem 0; border-right: 1px solid var(--line); }
.pillar-card + .pillar-card { padding-left: clamp(1rem, 2.5vw, 2.1rem); }
.pillar-card:last-child { border-right: 0; }
.pillar-card:last-child { background: linear-gradient(145deg, rgba(134,31,48,.035), rgba(182,138,50,.07)); }
.card-number { color: var(--gold); font: italic .9rem var(--font-garamond); }
.pillar-card h3 { margin: 2.7rem 0 .75rem; color: var(--red-deep); font: 500 1.45rem/1.2 var(--font-garamond); }
.pillar-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.pillar-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: clamp(1rem, 2.5vw, 2.1rem);
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.pillar-card + .pillar-card::after { left: clamp(1rem, 2.5vw, 2.1rem); }

.patron-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  color: var(--red-deep);
  background: var(--white);
  border-block: 1px solid var(--line);
}
.patron-section::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -120px;
  bottom: -120px;
  border: 1px solid rgba(182,138,50,.14);
  rotate: 45deg;
  pointer-events: none;
}
.patron-heading {
  display: grid;
  grid-template-columns: .8fr 1.1fr;
  gap: 1rem clamp(2rem, 7vw, 7rem);
  align-items: end;
}
.patron-heading .section-kicker { grid-column: 1 / -1; }
.patron-heading h2,
.custody-heading h2,
.lore-heading h2,
.governance-heading h2,
.observance-heading h2,
.council-heading h2 {
  margin: 0;
  font: 500 clamp(2.1rem, 4.2vw, 3.9rem)/1.03 var(--font-garamond);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.patron-heading > p:last-child,
.custody-heading > p:last-child,
.lore-heading > p,
.governance-heading > p:last-child,
.observance-heading > p:last-child,
.council-heading > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}
.patron-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.8rem, 5vw, 4rem);
  border-top: 1px solid var(--gold);
}
.patron-facts article { padding: 1.4rem 1.2rem 1.5rem 0; border-right: 1px solid var(--line); }
.patron-facts article + article { padding-left: 1.2rem; }
.patron-facts article:last-child { border-right: 0; }
.patron-facts h3 { margin: 0 0 .6rem; font: 500 1.1rem var(--font-garamond); }
.patron-facts p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.patron-section blockquote {
  position: relative;
  max-width: 980px;
  margin: 3rem auto 0;
  color: var(--red);
  font: italic 400 clamp(1.3rem, 2.4vw, 2rem)/1.45 var(--font-garamond);
  text-align: center;
  padding: 1.6rem clamp(1rem, 5vw, 4rem);
  border-block: 1px solid var(--gold-soft);
}
.patron-section blockquote::before {
  content: "“";
  position: absolute;
  top: -.8rem;
  left: 50%;
  padding-inline: .8rem;
  translate: -50% 0;
  color: var(--gold);
  background: var(--white);
  font: 400 2rem/1 var(--font-garamond);
}

.rule-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 22%, rgba(234,219,184,.08) 0 1px, transparent 1.8px) 0 0 / 26px 26px,
    linear-gradient(145deg, #3d0b14, var(--red-deep) 55%, #5a1320);
  border-block: 1px solid rgba(234,219,184,.35);
}
.rule-section .section-kicker { color: var(--gold-soft); }
.rule-intro {
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}
.rule-intro h2 {
  margin: 0;
  font: 500 clamp(2.1rem, 4.2vw, 3.9rem)/1.03 var(--font-garamond);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.rule-intro > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: .9rem;
  line-height: 1.8;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(234,219,184,.52);
}
.rule-card {
  min-height: 235px;
  padding: 1.45rem clamp(1rem, 2vw, 1.65rem);
  border-right: 1px solid rgba(255,255,255,.18);
  transition: background-color .22s ease;
}
.rule-card:first-child { padding-left: 0; }
.rule-card:last-child { padding-right: 0; border-right: 0; }
.rule-card > span { color: var(--gold-soft); font: italic .86rem var(--font-garamond); }
.rule-card h3 { margin: 2.4rem 0 .7rem; font: 500 1.3rem/1.25 var(--font-garamond); }
.rule-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .83rem; line-height: 1.68; }
.rule-notes {
  max-width: 760px;
  margin-top: 1.2rem;
  color: var(--red-deep);
  background: var(--white);
  border: 1px solid var(--gold-soft);
  box-shadow: 12px 12px 0 rgba(234,219,184,.09);
}
.rule-notes p { margin: 0; padding: 1.2rem 1.4rem; font-size: .79rem; line-height: 1.65; }
.rule-notes strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--red);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.custody-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background: var(--paper);
}
.custody-heading {
  max-width: 960px;
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  border-left: 3px solid var(--red);
}
.custody-heading h2 { color: var(--red-deep); }
.custody-heading > p:last-child { margin-top: 1.2rem; }
.custody-lenses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.8rem, 5vw, 4rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #711727);
  border-top: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}
.custody-lenses article { min-height: 260px; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.22); }
.custody-lenses article:last-child { border-right: 0; }
.custody-lenses span { color: var(--gold-soft); font: italic .84rem var(--font-garamond); }
.custody-lenses h3 { margin: 2.4rem 0 .7rem; font: 500 1.3rem var(--font-garamond); }
.custody-lenses p { margin: 0; color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.7; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-inline: 1px solid var(--line);
}
.principles-grid article { min-height: 170px; position: relative; padding: 1.35rem; background: rgba(255,255,255,.78); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-grid article::before,
.office-grid article::before,
.expertise-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.35rem;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: width .22s ease, background-color .22s ease;
}
.principles-grid article:nth-child(3n) { border-right: 0; }
.principles-grid h3 { margin: 0 0 .55rem; color: var(--red-deep); font: 500 1.05rem var(--font-garamond); }
.principles-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }

.lore-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 22%, rgba(222,175,78,.16), transparent 24%),
    linear-gradient(145deg, #3e0c15, var(--red-deep) 65%, #5d1421);
  border-block: 1px solid rgba(234,219,184,.32);
}
.lore-section::before {
  content: "✥";
  position: absolute;
  right: clamp(1.2rem, 7vw, 8rem);
  bottom: 1.4rem;
  color: rgba(234,219,184,.16);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1;
  pointer-events: none;
}
.lore-section .section-kicker { color: var(--gold-soft); }
.lore-heading h2 { color: var(--white); }
.lore-heading > p { margin-top: 1.2rem; color: rgba(255,255,255,.72); }
.story-list { border-top: 1px solid rgba(234,219,184,.48); }
.story { border-bottom: 1px solid rgba(255,255,255,.22); }
.story summary {
  display: grid;
  grid-template-columns: 64px 1fr 20px;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  transition: color .18s ease, padding-inline .18s ease;
}
.story summary::-webkit-details-marker { display: none; }
.story summary span { color: var(--gold-soft); font: italic .84rem var(--font-garamond); }
.story summary strong { font: 500 1.05rem/1.35 var(--font-garamond); }
.story summary i { font-style: normal; font-size: 1.1rem; transition: rotate .18s ease; }
.story[open] summary i { rotate: 45deg; }
.story[open] { background: rgba(255,255,255,.035); }
.story[open] summary { padding-inline: .5rem; color: #fff8ed; }
.story p { margin: 0 0 1.2rem 80px; padding-right: .8rem; color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.7; }

.map-feature {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  margin: 0 clamp(1rem, 4vw, 4rem) clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-soft);
}
.map-feature::after {
  content: "";
  z-index: 8;
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.2);
  pointer-events: none;
}
.map-copy { align-self: stretch; padding: clamp(3rem, 6vw, 5.5rem); color: var(--white); background: linear-gradient(145deg, var(--red), #691522); }
.map-copy h2 { margin: .6rem 0 1rem; font: 500 clamp(2.2rem, 4vw, 3.9rem)/1 var(--font-garamond); letter-spacing: -.028em; text-wrap: balance; }
.map-copy > p { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.75; }
.map-stats { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); margin: 1.9rem 0; padding: 1.15rem 0; border-block: 1px solid rgba(255,255,255,.24); }
.map-stat strong { display: block; color: var(--white); font: 500 1.9rem/1 var(--font-garamond); }
.map-stat span { color: rgba(255,255,255,.64); font-size: .61rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.map-copy .button { color: var(--red); }
.map-copy .button:hover { color: var(--white); }
.map-visual {
  min-height: 500px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #e8ecee;
  background-image:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(75,15,26,.1)),
    url("assets/images/relics-map-hero.png");
  background-size: cover;
  background-position: center;
}
.map-visual::before {
  content: "";
  z-index: 1;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02) 35%, rgba(75,15,26,.36) 100%);
  pointer-events: none;
}
.map-visual::after {
  content: "";
  z-index: 2;
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255,255,255,.58);
  pointer-events: none;
}
.map-emblem {
  z-index: 3;
  position: absolute;
  top: 1.5rem;
  right: 1.7rem;
  width: 52px;
  max-height: 96px;
  padding: .35rem;
  object-fit: contain;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(182,138,50,.72);
  box-shadow: 0 8px 24px rgba(41,16,20,.16);
}
.map-label {
  z-index: 3;
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  padding: .85rem 1rem;
  color: var(--red-deep);
  background: rgba(255,255,255,.92);
  border-left: 3px solid var(--red);
  border-block: 1px solid var(--gold-soft);
  font: 500 .86rem/1.5 var(--font-garamond);
  box-shadow: 0 12px 32px rgba(45,20,24,.13);
  backdrop-filter: blur(8px);
}

.timeline-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(255,255,255,.24) 50% 100%),
    var(--red-soft);
}
.timeline { position: relative; margin-top: 3rem; border-top: 1px solid var(--gold); }
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 112px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(134,31,48,.35));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(170px, .75fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.55rem 0;
  border-bottom: 1px solid #d8bdc1;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.85rem;
  left: 107px;
  width: 11px;
  height: 11px;
  background: var(--red-soft);
  border: 1px solid var(--red);
  rotate: 45deg;
  box-shadow: 0 0 0 4px rgba(243,231,231,.9);
}
.timeline-year { color: var(--gold); font: italic 1.05rem var(--font-garamond); }
.timeline-item h3 { margin: 0; color: var(--red-deep); font: 500 1.25rem/1.25 var(--font-garamond); }
.timeline-item p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }

.governance-section {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background: var(--white);
}
.governance-heading,
.observance-heading,
.council-heading { max-width: 880px; }
.governance-heading h2,
.observance-heading h2,
.council-heading h2 { color: var(--red-deep); }
.governance-heading > p:last-child,
.observance-heading > p:last-child,
.council-heading > p:last-child { margin-top: 1.1rem; }
.current-leadership {
  position: relative;
  margin-top: clamp(2.7rem, 5vw, 4rem);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(182,138,50,.14), transparent 28%),
    linear-gradient(145deg, #3d0b14, var(--red-deep) 58%, #671725);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-deep);
}
.current-leadership::after { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(234,219,184,.17); pointer-events: none; }
.leadership-intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; padding: clamp(1.8rem, 4vw, 3rem); }
.leadership-intro > div > p { margin: 0 0 .55rem; color: var(--gold-soft); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.leadership-intro h3 { margin: 0; color: var(--white); font: 500 clamp(1.7rem, 3vw, 2.65rem)/1.05 var(--font-garamond); letter-spacing: -.02em; }
.leadership-intro > p { max-width: 670px; margin: 0; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.7; }
.leadership-roster { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(234,219,184,.44); }
.leadership-member { min-height: 174px; padding: 1.3rem; border-right: 1px solid rgba(255,255,255,.18); }
.leadership-member:last-child { border-right: 0; }
.leadership-member > span { color: var(--gold); font: italic .76rem var(--font-garamond); }
.leadership-member h4 { margin: 1.3rem 0 .55rem; color: var(--white); font: 500 1.1rem/1.35 var(--font-garamond); }
.leadership-member .leadership-style { margin: -.2rem 0 .55rem; color: var(--gold-soft); font: italic 500 .86rem/1.35 var(--font-garamond); letter-spacing: .03em; text-transform: none; }
.leadership-member .leadership-office { margin: 0; color: rgba(255,255,255,.58); font-size: .61rem; font-weight: 700; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.2rem, 4vw, 3.3rem);
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--line);
}
.office-grid article { min-height: 245px; position: relative; display: flex; flex-direction: column; padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.office-grid h3 { margin: 0 0 .65rem; color: var(--red-deep); font: 500 1.1rem/1.3 var(--font-garamond); }
.office-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.office-holder { display: grid; gap: .25rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--gold-soft); }
.office-holder span { color: var(--red); font-size: .54rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.office-holder strong { color: var(--red-deep); font: italic 500 .91rem/1.35 var(--font-garamond); }

.banners-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background:
    radial-gradient(circle at 8% 10%, rgba(182,138,50,.08), transparent 25%),
    #fffdf9;
  border-top: 1px solid var(--line);
}
.banners-heading { max-width: 880px; }
.banners-heading h2 { margin: .55rem 0 1rem; color: var(--red-deep); font: 500 clamp(2.1rem, 4vw, 3.7rem)/1.04 var(--font-garamond); letter-spacing: -.028em; text-wrap: balance; }
.banners-heading > p:last-child { max-width: 780px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.banner-card { overflow: hidden; background: var(--white); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-soft); }
.banner-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f6f1ef; border-bottom: 1px solid var(--gold-soft); }
.banner-image::after { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(92,15,28,.08); pointer-events: none; }
.banner-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.banner-copy { padding: clamp(1.4rem, 3vw, 2.1rem); }
.banner-copy > span { color: var(--gold); font: italic .82rem var(--font-garamond); }
.banner-copy h3 { margin: .8rem 0 .7rem; color: var(--red-deep); font: 500 clamp(1.45rem, 2.4vw, 2rem)/1.12 var(--font-garamond); }
.banner-copy p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.72; }

.observance-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.observance-list { border-top: 1px solid var(--gold); }
.observance-list article {
  position: relative;
  display: grid;
  grid-template-columns: 95px minmax(155px, .8fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.observance-list article::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .22s ease;
}
.observance-list time { color: var(--gold); font: italic .86rem var(--font-garamond); }
.observance-list h3 { margin: 0; color: var(--red-deep); font: 500 1.03rem var(--font-garamond); }
.observance-list p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.62; }

.membership { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: var(--shadow-soft); }
.membership-copy { padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 7rem); }
.membership-copy h2 { margin: .55rem 0 1rem; color: var(--red-deep); font: 500 clamp(2.1rem, 4vw, 3.6rem)/1.04 var(--font-garamond); letter-spacing: -.028em; text-wrap: balance; }
.membership-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.rank-group-title { margin: 2rem 0 0; color: var(--red-deep); font: 600 .68rem/1.4 var(--font-garamond); letter-spacing: .16em; text-transform: uppercase; }
.rank-list { margin-top: .65rem; border-top: 1px solid var(--gold); }
.rank-row { display: grid; grid-template-columns: 80px 1fr; gap: .8rem; padding: .78rem 0; border-bottom: 1px solid var(--line); }
.rank-row strong { color: var(--red); font-size: .68rem; letter-spacing: .07em; }
.rank-row span { color: #3e3436; font: 500 .94rem var(--font-garamond); }
.membership-insignia {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 1.6rem;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: linear-gradient(145deg, #3d0b14, var(--red-deep) 65%, #671725);
}
.membership-insignia::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: 50%;
  left: 50%;
  translate: -50% -58%;
  border: 1px solid rgba(234,219,184,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.02), 0 0 0 29px rgba(234,219,184,.08);
}
.membership-insignia > img {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  object-fit: contain;
  background: #d6d6d6;
  border: 6px solid var(--white);
  outline: 1px solid var(--gold-soft);
  box-shadow: 0 18px 50px rgba(41,5,12,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.membership-insignia blockquote { z-index: 1; position: relative; max-width: 620px; margin: 0 auto; font: 400 clamp(1.2rem, 2.2vw, 1.65rem)/1.45 var(--font-garamond); }
.membership-insignia cite { display: block; margin-top: .8rem; color: var(--gold-soft); font: 600 .64rem/1.4 var(--font-garamond); letter-spacing: .17em; text-transform: uppercase; }

.council-section {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 8rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--gold);
}
.expertise-grid article { position: relative; padding: 1.35rem 1.2rem 1.45rem 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expertise-grid article:nth-child(3n+2),
.expertise-grid article:nth-child(3n+3) { padding-left: 1.2rem; }
.expertise-grid article:nth-child(3n) { border-right: 0; }
.expertise-grid h3 { margin: 0 0 .55rem; color: var(--red-deep); font: 500 1.1rem var(--font-garamond); }
.expertise-grid p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.65; }


.site-footer {
  position: relative;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.2rem, 5vw, 5rem);
  color: #73676a;
  background: #fffdf9;
  border-top: 1px solid var(--gold-soft);
  font-size: .7rem;
  letter-spacing: .045em;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 80px;
  height: 2px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.site-footer > img { width: 58px; height: 58px; object-fit: contain; }
.footer-details { display: flex; flex: 1; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.footer-copyright { color: #73676a; }
.footer-details a { color: var(--red); font-weight: 700; text-decoration-color: rgba(134,31,48,.35); text-underline-offset: .22em; }
.footer-details a:hover { color: var(--red-deep); text-decoration-color: currentColor; }
.footer-motto { margin-left: auto; color: var(--red); font: italic 1rem var(--font-garamond); }

.relics-page { min-height: 100svh; overflow: visible; color: var(--ink); background: var(--paper); }
.relics-header {
  z-index: 40;
  position: sticky;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(.85rem, 3vw, 2.2rem);
  color: var(--white);
  background: rgba(75,15,26,.98);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(41,5,12,.17);
  backdrop-filter: blur(12px);
}
.relics-back { color: var(--white); text-decoration: none; font-size: .67rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.relics-back:hover { color: var(--gold-soft); }
.relics-header-title { font: 500 clamp(.84rem, 1.6vw, 1.08rem) var(--font-garamond); text-align: center; letter-spacing: .045em; }
.map-language { display: flex; gap: .25rem; }
.map-language button, .map-language a { padding: .32rem .46rem; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.6); cursor: pointer; font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.map-language button.active, .map-language a.active { color: var(--red); background: var(--white); border-color: var(--white); }

.relics-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  color: var(--white);
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  border-bottom: 1px solid var(--gold);
}
.relics-hero-copy { align-self: center; max-width: 800px; padding: clamp(4.5rem, 8vw, 7rem) clamp(1.2rem, 7vw, 7.5rem); }
.relics-hero-copy .section-kicker { color: var(--gold-soft); }
.relics-hero-copy h1 { max-width: 690px; margin: .75rem 0 1.2rem; font: 500 clamp(3rem, 6vw, 5.6rem)/.94 var(--font-garamond); letter-spacing: -.035em; text-wrap: balance; }
.relics-hero-copy > p:not(.section-kicker) { max-width: 670px; margin: 0; color: rgba(255,255,255,.78); font-size: .94rem; line-height: 1.75; }
.relics-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 650px; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.24); }
.relics-hero-stats strong { display: block; color: var(--white); font: 500 2rem/1 var(--font-garamond); }
.relics-hero-stats span { display: block; margin-top: .28rem; color: rgba(255,255,255,.6); font-size: .59rem; font-weight: 700; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.relics-hero-image {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(75,15,26,.08), rgba(75,15,26,.42)),
    url("assets/images/relics-map-hero.png") center / cover;
  border-left: 1px solid rgba(255,255,255,.18);
}
.relics-hero-image::after { content: ""; z-index: -1; position: absolute; inset: 1.1rem; border: 1px solid rgba(255,255,255,.5); }
.relics-hero-image img { width: clamp(72px, 9vw, 112px); max-height: 210px; padding: .7rem; object-fit: contain; background: rgba(255,255,255,.88); border: 1px solid var(--gold); box-shadow: 0 22px 55px rgba(39,8,14,.28); }
.relics-hero-image span { position: absolute; right: 2rem; bottom: 1.7rem; color: var(--white); font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 2px 9px rgba(27,3,7,.8); }

.library-shell { max-width: 1560px; margin: 0 auto; padding: clamp(3.5rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem) 7rem; }
.library-view-switch { display: inline-flex; border: 1px solid var(--red); }
.library-view-switch button { display: inline-flex; align-items: center; gap: .55rem; min-width: 160px; justify-content: center; padding: .72rem 1.1rem; cursor: pointer; color: var(--red); background: var(--white); border: 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.library-view-switch button + button { border-left: 1px solid var(--red); }
.library-view-switch button.active { color: var(--white); background: var(--red); }
.library-view-switch button span { font-size: .95rem; }

.library-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) repeat(3, minmax(150px, .72fr));
  gap: 1px;
  margin-top: 1.6rem;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.library-controls label { display: grid; gap: .45rem; min-width: 0; padding: .9rem 1rem 1rem; background: var(--white); }
.library-controls label > span:first-child { color: var(--red-deep); font-size: .61rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.library-controls input, .library-controls select { width: 100%; min-width: 0; height: 40px; padding: 0 .2rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #cbb7b7; outline: 0; font: 500 .9rem var(--font-garamond); }
.library-controls input:focus, .library-controls select:focus { border-color: var(--red); }
.search-field { display: grid; grid-template-columns: 25px 1fr; align-items: center; }
.search-field i { color: var(--red); font: normal 1.25rem var(--font-garamond); }
.search-field input { padding-left: .15rem; }

.library-summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .1rem; border-bottom: 1px solid var(--gold); }
.library-summary p { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.library-summary strong { color: var(--red-deep); font: 500 1.2rem var(--font-garamond); }
.library-summary button { padding: .35rem 0; cursor: pointer; color: var(--red); background: none; border: 0; border-bottom: 1px solid var(--red); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.library-grid { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: clamp(1.4rem, 3vw, 3.4rem); align-items: start; padding-top: 1.5rem; }
.relic-results { max-height: 780px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); scrollbar-color: var(--gold-soft) transparent; }
.relic-result { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: .75rem; align-items: start; padding: 1.05rem 1rem; cursor: pointer; color: var(--ink); text-align: left; background: var(--white); border: 0; border-bottom: 1px solid var(--line); transition: background-color .16s ease, box-shadow .16s ease; }
.relic-result:hover { background: #fffaf4; }
.relic-result.selected { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.collection-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--white); background: var(--red); border: 1px solid var(--gold); font: 600 .68rem var(--font-garamond); }
.collection-mark.global { font-size: .85rem; }
.collection-mark.rome { color: var(--red-deep); background: var(--gold-soft); }
.result-copy { min-width: 0; display: grid; }
.result-copy strong { color: var(--red-deep); font: 500 1.05rem/1.25 var(--font-garamond); }
.result-copy > span { margin-top: .22rem; overflow: hidden; color: #65585a; font-size: .76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.result-copy small { margin-top: .38rem; color: #8b7779; font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-arrow { align-self: center; color: var(--gold); }
.load-more { width: 100%; display: grid; gap: .2rem; padding: 1.05rem; cursor: pointer; color: var(--white); background: var(--red); border: 0; font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.load-more small { color: rgba(255,255,255,.62); font-size: .56rem; }

.relic-detail { position: sticky; top: 92px; min-height: 580px; padding: clamp(1.5rem, 4vw, 3.3rem); background: var(--white); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-soft); }
.relic-detail::after { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(182,138,50,.24); pointer-events: none; }
.detail-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; color: var(--red); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.relic-detail h2 { position: relative; z-index: 1; max-width: 780px; margin: 1.1rem 0 .35rem; color: var(--red-deep); font: 500 clamp(2.1rem, 4vw, 3.7rem)/1 var(--font-garamond); letter-spacing: -.025em; }
.detail-location { position: relative; z-index: 1; margin: 0; color: var(--gold); font: italic 1rem var(--font-garamond); }
.detail-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--line); }
.detail-facts div { min-height: 86px; padding: .8rem .9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt, .detail-body h3, .detail-note h3 { color: var(--red); font-size: .57rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.detail-facts dd { margin: .28rem 0 0; color: #4c3c3e; font: 500 .87rem/1.4 var(--font-garamond); }
.detail-body { position: relative; z-index: 1; margin-top: 1.8rem; }
.detail-body h3, .detail-note h3 { margin: 0 0 .45rem; }
.detail-body p { margin: 0; color: #5f5152; font-size: .88rem; line-height: 1.8; }
.detail-note { position: relative; z-index: 1; display: grid; grid-template-columns: 34px 1fr; gap: .85rem; margin-top: 1.5rem; padding: 1rem; background: var(--red-soft); border-left: 3px solid var(--red); }
.detail-note > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--white); background: var(--red); border: 1px solid var(--gold); }
.detail-note p { margin: 0; color: #665659; font-size: .78rem; line-height: 1.6; }
.detail-map-button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; padding: .72rem 1rem; cursor: pointer; color: var(--white); background: var(--red); border: 1px solid var(--red); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-map-button:hover { color: var(--red); background: var(--white); }

.library-empty { min-height: 420px; display: grid; place-items: center; align-content: center; padding: 3rem 1rem; text-align: center; background: var(--white); border: 1px solid var(--line); }
.library-empty img { width: 48px; height: 82px; object-fit: contain; opacity: .75; }
.library-empty h2 { margin: 1rem 0 .3rem; color: var(--red-deep); font: 500 2rem var(--font-garamond); }
.library-empty p { max-width: 520px; margin: 0; color: var(--muted); }
.library-empty button { margin-top: 1.2rem; padding: .7rem 1rem; cursor: pointer; color: var(--white); background: var(--red); border: 1px solid var(--red); }

.map-library-panel { margin-top: 1.6rem; background: var(--white); border: 1px solid var(--gold); box-shadow: var(--shadow-soft); }
.map-library-intro { display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: center; padding: 1rem 1.2rem; color: var(--white); background: var(--red); }
.map-library-intro > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--gold-soft); }
.map-library-intro p { max-width: 850px; margin: 0; color: rgba(255,255,255,.82); font-size: .78rem; line-height: 1.55; }
.library-map-frame { display: block; width: 100%; height: min(780px, calc(100svh - 160px)); min-height: 560px; border: 0; background: #f5f5f5; }

@media (hover: hover) {
  .pillar-card,
  .patron-facts article,
  .principles-grid article,
  .office-grid article,
  .expertise-grid article {
    transition: background-color .2s ease, color .2s ease;
  }
  .pillar-card:hover,
  .patron-facts article:hover,
  .principles-grid article:hover,
  .office-grid article:hover,
  .expertise-grid article:hover { background: rgba(255,255,255,.6); }
  .pillar-card:hover::after { transform: scaleX(1); }
  .rule-card:hover { background: rgba(255,255,255,.035); }
  .principles-grid article:hover::before,
  .office-grid article:hover::before,
  .expertise-grid article:hover::before { width: 52px; background: var(--red); }
  .observance-list article:hover::after { width: 100%; }
  .membership-insignia > img:hover { transform: translateY(-4px); box-shadow: 0 26px 62px rgba(41,5,12,.43); }
  .story summary:hover { color: var(--gold-soft); padding-inline: .25rem; }
}

@media (max-width: 980px) {
  .site-nav a { display: none; }
  .hero { grid-template-columns: 1fr minmax(280px, .55fr); }
  .intro-band { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card, .pillar-card + .pillar-card { min-height: 0; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar-card h3 { margin-top: 1.1rem; }
  .patron-heading { grid-template-columns: 1fr; align-items: start; }
  .patron-facts { grid-template-columns: 1fr 1fr; }
  .patron-facts article:nth-child(2) { border-right: 0; }
  .patron-facts article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rule-intro { grid-template-columns: 1fr; align-items: start; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .rule-card:nth-child(2) { border-right: 0; }
  .rule-card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .custody-lenses { grid-template-columns: 1fr; }
  .custody-lenses article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .custody-lenses h3 { margin-top: 1rem; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .principles-grid article:nth-child(2n) { border-right: 0; }
  .lore-section, .observance-section { grid-template-columns: 1fr; }
  .map-feature { grid-template-columns: 1fr; }
  .leadership-roster { grid-template-columns: 1fr 1fr; }
  .leadership-member:nth-child(2) { border-right: 0; }
  .leadership-member:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .relics-hero { grid-template-columns: 1fr; }
  .relics-hero-image { min-height: 360px; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .library-controls { grid-template-columns: 1fr 1fr; }
  .library-search { grid-column: 1 / -1; }
  .library-grid { grid-template-columns: 1fr; }
  .relic-results { max-height: 620px; }
  .relic-detail { position: relative; top: auto; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .expertise-grid article:nth-child(n) { padding-inline: 1.2rem; }
  .expertise-grid article:nth-child(2n) { border-right: 0; }
  .membership { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 64px; padding-block: .35rem; }
  .brand-cross { width: 25px; height: 43px; }
  .brand-name strong { font-size: .76rem; letter-spacing: .07em; }
  .brand-name span { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-content { padding: 4.2rem 1.2rem; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-mandate { grid-template-columns: 34px 1fr; gap: .75rem; padding: .9rem; }
  .hero-mandate > span { width: 30px; height: 30px; }
  .hero-mandate p { font-size: .78rem; }
  .hero::after { inset: .55rem; }
  .hero-art { min-height: 560px; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .hero-art::before { width: 400px; height: 400px; top: 56px; }
  .hero-figure { height: 550px; max-width: 100%; }
  .intro-band { padding-block: 4rem; }
  .patron-facts { grid-template-columns: 1fr; }
  .patron-facts article,
  .patron-facts article + article {
    padding: 1.2rem 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card, .rule-card:first-child, .rule-card:last-child {
    min-height: 0;
    padding: 1.4rem 0;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .rule-card h3 { margin-top: .8rem; }
  .principles-grid, .office-grid, .expertise-grid { grid-template-columns: 1fr; }
  .leadership-intro { grid-template-columns: 1fr; padding: 2rem 1.2rem; }
  .leadership-roster { grid-template-columns: 1fr; }
  .leadership-member,
  .leadership-member:nth-child(2) { min-height: 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .leadership-member:first-child { border-top: 0; }
  .leadership-member h4 { margin-top: .8rem; }
  .principles-grid article,
  .principles-grid article:nth-child(3n),
  .principles-grid article:nth-child(2n),
  .office-grid article,
  .expertise-grid article,
  .expertise-grid article:nth-child(3n),
  .expertise-grid article:nth-child(2n) { min-height: 0; border-right: 0; }
  .story summary { grid-template-columns: 52px 1fr 18px; gap: .7rem; }
  .story p { margin-left: 0; }
  .map-feature { margin-inline: 0; }
  .map-copy { padding: 3.5rem 1.2rem; }
  .map-stats { justify-content: space-between; gap: .7rem; }
  .map-stat strong { font-size: 1.55rem; }
  .map-visual { min-height: 420px; background-position: 52% center; }
  .map-visual::after { inset: .65rem; }
  .map-emblem { top: 1.1rem; right: 1.2rem; width: 48px; }
  .map-label { inset-inline: .8rem; bottom: .8rem; }
  .timeline-item { grid-template-columns: 72px 1fr; }
  .timeline::before { left: 59px; }
  .timeline-item::before { left: 54px; }
  .timeline-item p { grid-column: 2; }
  .observance-list article { grid-template-columns: 76px 1fr; }
  .observance-list p { grid-column: 2; }
  .membership-insignia { padding: 3rem 1.2rem; }
  .membership-insignia::before { width: 390px; height: 390px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .footer-details { min-width: calc(100% - 82px); align-items: flex-start; flex-direction: column; }
  .footer-motto { width: calc(100% - 75px); margin-left: 75px; }
  .relics-header { height: 72px; }
  .relics-header-title { display: none; }
  .relics-back { font-size: .59rem; }
  .relics-hero-copy { padding: 4.3rem 1.2rem; }
  .relics-hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .relics-hero-stats { gap: .6rem; }
  .relics-hero-stats strong { font-size: 1.65rem; }
  .relics-hero-stats span { font-size: .52rem; }
  .relics-hero-image { min-height: 290px; }
  .relics-hero-image img { width: 70px; max-height: 130px; }
  .relics-hero-image span { right: 1.2rem; bottom: 1rem; font-size: .5rem; }
  .library-shell { padding: 3rem .8rem 5rem; }
  .library-view-switch { display: flex; width: 100%; }
  .library-view-switch button { flex: 1; min-width: 0; padding-inline: .45rem; font-size: .59rem; }
  .library-controls { grid-template-columns: 1fr; }
  .library-search { grid-column: auto; }
  .library-summary { padding-inline: .25rem; }
  .library-summary p { font-size: .62rem; }
  .relic-results { max-height: 570px; }
  .relic-result { grid-template-columns: 30px minmax(0, 1fr) 16px; padding: .9rem .75rem; }
  .collection-mark { width: 28px; height: 28px; }
  .relic-detail { min-height: 0; padding: 1.5rem 1.1rem; }
  .relic-detail::after { inset: .35rem; }
  .relic-detail h2 { font-size: 2.25rem; }
  .detail-facts { grid-template-columns: 1fr; }
  .library-map-frame { min-height: 500px; height: calc(100svh - 130px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
