/* Persistent primary navigation; the existing menu stays a separate disclosure. */
.header.site-header-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,249,.98);
}
.header.site-header-v2 > .container {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  min-height: 82px;
  padding-block: 12px;
}
.site-header-v2 .logo { order: 1; flex: 0 0 auto; }
.site-header-v2 .header-logo-img { width: 180px; max-width: none; }
.site-primary-nav { order: 2; margin-left: auto; }
.site-primary-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-primary-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #423a32;
  font: 700 13px/1.5 "Zen Maru Gothic",sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.site-primary-nav a:hover,
.site-primary-nav a[aria-current="page"] { color: #c55c41; }
.site-primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: #e6b480;
}
.site-header-v2 .site-whitepaper-link {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #ead7b9;
  border-radius: 999px;
  background: #fff5df;
  color: #72543d;
  font: 700 12px/1.4 "Zen Maru Gothic",sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.site-header-v2 .site-whitepaper-link:hover { background: #ffebc5; }
.site-whitepaper-break { display: none; }
.site-header-v2 #hamburger {
  order: 4;
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid #eadfce;
  border-radius: 50%;
  background: #fffdf9;
  cursor: pointer;
}
.site-header-v2 #hamburger span { display: block; width: 18px; height: 2px; background: #655749; }
.header.site-header-v2 #nav {
  position: absolute;
  top: 100%;
  right: max(20px,calc((100% - 1100px) / 2));
  left: auto;
  display: none;
  width: min(360px,calc(100% - 40px));
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  padding: 16px 22px 22px;
  border: 1px solid #e9dfcf;
  border-radius: 0 0 22px 22px;
  background: #fffdf9;
  box-shadow: 0 18px 35px rgba(93,74,50,.12);
}
.header.site-header-v2 #nav.is-open { display: block; }
.header.site-header-v2 #nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.header.site-header-v2 #nav a { display: block; min-height: 44px; padding: 11px 0; border-bottom: 1px solid #f0e6d8; font-size: 14px; }
.header.site-header-v2 #nav a.site-nav-contact { margin-top: 12px; padding: 11px 20px; text-align: center; border: 0; }
.site-footer-whitepapers { font-weight: 700; }
.site-whitepaper-books { display: grid; gap: 12px; list-style: none; padding: 0; margin: 22px 0; }
.site-whitepaper-books a {
  display: block;
  padding: 14px 16px;
  border: 1px solid #eadcc9;
  border-radius: 14px;
  background: rgba(255,253,249,.8);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}
.site-whitepaper-books a:hover { border-color: #d9976e; }
.site-whitepaper-books span { display: block; font-size: 11px; font-weight: 400; color: #776855; }
.whitepaper-sub-title.site-whitepaper-choices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  width: min(100%,820px);
  margin: 24px auto;
}
.site-whitepaper-choices .sub-title-space { display: none; }
.site-whitepaper-choice {
  padding: 24px 18px;
  border: 1px solid #eadcc9;
  border-radius: 22px;
  background: #fffbf2;
}
.site-whitepaper-choice ~ .site-whitepaper-choice { background: #f1f8f6; }
.whitepaper-sub-title.site-whitepaper-choices strong { display: block; font-size: clamp(17px,2vw,22px); color: #544638; }
.whitepaper-sub-title.site-whitepaper-choices .sub-text { display: block; margin-top: 8px; font-size: 12px; line-height: 1.7; }
.site-whitepaper-choice a { display: inline-block; margin-top: 18px; min-height: 44px; padding: 12px 16px; color: #9b4e34; font: 700 12px/1.5 "Zen Maru Gothic",sans-serif; text-underline-offset: 5px; }
html { scroll-padding-top: 100px; }
@media (max-width:1100px) {
  .header.site-header-v2 > .container { gap: 4px 16px; }
  .site-header-v2 .header-logo-img { width: 190px; }
  .site-primary-nav { order: 5; flex: 1 0 100%; margin-left: 0; padding-top: 4px; border-top: 1px solid #f1e7d7; }
  .site-primary-nav ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .site-header-v2 .site-whitepaper-link { margin-left: auto; }
  .site-primary-nav a { font-size: 12px; }
  html { scroll-padding-top: 150px; }
}
@media (max-width:540px) {
  .header.site-header-v2 > .container { width: calc(100% - 24px); gap: 3px 10px; padding-block: 8px; }
  .site-header-v2 .header-logo-img { width: 130px; }
  .site-header-v2 .site-whitepaper-link { padding: 8px 10px; gap: 3px; font-size: 10px; }
  .site-whitepaper-break { display: initial; }
  .site-primary-nav ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }
  .site-primary-nav a { min-height: 34px; font-size: 12px; }
  .site-primary-nav a[aria-current="page"] { text-underline-offset: 5px; }
  .header.site-header-v2 #nav { right: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 150px); }
  .whitepaper-sub-title.site-whitepaper-choices { grid-template-columns: 1fr; gap: 12px; }
  .site-whitepaper-choice { padding: 20px 14px; }
  html { scroll-padding-top: 160px; }
}
