/* Catskills Mountain Marathon - shared stylesheet */
/* Last edited: G. Martin, 2026 */

body {
  background-color: #e8e2d0;
  background-image:
    linear-gradient(rgba(139,115,85,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,115,85,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: Georgia, "Times New Roman", serif;
  color: #2b2419;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
}

.wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: #f5efe0;
  border-left: 1px solid #8b7355;
  border-right: 1px solid #8b7355;
  min-height: 100vh;
}

.header {
  background: #3d4a2b;
  color: #f5efe0;
  padding: 18px 20px 14px 20px;
  border-bottom: 4px double #8b7355;
}
.header h1 {
  font-family: "Book Antiqua", "Palatino", Georgia, serif;
  font-size: 26px;
  margin: 0;
  letter-spacing: 1px;
  font-weight: normal;
  font-variant: small-caps;
}
.header .tagline {
  font-style: italic;
  font-size: 13px;
  color: #c5bfa8;
  margin-top: 3px;
}
.header a { color: inherit; text-decoration: none; }

.nav {
  background: #2b3420;
  padding: 6px 20px;
  font-size: 13px;
  font-family: Verdana, Geneva, sans-serif;
  color: #c5bfa8;
  border-bottom: 1px solid #1a2010;
}
.nav a {
  color: #e8e2d0;
  text-decoration: none;
  margin-right: 14px;
}
.nav a:hover { text-decoration: underline; }
.nav a.active { color: #ffffff; font-weight: bold; }

.content { padding: 20px 24px; }

.update-stamp {
  font-size: 13px;
  color: #5a4a30;
  margin-top: 0;
  font-style: italic;
}

h2 {
  font-family: "Book Antiqua", Georgia, serif;
  font-size: 19px;
  color: #3d4a2b;
  border-bottom: 1px solid #8b7355;
  padding-bottom: 3px;
  margin-top: 26px;
  margin-bottom: 10px;
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 0.5px;
}
h3 {
  font-family: Georgia, serif;
  font-size: 15px;
  color: #5a3a1f;
  margin-bottom: 6px;
  font-style: italic;
}
p { margin: 8px 0; }
a { color: #5a3a1f; }
a:visited { color: #3d2f1f; }

table.info {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 10px 0;
  background: #faf6e8;
  border: 1px solid #8b7355;
}
table.info td, table.info th {
  padding: 6px 10px;
  border: 1px solid #c5bfa8;
  text-align: left;
  vertical-align: top;
}
table.info th {
  background: #d8cfb5;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #3d4a2b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 110px;
}

table.results {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin: 10px 0;
  background: #faf6e8;
  border: 1px solid #8b7355;
  font-family: "Courier New", monospace;
}
table.results td, table.results th {
  padding: 4px 8px;
  border-bottom: 1px dotted #c5bfa8;
}
table.results th {
  background: #d8cfb5;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #3d4a2b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #8b7355;
}
table.results tr:hover { background: #f0e8d0; }

.notice {
  background: #f0e8d0;
  border-left: 4px solid #8b4513;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 14px;
}
.notice b { color: #8b4513; }

.notice.green { border-left-color: #3d4a2b; }
.notice.green b { color: #3d4a2b; }

ul.plain {
  list-style-type: square;
  padding-left: 22px;
}
ul.plain li { margin: 3px 0; }

ol.plain { padding-left: 22px; }
ol.plain li { margin: 6px 0; }

.map-caption {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  color: #5a4a30;
  margin-top: 4px;
}
.map-container { text-align: center; margin: 14px 0; }
svg.coursemap, svg.elevation {
  max-width: 100%;
  height: auto;
  border: 1px solid #8b7355;
  background: #f0e4c8;
  display: block;
  margin: 0 auto;
}
svg.elevation { background: #faf6e8; }

.photo-frame {
  margin: 20px 0;
  text-align: center;
}
.photo-frame img {
  max-width: 100%;
  height: auto;
  border: 1px solid #8b7355;
  padding: 6px;
  background: #faf6e8;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}
.photo-frame .photo-caption {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #5a4a30;
  margin: 6px auto 0 auto;
  max-width: 540px;
  line-height: 1.45;
}

hr.rule {
  border: none;
  border-top: 1px dotted #8b7355;
  margin: 22px 0;
}

/* Forms */
form.entry { margin: 14px 0; }
form.entry fieldset {
  border: 1px solid #8b7355;
  background: #faf6e8;
  padding: 12px 16px;
  margin-bottom: 12px;
}
form.entry legend {
  font-family: "Book Antiqua", Georgia, serif;
  font-variant: small-caps;
  font-size: 15px;
  color: #3d4a2b;
  padding: 0 6px;
}
form.entry label {
  display: block;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  color: #3d4a2b;
  margin-top: 8px;
  margin-bottom: 2px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
form.entry input[type=text],
form.entry input[type=email],
form.entry input[type=tel],
form.entry input[type=number],
form.entry select,
form.entry textarea {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #8b7355;
  background: #ffffff;
  font-family: Georgia, serif;
  font-size: 14px;
  box-sizing: border-box;
}
form.entry textarea { min-height: 80px; resize: vertical; }
form.entry .row { display: flex; gap: 12px; }
form.entry .row > div { flex: 1; }
form.entry .check {
  font-family: Georgia, serif;
  font-size: 13px;
  margin: 8px 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
  color: #2b2419;
}
form.entry button {
  font-family: "Book Antiqua", Georgia, serif;
  font-size: 15px;
  font-variant: small-caps;
  background: #3d4a2b;
  color: #f5efe0;
  border: 1px solid #1a2010;
  padding: 8px 22px;
  cursor: pointer;
  letter-spacing: 1px;
}
form.entry button:hover { background: #2b3420; }
form.entry .help {
  font-size: 12px;
  color: #5a4a30;
  font-style: italic;
  margin-top: 2px;
}

.footer {
  border-top: 4px double #8b7355;
  background: #e8e0c8;
  padding: 12px 20px;
  font-size: 11px;
  font-family: Verdana, sans-serif;
  color: #5a4a30;
  text-align: center;
  line-height: 1.6;
}
.footer a { color: #5a3a1f; }
.counter {
  font-family: "Courier New", monospace;
  background: #2b2419;
  color: #b8a878;
  padding: 2px 6px;
  letter-spacing: 2px;
  border: 1px solid #5a4a30;
}

.sponsors {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  color: #5a4a30;
  text-align: center;
  line-height: 2;
}
.sponsors span {
  margin: 0 6px;
  border-bottom: 1px dotted #8b7355;
}

.breadcrumb {
  font-size: 12px;
  font-family: Verdana, sans-serif;
  color: #5a4a30;
  margin-bottom: 10px;
}
.breadcrumb a { color: #5a3a1f; }

.pagehead {
  font-family: "Book Antiqua", Georgia, serif;
  font-size: 22px;
  font-variant: small-caps;
  color: #3d4a2b;
  letter-spacing: 1px;
  margin: 6px 0 4px 0;
  font-weight: normal;
}

/* 404 */
.bignum {
  font-family: "Book Antiqua", Georgia, serif;
  font-size: 96px;
  color: #8b7355;
  text-align: center;
  margin: 20px 0 0 0;
  letter-spacing: 4px;
}

@media (max-width: 600px) {
  .content { padding: 14px 16px; }
  .header { padding: 14px 16px 10px 16px; }
  .header h1 { font-size: 21px; }
  .nav { padding: 6px 16px; font-size: 12px; }
  .nav a { margin-right: 10px; }
  form.entry .row { flex-direction: column; gap: 0; }
  table.info th { width: 90px; }
}
