/* 1. Import Fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
@import url('https://fonts.cdnfonts.com/css/rockwell-nova');

/* 2. Base Styles */
body {
  background-color: #556B2F;
  color: #FFFDD0;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

/* 3. Link Styles (90s Neon & Blinking) */
a:link {
  color: #FFFDD0;
  text-decoration: underline blink;
}

a:visited {
  color: #FFDDA0;
}

a:hover {
  color: #FFFF00;
  text-decoration: none;
}

/* 4. Header Styles (Rockwell Nova, Cream, Uppercase) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Rockwell Nova', Rockwell, serif;
  color: #FFFDD0;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* 5. Main Table Wrapper */
.site-table {
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
  border-color: #00FF00;
}

/* 6. Content Box (90s Dashed Neon Border) */
#content {
  border: 3px dashed #00FF00;
  background-color: #333300;
  padding: 15px;
  margin: 20px auto;
  max-width: 800px;
}

/* 7. Navigation Row */
#nav td {
  background-color: #333300;
  padding: 10px;
  text-align: center;
}

#nav nav {
  line-height: 1.7;
}

/* 8. Images */
#profile-photo {
  display: block;
  margin: 10px auto 20px;
  max-width: 200px;
  border: 2px solid #00FF00;
}

#links-photo {
  display: block;
  margin: 20px auto;
  max-width: 160px;
}

.project-img,
.post-img {
  display: block;
  margin: 10px 0;
  max-width: 100%;
  border: 2px solid #00FF00;
}

/* 9. Details/Dropdown Styling */
details {
  margin-bottom: 1em;
}

details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  outline: none;
}

details ul {
  margin-left: 1.5em;
  list-style-type: disc;
}

details.resume-details {
  border: 2px dotted #00FF00;
  margin-top: 1.5em;
  padding: 12px;
}

details.resume-details summary {
  font-family: 'Rockwell Nova', Rockwell, serif;
  text-transform: uppercase;
}

/* 10. Blog */
.post-list {
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
}

.post-list-item {
  border: 2px dotted #00FF00;
  margin-bottom: 1.25em;
  padding: 12px;
  background-color: #3d3d08;
}

.post-list-item h2 {
  margin-top: 0;
}

.post-meta {
  color: #FFDDA0;
  font-size: 0.95em;
  margin: 0.25em 0 0.75em;
}

.post-tags {
  font-size: 0.9em;
  margin-top: 0.5em;
}

.post-content {
  margin-top: 1.5em;
}

.back-link {
  margin-top: 2em;
}

/* 10a. Northern Hardwoods blog figures */
.nhr-figure {
  box-sizing: border-box;
  margin: 1.75rem 0;
}

.nhr-figure img {
  border: 2px solid #00FF00;
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
}

.nhr-figure figcaption {
  color: #FFDDA0;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.5rem;
}

.nhr-figure.full-width img {
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

.nhr-figure.nhr-map {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

.nhr-figure.nhr-map img {
  max-height: 460px;
  object-fit: contain;
}

.nhr-figure.nhr-chart {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.nhr-figure.nhr-chart img {
  max-height: 420px;
  object-fit: contain;
}

.float-right-tight {
  float: right;
  margin: 0.2rem 0 1rem 1.25rem;
  width: min(230px, 34vw);
}

.float-left-tight {
  float: left;
  margin: 0.2rem 1.25rem 1rem 0;
  width: min(280px, 38vw);
}

.protected-image {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.protected-image img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.protected-image::after {
  background: transparent;
  content: "";
  inset: 0;
  position: absolute;
}

.protected-logo {
  background-color: #FFFDD0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 2px solid #00FF00;
  border-radius: 8px;
  min-height: 145px;
  padding: 10px;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

/* 11. Trip Tracker */
.tracker-status {
  border: 2px dotted #00FF00;
  background-color: #3d3d08;
  display: grid;
  gap: 0.35em;
  margin: 1em 0;
  padding: 12px;
}

.tracker-status p {
  margin: 0;
}

.tracker-button {
  background-color: #333300;
  border: 2px outset #00FF00;
  color: #FFFDD0;
  cursor: pointer;
  font: inherit;
  justify-self: start;
  margin-top: 0.5em;
  padding: 6px 10px;
}

.tracker-button:hover {
  color: #FFFF00;
}

#trip-map.trip-map,
#trip-map.maplibregl-map {
  border: 3px dashed #00FF00;
  box-sizing: border-box;
  height: 520px;
  margin: 1em 0;
  max-width: 100%;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tracker-note {
  color: #FFDDA0;
  font-size: 0.95em;
}

.maplibregl-map {
  background: #b8d7ef;
  font-family: 'Open Sans', sans-serif;
  height: 100%;
  width: 100%;
}

.maplibregl-canvas {
  display: block;
}

.maplibregl-map img {
  border: 0;
  max-width: none;
}

.maplibregl-ctrl-attrib a {
  color: #006600;
}

/* 12. Footer */
.site-footer {
  background-color: #333300;
  color: #FFDDA0;
  font-size: 0.85em;
  padding: 8px;
  text-align: center;
}

@media (max-width: 860px) {
  .site-table {
    width: calc(100% - 20px);
  }

  #content {
    margin: 10px auto;
  }

  #trip-map.trip-map,
  #trip-map.maplibregl-map {
    height: 420px;
    min-height: 420px;
  }

  .float-right-tight,
  .float-left-tight {
    float: none;
    margin: 1.25rem 0;
    width: 100%;
  }

  .nhr-figure.nhr-map,
  .nhr-figure.nhr-chart {
    max-width: 100%;
  }

  .nhr-figure.nhr-map img,
  .nhr-figure.nhr-chart img {
    max-height: none;
    width: 100%;
  }

  .protected-logo {
    min-height: 130px;
  }
}
