/* AfiaỌru site header (version 1.67.0). Look and layout for the top bar and the phone drawer.
   Classic 3D: a raised slate bar with a bevelled edge and a sheen, a gold base line, an embossed gold
   name in Cormorant Garamond, a turning medal with two rings, raised bevelled menu keys, and a phone
   drawer whose links rise in one by one.
   Kadence draws the bars on its own wrappers (#main-header on desktop, #mobile-header on phones), so the
   look is set on those wrappers. #masthead itself stays transparent.
   Every rule is scoped under body.afiaoru-app-shell. Reduced motion switches off all animation. */

/* ---------- Layout (the theme depends on these) ---------- */

/* Page title bands are not used on the app pages */
body.afiaoru-app-shell .entry-hero,
body.afiaoru-app-shell .page-hero-section,
body.afiaoru-app-shell .entry-header,
body.afiaoru-app-shell .page-header { display: none !important; }

/* The header container sticks to the top and stays transparent, so only the bars show */
body.afiaoru-app-shell #masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent !important;
  box-shadow: none !important;
}
body.admin-bar.afiaoru-app-shell #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.afiaoru-app-shell #masthead { top: 46px; } }

/* Inner wrappers stay transparent, so there is one bar, not stacked layers */
body.afiaoru-app-shell .site-header-inner-wrap,
body.afiaoru-app-shell .site-header-upper-wrap,
body.afiaoru-app-shell .site-header-upper-inner-wrap,
body.afiaoru-app-shell .site-main-header-wrap,
body.afiaoru-app-shell .site-header-row-container-inner,
body.afiaoru-app-shell .site-header-row-container {
  background: transparent !important;
  box-shadow: none !important;
}

/* One row: logo on the left, menu on the right, on the same column as the page content */
body.afiaoru-app-shell #main-header,
body.afiaoru-app-shell #mobile-header,
body.afiaoru-app-shell .site-header-wrap,
body.afiaoru-app-shell .site-mobile-header-wrap { position: relative; }
body.afiaoru-app-shell { --afb-gutter: 16px; }
@media (min-width: 720px)  { body.afiaoru-app-shell { --afb-gutter: 32px; } }
@media (min-width: 1000px) { body.afiaoru-app-shell { --afb-gutter: 64px; } }

body.afiaoru-app-shell .site-main-header-inner-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px var(--afb-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.afiaoru-app-shell .site-header-main-section-left { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
body.afiaoru-app-shell .site-header-main-section-right { display: flex; align-items: center; min-width: 0; flex: 0 0 auto; margin-left: auto; padding-left: 0 !important; padding-right: 0 !important; }
body.afiaoru-app-shell #main-header,
body.afiaoru-app-shell .site-header-wrap { min-height: 76px; }
body.afiaoru-app-shell #mobile-header,
body.afiaoru-app-shell .site-mobile-header-wrap { min-height: 68px; }

/* Brand block */
body.afiaoru-app-shell .site-branding { position: relative; display: flex; align-items: center; min-height: 40px; min-width: 0; }
body.afiaoru-app-shell .site-branding a.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; min-width: 0; }
body.afiaoru-app-shell .site-branding.afh-ready img.custom-logo,
body.afiaoru-app-shell .site-branding.afh-ready .custom-logo-link,
body.afiaoru-app-shell .site-branding.afh-ready .site-description { display: none !important; }

/* Top menu list */
body.afiaoru-app-shell #site-navigation ul#primary-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
body.afiaoru-app-shell #site-navigation ul#primary-menu > li { position: relative; margin: 0; }

/* Phone: keep the bar inside the gutters, never wider than the screen */
@media (max-width: 782px) {
  body.afiaoru-app-shell .site-main-header-inner-wrap { padding: 8px 16px; gap: 14px; }
  body.afiaoru-app-shell #mobile-header .site-branding { max-width: calc(100vw - 16px - 16px - 46px - 14px); }
}
@media (max-width: 1024px) {
  body.afiaoru-app-shell #masthead .site-container,
  body.afiaoru-app-shell #masthead .site-header-row-container-inner > .site-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  body.afiaoru-app-shell .site-main-header-inner-wrap {
    width: 100%;
    padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)) !important;
  }
  body.afiaoru-app-shell #mobile-header .site-branding { max-width: calc(100vw - 14px - 14px - 46px - 14px); }
}

/* Logo and menu button share one centre line */
body.afiaoru-app-shell #mobile-toggle,
body.afiaoru-app-shell #masthead button.menu-toggle-open { margin: 0 !important; align-self: center; flex: 0 0 auto; }

/* ---------- The bar: raised slate, bevelled, with a sheen and a gold base line ---------- */

body.afiaoru-app-shell #main-header,
body.afiaoru-app-shell #mobile-header,
body.afiaoru-app-shell .site-header-wrap,
body.afiaoru-app-shell .site-mobile-header-wrap {
  background-color: #2F4858 !important;
  background-image: linear-gradient(180deg, #3A5868 0%, #2F4858 48%, #213645 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -3px 0 rgba(0, 0, 0, .3),
    0 1px 0 #0B151B,
    0 12px 22px -10px rgba(11, 21, 27, .75) !important;
  animation: none !important;
}

/* A soft sheen that crosses the bar every eight seconds */
body.afiaoru-app-shell #main-header::before,
body.afiaoru-app-shell #mobile-header::before,
body.afiaoru-app-shell .site-header-wrap::before,
body.afiaoru-app-shell .site-mobile-header-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  pointer-events: none;
  animation: afh-sheen 8s ease-in-out infinite;
}

/* The gold base line: a bevelled rule that shimmers slowly */
body.afiaoru-app-shell #main-header::after,
body.afiaoru-app-shell #mobile-header::after,
body.afiaoru-app-shell .site-header-wrap::after,
body.afiaoru-app-shell .site-mobile-header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #8C5A1E, #F6D9A4, #C8903A, #FFF1C4, #C8903A, #F6D9A4, #8C5A1E);
  background-size: 200% 100%;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(246, 217, 164, .45);
  pointer-events: none;
  animation: afh-base 9s linear infinite;
}

/* ---------- Brand: medal, embossed gold name, italic tagline ---------- */

body.afiaoru-app-shell .afh-mark { position: relative; display: block; flex: 0 0 56px; width: 56px; height: 56px; }
body.afiaoru-app-shell .afh-seal {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  background: var(--afh-emblem, none) center / cover no-repeat #FAF6EF;
  box-shadow:
    0 0 0 2px #F6D9A4,
    0 0 0 4px #8C5A1E,
    0 0 0 5px #0B151B,
    0 8px 12px -4px rgba(0, 0, 0, .7);
}
body.afiaoru-app-shell .afh-ring { position: absolute; border-radius: 50%; pointer-events: none; }
body.afiaoru-app-shell .afh-ring--comet {
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: conic-gradient(from 0deg, rgba(246, 217, 164, 0) 0deg, rgba(246, 217, 164, 0) 190deg, #C8903A 260deg, #FFF1C4 330deg, rgba(246, 217, 164, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 3px rgba(246, 217, 164, .6));
  animation: afh-spin 8s linear infinite;
}
body.afiaoru-app-shell .afh-ring--dots {
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px dotted rgba(255, 241, 196, .85);
  animation: afh-spin-rev 22s linear infinite;
}

body.afiaoru-app-shell .afh-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; margin: 0; padding: 0; line-height: 1; }

/* The name: gold foil with a moving highlight and a stacked 3D edge */
body.afiaoru-app-shell .site-title,
body.afiaoru-app-shell .site-title-wrap .site-title,
body.afiaoru-app-shell .site-branding .site-title,
body.afiaoru-app-shell .afh-name {
  font-family: 'Cormorant Garamond', 'Times New Roman', Garamond, Georgia, serif !important;
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .05em;
  margin: 0 !important;
  padding: 0;
  white-space: nowrap;
  color: #F6D9A4 !important;
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #FFF6D2 0%, #F6D9A4 40%, #C8903A 70%, #8C5A1E 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 1px 0 #7a5a12)
    drop-shadow(0 2px 0 #5e450d)
    drop-shadow(0 4px 6px rgba(11, 21, 27, .65));
  animation: afh-foil 6s ease-in-out 1.5s infinite;
}

/* The tagline: a fine gold rule above small italic capitals */
body.afiaoru-app-shell .afh-tag {
  display: block;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(246, 217, 164, .55);
  font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F6D9A4;
  align-self: flex-start;
  max-width: 100%;
}

/* Fallback only, when the script did not run: a simple emblem beside the name */
body.afiaoru-app-shell .site-branding:not(.afh-ready) .site-title { position: relative; display: flex; align-items: center; min-height: 40px; padding-left: 58px; }
body.afiaoru-app-shell .site-branding:not(.afh-ready) .site-title::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: var(--afh-emblem, none) center / cover no-repeat #FAF6EF;
  box-shadow: 0 0 0 2px #F6D9A4, 0 0 0 4px #8C5A1E, 0 0 0 5px #0B151B;
  pointer-events: none;
}

@media (max-width: 782px) {
  body.afiaoru-app-shell .afh-mark { flex-basis: 52px; width: 52px; height: 52px; }
  body.afiaoru-app-shell .afh-seal { top: 7px; left: 7px; right: 7px; bottom: 7px; }
  body.afiaoru-app-shell .site-title,
  body.afiaoru-app-shell .site-title-wrap .site-title,
  body.afiaoru-app-shell .site-branding .site-title,
  body.afiaoru-app-shell .afh-name { font-size: clamp(1.45rem, 6.2vw, 1.75rem) !important; }
  body.afiaoru-app-shell .afh-tag { font-size: .85rem; margin-top: 4px; padding-top: 3px; }
}

/* ---------- Desktop menu: raised bevelled keys ---------- */

body.afiaoru-app-shell #site-navigation .primary-menu-container > ul > li > a,
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px !important;
  font-family: 'Cinzel', Georgia, serif;
  font-size: .85rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #FAF6EF !important;
  text-shadow: 0 1px 0 #0B151B;
  background: linear-gradient(180deg, #3D5B6C 0%, #2F4858 60%, #26394A 100%);
  border: 1px solid rgba(200, 144, 58, .55);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 4px 0 #0B151B,
    0 8px 10px -6px rgba(0, 0, 0, .7);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a::after { content: none; }
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a:hover,
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a:focus-visible,
body.afiaoru-app-shell #site-navigation ul#primary-menu > li.current-menu-item > a,
body.afiaoru-app-shell #site-navigation ul#primary-menu > li.current_page_item > a {
  color: #1F3442 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, #FFF1C4 0%, #F6D9A4 45%, #C8903A 100%);
  border-color: #F6D9A4;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 6px 0 #6B4716,
    0 12px 14px -6px rgba(0, 0, 0, .65);
}
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a:focus-visible { outline: 2px solid #F6D9A4; outline-offset: 3px; }
body.afiaoru-app-shell #site-navigation ul#primary-menu > li > a:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 1px 0 #6B4716;
}

/* ---------- Phone menu button: a raised key with a gold rim ---------- */

body.afiaoru-app-shell #mobile-toggle,
body.afiaoru-app-shell #masthead button.menu-toggle-open {
  width: 46px !important;
  height: 44px !important;
  background: linear-gradient(180deg, #4A6A7C 0%, #2F4858 60%, #26394A 100%) !important;
  border: 1px solid #F6D9A4 !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 4px 0 #0B151B,
    0 8px 12px -6px rgba(0, 0, 0, .7) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.afiaoru-app-shell #mobile-toggle:active,
body.afiaoru-app-shell #masthead button.menu-toggle-open:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 1px 0 #0B151B !important;
}
body.afiaoru-app-shell #mobile-toggle svg { fill: #F6D9A4; filter: drop-shadow(0 1px 0 #0B151B); }

/* ---------- Phone drawer: deep slate panel, gold heading, raised link keys ---------- */

body.afiaoru-app-shell #mobile-drawer,
body.afiaoru-app-shell #mobile-drawer .popup-drawer-inner { background: transparent !important; }
body.afiaoru-app-shell #mobile-drawer .drawer-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #37525F 0%, #2F4858 40%, #1C2F3B 100%) !important;
  box-shadow: inset 3px 0 0 #C8903A, inset 4px 0 0 rgba(11, 21, 27, .5), -12px 0 30px rgba(0, 0, 0, .45);
}
body.afiaoru-app-shell #mobile-drawer .drawer-header { background: transparent !important; }
body.afiaoru-app-shell #mobile-drawer .toggle-close-bar { background: #F6D9A4 !important; }
body.afiaoru-app-shell #mobile-drawer .drawer-content { background: transparent !important; }
body.afiaoru-app-shell #mobile-drawer .mobile-drawer-content::before {
  content: 'Menu';
  display: block;
  margin: 18px 18px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 217, 164, .45);
  font-family: 'Cinzel', Georgia, serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #F6D9A4;
  text-shadow: 0 1px 0 #7a5a12, 0 2px 0 #3d2c08;
}
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul { list-style: none; margin: 0; padding: 6px 0 0; }
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li { margin: 9px 16px; border: 0; }
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 14px 18px 14px 22px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #FAF6EF !important;
  text-shadow: 0 1px 0 #0B151B;
  background: linear-gradient(180deg, #3D5B6C 0%, #2F4858 60%, #26394A 100%);
  border: 1px solid rgba(200, 144, 58, .5);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 4px 0 #0B151B, 0 8px 12px -8px rgba(0, 0, 0, .75);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a::before { content: none; }
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2px solid #F6D9A4;
  border-right: 2px solid #F6D9A4;
  transform: rotate(45deg);
}
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a:hover,
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a:focus-visible,
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li.current-menu-item > a {
  color: #1F3442 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, #FFF1C4 0%, #F6D9A4 45%, #C8903A 100%);
  border-color: #F6D9A4;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 0 #6B4716, 0 12px 14px -8px rgba(0, 0, 0, .65);
}
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a:hover::after,
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a:focus-visible::after,
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li.current-menu-item > a::after { border-color: #1F3442; }
body.afiaoru-app-shell #mobile-drawer .mobile-navigation ul li a:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 1px 0 #6B4716;
}

/* Links rise in one after another when the drawer opens */
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li { animation: afh-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(1) { animation-delay: .06s; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(2) { animation-delay: .12s; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(3) { animation-delay: .18s; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(4) { animation-delay: .24s; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(5) { animation-delay: .30s; }
body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li:nth-child(n+6) { animation-delay: .36s; }

/* ---------- Keyframes ---------- */

@keyframes afh-sheen { 0%, 60% { left: -45%; } 100% { left: 115%; } }
@keyframes afh-base  { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes afh-foil  { 0% { background-position: 150% 0, 0 0; } 45%, 100% { background-position: -60% 0, 0 0; } }
@keyframes afh-spin  { to { transform: rotate(360deg); } }
@keyframes afh-spin-rev { to { transform: rotate(-360deg); } }
@keyframes afh-rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion: no movement, the same look ---------- */

@media (prefers-reduced-motion: reduce) {
  body.afiaoru-app-shell #main-header::before, body.afiaoru-app-shell #mobile-header::before,
  body.afiaoru-app-shell .site-header-wrap::before, body.afiaoru-app-shell .site-mobile-header-wrap::before,
  body.afiaoru-app-shell #main-header::after, body.afiaoru-app-shell #mobile-header::after,
  body.afiaoru-app-shell .site-header-wrap::after, body.afiaoru-app-shell .site-mobile-header-wrap::after,
  body.afiaoru-app-shell .afh-ring,
  body.afiaoru-app-shell .site-title, body.afiaoru-app-shell .afh-name,
  body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li { animation: none !important; }
  body.afiaoru-app-shell #mobile-drawer.active .mobile-navigation ul li { opacity: 1; transform: none; }
}
