/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --navy:        #1a3a5c;
  --navy-mid:    #245080;
  --red:         #cc0000;
  --link:        #0047ab;
  --link-hover:  #cc0000;
  --bg:          #ffffff;
  --text:        #222;
  --border:      #ddd;
  --news-bg:     #fff8dc;
  --news-border: #c8a000;
  --nav-bg:      #1a3a5c;
  --nav-hover:   #3a6ea8;
  --font-body:   Georgia, 'Times New Roman', serif;
  --font-ui:     Arial, Helvetica, sans-serif;
}

/* ── BASE ──────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  /* Quarto adds extra wrappers — reset them */
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Suppress Quarto's default page chrome */
#quarto-header,
#quarto-sidebar,
#quarto-toc-toggle,
.quarto-title-block,
#quarto-content > .page-columns > nav,
.nav-page,
.quarto-footer { display: none !important; }

/* Quarto wraps content in #quarto-document > #quarto-content */
#quarto-document { max-width: none; }
#quarto-content  { padding: 0 !important; margin: 0 !important; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* ── HEADER ────────────────────────────────────────────────── */
header {
  position: relative;
  background: #fff;
  border-bottom: 2px solid var(--navy);
}

.header-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo-box {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-title-block h1 {
  font-family: var(--font-ui);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.header-title-block h1 a {
  color: inherit;
  text-decoration: none;
}
.header-title-block h1 a:hover { color: var(--navy-mid); }

.header-title-block .subtitle {
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 2px;
}

.header-title-block .details {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #555;
  margin-top: 4px;
}

/* ── SKYLINE BANNER ────────────────────────────────────────── */
.skyline-banner {
  position: relative;
  background: #fff;
  border-bottom: 2px solid var(--navy);
}

.skyline-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.skyline-banner img {
  width: 60%;
  height: auto;
  object-fit: cover;
  display: block;
  object-position: bottom;
}

nav.site-nav {
  position: absolute;   /* was not previously absolute */
  bottom: 0;
  width: 100%;
}

/* ── NAV ───────────────────────────────────────────────────── */
nav.site-nav {
  background: var(--nav-bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 0 10px;
}

nav.site-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  display: inline-block;
  transition: background 0.15s;
}
nav.site-nav a:hover,
nav.site-nav a.active { background: var(--nav-hover); color: #fff; }

/* ── PAGE BODY ─────────────────────────────────────────────── */
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ── MAIN CONTENT ──────────────────────────────────────────── */
main.content {
  flex: 1 1 0;
  min-width: 0;
}

main.content h2 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
  margin: 28px 0 12px;
}
main.content h2:first-child { margin-top: 0; }

main.content h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 18px 0 8px;
}

main.content p  { margin-bottom: 10px; }
main.content ul,
main.content ol { padding-left: 22px; margin-bottom: 12px; }
main.content li { margin-bottom: 5px; }

/* Quarto renders markdown tables with class .table */
main.content table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
main.content th {
  background: var(--navy);
  color: #fff;
  padding: 7px 12px;
  text-align: left;
}
main.content td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
main.content tr:nth-child(even) td { background: #f4f8fb; }

/* Section separators */
main.content > *:not(:first-child) + h2 {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-box {
  margin-bottom: 22px;
  font-family: var(--font-ui);
  font-size: 0.87rem;
}

.sidebar-box h3 {
  font-size: 0.93rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 5px 9px;
  margin-bottom: 8px;
}

.sidebar-box p,
.sidebar-box ul { padding: 0 6px; margin-bottom: 8px; }

.sidebar-box.news {
  background: var(--news-bg);
  border: 1px solid var(--news-border);
}
.sidebar-box.news h3 {
  background: var(--news-border);
  color: #333;
}

/* Dates list */
.dates-list {
  list-style: none;
  padding: 4px 6px !important;
}
.dates-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 7px;
  font-size: 0.84rem;
}
.date-label {
  font-weight: 700;
  color: var(--navy);
}

/* Attraction images */
.attraction { margin-bottom: 10px; }
.attraction img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}
.caption {
  font-size: 0.78rem;
  color: #666;
  padding-top: 2px;
  font-style: italic;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--navy);
  color: #ccc;
  text-align: center;
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
footer.site-footer a { color: #9fc8f0; }
footer.site-footer p { margin-bottom: 4px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .page-body { flex-direction: column; }
  .sidebar { width: 100%; }
  .header-title-block h1 { font-size: 1.5rem; }
  nav.site-nav a { font-size: 0.76rem; padding: 7px 9px; }
  .header-logo-box { font-size: 0.9rem; padding: 8px 10px; }
}
