@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');

:root { --font-archivo: 'Archivo'; }

:root {
  --teal: #168a8a;
  --teal-deep: #0f5f5f;
  --teal-wash: #eef7f6;
  --teal-line: #c9e4e2;
  --ink: #0c1517;
  --ink-soft: #2a3a3c;
  --muted: #5d6f70;
  --paper: #ffffff;
  --line: #e4e9e9;
  --font-stack: var(--font-archivo), "Archivo", system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
}

/* ============ SLIM UTILITY BAR (header model) ============ */
.ubar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.ubar-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ubar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.ubar-glyph {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  position: relative;
  flex: none;
}
.ubar-glyph::after {
  content: "";
  position: absolute;
  inset: auto 4px 5px 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}
.ubar-word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ubar-word strong {
  color: var(--teal);
  font-weight: 700;
}
.ubar-find {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ubar-find:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: #e3f2f0;
}
.ubar-find-icon {
  flex: none;
  color: var(--teal);
}

/* ============ LEAD BAND (compact, not a tall hero) ============ */
.lead-band {
  background-color: var(--teal-deep);
  background-image: linear-gradient(135deg, rgba(15, 95, 95, 0.94), rgba(22, 138, 138, 0.84)),
    url("/images/nimbleharbor-lead.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.lead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 42px;
}
.lead-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.lead-title {
  margin: 0;
  font-size: 33px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.lead-sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
}

/* ============ DIRECTORY INDEX (home layout model) ============ */
.harbor {
  display: block;
}
.directory {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 6px;
}
.directory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.directory-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.directory-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}
.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dir-row {
  display: grid;
  grid-template-columns: 30px 150px 1fr auto;
  column-gap: 18px;
  row-gap: 2px;
  align-items: center;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}
.dir-row:hover {
  background: var(--teal-wash);
}
.dir-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.dir-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dir-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.dir-title:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dir-note {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
.dir-compare {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--teal-line);
  border-radius: 7px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dir-compare:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.dir-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dir-scope-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.scope-chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--teal-wash);
  border: 1px solid var(--teal-line);
  color: var(--teal-deep);
}

/* ============ METHOD NOTE ============ */
.method {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 8px;
}
.method h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.method-list li {
  padding: 11px 14px;
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============ FOOTER ============ */
.harbor-foot {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 22px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.foot-word {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot-word strong {
  color: var(--teal);
  font-weight: 700;
}
.foot-meta {
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ QUICK-COMPARE ARTICLE (article anatomy) ============ */
.compare-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.compare-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.compare-type {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}
.compare-dot {
  color: var(--line);
}
.compare-h1 {
  margin: 10px 0 0;
  font-size: 31px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Quick verdict box at the very top of the body */
.verdict {
  margin: 22px 0 30px;
  padding: 16px 18px;
  background: var(--teal-wash);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
}
.verdict-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 9px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 5px;
}
.verdict-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

/* Injected content */
.article-content {
  font-size: 16px;
  color: var(--ink-soft);
}
.article-content p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.article-content h2 {
  margin: 30px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.article-content blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--teal);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--teal-deep);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-content thead th {
  background: var(--teal-deep);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.article-content thead th:first-child {
  border-radius: 7px 0 0 0;
}
.article-content thead th:last-child {
  border-radius: 0 7px 0 0;
}
.article-content tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.article-content tbody tr:nth-child(even) {
  background: #f6faf9;
}
.article-content tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.article-content ul {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.article-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  line-height: 1.55;
  font-size: 15.5px;
}
.article-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}
.article-content a {
  color: var(--teal-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: var(--teal);
}

/* FAQ */
.qa {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.qa h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qa details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.qa details[open] summary::after {
  content: "−";
}
.qa details p {
  margin: 11px 0 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Alternatives line */
.alts {
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--teal-wash);
  border-radius: 10px;
  font-size: 14px;
}
.alts-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.alts-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}
.alts-links a:hover {
  color: var(--teal-deep);
}
.alts-dot {
  margin: 0 8px;
  color: var(--muted);
}

.src-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.src-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.compare-foot {
  margin-top: 26px;
}
.back-dir {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.back-dir:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .lead-title {
    font-size: 26px;
    max-width: none;
  }
  .lead-inner {
    padding: 30px 20px 32px;
  }
  .ubar-inner,
  .directory,
  .method,
  .harbor-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .dir-row {
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }
  .dir-index {
    display: none;
  }
  .dir-type {
    grid-column: 1;
    grid-row: 1;
  }
  .dir-main {
    grid-column: 1;
    grid-row: 2;
  }
  .dir-compare {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .method-list {
    grid-template-columns: 1fr;
  }
  .compare-shell {
    padding: 30px 20px 52px;
  }
  .compare-h1 {
    font-size: 26px;
  }
  .article-content table {
    display: block;
    overflow-x: auto;
  }
}
