:root {
  --ink: #171a22;
  --muted: #646b78;
  --paper: #fffaf2;
  --line: #e7ded0;
  --maroon: #7d2438;
  --gold: #b9852f;
  --shadow: 0 18px 48px rgba(23, 26, 34, 0.12);
  --max: 1180px;
}

body.shared-chrome-layout {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: var(--paper);
}

.shared-chrome-content {
  position: relative;
}

.shared-page-banner {
  border-bottom: 1px solid rgba(231, 222, 208, 0.92);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(252, 244, 232, 0.96));
}

.shared-page-banner .wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shared-page-banner .banner-copy {
  min-width: 0;
}

.shared-page-banner .banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-page-banner h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.shared-page-banner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
}

.shared-page-banner .back-link {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 36, 56, 0.16);
  background: rgba(125, 36, 56, 0.08);
  color: var(--maroon);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(125, 36, 56, 0.08);
  white-space: nowrap;
}

.shared-page-banner .back-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.shared-page-banner .back-link:hover {
  background: rgba(125, 36, 56, 0.12);
}

.shared-chrome-content .sidebar {
  top: 72px;
  height: calc(100% - 72px);
}

body.shared-chrome-has-sidebar > .shared-site-footer {
  width: calc(100% - 260px);
  margin-left: 260px;
}

.shared-site-header,
.shared-site-header *,
.shared-site-footer,
.shared-site-footer * {
  box-sizing: border-box;
}

.shared-site-header a,
.shared-site-footer a {
  color: inherit;
  text-decoration: none;
}

.shared-site-header img {
  display: block;
  max-width: 100%;
}

.shared-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(231, 222, 208, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.shared-site-header .nav {
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shared-site-header .nav-shell {
  position: relative;
}

.shared-site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 248px;
  padding: 0;
  color: var(--ink);
  font: 800 16px/1.3 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shared-site-header .brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shared-site-header .brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.shared-site-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: #343846;
  font: 700 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shared-site-header .nav-links > a,
.shared-site-header .nav-item > a {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.shared-site-header .nav-links > a:hover,
.shared-site-header .nav-item > a:hover {
  color: var(--maroon);
  border-bottom-color: var(--gold);
  transform: none;
}

.shared-site-header .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.shared-site-header .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shared-site-header .nav-caret {
  margin-top: 1px;
  color: inherit;
  font-size: 11px;
  line-height: 1;
}

.shared-site-header .nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 25;
  min-width: 220px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.shared-site-header .nav-item:hover .nav-dropdown,
.shared-site-header .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shared-site-header .nav-dropdown a {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #343846;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.shared-site-header .nav-dropdown a:hover {
  color: var(--maroon);
  background: rgba(185, 133, 47, 0.08);
}

.shared-site-header .nav-toggle {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.shared-site-header .nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.shared-site-header .nav-toggle span::before,
.shared-site-header .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.shared-site-header .nav-toggle span::before { top: -6px; }
.shared-site-header .nav-toggle span::after { top: 6px; }

.shared-site-header .nav-open {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 16px;
  display: none;
  gap: 10px;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.98);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shared-site-header .nav-open > a {
  display: block;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(231, 222, 208, 0.75);
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.shared-site-header .mobile-submenu {
  margin-top: -2px;
  padding: 0 0 10px 14px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(231, 222, 208, 0.75);
}

.shared-site-header .mobile-submenu .label {
  padding: 8px 0 4px;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 800;
}

.shared-site-header .mobile-submenu a {
  padding: 6px 0;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.shared-site-header .button {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 14px 30px rgba(125, 36, 56, 0.25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shared-site-header .nav-cta {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.shared-site-header .button:hover {
  color: #fff;
  background: #681d2f;
  border-bottom-color: transparent;
  transform: translateY(-2px);
}

.shared-site-footer {
  width: 100%;
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #161922;
  font: 400 13px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

.shared-site-footer .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
}

.shared-site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
}

.shared-site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

.shared-site-footer p,
.shared-site-footer li {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.shared-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shared-site-footer a {
  color: #f0c878;
}

.shared-site-footer .footer-feature {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.shared-site-footer .footer-feature a {
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff8e8;
  background: linear-gradient(135deg, rgba(125, 36, 56, 0.95), rgba(185, 133, 47, 0.95));
  box-shadow: 0 12px 26px rgba(125, 36, 56, 0.24);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.shared-site-footer .footer-feature a:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.shared-site-footer .footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

@media (max-width: 860px) {
  .shared-site-header .nav-links { display: none; }
  .shared-site-header .nav-cta { display: none; }
  .shared-site-header .nav-toggle { display: inline-flex; }
  .shared-site-header .nav-open.is-open { display: flex; }
}

@media (max-width: 980px) {
  .shared-site-footer .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .shared-site-header .nav {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .shared-site-header .brand { min-width: 0; }
  .shared-site-header .nav-open .button { width: 100%; margin-top: 4px; }

  .shared-page-banner .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  body.shared-chrome-has-sidebar > .shared-site-footer {
    width: 100%;
    margin-left: 0;
  }
}
