html {
  min-height: 100%;
  background: #f4f7fb;
}

body {
  margin: 0;
  padding-top: 214px;
  color: #1d2b4f;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f4f7fb;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 150px;
  color: white;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
  background: url('../images/MarineHeader.jpg') center / cover;
}

header p {
  margin: 34px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

#Logo {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 110px;
  height: 110px;
  border: 2px solid white;
  background: url('../images/MarineLogo.jpg') center / cover;
}

#Image1 {
  width: min(92%, 1400px);
  height: min(45vw, 520px);
  min-height: 220px;
  margin: 0 auto 28px;
  background: url('../images/Hex.png') center / contain no-repeat;
}

.instruction-page {
  width: min(100% - 32px, 960px);
  margin: 0 auto 48px;
}

.instruction-document {
  box-sizing: border-box;
  padding: clamp(24px, 5vw, 58px);
  background: white;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #0d47a1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2 {
  color: #163b70;
  line-height: 1.2;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin: 38px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #dce5f1;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

p,
ul,
ol {
  margin: 0 0 16px;
}

li {
  margin: 5px 0;
}

.lead {
  font-size: 1.1rem;
}

.notice {
  padding: 14px 18px;
  color: #163b70;
  background: #eef5ff;
  border-left: 4px solid #0d47a1;
}

a {
  color: #0d47a1;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 20px 0 32px;
  color: #50627f;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  body {
    padding-top: 270px;
  }

  header p {
    margin-top: 42px;
  }

  .instruction-page {
    width: min(100% - 20px, 960px);
  }

  #Image1 {
    width: 94%;
    height: 42vw;
    min-height: 140px;
  }

  footer {
    width: min(100% - 20px, 960px);
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  body {
    padding-top: 0;
    background: white;
  }

  header,
  nav,
  footer {
    display: none;
  }

  .instruction-page {
    width: 100%;
    margin: 0;
  }

  .instruction-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
