:root {
  --pine: #1B3B2B;
  --ivory: #F5F2EB;
  --brass: #B5945B;
  --slate: #5C6F68;
  --terracotta: #A65E46;
  --line: #E3DFD5;
  --ink: #20352B;
  --muted: #718078;
  --shadow: 0 18px 55px rgba(27, 59, 43, .10);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --sk-base: #e4e0d6;
  --sk-shine: #f3efe6;
}

/* Skeleton placeholders — mirror layout, reserve space, gentle shimmer */
@keyframes sk-shimmer {
  100% { transform: translateX(100%); }
}

.sk {
  position: relative;
  overflow: hidden;
  background: var(--sk-base);
  border-radius: 2px;
  pointer-events: none;
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sk-shine) 45%,
    transparent 90%
  );
  animation: sk-shimmer 1.35s ease-in-out infinite;
}

.sk-line {
  display: block;
  height: .7em;
  margin: .35em 0;
}

.sk-line.w40 { width: 40%; }
.sk-line.w45 { width: 45%; }
.sk-line.w50 { width: 50%; }
.sk-line.w55 { width: 55%; }
.sk-line.w60 { width: 60%; }
.sk-line.w65 { width: 65%; }
.sk-line.w70 { width: 70%; }
.sk-line.w75 { width: 75%; }
.sk-line.w80 { width: 80%; }
.sk-line.w85 { width: 85%; }
.sk-line.w90 { width: 90%; }
.sk-line.w100 { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Legacy chrome used by course.html */
header {
  padding: 10px 14px;
  background: #14532d;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
header h1 { font-size: 1.2rem; margin: 0; margin-right: auto; }
main { flex: 1; display: flex; min-height: 0; }
#search { padding: 6px 10px; width: min(340px, 100%); font-size: 1rem; }

/* Fairway Atlas brand shell (landing + map) */
.topline { height: 5px; background: var(--brass); flex-shrink: 0; }

.site-header {
  background: var(--ivory);
  border-bottom: 1px solid rgba(27, 59, 43, .12);
  color: var(--pine);
  padding: 0;
  display: block;
}

.site-header .nav {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name {
  font: 600 17px var(--font-display);
  letter-spacing: .055em;
  display: block;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #40564A;
}

.navlinks a {
  color: inherit;
  text-decoration: none;
  padding: 10px 0;
  position: relative;
}

.navlinks a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--brass);
}

.nav-cta {
  background: var(--pine);
  color: var(--ivory);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--pine);
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: transparent;
  color: var(--pine);
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: var(--pine);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 650px) {
  .site-header .nav { width: min(100% - 34px, 520px); height: 64px; }
  .navlinks { display: none; }
  .navlinks.mobile-open {
    display: flex;
    position: absolute;
    z-index: 20;
    top: 69px;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 18px 24px 22px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .menu { display: block; }
  .brand-name { font-size: 15px; }
  .nav-cta { display: none; }
}
