/* --- Base site styles --- */
body {
  background-color: #FFFFCC;
  font-family: "Courier New", monospace;
  color: #000000;
  padding: 20px;
}

h1 {
  font-size: 24px;
  color: #000080;
  text-align: center;
}

form {
  border: 1px solid #000;
  padding: 10px;
  background: #FFF8DC;
}

label, input, textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

input[type="submit"] {
  width: auto;
  background-color: #000080;
  color: white;
  border: none;
  padding: 5px 10px;
}

/* Main content wrapper with bottom padding trimmed */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 8px;   /* ↓ tighter at the bottom */
  background-color: #FFFFCC;
  border: 1px solid #000;
}

/* Global elements */
li { margin-bottom: 10px; }       /* undo for nav below */
img { max-width: 38%; height: auto; }

/* --- Navigation (boxed, centered, short separators) --- */
nav { border-bottom: 0; }         /* no full-width line */

.nav-container {
  max-width: 800px;               /* boxed width */
  margin: 0 auto;                 /* centered */
  padding: 10px 20px;             /* inner spacing */
  background: #FFFFCC;            /* matches page */
  border-radius: 6px;             /* optional corners */
}

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;                         /* separators manage spacing */
  margin: 0;
  padding: 0;
}

/* Undo global li spacing in the nav */
nav li { margin-bottom: 0 !important; }

/* Short vertical bar(s) between items (on the link) */
.nav li + li a {
  position: relative;
  display: inline-block;
  margin-left: 1rem;              /* space before bars */
  padding-left: 1.5rem;           /* space after bars */
  line-height: 1.2;               /* keeps bars aligned to text */
}

/* For primary nav: single line */
.nav:not(.nav-secondary) li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.2em;
  background: #777;
  transform: translateY(-50%);
}

/* For secondary nav: two vertical lines */
.nav-secondary li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.2em;
  background: #777;
  transform: translateY(-50%);
  box-shadow: 4px 0 0 #777;       /* second line, offset a few px */
}

/* Nav link styles */
.nav a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.nav a:hover {
  color: darkblue;
  text-decoration: underline;
}

.nav a.active,
.nav a[aria-current="page"] {
  color: crimson;
  text-decoration: underline;
}

/* Secondary nav link styles */
.nav-secondary a {
  color: #000080;
  text-decoration: none;
}

.nav-secondary a:hover {
  color: darkblue;
}



/* --- Footer: “Last updated” widget --- */
.site-footer {
  margin: 0.5rem 0 0;             /* tighter space above timestamp */
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 6px 20px;              /* compact top/bottom padding */
  background: #FFFFCC;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  color: black;
}

.site-footer p { margin: 0; }     /* if using <p> */
.footer-container {
  display: flex;            /* place items on one line */
  justify-content: center;
  align-items: center;
  gap: .75rem;              /* space around the dot */
  flex-wrap: wrap;          /* wraps nicely on small screens */
}
.footer-container .dot { opacity: .6; }

.photo { text-align: center; margin: 1rem auto; }
.photo img { display: block; margin: 0 auto; }
.photo figcaption { margin-top: .5rem; font-size: .9rem; color: #555; }
/* space between the two nav rows */
.nav-container .nav + .nav {
  margin-top: 6px;
}

/* optional: slightly subtler second row */
.nav-secondary a {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* optional: make the second row’s divider a touch shorter/lighter */
.nav-secondary li + li a::before {
  height: 1em;
  opacity: 1;
}

/* accessibility: clear keyboard focus on links */
.nav a:focus-visible {
  outline: 2px dotted #000;
  outline-offset: 2px;
}
.nav-secondary-box {
  background-color: #b8860b; /* dark yellow */
  border-radius: 8px;        /* rounded corners */
  padding: 0.5rem 1rem;      /* space inside box */
  display: inline-block;     /* keeps the box just around the nav */
  margin-top: 1rem;          /* separates from primary nav */
}

.nav-secondary a {
  color: black;               /* white links for contrast */
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.nav-secondary a:hover {
  background-color: #FFFFAA; /* lighter gold on hover */
  border-radius: 4px;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers child elements horizontally */
}

.nav-primary {
  margin-bottom: 1rem; /* space between primary and secondary */
}

.nav-secondary-box {
  background-color: #FFFFCC;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: inline-block; /* keeps box tight around links */
}
.nav-primary,
.nav-secondary {
  margin: 0;   /* removes default list margins */
  padding: 0;  /* optional: removes left indent */
  list-style: none; /* optional: removes bullets */
}

.nav-primary {
  margin-bottom: 0.25rem; /* just a little breathing room */
}

.nav-secondary-box {
  margin-top: 0; /* prevent extra gap above the box */
}
.wrap img {
  max-width: 100%;
  height: auto;          /* responsive image */
  display: block;
}

.float-left {
  float: left;
  width: 260px;          /* set a width so text knows how much space to wrap around */
  margin: 0 1rem 0.75rem 0;  /* space between image and text */
}

.float-right {
  float: right;
  width: 260px;
  margin: 0 0 0.75rem 1rem;
}

/* clear the float at the end of the container */
.wrap::after {
  content: "";
  display: block;
  clear: both;
}

