/* Shared Owl Trail shell: navy, emerald, gold and warm cream. */
:root {
  --owl-navy: #0b2942;
  --owl-navy-deep: #071c31;
  --owl-emerald: #145b49;
  --owl-gold: #9b762f;
  --owl-gold-light: #e5bd6c;
  --owl-cream: #f7f2e5;
  --owl-ink: #1e3544;
}
body { background: var(--owl-cream) !important; color: var(--owl-ink) !important; }
header.top {
  position: relative; z-index: 20; background: var(--owl-navy-deep) !important;
  border-bottom: 2px solid var(--owl-gold-light); color: #fffaf0;
  box-shadow: 0 5px 18px #071c3126;
}
header.top > strong, header.top > .hub-brand { color: var(--owl-gold-light) !important; }
header.top > nav { display: none !important; }
header.top nav a { color: #fff6df !important; }
header.top nav a:hover { color: var(--owl-gold-light) !important; }
.hero {
  border: 1px solid #b79250;
  background: linear-gradient(120deg, var(--owl-navy-deep), var(--owl-emerald)) !important;
  color: #fffaf0 !important;
  box-shadow: 0 14px 34px #102d3a1f;
}
.hero:has(img) {
  position: relative !important; display: block !important; isolation: isolate;
  min-height: 340px; overflow: hidden; padding: clamp(25px, 5vw, 54px) !important;
}
.hero:has(img)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #071c31f2 0%, #0b2942db 56%, #145b4966 100%);
}
.hero:has(img) > :not(img) { position: relative; z-index: 2; max-width: 790px; }
.hero:has(img) > img, .hero:has(img) > div:has(> img) img {
  position: absolute !important; inset: 0 !important; z-index: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important;
  max-height: none !important; object-fit: cover !important; object-position: center 42% !important;
  opacity: .38 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.hero:has(> div:has(> img)) > div:has(> img) { position: absolute !important; inset: 0 !important; z-index: 0 !important; }
.hero .eyebrow { color: var(--owl-gold-light) !important; }
.hero h1, .hero h2 { color: #ffe3a1 !important; text-shadow: 0 2px 6px #06172599; }
.hero p { color: #fffaf0 !important; text-shadow: 0 1px 4px #061725a8; }
.grid > a.tile {
  grid-column: span 2 !important;
  border: 1px solid #d2b56b !important; border-top: 3px solid var(--owl-gold-light) !important;
  border-radius: 15px !important; background: #fffaf0 !important; color: var(--owl-ink) !important;
  box-shadow: 0 6px 18px #102d3a12; transition: transform .18s ease, box-shadow .18s ease;
}
.grid > a.tile:hover { transform: translateY(-3px); background: #f2ead6 !important; box-shadow: 0 12px 26px #102d3a20; }
.grid > a.tile h3 { color: var(--owl-gold) !important; }
.grid > a.tile p { color: #405b5c !important; }
.grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.grid > a.tile:nth-child(3n + 1):last-child { grid-column: 3 / span 2 !important; }
.grid > a.tile:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2 !important; }
.grid > a.tile:nth-child(3n + 2):last-child { grid-column: 4 / span 2 !important; }
.panel, .note, .course-note, .hub-note { border-color: #d6c38f !important; border-radius: 14px; background: #fffaf0 !important; color: #334a4c !important; }
footer {
  border-top: 2px solid var(--owl-gold-light); background: var(--owl-navy-deep) !important;
  color: #fffaf0 !important; padding: 25px clamp(16px, 4vw, 40px) !important;
}
footer a { color: var(--owl-gold-light) !important; }
.network-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin: 16px auto 0; padding-top: 14px; border-top: 1px solid #e5bd6c55;
  max-width: 1050px; font-size: .82rem;
}
.network-footer-links a { color: #ffe3a1 !important; font-weight: 700; text-decoration: none; }
.network-footer-links a:hover { text-decoration: underline; }
.network-menu { display: inline-block; margin-left: auto; }
.network-menu > summary {
  min-height: 42px; display: inline-flex; align-items: center; cursor: pointer; list-style: none;
  border: 1px solid var(--owl-gold-light); border-radius: 9px; padding: 9px 15px;
  background: var(--owl-gold-light); color: var(--owl-navy-deep); font-weight: 850;
}
.network-menu > summary::-webkit-details-marker { display: none; }
.network-menu > summary::after { content: "⌄"; margin-left: 8px; }
.network-menu[open] > summary::after { content: "⌃"; }
.network-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 12px; z-index: 50;
  width: min(650px, calc(100vw - 24px)); max-height: min(75dvh, 620px); overflow: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px;
  padding: 14px; border: 1px solid #d4bd83; border-radius: 14px;
  background: #fffaf0; box-shadow: 0 18px 50px #06172550;
}
.network-menu-panel a {
  display: block; min-height: 42px; padding: 11px 12px; border-radius: 8px;
  color: var(--owl-navy) !important; font-size: .86rem; font-weight: 700; text-decoration: none;
}
.network-menu-panel a:hover, .network-menu-panel a:focus-visible { background: #e9e1ce; color: var(--owl-emerald) !important; }
.network-menu-panel .network-menu-heading { grid-column: 1 / -1; padding: 8px 12px; color: var(--owl-gold); font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
@media (max-width: 720px) {
  header.top { gap: 10px; }
  header.top nav { display: none !important; }
  .network-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero:has(img) { min-height: 370px; padding: 24px 20px !important; }
  .hero:has(img)::before { background: linear-gradient(90deg, #071c31f2, #0b2942e0 70%, #145b4978); }
  .hero:has(img) > img, .hero:has(img) > div:has(> img) img { object-position: 62% center !important; opacity: .3 !important; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .grid > a.tile:nth-child(3n + 1):last-child,
  .grid > a.tile:nth-child(3n + 1):nth-last-child(2),
  .grid > a.tile:nth-child(3n + 2):last-child { grid-column: span 2 !important; }
  .grid > a.tile:nth-child(odd):last-child { grid-column: 2 / span 2 !important; }
}
@media (max-width: 460px) {
  .network-menu-panel { right: 8px; width: calc(100vw - 16px); padding: 9px; gap: 2px; }
  .network-menu-panel a { padding: 10px 8px; font-size: .8rem; }
  .network-footer-links { gap: 8px 12px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) { .grid > a.tile { transition: none; } }
