.shared-layout {
  --gold: #e8c87d;
}
.shared-layout header { background: #11110f; color: #fff9e9; border-color: #363024; }
.shared-layout .header-inner { min-height: 78px; position: relative; gap: 15px; }
.language-switch {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 40px;
  min-height: 40px;
}
.language-switch img { display: block; }
.shared-layout .service-grid a.text-link { font-size: 13px; }
.shared-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff9eb;
  line-height: 1.1;
}
.shared-brand:hover { text-decoration: none; }
.shared-brand img { display: block; flex: none; }
.shared-brand-text { display: grid; gap: 3px; }
.shared-brand-text strong { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.shared-brand-text > span { color: var(--gold); font-size: 12px; font-weight: 580; }
.shared-brand-footer { margin-bottom: 20px; }
@media (max-width: 420px) {
  .shared-brand { gap: 6px; }
  .shared-brand img { width: 34px; height: 34px; }
  .shared-brand-text strong { font-size: 15px; }
  .shared-brand-text > span { font-size: 11px; }
}
@media (max-width: 360px) {
  .shared-layout .header-inner, .shared-layout .header-actions { gap: 8px; }
  .shared-layout header .header-inner { width: calc(100% - 24px); }
  .shared-layout .header-actions > a { white-space: nowrap; }
  .shared-layout .header-actions .menu { padding-inline: 7px; }
  .shared-brand-header .shared-brand-text strong { font-size: 12px; }
}
.shared-layout #nav {
  display: none;
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  width: min(320px, 100%);
  background: #191710;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px;
  box-shadow: 0 12px 35px #0005;
}
.shared-layout #nav.open { display: flex; }
.shared-layout #nav a { white-space: normal; padding: 10px 12px; }
@media (min-width: 1100px) {
  .shared-layout .header-inner { gap: clamp(15px, 2vw, 30px); }
  .shared-layout .shared-brand-header { flex: 0 0 auto; }
  .shared-layout .header-actions { order: 2; }
  .shared-layout .header-actions .menu { display: none; }
  .shared-layout #nav, .shared-layout #nav.open {
    display: flex;
    position: static;
    width: auto;
    flex: 1 1 auto;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 4px clamp(8px, 1.15vw, 18px);
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .shared-layout #nav a { padding: 8px 0; font-size: clamp(10px, .9vw, 13px); }
}
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ab8b48;
  background: #191710;
  color: #e8c87d;
  font-size: 22px;
  line-height: 1;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #e8c87d; color: #191710; text-decoration: none; }
.shared-layout .contact.shared-footer {
  --footer-text: #eee4ce;
  --footer-divider: #504634;
  margin: 0;
  display: block;
  background: #161510;
  color: #fff9eb;
  border: 0;
  padding: clamp(35px, 5vw, 65px) 0 36px;
  font-size: 16px;
}
.shared-footer .eyebrow, .shared-footer em, .shared-footer .social svg { color: var(--gold); }
.shared-footer .button.light { background: var(--gold); color: #1a160d; box-shadow: none; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.footer-columns > div { min-width: 0; }
.shared-footer .footer-intro h2 { font-size: clamp(23px, 2.6vw, 34px); margin-bottom: 12px; }
.footer-intro .eyebrow { font-size: 10px; margin-bottom: 10px; }
.footer-columns h3 { font-size: 16px; line-height: 1.3; margin: 0 0 16px; }
.footer-columns p { color: var(--footer-text); font-size: 13px; margin: 0 0 12px; overflow-wrap: anywhere; }
.footer-contact > a:not(.button) { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
.footer-contact .social { flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.footer-contact .light { margin-top: 16px; padding: 10px 14px; }
.shared-footer .footer-resources {
  display: flex;
  position: static;
  flex-flow: row wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--footer-divider);
  background: none;
  box-shadow: none;
}
.footer-resources h3 { margin: 0; font-size: 13px; color: var(--gold); }
.footer-resources ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-resources a { display: inline-block; padding: 4px 0; color: var(--footer-text); font-size: 13px; }
.footer-resources a:hover { color: var(--gold); }
@media (max-width: 700px) {
  .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-billing, .footer-contact { border-top: 1px solid var(--footer-divider); padding-top: 20px; }
}
.shared-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--footer-divider);
  margin-top: 30px;
  padding-top: 25px;
  font-size: 11px;
  color: var(--footer-text);
}
.shared-layout .shared-forms { padding-top: clamp(20px, 4vw, 55px); }
.shared-forms .request-grid { margin-top: 0; color: var(--ink); }
.shared-forms .request-grid form {
  background: var(--warm-surface);
  border-color: #c9b899;
}
.shared-forms .request-grid h3 { color: #704a17; }
.shared-forms .request-grid .request-note { color: var(--muted); }
.shared-forms .request-grid .button { background: #8b6229; color: #fffaf0; }
.shared-forms .request-grid .button:hover { background: #704a17; }
.reference-set article { display: flex; flex-direction: column; }
.reference-window { scrollbar-width: none; padding-bottom: 0; }
.reference-window::-webkit-scrollbar { display: none; }
.reference-rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.reference-rail-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #9a7c44;
  background: #fffdf8;
  color: #171611;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.reference-rail-controls button:hover { background: #e8c87d; }
.reference-open {
  background: transparent;
  color: inherit;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  margin-top: auto;
  text-align: left;
  cursor: pointer;
}
.reference-open:hover { text-decoration: underline; }
.reference-dialog {
  position: fixed;
  inset: 0;
  width: min(660px, calc(100% - 24px));
  height: min(650px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #9a7c44;
  border-radius: 10px;
  background: #fffdf8;
  color: #171611;
  overflow: hidden;
}
.reference-dialog[open] { display: flex; flex-direction: column; }
.reference-dialog::backdrop { background: #11110fc9; }
body:has(.reference-dialog[open]) { overflow: hidden; }
.reference-dialog-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: clamp(20px, 5vw, 42px);
  padding-top: 54px;
  overflow-wrap: anywhere;
}
.reference-dialog-content .reference-logo { margin: 0 0 14px; height: 72px; background: transparent; }
.reference-dialog-content .reference-logo img { max-height: 68px; }
.reference-dialog-content h2 { margin: 0 0 16px; font-size: clamp(23px, 4.5vw, 36px); }
.reference-dialog-content blockquote { margin: 0; padding-left: 14px; border-left: 2px solid #a47628; }
.reference-dialog-content p { font-size: 14px; margin: 0 0 12px; }
.reference-summary { font-weight: 600; }
.reference-dialog-nav {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: #191710;
  color: #fff9eb;
  font-size: 14px;
}
.reference-dialog button {
  width: 44px;
  height: 44px;
  background: #e8c87d;
  color: #171611;
  border: 0;
  cursor: pointer;
  font-size: 22px;
}
.reference-close { position: absolute; z-index: 1; right: 10px; top: 8px; }
