/* Original site assets are local and shared across the public Thymeleaf pages. */
@font-face {
  font-family: JpoasisHeritage;
  src: url('/brand/iconfont.woff2') format('woff2');
  font-display: block;
}
.heritage-icon {
  display: inline-block;
  flex: none;
  font: 20px/1 JpoasisHeritage;
  speak: none;
  -webkit-font-smoothing: antialiased;
}
.icon-home::before { content: '\e603'; }
.icon-search::before { content: '\101d9'; }
.icon-video::before { content: '\e60b'; }
.icon-community::before, .icon-cate-8::before { content: '\e601'; }
.icon-member::before { content: '\101d4'; }
.icon-email::before { content: '✉'; font-family: sans-serif; }
.icon-phone::before { content: '☎'; font-family: sans-serif; }
.icon-cate-1::before { content: '\ebd3'; }
.icon-cate-2::before { content: '\e699'; }
.icon-cate-3::before { content: '\e715'; }
.icon-cate-4::before { content: '\e68f'; }
.icon-cate-5::before { content: '\e606'; }
.icon-cate-6::before { content: '\e612'; }
.icon-cate-7::before { content: '\e639'; }
.icon-cate-10::before { content: '\e780'; }

/* Masthead keeps the old purple background and original white logo. */
.site-header { background: #fff; border-bottom: 0; }
.heritage-masthead {
  background: #86138e url('/brand/headerbg.png') center top / cover no-repeat;
  color: #fff;
}
.heritage-masthead .header-inner { height: 116px; gap: 28px; }
.heritage-masthead .brand img { display: block; width: 190px; height: auto; }
.heritage-masthead .header-search {
  position: relative;
  max-width: 410px;
  height: 44px;
  margin-left: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(30, 0, 40, .18);
}
.heritage-masthead .header-search .icon-search {
  align-self: center;
  margin-left: 14px;
  color: #8c398d;
  font-size: 20px;
}
.heritage-masthead .header-search input { padding: 0 8px; font-size: 13px; }
.heritage-masthead .header-search button {
  min-width: 67px;
  background: #6f2a78;
  font-size: 13px;
}
.heritage-masthead .header-actions { gap: 18px; margin-left: auto; }
.heritage-masthead .header-actions a {
  gap: 6px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.heritage-masthead .header-actions a:hover { color: #f9e4ff; }
.heritage-masthead .header-actions .heritage-icon { font-size: 20px; }
.navigation { background: #fff; border-bottom: 1px solid #ece5ed; }
.navigation .nav-inner {
  justify-content: space-between;
  gap: 6px;
  padding: 14px 0;
  scrollbar-width: thin;
}
.navigation .nav-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #ece8ee;
  border-radius: 6px;
  background: #faf9fa;
  color: #383039;
  font-size: 12px;
  font-weight: 500;
}
.navigation .nav-inner a:hover,
.navigation .nav-inner a.current {
  background: #813c85;
  border-color: #813c85;
  color: #fff;
}
.navigation .nav-inner a.current::after { display: none; }
.navigation .heritage-icon { font-size: 19px; }
.mobile-sections { display: none; }
.legal-masthead { background: #86138e url('/brand/headerbg.png') center top / cover no-repeat; }
.legal-masthead .legal-top { min-height: 92px; }
.legal-masthead .brand img { display: block; width: 165px; height: auto; }
.legal-masthead nav a { color: #fff; }
.legal-masthead nav a:hover { text-decoration: underline; }
.section-heading h2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 26px;
  margin-right: 8px;
  background: url('/brand/logo-ico.png') center / contain no-repeat;
  vertical-align: -.16em;
}

/* The footer restores the old artwork and link hierarchy with verified R1 links. */
.site-footer { background: #30233d; color: #fff; }
.footer-main { position: relative; isolation: isolate; overflow: hidden; min-height: 300px; }
.footer-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  z-index: -2;
}
.footer-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 18, 44, .95), rgba(47, 25, 58, .88) 55%, rgba(45, 23, 53, .75));
  z-index: -1;
}
.footer-inner { grid-template-columns: 2fr repeat(3, 1fr); gap: 34px; padding: 58px 0 44px; }
.footer-identity .footer-brand img { width: 230px; height: auto; }
.footer-identity p { max-width: 270px; line-height: 1.8; color: #f0dff0; }
.footer-group { gap: 8px; font-size: 13px; }
.footer-group strong { margin-bottom: 8px; font-size: 16px; }
.footer-group a { color: #f4eaf5; }
.footer-group a:hover { color: #fff; text-decoration: underline; }
.footer-group .heritage-icon { margin-right: 7px; font-size: 15px; }
.footer-bar { background: #813c85; }
.footer-legacy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 0;
  padding-top: 18px;
}
.footer-legacy-links a { padding: 0 19px; border-right: 1px solid rgba(255,255,255,.4); font-size: 14px; color: #fff; }
.footer-legacy-links a:last-child { border: 0; }
.footer-legacy-links a:hover { text-decoration: underline; }
.footer-bottom {
  justify-content: center;
  gap: 12px 22px;
  padding: 15px 0 18px;
  border: 0;
  color: #f3e8f5;
  letter-spacing: normal;
}

@media (max-width: 1100px) {
  .navigation .nav-inner { justify-content: flex-start; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .legal-masthead .legal-top { min-height: 75px; flex-direction: row; align-items: center; padding: 10px 0; }
  .legal-masthead .brand img { width: 118px; }
  .legal-masthead nav { gap: 11px; font-size: 12px; }
  .heritage-masthead .header-inner { min-height: 108px; height: auto; padding: 9px 0 12px; }
  .heritage-masthead .brand img { width: 144px; }
  .heritage-masthead .header-actions { gap: 11px; }
  .heritage-masthead .header-actions a { font-size: 12px; }
  .heritage-masthead .header-actions .heritage-icon { font-size: 17px; }
  .heritage-masthead .header-search { max-width: none; height: 43px; margin: 0; }
  .navigation .nav-inner { gap: 6px; padding: 9px 0 4px; }
  .navigation .nav-inner a { flex: none; padding: 5px 9px; min-height: 42px; font-size: 12px; }
  .navigation .heritage-icon { font-size: 18px; }
  .mobile-sections { display: block; padding-bottom: 8px; }
  .mobile-sections summary { cursor: pointer; min-height: 38px; display: flex; align-items: center; color: #6e3675; font-size: 13px; font-weight: 600; }
  .mobile-sections summary::marker { content: ''; }
  .mobile-section-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 6px 0 10px; }
  .mobile-section-grid a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px; border: 1px solid #e7dfe9; border-radius: 6px; font-size: 12px; }
  .mobile-section-grid a:hover { background: #f4ecf5; }
  .mobile-section-grid .heritage-icon { color: #813c85; }
  .footer-main { min-height: 0; }
  .footer-scene { object-position: 59% center; }
  .footer-inner { gap: 24px 16px; padding: 36px 0; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-identity .footer-brand img { width: 190px; }
  .footer-group { min-width: 0; }
  .footer-group:last-child { grid-column: 1 / -1; }
  .footer-legacy-links a { padding: 0 10px; font-size: 12px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; font-size: 11px; }
}
