:root {
  --ink: #111827;
  --muted: #53606f;
  --paper: #ffffff;
  --soft: #f5f7f6;
  --line: #d9dfdd;
  --green: #07553f;
  --green-2: #0e6b52;
  --red: #b3292f;
  --gold: #c58a1f;
  --blue: #16406d;
  --shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.86rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar .wrap > * {
  min-width: 0;
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 260px;
}

.brand-mark {
  width: min(290px, 50vw);
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 4px 8px rgba(7, 85, 63, 0.18));
}

.brand-name {
  font-weight: 800;
  line-height: 1.15;
}

.brand-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 2px;
}

.brand-name,
.brand-kicker {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.main-nav a,
.nav-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #233044;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-dropbtn {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.nav-dropbtn:hover,
.nav-dropdown.is-active > .nav-dropbtn,
.nav-dropdown.is-open > .nav-dropbtn {
  background: #edf4f1;
  color: var(--green);
}

.nav-dropdown {
  position: relative;
}

.nav-caret {
  font-size: 0.76rem;
  line-height: 1;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: none;
  min-width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown.is-open .nav-menu {
  display: grid;
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-client {
  border-color: rgba(7, 85, 63, 0.22);
  background: #fff;
  color: var(--green);
  box-shadow: none;
}

.btn-client:hover {
  border-color: rgba(7, 85, 63, 0.4);
  background: #eef7f3;
  color: var(--green);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #961e24;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 20, 31, 0.82), rgba(9, 20, 31, 0.52), rgba(9, 20, 31, 0.22)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero .wrap {
  padding: 96px 0 76px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #f8d483;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  max-width: 800px;
  margin: 16px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p,
.page-hero p {
  max-width: 720px;
  font-size: clamp(1.03rem, 2vw, 1.24rem);
  color: #e7edf3;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.quick-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-link {
  min-height: 118px;
  padding: 22px;
  text-decoration: none;
  border-left: 1px solid var(--line);
}

.quick-link:last-child {
  border-right: 1px solid var(--line);
}

.quick-link strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.quick-link span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
}

.quick-link:hover {
  background: #f4faf7;
}

.home-portal-section {
  background: #f5f7f6;
}

.service-tools {
  padding-bottom: 0;
  background: #f5f7f6;
}

.service-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
}

.service-tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(16, 24, 38, 0.06);
}

.service-tool-card-primary {
  border-top-color: var(--gold);
}

.service-tool-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.service-tool-card p {
  color: var(--muted);
}

.verify-inline-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.verify-inline-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
}

.stat-band {
  background: #f5f7f6;
}

.stat-band-top {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-top: 0;
}

.home-portal-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 220px);
  gap: 24px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.home-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.home-panel-head {
  margin-bottom: 14px;
}

.home-panel h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.journal-picker {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  background: #fff;
  font-size: 0.9rem;
  font: inherit;
  margin-bottom: 18px;
}

.oa-journal-list,
.home-news-list {
  display: grid;
  gap: 0;
}

.oa-journal {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--line);
}

.oa-journal-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--green);
  border: 1px solid rgba(7, 85, 63, 0.18);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.oa-journal h3,
.home-news-list h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.oa-journal h3 a {
  color: var(--ink);
  text-decoration: none;
}

.oa-journal h3 a:hover {
  color: var(--green);
}

.oa-journal p {
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-meta span {
  border: 1px solid rgba(7, 85, 63, 0.14);
  background: #f4faf7;
  color: var(--green);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.7rem;
  font-weight: 800;
}

.home-panel-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.home-panel-actions a,
.home-panel-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.home-panel-actions a:hover,
.home-panel-link:hover,
.home-news-list a:hover {
  color: var(--red);
}

.home-news-list article {
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.home-news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.home-news-list a {
  color: var(--ink);
  text-decoration: none;
}

.home-panel-link {
  display: inline-flex;
  margin-top: 2px;
  font-size: 0.9rem;
}

.home-main .section-head {
  display: block;
}

.home-main .journal-card {
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
}

.home-main .journal-body {
  padding: 24px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head h2,
.page-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.lead {
  color: var(--muted);
  max-width: 680px;
  margin: 10px 0 0;
  overflow-wrap: break-word;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card,
.journal-card,
.news-card,
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card,
.service-card {
  padding: 24px;
}

.card h3,
.journal-card h3,
.news-card h3,
.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.card p,
.journal-card p,
.news-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--ink);
  color: #fff;
  padding: 22px;
  border-radius: 8px;
  min-height: 128px;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #f8d483;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #dbe3ea;
  font-size: 0.92rem;
}

.journal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 280px;
}

.journal-media {
  background: var(--green);
  min-height: 100%;
  position: relative;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  height: 100%;
  min-height: 280px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 85, 63, 0.96), rgba(22, 64, 109, 0.9)),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.13) 48% 52%, transparent 52% 100%);
}

.cover-fallback strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.08;
}

.cover-fallback span {
  color: #f8d483;
  font-weight: 800;
}

.journal-body {
  padding: 26px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-gold {
  background: #fff5dc;
  color: #8a5a07;
}

.pill-red {
  background: #fff0f1;
  color: var(--red);
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.link-list a:hover {
  color: var(--green);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: relative;
}

.process-card:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: var(--gold);
  color: #111827;
  border-radius: 50%;
  font-weight: 800;
}

.feature-band {
  background: var(--green);
  color: #fff;
}

.feature-band .lead,
.feature-band p {
  color: #d8eee6;
}

.feature-band .process-card {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
}

.feature-band .process-card h3 {
  color: var(--ink);
}

.feature-band .process-card p {
  color: var(--muted);
}

.feature-band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.feature-band .card p {
  color: #d8eee6;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.route-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
}

.route-kicker {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.route-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.route-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.56)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}

.page-hero .wrap {
  padding: 86px 0 64px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
}

.page-section {
  padding: 64px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.54fr);
  gap: 42px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.panel label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink);
  font-weight: 800;
}

.panel input,
.panel select,
.panel textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbf9;
  color: var(--green);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover {
  background: #eef7f3;
  border-color: rgba(7, 85, 63, 0.28);
}

.panel .btn {
  margin-top: 16px;
}

.inline-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0 !important;
  font-weight: 700;
}

.inline-check input {
  width: auto !important;
  min-height: 0 !important;
  margin-top: 6px;
}

.account-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.account-new-alert {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid rgba(197, 138, 31, 0.28);
  border-radius: 8px;
  background: #fff8e6;
  color: #233044;
}

.account-new-alert > strong {
  color: var(--green);
}

.account-new-alert > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-new-alert a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(197, 138, 31, 0.28);
  color: var(--ink);
  font-weight: 800;
}

.account-new-alert small {
  color: var(--muted);
  font-size: 0.75rem;
}

.form-alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 800;
}

.form-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.form-alert-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.panel h3 {
  margin-top: 0;
}

.content-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.account-hero {
  background:
    linear-gradient(90deg, rgba(7, 85, 63, 0.88), rgba(17, 24, 39, 0.58)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.account-main {
  display: grid;
  gap: 24px;
}

.compact-head {
  align-items: start;
  margin-bottom: 20px;
}

.account-resource-grid,
.account-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-resource-grid a,
.account-mini-grid a {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  text-decoration: none;
}

.account-mini-grid a {
  min-height: 54px;
  align-content: center;
  font-weight: 900;
}

.account-resource-grid strong {
  color: var(--green);
  font-size: 1.02rem;
}

.account-resource-grid span {
  color: var(--muted);
}

.account-order-list {
  display: grid;
  gap: 14px;
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffd;
}

.account-order-card h3 {
  margin: 6px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.account-order-card p {
  margin: 0;
  color: var(--muted);
}

.account-ref {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-feedback-link {
  border: 1px solid rgba(14, 107, 82, 0.22);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  margin-left: 10px;
  padding: 6px 10px;
  text-decoration: none;
  vertical-align: middle;
}

.account-feedback-link:hover {
  background: rgba(14, 107, 82, 0.08);
  color: var(--green-2);
}

.account-feedback-panel {
  margin-top: 12px;
}

.account-feedback-panel summary {
  cursor: pointer;
  list-style: none;
  width: max-content;
}

.account-feedback-panel summary::-webkit-details-marker {
  display: none;
}

.account-feedback-panel form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-feedback-panel label {
  color: var(--ink);
  display: grid;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 800;
}

.account-feedback-panel select,
.account-feedback-panel textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  resize: vertical;
  width: 100%;
}

.account-feedback-panel button {
  justify-self: start;
}

.account-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-doc-grid a,
.account-doc-grid span,
.account-certificate-list a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 900;
}

.account-doc-grid .ready,
.account-certificate-list a {
  background: #e8f6f0;
  color: var(--green);
  border: 1px solid rgba(14, 107, 82, 0.22);
}

.account-doc-grid .pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  pointer-events: none;
}

.account-certificate-list {
  display: grid;
  gap: 10px;
}

.account-certificate-list a {
  place-items: start;
  text-align: left;
}

.account-certificate-list span {
  color: var(--muted);
  font-weight: 700;
}

.content-block h2,
.content-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block ul,
.panel ul,
.service-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.content-block li,
.panel li,
.service-card li {
  margin: 8px 0;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0 0 22px;
}

.search-row input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card:first-child img {
  height: 280px;
}

.news-card div {
  padding: 20px;
}

.news-card time {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  color: var(--ink);
  font-weight: 900;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
}

.database-hero {
  background:
    linear-gradient(135deg, rgba(7, 85, 63, 0.96), rgba(17, 24, 39, 0.92)),
    url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.database-band {
  background: var(--ink);
  color: #fff;
}

.database-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.database-metrics > div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: #111827;
}

.database-metrics strong {
  color: #f8d483;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.database-metrics span {
  color: #e5e7eb;
  font-weight: 700;
}

.article-tool {
  display: grid;
  gap: 18px;
}

.article-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-toolbar input,
.article-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.article-status {
  color: var(--muted);
  font-weight: 800;
}

.article-results {
  display: grid;
  gap: 16px;
}

.article-record,
.article-empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.article-record-meta,
.article-record-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-record-meta span {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 0.75rem;
}

.article-record h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.06;
}

.article-record h2 a {
  text-decoration: none;
}

.article-authors {
  color: var(--ink);
  font-weight: 800;
}

.article-abstract {
  color: var(--muted);
}

.article-actions,
.btn-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.article-main h2,
.article-side h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.author-list {
  display: grid;
  gap: 10px;
}

.author-row {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.author-row span {
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 900;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.metric-mini {
  display: grid;
  gap: 8px;
}

.metric-mini span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7f6;
  color: var(--muted);
  font-weight: 800;
}

.metric-mini strong {
  color: var(--green);
}

.site-footer {
  background: #111827;
  color: #e5e7eb;
}

.footer-main {
  background: #4d5874;
  padding: 48px 0;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 3.2fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.footer-brand img {
  width: min(280px, 100%);
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.footer-brand p,
.footer-column p {
  color: #edf2f7;
}

.footer-brand p {
  max-width: 360px;
}

.footer-small {
  margin-top: -2px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-alert-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 340px;
}

.footer-alert-form select,
.footer-alert-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
  color: #111827;
  background: #fff;
}

.footer-alert-form button {
  justify-self: start;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.footer-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-account-actions a {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
}

.footer-account-primary {
  background: #fff;
  color: #111827 !important;
}

.footer-account-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.footer-column {
  min-width: 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 13px;
  color: #fff;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer a {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: #f8d483;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-link-with-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-unread-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  background: #f8d483;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.account-unread-badge[hidden] {
  display: none;
}

.footer-legal {
  background: #2f3134;
  padding: 24px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #e5e7eb;
  font-size: 0.88rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff9ea;
  padding: 16px 18px;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

.quote-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: clamp(20px, 3.5vw, 34px);
  margin: 0 0 26px;
}

.quote-brief__label {
  display: inline-flex;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quote-brief h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.quote-brief p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}

.quote-cap-note {
  margin-top: 12px !important;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: #fff8e7;
  color: #403015 !important;
  font-weight: 700;
}

.quote-login-note {
  margin-top: 12px !important;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #eef8f3;
  color: #12372d !important;
}

.quote-brief__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.quote-brief__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-brief__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.quote-brief__steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.quote-brief__steps strong {
  color: var(--ink);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 100%;
}

.pricing-card-featured {
  border-color: rgba(179, 41, 47, 0.45);
  box-shadow: var(--shadow);
}

.pricing-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff2d8;
  color: #6d4510;
  border: 1px solid rgba(197, 138, 31, 0.3);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.pricing-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-note {
  padding-top: 4px;
  color: #243145;
}

.pricing-card strong {
  display: block;
  color: var(--red);
  font-size: 1.8rem;
  line-height: 1.1;
}

.pricing-card ul {
  margin: 0 0 4px;
  padding-left: 20px;
  color: #243145;
}

.pricing-card li {
  margin: 7px 0;
}

.pricing-card .btn {
  margin-top: auto;
}

.sample-stack {
  display: grid;
  gap: 24px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sample-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.sample-card-wide {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.sample-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-card h3 {
  margin: 10px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.sample-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.sample-card ul {
  margin: 0;
  padding-left: 20px;
  color: #243145;
}

.output-stack {
  display: grid;
  gap: 24px;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.output-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.output-card-wide {
  display: grid;
  grid-template-columns: minmax(255px, 0.65fr) minmax(480px, 1.35fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.output-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.output-copy h3,
.output-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.output-copy p,
.output-card p {
  margin: 0;
  color: var(--muted);
}

.output-copy ul {
  margin: 0;
  padding-left: 20px;
  color: #243145;
}

.publication-figure {
  background: #fff;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(17, 24, 39, 0.04);
  margin: 0;
  overflow: hidden;
  padding: clamp(16px, 2vw, 22px);
}

.publication-figure__head {
  align-items: start;
  border-bottom: 2px solid var(--green);
  display: flex;
  gap: 14px;
  padding-bottom: 10px;
}

.publication-figure__head span {
  background: var(--green);
  border-radius: 4px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.publication-figure__head strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.38;
}

.publication-figure__meta {
  color: #64748b;
  font-size: 0.77rem;
  margin: 10px 0 4px;
}

.publication-chart {
  display: block;
  height: auto;
  margin-top: 4px;
  width: 100%;
}

.publication-legend {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 0 10px;
}

.line-swatch {
  display: inline-block;
  height: 3px;
  margin-left: 8px;
  width: 24px;
}

.line-swatch:first-child {
  margin-left: 0;
}

.line-swatch.resistant {
  background: var(--green);
}

.line-swatch.comparator {
  background: var(--red);
  border-top: 1px dashed #fff;
}

.publication-table {
  border-collapse: collapse;
  color: #334155;
  font-size: 0.74rem;
  margin-top: 10px;
  width: 100%;
}

.publication-table th {
  background: #edf7f3;
  color: var(--green);
  font-weight: 900;
}

.publication-table th,
.publication-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 8px;
  text-align: left;
}

.publication-figure figcaption {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.45;
  margin-top: 10px;
}

.output-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.research-output {
  min-height: 440px;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid #d7dedb;
  background: #fff;
}

.research-output-before {
  background: #fffafa;
  border-color: rgba(179, 41, 47, 0.28);
}

.research-output-after {
  background: #fbfffd;
  border-color: rgba(14, 107, 82, 0.28);
}

.output-label {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #243145;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.research-output-after .output-label {
  background: #e7f5ef;
  color: var(--green);
}

.research-output h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.research-output svg {
  width: 100%;
  min-height: 118px;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background: #fff;
}

.rough-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rough-flow span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed #b7c0ca;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  transform: rotate(-1deg);
}

.rough-flow span:nth-child(2),
.rough-flow span:nth-child(4) {
  transform: rotate(1deg);
}

.clean-flow-horizontal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clean-flow-horizontal span {
  min-height: 46px;
  padding: 8px;
  border-radius: 8px;
  display: grid;
  align-items: center;
  text-align: center;
  color: var(--green);
  border: 1px solid rgba(14, 107, 82, 0.22);
  background: #eef8f3;
  font-size: 0.8rem;
  font-weight: 900;
}

.rough-table,
.clean-mini-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background: #fff;
}

.rough-table span,
.clean-mini-table span,
.clean-mini-table strong {
  min-height: 32px;
  padding: 8px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
}

.rough-table span {
  color: #64748b;
}

.clean-mini-table span {
  color: var(--green);
  background: #eef8f3;
  font-weight: 900;
}

.clean-mini-table strong {
  color: #243145;
}

.output-media-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.output-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe4e1;
}

.sample-disclaimer {
  border-top: 1px solid #edf2f7;
  font-size: 0.82rem;
  padding-top: 10px;
}

.video-sample {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.video-sample img {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  object-fit: cover;
  width: 100%;
}

.video-sample__meta {
  background: linear-gradient(0deg, rgba(16, 24, 38, 0.88), rgba(16, 24, 38, 0));
  bottom: 0;
  color: #fff;
  display: grid;
  gap: 3px;
  left: 0;
  padding: 42px 16px 14px;
  position: absolute;
  right: 0;
}

.video-sample__meta span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
}

.output-data-card {
  align-items: center;
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  grid-column: 1 / -1;
  grid-template-columns: minmax(250px, 0.62fr) minmax(450px, 1.38fr);
}

.output-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.output-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef8f3;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.storyboard {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.storyboard div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #dbe4e1;
  background: #f8fafc;
}

.storyboard strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.storyboard span {
  color: #243145;
  font-weight: 800;
}

.video-preview-card {
  margin-top: 16px;
  min-height: 120px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72)),
    linear-gradient(135deg, #07553f, #16406d);
}

.results-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.forest-plot {
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  padding: 14px;
}

.forest-heading,
.forest-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 148px minmax(140px, 1fr) 136px;
}

.forest-heading {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.forest-row {
  border-top: 1px solid #edf2f7;
  font-size: 0.78rem;
  min-height: 39px;
}

.forest-row i {
  background: linear-gradient(90deg, transparent 39.5%, #94a3b8 39.5%, #94a3b8 40%, transparent 40%);
  display: block;
  height: 24px;
  position: relative;
}

.forest-row b {
  background: var(--green);
  height: 3px;
  position: absolute;
  top: 11px;
}

.forest-row em {
  background: var(--green);
  border-radius: 50%;
  height: 10px;
  margin-left: -5px;
  position: absolute;
  top: 7px;
  width: 10px;
}

.forest-row strong {
  font-size: 0.78rem;
}

.forest-axis {
  color: #64748b;
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  margin: 5px 144px 0 160px;
}

.results-bars {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background:
    linear-gradient(#edf2f7 1px, transparent 1px) 0 0 / 100% 25%,
    #fff;
}

.results-bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #1d8a6c, #07553f);
}

.results-bars span:nth-child(even) {
  background: linear-gradient(180deg, #d79a2e, #9d650c);
}

.results-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  color: #243145;
}

.results-panel th,
.results-panel td {
  padding: 9px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.results-panel th {
  color: var(--green);
  background: #eef8f3;
}

.compact-feedback-section {
  padding: 30px 0 44px;
}

.feedback-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.feedback-mini h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.feedback-mini p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.service-testimonials {
  padding: 42px 0 14px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.testimonial-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.testimonial-rating {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf5f0;
  font-size: 0.77rem;
  font-weight: 800;
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

.testimonial-card span {
  align-self: end;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.figure-board {
  min-height: 330px;
  border: 2px dashed rgba(22, 64, 109, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 14px;
}

.figure-board strong {
  color: var(--blue);
  font-size: 1rem;
}

.flow-lines {
  display: grid;
  gap: 10px;
}

.flow-lines span {
  min-height: 28px;
  border: 1px solid #bac4d0;
  background: #f9fafb;
  transform: rotate(-1deg);
}

.flow-lines span:nth-child(2) {
  transform: rotate(1deg);
}

.messy-chart {
  height: 92px;
  position: relative;
  border-bottom: 1px solid #cbd5e1;
}

.messy-chart i {
  position: absolute;
  width: 2px;
  height: 95px;
  background: #1f2937;
  transform-origin: bottom center;
}

.messy-chart i:nth-child(1) { left: 12%; transform: rotate(52deg); }
.messy-chart i:nth-child(2) { left: 28%; transform: rotate(-36deg); }
.messy-chart i:nth-child(3) { left: 48%; transform: rotate(42deg); }
.messy-chart i:nth-child(4) { left: 68%; transform: rotate(-28deg); }
.messy-chart i:nth-child(5) { left: 84%; transform: rotate(36deg); }

.mini-table {
  min-height: 82px;
  background:
    linear-gradient(#cbd5e1 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, #cbd5e1 1px, transparent 1px) 0 0 / 33% 100%,
    #fff;
  border: 1px solid #cbd5e1;
}

.figure-board-after {
  border-color: rgba(14, 107, 82, 0.38);
  background: #fbfffd;
}

.clean-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.clean-flow span {
  min-height: 38px;
  border: 1px solid rgba(14, 107, 82, 0.24);
  border-left: 5px solid var(--green-2);
  border-radius: 6px;
  display: grid;
  align-items: center;
  padding: 0 12px;
  background: #eef7f3;
  color: var(--green);
  font-weight: 800;
}

.clean-chart,
.data-mock {
  height: 132px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background:
    linear-gradient(#edf2f7 1px, transparent 1px) 0 0 / 100% 25%,
    #fff;
}

.clean-chart i,
.data-mock span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #1d8a6c, #07553f);
}

.clean-chart i:nth-child(2),
.data-mock span:nth-child(2) {
  background: linear-gradient(180deg, #d79a2e, #9d650c);
}

.clean-chart i:nth-child(3),
.data-mock span:nth-child(3) {
  background: linear-gradient(180deg, #bb3340, #7d151e);
}

.color-key {
  display: flex;
  gap: 8px;
}

.color-key span {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.color-key span:nth-child(2) {
  background: var(--gold);
}

.color-key span:nth-child(3) {
  background: var(--red);
}

.abstract-mock {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 34px 1.1fr 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff8f4, #fff6e3);
  border: 1px solid #dbe4e1;
}

.abstract-node {
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(7, 85, 63, 0.18);
  color: var(--green);
  font-weight: 900;
}

.abstract-node-main {
  min-height: 94px;
  color: #fff;
  background: var(--green);
}

.abstract-arrow {
  height: 3px;
  background: var(--gold);
  position: relative;
}

.abstract-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  border-left: 9px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.video-mock {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.68)),
    linear-gradient(135deg, #9a6a3a, #16406d);
}

.play-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
}

.play-dot::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-left: 17px solid var(--red);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.video-timeline {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.video-timeline span {
  display: block;
  width: 52%;
  height: 100%;
  background: var(--gold);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feedback-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feedback-score {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.feedback-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
}

.feedback-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.feedback-cta h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.feedback-cta p {
  margin: 0;
  color: #d7dde6;
}

.gap-note-strong {
  color: #403015;
  font-weight: 800;
  background: #fff8e7;
  border-left: 4px solid var(--gold);
  padding: 10px 12px;
}

.voucher-panel {
  background: linear-gradient(135deg, #fbfffd, #fff8e7);
}

.voucher-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.voucher-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.voucher-feedback.is-success {
  color: var(--green);
}

.voucher-feedback.is-error {
  color: var(--red);
}

.gap-noscroll {
  overflow: hidden;
}

.gap-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  padding: 24px;
}

.gap-modal.is-open {
  display: block;
}

.gap-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.66);
}

.gap-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.gap-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.gap-modal__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.gap-modal__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.quote-modal-tier {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 10px 0 0;
  border: 1px solid rgba(7, 85, 63, 0.18);
  background: #edf4f1;
  color: var(--green);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.gap-modal__close {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gap-form {
  padding: 20px;
}

.gap-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.gap-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.gap-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.gap-field label {
  display: block;
  margin: 0 0 6px;
  color: #253247;
  font-size: 0.85rem;
  font-weight: 800;
}

.gap-field input,
.gap-field select,
.gap-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.gap-field input[readonly] {
  background: #f8fafc;
  color: #243145;
  font-weight: 800;
}

.gap-field textarea {
  min-height: 130px;
  resize: vertical;
}

.gap-field input:focus,
.gap-field select:focus,
.gap-field textarea:focus {
  outline: 3px solid rgba(14, 107, 82, 0.16);
  border-color: var(--green-2);
}

.gap-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.gap-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.gap-quotehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gap-pill {
  border: 1px solid rgba(7, 85, 63, 0.18);
  background: #edf4f1;
  color: var(--green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gap-note,
.gap-footerhint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gap-box,
.gap-contract {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  margin: 14px 0;
}

.gap-box-title,
.gap-contract__title {
  color: var(--green);
  font-weight: 800;
  margin-bottom: 8px;
}

.gap-contract__text {
  color: var(--muted);
}

.gap-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}

.gap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #243145;
  font-size: 0.92rem;
}

.gap-totalbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(179, 41, 47, 0.18);
  background: #fff8f3;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}

.gap-total-label {
  color: var(--red);
  font-weight: 900;
}

.gap-total-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.gap-totalinput {
  max-width: 220px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 900;
}

.gap-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gap-btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.gap-btn--primary {
  background: var(--red);
  color: #fff;
}

.gap-btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.gap-hp {
  display: none;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-dropbtn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 8px 12px;
    padding: 6px 0 6px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-menu,
  .nav-dropdown:focus-within .nav-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-menu {
    display: grid;
  }

  .nav-menu a {
    white-space: normal;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .quick-grid,
  .stat-row,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-2,
  .account-grid,
  .account-resource-grid,
  .account-mini-grid,
  .account-order-card,
  .account-doc-grid,
  .service-tool-grid,
  .home-portal-grid,
  .footer-main-grid,
  .footer-columns,
  .database-metrics,
  .article-toolbar,
  .article-layout,
  .news-grid,
  .pricing-grid,
  .route-grid,
  .quote-brief,
  .sample-grid,
  .sample-card-wide,
  .output-grid,
  .output-card-wide,
  .output-data-card,
  .output-comparison,
  .before-after,
  .feedback-grid,
  .testimonial-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gap-grid--3 {
    grid-template-columns: 1fr;
  }

  .journal-card {
    grid-template-columns: 1fr;
  }

  .home-main .journal-card {
    grid-template-columns: 1fr;
  }

  .journal-media,
  .cover-fallback {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .topbar .wrap {
    display: grid;
    gap: 4px;
  }

  .nav-shell {
    gap: 10px;
  }

  .brand {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }

  .brand-name {
    font-size: 0.94rem;
    overflow-wrap: break-word;
  }

  .nav-toggle {
    flex: 0 0 42px;
  }

  .nav-actions {
    flex-basis: 100%;
  }

  .brand-kicker {
    display: none;
  }

  .nav-actions .btn-primary {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .section-head h2,
  .page-section h2 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .hero .wrap,
  .page-hero .wrap {
    padding-top: 72px;
  }

  .stat-band-top {
    margin-top: -28px;
  }

  .quick-grid,
  .stat-row,
  .process {
    grid-template-columns: 1fr;
  }

  .quote-brief {
    padding: 20px;
  }

  .quick-link,
  .quick-link:last-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verify-inline-form {
    flex-direction: column;
  }

  .section-head {
    display: block;
  }

  .footer-main {
    padding: 36px 0;
  }

  .footer-bottom {
    display: grid;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .gap-modal {
    padding: 0;
  }

  .gap-modal__dialog {
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .gap-grid--2,
  .gap-checks {
    grid-template-columns: 1fr;
  }

  .gap-totalbar {
    align-items: stretch;
    flex-direction: column;
  }

  .voucher-row {
    grid-template-columns: 1fr;
  }

  .gap-totalinput {
    max-width: none;
    text-align: left;
  }

  .figure-board {
    min-height: 260px;
  }

  .abstract-mock {
    grid-template-columns: 1fr;
  }

  .abstract-arrow {
    width: 3px;
    height: 26px;
    justify-self: center;
  }

  .abstract-arrow::after {
    right: -5px;
    top: 20px;
    border-top: 9px solid var(--gold);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 0;
  }

  .feedback-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-mini {
    align-items: flex-start;
    flex-direction: column;
  }

  .forest-heading,
  .forest-row {
    grid-template-columns: 92px minmax(90px, 1fr) 98px;
    gap: 7px;
  }

  .forest-axis {
    margin-left: 98px;
    margin-right: 100px;
  }
}

