:root {
  --base: #f7f9f8;
  --surface: #ffffff;
  --text: #2d3748;
  --text-muted: #5e6d67;
  --primary: #164238;
  --primary-light: #24594d;
  --primary-soft: #edf5f1;
  --accent: #b64c29;
  --accent-hover: #9a3d1d;
  --border: #dbe4df;
  --border-light: #ecf1ee;
  --card-bg: #ffffff;
  --navy-block-bg: #0f2b24;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px -3px rgba(22, 66, 56, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.68;
  color: var(--text);
  background-color: var(--base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus-visible {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Slim, Proper, Non-sticky Header */
.site-header {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.brand-name {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* 3-Dot Mobile Toggle Button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary-light);
}
.dots-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-list a:hover {
  color: var(--primary);
  background-color: var(--primary-soft);
}

/* Small, Simple Header CTA Button */
.nav-cta a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  line-height: 1.3;
}
.nav-cta a:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Hero Band */
.hero-band {
  background: linear-gradient(180deg, #e8efe9 0%, #edf4ef 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.4rem 1.25rem 2rem;
  text-align: center;
}
.hero-band h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -0.025em;
  max-width: 860px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}

/* Breadcrumbs */
.breadcrumb-nav {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.84rem;
}
.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--text-muted);
}
.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #94a3b8;
}
.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Main Container */
main {
  flex: 1 0 auto;
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.5rem;
}

.page-content.narrow-col {
  max-width: 740px;
}

.intro-lead {
  font-size: 1.1rem;
  line-height: 1.72;
  color: #1e293b;
  margin-bottom: 2.2rem;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.3rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

/* Vertical Connected Steps */
.flow-thread {
  position: relative;
  padding-left: 2rem;
  margin: 2.5rem 0;
}
.flow-thread::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 20px;
  left: 13px;
  width: 2px;
  background: var(--border);
}

.flow-step {
  position: relative;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.step-marker {
  position: absolute;
  left: -2rem;
  top: 1.2rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--base);
}

.flow-step h2, .flow-step h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

/* Dark Contrast Section */
.navy-block {
  background: var(--navy-block-bg);
  color: #e2ece7;
  padding: 3rem 1.25rem;
  margin: 3rem 0;
}
.navy-block-inner {
  max-width: 960px;
  margin: 0 auto;
}
.navy-block h2 {
  color: #ffffff;
  margin-top: 0;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}
.navy-block p {
  color: #c9ddd5;
}
.navy-block a {
  color: #a3e0ce;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin: 2rem 0;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd8d1;
}

.guide-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.guide-card p {
  flex-grow: 1;
  color: #3b4742;
  font-size: 0.95rem;
}

.img-frame {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #eef3f0;
  text-align: center;
}
.img-frame img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Small, Crisp Outlined Buttons */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  min-height: 38px;
  line-height: 24px;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-outline-pale {
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline-pale:hover {
  background: #ffffff;
  color: var(--primary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text);
}
caption {
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: #eaf1ed;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
th, td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
th {
  background: #f4f8f6;
  color: var(--primary);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* Details & Summaries */
.faq-list {
  margin: 2rem 0;
}
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
details[open] {
  border-color: var(--primary);
}
summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0.25rem 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 0.98rem;
}
summary::-webkit-details-marker {
  color: var(--primary);
}
.faq-answer {
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
  color: #334155;
  font-size: 0.95rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 0.9rem;
}
select, textarea, input[type="url"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select:focus, textarea:focus, input[type="url"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 66, 56, 0.1);
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.char-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: right;
}
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.status-msg {
  min-height: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

/* Related Content Box */
.related-box {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 3rem 0 1rem;
}
.related-box h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--primary);
}
.related-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.related-box li {
  margin-bottom: 0.4rem;
}
.related-box a {
  color: var(--primary);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #0d221c;
  color: #b3c5be;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: auto;
  border-top: 1px solid #1c3b32;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.footer-brand {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
}
.footer-text {
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
  color: #9cb2a9;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 0.8rem 0;
  border-top: 1px solid #1a3830;
  border-bottom: 1px solid #1a3830;
}
.footer-nav a {
  color: #e2ece7;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 28px;
}
.footer-nav a:hover {
  text-decoration: underline;
  color: #ffffff;
}
.footer-meta {
  font-size: 0.8rem;
  color: #799086;
  line-height: 1.6;
}

/* Mobile Dropdown via 3-Dot Button (< 860px) */
@media (max-width: 860px) {
  .site-header {
    padding: 0.55rem 1rem;
  }
  .header-inner {
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -4px rgba(15, 43, 36, 0.18), 0 4px 10px -2px rgba(15, 43, 36, 0.08);
    padding: 0.5rem 0;
    z-index: 999;
  }
  .main-nav[hidden] {
    display: none;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-size: 0.88rem;
    color: var(--text);
  }
  .nav-list a:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
  }
  .nav-cta {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-light);
    padding-inline: 0.65rem;
    padding-bottom: 0.35rem;
  }
  .nav-cta a {
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
  }
  .flow-thread {
    padding-left: 1.5rem;
  }
  .flow-thread::before {
    left: 8px;
  }
  .step-marker {
    left: -1.5rem;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}