/* Empire of Hrossagrid - Imperial Register
   One shared stylesheet. No external dependencies, no web fonts:
   the type stacks prefer characterful faces already present on the
   reader's system and fall back gracefully. */

:root {
  color-scheme: light;

  /* Parchment field */
  --paper: #f2ebda;
  --paper-2: #e9e0c9;
  --paper-3: #ded2b6;
  --ink: #26221a;
  --ink-muted: #625948;
  --ink-faint: #877c66;
  --rule: #c9bb9a;
  --rule-soft: #dbcfb2;

  /* Ceremonial field */
  --deep: #16241f;
  --deep-2: #0f1a16;
  --deep-ink: #f0e8d2;
  --deep-muted: #b3a882;

  /* Accents */
  --gold: #9a7b2f;
  --gold-bright: #c2a052;
  --cinnabar: #91362a;
  --cinnabar-soft: #f0ded7;
  --green: #3d6b47;
  --green-soft: #e2ead9;

  --display: "Hoefler Text", "Baskerville", "Baskerville Old Face", "Iowan Old Style",
             "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
          Georgia, serif;
  --label: "Optima", "Gill Sans", "Gill Sans MT", "Futura", "Trebuchet MS",
           system-ui, sans-serif;


  /* Illustration colours, read by the inline hero artwork */
  --art-sky-top: #ded2ae;
  --art-sky-bottom: #f0e8d4;
  --art-hill-far: #d8cfae;
  --art-hill-mid: #bcb083;
  --art-ground: #9b8f63;
  --art-road: #e4dbc0;
  --art-road-line: #d6cbaa;
  --art-stone: #7c7052;
  --art-stone-dark: #5d533b;
  --art-hoof: #b7aa82;

  --measure: 66ch;
  --shell: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #171612;
  --paper-2: #1f1d17;
  --paper-3: #2a2720;
  --ink: #ece5d3;
  --ink-muted: #b3aa93;
  --ink-faint: #8b8270;
  --rule: #3b362b;
  --rule-soft: #302c23;

  --deep: #0d1512;
  --deep-2: #080f0d;
  --deep-ink: #f0e8d2;
  --deep-muted: #a89d78;

  --gold: #c2a052;
  --gold-bright: #dcbf78;
  --cinnabar: #c96a55;
  --cinnabar-soft: #2b1c18;
  --green: #7fae87;
  --green-soft: #1c2a1e;

  --art-sky-top: #1b1a14;
  --art-sky-bottom: #201e17;
  --art-hill-far: #2a271d;
  --art-hill-mid: #332f23;
  --art-ground: #3d3829;
  --art-road: #4a4433;
  --art-road-line: #544d3a;
  --art-stone: #55503c;
  --art-stone-dark: #423e2e;
  --art-hoof: #5f5843;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.78;
  background-color: var(--paper);
  /* Faint laid-paper texture, drawn with gradients rather than an image */
  background-image:
    repeating-linear-gradient(0deg, rgba(38, 34, 26, 0.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(38, 34, 26, 0.015) 0 1px, transparent 1px 7px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

/* ================= Ceremonial head ================= */

.utility {
  background: var(--deep-2);
  color: var(--deep-muted);
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.utility__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}

.utility__note {
  margin: 0;
}

.hrossagrith-clock {
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--deep-ink);
}

.search-link {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-muted);
  text-decoration: none;
  border: 1px solid rgba(194, 160, 82, 0.45);
  padding: 0.25rem 0.7rem;
}

.search-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.theme-toggle {
  margin-left: auto;
  border: 1px solid rgba(194, 160, 82, 0.45);
  background: transparent;
  color: var(--deep-muted);
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

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

.masthead {
  background-color: var(--deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(194, 160, 82, 0.05) 0 2px, transparent 2px 10px);
  color: var(--deep-ink);
  border-bottom: 1px solid var(--gold);
  text-align: center;
  position: relative;
}

.masthead__inner {
  padding-top: 2.1rem;
  padding-bottom: 1.6rem;
  position: relative;
}

.masthead__emblem {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(194, 160, 82, 0.28);
}

.masthead__state {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--deep-muted);
  margin: 0 0 0.5rem;
}

.masthead__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--deep-ink);
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.masthead__name a {
  color: inherit;
  text-decoration: none;
}

.masthead__motto {
  display: none !important;
}

.masthead__rule {
  width: min(420px, 70%);
  margin: 1.1rem auto 0;
  color: var(--gold);
  display: block;
  height: 22px;
}

.footer__flag {
  display: block;
  width: 120px;
  height: 80px;
  object-fit: cover;
  margin: 0 0 1rem;
  box-shadow: 0 0 0 1px rgba(194, 160, 82, 0.6);
}

.masthead::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--gold);
}

/* ================= Navigation ================= */

.nav {
  position: relative;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.nav a[aria-current="page"] {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

/* ================= Breadcrumb ================= */

.crumb {
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 1rem;
  /* Compounds such as the Dutch "Wegstatusmarkeringen" must not push the
     page sideways on a narrow phone. */
  overflow-wrap: break-word;
}

.crumb a {
  color: var(--ink-muted);
}

.crumb span {
  padding: 0 0.45rem;
}

/* ================= Hero ================= */

.hero {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.hero__art {
  display: block;
  width: 100%;
  height: clamp(200px, 27vw, 320px);
  border-bottom: 1px solid var(--rule);
}

.hero__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__panel {
  padding: 1.7rem 0 1.9rem;
  text-align: center;
}

.hero__panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 400;
}

.hero__panel p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.06rem;
}

/* ================= Typography ================= */

.wrap {
  padding-top: 2.4rem;
  padding-bottom: 3.4rem;
}

.prose {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.page-title {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.entry {
  font-family: var(--label);
  font-size: 0.71rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 0.55rem;
}

.page-standfirst {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: 0 0 2rem;
  font-style: italic;
}

h2 {
  font-size: 1.55rem;
  margin: 2.8rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.h2-num {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.16rem;
  margin: 1.9rem 0 0.5rem;
}

p {
  margin: 0 0 1.05rem;
}

.prose > p,
.col > p {
  text-align: justify;
  hyphens: auto;
}

a {
  color: var(--cinnabar);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

ul,
ol {
  padding-left: 1.35rem;
  margin: 0 0 1.05rem;
}

li {
  margin-bottom: 0.4rem;
}

.native {
  font-style: italic;
}

.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.1em 0.1em 0 0;
  color: var(--gold);
}

/* ================= Two-column with margin notes ================= */

.two {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) 240px;
  gap: 2.4rem;
  align-items: start;
}

.marg {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
  font-style: italic;
  position: sticky;
  top: 1.5rem;
}

.marg strong {
  display: block;
  font-family: var(--label);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin-bottom: 0.4rem;
}

/* ================= Ornaments ================= */

.ornament {
  display: block;
  width: 240px;
  height: 20px;
  margin: 2.6rem auto;
  color: var(--gold);
}

/* ================= Cards / register grid ================= */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--paper-2);
}

.service {
  margin: 0;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service:hover {
  background: var(--paper-3);
}

.service .icon {
  width: 40px;
  height: 40px;
  color: var(--cinnabar);
  display: block;
  margin-bottom: 0.75rem;
}

.service__no {
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.2rem;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.22rem;
}

.service h3 a {
  text-decoration: none;
  color: var(--ink);
}

.service h3 a:hover {
  color: var(--cinnabar);
}

.service p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.service__links {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.service__links li {
  margin: 0 0 0.22rem;
}

.service__links a {
  text-decoration: none;
}

.service__links a:hover {
  text-decoration: underline;
}

/* ================= Notices, quotes ================= */

.notice {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 1.2rem 1.4rem 1.2rem 5.4rem;
  margin: 2rem 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
  position: relative;
  min-height: 92px;
}

.notice .seal {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 3px rgba(194, 160, 82, 0.22);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice strong {
  color: var(--ink);
}

.pullquote {
  margin: 2.2rem 0;
  padding: 1.5rem 1.8rem;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: var(--paper-2);
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink);
  text-align: center;
}

.pullquote p:last-child {
  margin-bottom: 0;
}

/* ================= Tags ================= */

.tag {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.14rem 0.5rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-muted);
  vertical-align: 0.15em;
}

.tag--in-force {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.tag--planned {
  border-color: var(--gold);
  background: var(--paper-3);
  color: var(--gold);
}

/* ================= Road-status markers ================= */

.markers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 0;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--paper-2);
}

.marker {
  margin: 0;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.1rem;
}

.marker__disc {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  /* The plain white disc would otherwise vanish against the parchment card. */
  box-shadow: 0 0 0 1px rgba(34, 48, 47, 0.32);
}

.marker__name {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.marker__what {
  display: block;
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ================= Register list ================= */

.register {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  border-top: 1px solid var(--rule);
}

.register li {
  margin: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}

.register__title {
  font-size: 1.08rem;
  margin: 0 0 0.3rem;
}

.register__meta {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.35rem;
}

.register__note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ================= Split panels ================= */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0;
  margin: 1.6rem 0 2.2rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.split > li {
  margin: 0;
  padding: 1.4rem;
  border-right: 1px solid var(--rule);
}

.split > li:last-child {
  border-right: 0;
}

.split h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  color: var(--cinnabar);
}

.split p:last-child {
  margin-bottom: 0;
}

/* ================= Numbered dynamics ================= */

.dynamics {
  counter-reset: dyn;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 2rem;
}

.dynamics li {
  counter-increment: dyn;
  position: relative;
  padding: 0 0 0 3.2rem;
  margin-bottom: 0.85rem;
}

.dynamics li::before {
  content: counter(dyn, upper-roman);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  text-align: right;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold);
}

/* ================= Timeline ================= */

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.timeline > li {
  position: relative;
  padding: 0 0 1.8rem 2rem;
  border-left: 1px solid var(--rule);
  margin: 0;
}

.timeline > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.65rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

.timeline__period {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 0.2rem;
}

.timeline__title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.timeline p:last-child {
  margin-bottom: 0;
}

.timeline__status {
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-style: italic;
  border-left: 2px solid var(--rule);
  padding-left: 0.8rem;
  margin-top: 0.8rem;
}

/* ================= Figure ================= */

.figure {
  margin: 2rem 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  padding: 8px;
  background: var(--paper-2);
}

.figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--label);
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ================= Footer ================= */

.footer {
  background-color: var(--deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(194, 160, 82, 0.045) 0 2px, transparent 2px 10px);
  color: var(--deep-muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid var(--gold);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
  padding-top: 2.4rem;
  padding-bottom: 1.8rem;
}

.footer h2 {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.8rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.footer li {
  margin-bottom: 0.32rem;
}

.footer a {
  color: var(--deep-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--deep-ink);
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(194, 160, 82, 0.3);
  padding-top: 1.4rem;
  padding-bottom: 2.2rem;
}

.footer__disclaimer {
  max-width: var(--measure);
  margin: 0 0 0.8rem;
}

.footer__meta {
  margin: 0;
  color: rgba(179, 168, 130, 0.7);
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

html[lang^="ru"] [data-region-restricted] {
  display: none !important;
}

.footer__legal {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(194, 160, 82, 0.22);
  color: rgba(179, 168, 130, 0.78);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* ================= Small screens ================= */

@media (max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .marg {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17.5px;
  }

  .utility__inner {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .hrossagrith-clock {
    order: 5;
    width: 100%;
    text-align: center;
    font-size: 0.66rem;
  }

  .shell {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .masthead__emblem {
    width: 72px;
    height: 72px;
  }

  .nav a {
    padding: 0.62rem 0.62rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .prose > p,
  .col > p {
    text-align: left;
  }

  .notice {
    padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  }

  .notice .seal {
    position: static;
    margin-bottom: 0.7rem;
  }

  .wrap {
    padding-top: 1.8rem;
    padding-bottom: 2.4rem;
  }
}

/* ================= Utility bar controls ================= */

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

.search {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.search input {
  font-family: var(--label);
  font-size: 0.76rem;
  padding: 0.3rem 0.55rem;
  width: 190px;
  color: var(--deep-ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(194, 160, 82, 0.4);
  border-radius: 2px;
}

.search input::placeholder {
  color: var(--deep-muted);
  opacity: 0.8;
}

.search input:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.1);
}

.search button,
.locale {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  color: var(--deep-muted);
  background: transparent;
  border: 1px solid rgba(194, 160, 82, 0.4);
  border-radius: 2px;
  cursor: pointer;
}

.locale {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  max-width: 190px;
}

.locale option {
  color: #26221a;
  background: #f2ebda;
}

.search button:hover,
.locale:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ================= Drop-down menu ================= */

.menu {
  position: static;
}

.menu__button {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
}

.menu__button::-webkit-details-marker {
  display: none;
}

.menu__button:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.menu[open] .menu__button {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.menu__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 15px;
  height: 11px;
}

.menu__bars span {
  display: block;
  height: 1.6px;
  background: currentColor;
}

.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: auto;
  max-width: none;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.13);
  z-index: 40;
  text-align: left;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
  padding-top: 1.6rem;
  padding-bottom: 1.8rem;
}

.menu__grid h2 {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 0.7rem;
}

.menu__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.menu__grid li {
  margin-bottom: 0.35rem;
}

.menu__grid a {
  text-decoration: none;
  color: var(--ink-muted);
}

.menu__grid a:hover {
  color: var(--cinnabar);
  text-decoration: underline;
}

/* ================= Search results ================= */

.results {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
}

.result {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.result__section {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.25rem;
}

.result h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.result h3 a {
  text-decoration: none;
}

.result__snippet {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.search__message {
  color: var(--ink-muted);
  font-style: italic;
}

.search-page__form {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  max-width: 560px;
}

.search-page__form input {
  flex: 1;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  background: var(--surface, var(--paper-2));
  border: 1px solid var(--rule);
}

.search-page__form button {
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  color: var(--paper);
  background: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  cursor: pointer;
}

/* ================= Collapsible history parts ================= */

.part {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  margin: 0 0 0.9rem;
}

.part > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.part > summary::-webkit-details-marker {
  display: none;
}

.part > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--label);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
}

.part[open] > summary::after {
  content: "\2212";
}

.part > summary:hover {
  background: var(--paper-3);
}

.part__years {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnabar);
}

.part__body {
  padding: 0.2rem 1.2rem 1.4rem;
  border-top: 1px solid var(--rule);
}

.jump {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0 1.6rem;
}

.jump h2 {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 0.6rem;
}

.jump ol,
.jump ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  columns: 2;
  column-gap: 1.6rem;
}

/* ================= Published instruments ================= */

/* A template is a blank form: the label carries the meaning, the rule is where
   the issuing officer writes. */
.fields {
  margin: 0.8rem 0 1.4rem;
  font-size: 0.95rem;
}

.fields dt {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.7rem;
}

.fields dd {
  margin: 0.15rem 0 0;
}

.fields dd.fill {
  border-bottom: 1px solid var(--rule);
  min-height: 1.4em;
}

.wrap table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.6rem;
  font-size: 0.93rem;
}

.wrap th,
.wrap td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.wrap th {
  background: var(--paper-2);
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jump li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.controls {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}

.controls button {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  color: var(--ink-muted);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  cursor: pointer;
}

.controls button:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

@media (max-width: 900px) {
  .utility__inner {
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .search input {
    width: 100%;
  }

  .jump ol {
    columns: 1;
  }
}

/* The 404 page is the one place the escutcheon stands on its own. */
.figure--emblem {
  margin: 0 auto 1.6rem;
  max-width: 190px;
}

.figure--emblem img {
  display: block;
  width: 100%;
  height: auto;
}

/* An instrument still awaiting translation says so before its first article. */
.notice--lang {
  padding-left: 1.4rem;
  min-height: 0;
  border-left: 3px solid var(--cinnabar);
  font-style: italic;
}
