/* Header styling recovered from the last working page. Page-local compatibility fix. */

:root {
  --navy: #163444;
  --navy-dark: #102936;
  --gold: #c8a365;
  --cream: #faf8f3;
  --text: #273b43;
  --muted: #64757a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: auto;
}

.topbar {
  background: var(--navy-dark);
  color: #e5ecee;
  font-size: 12px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a:hover { color: var(--gold); }

header {
  background: #fff;
  position: relative;
  z-index: 20;
  box-shadow: 0 3px 15px #00000010;
}

.brand {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.brand h1 {
  font-family: Georgia, serif;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

.brand p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: var(--navy);
  color: white;
  border: 0;
  padding: 10px 15px;
  border-radius: 5px;
}

nav {
  background: var(--navy);
  color: white;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.home-link,
.nav-item > button {
  display: block;
  padding: 16px 12px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.home-link:hover,
.nav-item > button:hover,
.nav-item > button[aria-expanded="true"] {
  background: var(--navy-hover);
}

.nav-item { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 270px;
  max-height: 70vh;
  overflow-y: auto;
  background: white;
  color: var(--text);
  box-shadow: 0 15px 35px #00000025;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 7px 7px;
  padding: 10px;
  z-index: 30;
}

.nav-item:last-child .dropdown,
.nav-item:nth-last-child(2) .dropdown {
  left: auto;
  right: 0;
}

.nav-item.open .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 4px;
}

.dropdown a:hover,
.dropdown a:focus {
  background: var(--cream);
  color: #976f33;
}


@media(max-width:1000px){.nav-inner{flex-wrap:wrap;justify-content:flex-start}.home-link,.nav-item>button{padding:13px 10px}}
@media(max-width:720px){
.brand{min-height:88px}.brand img{width:56px;height:56px}.brand h1{font-size:18px}.brand p{font-size:10px}
.menu-toggle{display:block}nav:not([aria-label="Page sections"]){display:none}nav.show{display:block}
.nav-inner{display:block}.home-link,.nav-item>button{width:100%;text-align:left;padding:13px 15px;font-size:14px}
.dropdown{position:static;box-shadow:none;max-height:none;width:100%;border-radius:0}
}
