:root {
  --navy: #0f2744;
  --navy-deep: #0a1b30;
  --navy-mid: #16365c;
  --gold: #c9a227;
  --gold-bright: #e0b93a;
  --cream: #f3efe6;
  --cream-soft: #faf7f1;
  --ink: #1c2430;
  --muted: #5d6b7c;
  --line: rgba(15, 39, 68, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(10, 27, 48, 0.18);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, var(--cream-soft), var(--cream));
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 27, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.site-header__inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(201,162,39,.35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .04em;
}
.brand__text small { color: rgba(255,255,255,.65); font-size: .68rem; max-width: 220px; }

.site-nav { display: flex; justify-content: center; gap: .15rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-bright); background: rgba(255,255,255,.06); }
.header-tools { display: flex; align-items: center; gap: .6rem; color: var(--white); }
.icon-btn, .lang { color: rgba(255,255,255,.85); font-size: .95rem; }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero + map */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero__map { position: absolute; inset: 0; z-index: 0; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 18, 32, 0.88) 0%, rgba(8, 18, 32, 0.55) 38%, rgba(8, 18, 32, 0.15) 68%, rgba(8, 18, 32, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.25), transparent 30%, rgba(8, 18, 32, 0.45));
}
.hero__content {
  position: relative; z-index: 2;
  width: min(560px, calc(100% - 2.5rem));
  margin: clamp(3rem, 10vh, 6rem) 0 4rem clamp(1.25rem, 5vw, 4.5rem);
  color: var(--white);
  animation: rise .8s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 .85rem;
  font-weight: 700;
}
.hero__lead { margin: 0 0 1.25rem; color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 34ch; }
.hero__search {
  display: flex; background: rgba(255,255,255,.95); border-radius: 999px;
  overflow: hidden; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.hero__search input {
  flex: 1; border: 0; padding: .9rem 1.1rem; font: inherit; background: transparent; outline: none; color: var(--ink);
}
.hero__search button {
  border: 0; background: transparent; padding: 0 1rem; cursor: pointer; color: var(--navy);
}
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
  margin-bottom: 1.4rem;
}
.hero__stats div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .7rem .75rem;
}
.hero__stats strong { display: block; color: var(--gold-bright); font-size: 1.15rem; }
.hero__stats span { font-size: .78rem; color: rgba(255,255,255,.75); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: .85rem 1.4rem;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn--gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--navy); }

.map-legend {
  position: absolute; z-index: 3; right: 1.25rem; bottom: 1.25rem;
  background: rgba(255,255,255,.94); border-radius: 12px; padding: .75rem .9rem;
  box-shadow: var(--shadow); display: grid; gap: .35rem; min-width: 180px;
}
.map-legend__item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

.leaflet-container { background: #c9d6c4; font: inherit; }
.map-pin {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map-popup h3 { margin: 0 0 .25rem; font-family: var(--font-display); font-size: 1.2rem; }
.map-popup p { margin: 0 0 .55rem; color: var(--muted); font-size: .9rem; }
.map-popup .tag {
  display: inline-block; color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; margin-bottom: .6rem;
}
.map-popup a { color: var(--navy); font-weight: 600; }

/* Sections */
.section { padding: 1.75rem 0; }
.section--tight { padding: 1.35rem 0; }
.section__head { margin-bottom: 1rem; }
.section__head--row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.section__head h2, .timeline-panel h2, .feed-grid h2, .region-grid h2, .region-block h2, .did-you-know h2, .newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 .25rem;
  color: var(--navy);
}
.section__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.view-all {
  flex: 0 0 auto;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  margin-top: .2rem;
}
.view-all:hover { color: var(--gold); }

.category-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem;
}
.category-card {
  min-height: 150px; border-radius: var(--radius); padding: 1rem 1.1rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8,18,32,.88));
}
.category-card > * { position: relative; z-index: 1; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.category-card__desc { font-size: .82rem; opacity: .85; margin-top: .2rem; }
.category-card__arrow { margin-top: .45rem; opacity: .9; font-size: 1rem; }
.cat-map { background-image: linear-gradient(135deg, #1b4d3e, #0f2744); }
.cat-insc { background-image: linear-gradient(135deg, #6b3a1e, #0f2744); }
.cat-time { background-image: linear-gradient(135deg, #3a4d6b, #0f2744); }
.cat-media { background-image: linear-gradient(135deg, #4d1e3a, #0f2744); }
.cat-research { background-image: linear-gradient(135deg, #1e3a4d, #0f2744); }

.featured-grid {
  display: grid; grid-template-columns: 1.7fr .9fr; gap: 1.15rem; align-items: start;
}
.site-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem;
}
.site-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-card__thumb {
  height: 110px; background: linear-gradient(135deg, var(--navy-mid), var(--accent, var(--gold)));
  display: grid; place-items: center; color: #fff; overflow: hidden;
}
.site-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-card__placeholder { font-family: var(--font-display); font-size: 2.2rem; }
.site-card__body { padding: .8rem .9rem 1rem; }
.site-card__body h3 { margin: 0 0 .15rem; font-size: 1rem; color: var(--navy); }
.site-card__body > p { margin: 0 0 .5rem; color: var(--muted); font-size: .84rem; }
.site-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.site-card__arrow {
  color: var(--navy); font-size: 1.05rem; font-weight: 700; opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
}
.site-card:hover .site-card__arrow { transform: translateX(3px); opacity: 1; }
.tag { display: inline-block; color: #fff; border-radius: 999px; padding: .18rem .55rem; font-size: .72rem; font-weight: 600; }

.timeline-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; box-shadow: 0 8px 24px rgba(15,39,68,.06);
}
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(201,162,39,.45); }
.timeline li { padding: 0 0 .85rem 1rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff;
}
.timeline time { display: block; color: var(--gold); font-weight: 700; font-size: .8rem; }
.timeline strong { color: var(--navy); font-size: .92rem; }
.timeline p { margin: .1rem 0 0; color: var(--muted); font-size: .84rem; }
.text-link { color: var(--navy); font-weight: 600; }

.feed-section { background: rgba(15, 39, 68, 0.04); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.feed-list { list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .7rem; }
.feed-list li { display: grid; grid-template-columns: 52px 1fr; gap: .7rem; align-items: start; }
.feed-list strong { display: block; color: var(--navy); font-size: .92rem; }
.feed-list p { margin: .1rem 0; color: var(--muted); font-size: .84rem; }
.meta { font-size: .72rem; color: var(--gold); font-weight: 600; }
.feed-thumb {
  width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 700;
}
.feed-thumb--insc { background: linear-gradient(135deg, #8d5a2b, #3d2412); }
.feed-thumb--video { background: linear-gradient(135deg, #2b4d8d, #12203d); font-size: 1rem; }
.feed-thumb--doc { background: linear-gradient(135deg, #8d2b2b, #3d1212); }

.region-grid { display: grid; grid-template-columns: 1.35fr 1.05fr .9fr; gap: 1rem; align-items: stretch; }
.region-block, .did-you-know, .newsletter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem;
}
.region-title { display: flex; align-items: center; gap: .55rem; }
.region-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.region-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.region-country {
  display: grid; grid-template-columns: 72px 1fr; gap: .65rem; align-items: start;
  padding: .65rem; border-radius: 10px; background: rgba(15,39,68,.03);
}
.region-country__map {
  width: 72px; height: 88px; display: grid; place-items: center;
}
.region-country__map img { width: 100%; height: 100%; object-fit: contain; }
.region-cols h3 { margin: 0 0 .35rem; color: var(--navy); font-size: 1rem; }
.region-cols ul { margin: 0; padding-left: 1rem; color: var(--muted); font-size: .88rem; }
.region-cols a:hover { color: var(--gold); }

.did-you-know__body {
  display: grid; grid-template-columns: 1fr 110px; gap: .85rem; align-items: center; margin-top: .65rem;
}
.did-you-know blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.2rem;
  color: var(--navy); line-height: 1.35;
}
.did-you-know__image {
  margin: 0; border-radius: 10px; overflow: hidden; background: #ebe4d6; aspect-ratio: 3/4;
}
.did-you-know__image img { width: 100%; height: 100%; object-fit: cover; }

.newsletter__form { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter__form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .65rem .95rem; font: inherit;
}
.social-row { display: flex; gap: .5rem; margin-top: .9rem; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15,39,68,.06); color: var(--navy); font-size: .85rem; font-weight: 700;
}
.social-row a:hover { background: var(--navy); color: #fff; }

.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 1.1rem 0; margin-top: 1rem;
}
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: .65rem; }
.site-footer__brand img { border-radius: 50%; background: rgba(255,255,255,.08); }
.site-footer__brand p { margin: 0; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a:hover { color: var(--gold-bright); }

/* Inner pages */
.page-hero {
  background:
    linear-gradient(120deg, rgba(10,27,48,.92), rgba(15,39,68,.75)),
    radial-gradient(circle at 80% 20%, rgba(201,162,39,.35), transparent 45%);
  color: #fff; padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .4rem; }
.page-hero p { margin: 0; max-width: 60ch; color: rgba(255,255,255,.8); }
.breadcrumbs { font-size: .85rem; margin-bottom: .75rem; opacity: .8; }
.breadcrumbs a { color: var(--gold-bright); }
.content-wrap { padding: 2.5rem 0 4rem; }
.prose { max-width: 75ch; }
.prose p { color: var(--muted); }
.state-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.mini-map { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 1.25rem; }
.split-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1.5rem; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.alert {
  padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
}
.alert--ok { background: #e8f6ef; color: #1b6b43; }
.alert--error { background: #fdeceb; color: #8f2d24; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid, .feed-grid, .region-grid, .split-layout { grid-template-columns: 1fr; }
  .site-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-cols { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-header__inner { grid-template-columns: auto auto auto; }
  .nav-toggle { display: flex; justify-self: end; }
  .site-nav.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 74px;
    background: var(--navy-deep); padding: 1rem; gap: .25rem;
  }
  .header-tools { display: none; }
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-cards, .category-grid { grid-template-columns: 1fr; }
  .map-legend { left: 1rem; right: 1rem; min-width: 0; }
  .newsletter__form { flex-direction: column; }
  .did-you-know__body { grid-template-columns: 1fr; }
  .did-you-know__image { max-width: 160px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* ——— Edict / inscription subpage (client common template) ——— */
.edict-crumbs {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  font-size: .86rem;
  color: var(--muted);
}
.edict-crumbs a { color: var(--navy); font-weight: 600; }
.edict-crumbs a:hover { color: var(--gold); }
.edict-crumbs span { margin: 0 .35rem; opacity: .55; }

.edict-hero {
  position: relative;
  color: #fff;
  padding: 0 0 1.25rem;
  margin-bottom: 1.5rem;
}
.edict-hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(28, 36, 48, .15), transparent 50%),
    url("../img/edict-hero.svg") center/cover no-repeat,
    linear-gradient(135deg, #3d4a3a 0%, #6b5b45 40%, #8a7a62 70%, #c4b59a 100%);
}
.edict-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, .82) 0%, rgba(10, 18, 28, .45) 48%, rgba(10, 18, 28, .25) 100%),
    linear-gradient(180deg, rgba(10, 18, 28, .25), transparent 40%, rgba(10, 18, 28, .55));
}
.edict-hero__inner {
  position: relative; z-index: 1;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem;
  max-width: 52rem;
}
.edict-hero__kicker {
  margin: 0 0 .55rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
}
.edict-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: .06em;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}
.edict-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  margin: .45rem 0 .9rem;
  color: rgba(255,255,255,.92);
}
.edict-hero__lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(255,255,255,.82);
  font-size: 1.02rem;
}

.edict-meta {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 39, 68, .12);
  color: var(--ink);
  overflow: hidden;
}
.edict-meta > div {
  padding: .95rem 1rem;
  border-right: 1px solid var(--line);
}
.edict-meta > div:last-child { border-right: 0; }
.edict-meta dt {
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .3rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.edict-meta dd {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.edict-ico {
  width: 14px; height: 14px; display: inline-block; flex: 0 0 auto;
  background: var(--gold); border-radius: 2px; opacity: .85;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}
.edict-ico--pin {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}
.edict-ico--date, .edict-ico--script, .edict-ico--lang, .edict-ico--type, .edict-ico--coord {
  border-radius: 50%;
}

.edict-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding-bottom: 3.5rem;
  align-items: start;
}
.edict-block {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.edict-block__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.edict-overview {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 1.25rem;
  align-items: start;
}
.edict-overview p, .edict-history p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}
.edict-overview__figure { margin: 0; }
.edict-overview__figure figcaption {
  margin-top: .4rem; font-size: .78rem; color: var(--muted);
}

.edict-history {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.25rem;
}
.edict-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(15, 39, 68, .04);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
}
.edict-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 .75rem !important;
}
.edict-quote cite {
  font-style: normal;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}

.edict-location {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1.15rem;
}
.edict-mini-map {
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe6d8;
}
.edict-map-btn { margin-top: .85rem; }
.edict-nearby {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.edict-nearby h4, .edict-side-card h4, .edict-video__related h4 {
  margin: 0 0 .75rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.edict-nearby ul { list-style: none; margin: 0; padding: 0; }
.edict-nearby li {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.edict-nearby li:last-child { border-bottom: 0; }
.edict-nearby a { color: var(--navy); font-weight: 600; }
.edict-nearby span { color: var(--muted); white-space: nowrap; }

.edict-insc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.edict-insc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem;
  min-height: 220px;
}
.edict-insc-card--wide {
  grid-column: 1 / -1;
  min-height: auto;
}
.edict-insc-card h4 {
  margin: 0 0 .65rem;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.edict-insc-card p { margin: .65rem 0 0; font-size: .86rem; color: var(--muted); }
.edict-brahmi, .edict-latin {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--navy);
  letter-spacing: .04em;
}
.edict-brahmi {
  font-size: 1.2rem;
  letter-spacing: .12em;
  background: rgba(15,39,68,.03);
  padding: .75rem;
  border-radius: 8px;
}
.edict-translation { font-size: .9rem !important; line-height: 1.5; }
.edict-notes {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: .75rem 1rem;
}
.edict-notes summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.edict-notes summary::-webkit-details-marker { display: none; }
.edict-notes summary::after { content: " ▾"; color: var(--gold); }
.edict-notes[open] summary::after { content: " ▴"; }
.edict-notes p { margin: .75rem 0 0; color: var(--muted); font-size: .92rem; }

.edict-filters {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem;
}
.edict-filter {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: .4rem .85rem;
  font: inherit;
  font-size: .84rem;
  color: var(--navy);
  cursor: pointer;
}
.edict-filter.is-active, .edict-filter:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.edict-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
}
.edict-center { text-align: center; margin: 1.1rem 0 0; }

.edict-video {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 1rem;
}
.edict-video__player {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(10,27,48,.55), rgba(10,27,48,.75)),
    linear-gradient(135deg, #4a3b28, #1c2430);
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  gap: .75rem;
}
.edict-play {
  width: 64px; height: 64px; border-radius: 50%;
  border: 0; background: var(--gold-bright); color: var(--navy-deep);
  font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow);
}
.edict-video__related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.edict-video__related li {
  display: grid; grid-template-columns: 72px 1fr; gap: .65rem; align-items: center;
}
.edict-video__related strong { display: block; color: var(--navy); font-size: .9rem; }
.edict-video__related span { color: var(--muted); font-size: .78rem; }

.edict-related {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.edict-related__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.edict-related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edict-related__card strong {
  display: block; padding: .65rem .7rem 0; color: var(--navy); font-size: .95rem;
}
.edict-related__card span, .edict-related__card em {
  display: block; padding: 0 .7rem; font-size: .78rem; font-style: normal; color: var(--muted);
}
.edict-related__card em { padding-bottom: .75rem; color: var(--gold); font-weight: 600; }

.edict-pager {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding: 1.5rem 0 0; font-weight: 600; color: var(--navy);
}
.edict-pager a:hover { color: var(--gold); }
.edict-pager__map {
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.edict-aside { display: grid; gap: 1rem; position: sticky; top: 90px; }
.edict-side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}
.edict-toc { list-style: none; margin: 0; padding: 0; }
.edict-toc a {
  display: block;
  padding: .45rem .65rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--muted);
}
.edict-toc a:hover, .edict-toc a.is-active {
  background: rgba(201, 162, 39, .14);
  color: var(--navy);
  font-weight: 600;
}
.edict-companion { list-style: none; margin: 0 0 1rem; padding: 0; }
.edict-companion li {
  display: grid; gap: .1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.edict-companion span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.edict-companion strong { color: var(--navy); font-weight: 600; }
.edict-side-card .btn { width: 100%; }

.edict-timeline {
  list-style: none; margin: 0; padding: 0 0 0 .85rem;
  border-left: 2px solid rgba(201, 162, 39, .4);
}
.edict-timeline li {
  position: relative;
  padding: 0 0 .85rem .95rem;
}
.edict-timeline li::before {
  content: "";
  position: absolute; left: -1.05rem; top: .2rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #c9c2b0; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,39,68,.15);
}
.edict-timeline li.is-active::before { background: var(--navy); }
.edict-timeline time {
  display: block; font-weight: 700; font-size: .8rem; color: var(--gold);
}
.edict-timeline span { font-size: .86rem; color: var(--navy); }
.edict-timeline li.is-active span { font-weight: 700; }

.edict-downloads, .edict-reading { list-style: none; margin: 0; padding: 0; }
.edict-downloads li, .edict-reading li {
  display: flex; justify-content: space-between; gap: .5rem; align-items: baseline;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.edict-downloads a, .edict-reading a { color: var(--navy); font-weight: 600; }
.edict-downloads span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.edict-reading li { flex-direction: column; gap: .2rem; }
.edict-reading strong { color: var(--navy); font-size: .9rem; }

.edict-ph {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15,39,68,.08), rgba(201,162,39,.18)),
    repeating-linear-gradient(-12deg, transparent, transparent 8px, rgba(15,39,68,.03) 8px, rgba(15,39,68,.03) 16px);
  min-height: 120px;
}
.edict-ph--rock { min-height: 180px; background: linear-gradient(145deg, #6d6554, #b7a889 45%, #ece4d4); }
.edict-ph--carve { min-height: 110px; background: linear-gradient(160deg, #4a4034, #8a7a62); }
.edict-ph--gallery { min-height: 88px; aspect-ratio: 4/3; }
.edict-ph--thumb { min-height: 52px; height: 52px; border-radius: 8px; background: linear-gradient(135deg, #2b3d4d, #6b5840); }
.edict-ph--related { min-height: 86px; border-radius: 0; background: linear-gradient(135deg, #16365c, #8a7040); }

.site-hero {
  position: relative; min-height: 280px; color: #fff;
  background: center/cover no-repeat var(--navy-deep);
  margin-bottom: 0;
}
.site-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,18,32,.88), rgba(8,18,32,.35) 60%, rgba(8,18,32,.2));
}
.site-hero__inner { position: relative; z-index: 1; padding: 2.5rem 0 2rem; }
.site-hero .breadcrumbs a { color: rgba(255,255,255,.85); }
.site-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem; margin: 1rem 0 1.5rem;
}
.site-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
  box-shadow: var(--shadow);
}
.edict-overview__photo,
.edict-gallery__img,
.edict-related__photo {
  width: 100%; object-fit: cover; display: block;
}
.edict-overview__photo { min-height: 180px; border-radius: 12px; }
.edict-gallery__img { aspect-ratio: 4/3; border-radius: 8px; }
.edict-related__photo { min-height: 86px; border-radius: 0; }

@media (max-width: 1100px) {
  .edict-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edict-meta > div:nth-child(3) { border-right: 0; }
  .edict-meta > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .edict-insc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edict-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edict-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .edict-layout, .edict-overview, .edict-history, .edict-location, .edict-video {
    grid-template-columns: 1fr;
  }
  .edict-aside { position: static; }
  .edict-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .edict-meta { grid-template-columns: 1fr 1fr; }
  .edict-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .edict-insc-grid, .edict-gallery, .edict-related { grid-template-columns: 1fr 1fr; }
  .edict-pager { flex-direction: column; align-items: stretch; text-align: center; }
}
