:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #5f6c7b;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --line: #dce3ec;
  --navy: #14213d;
  --blue: #1f5eff;
  --teal: #087f72;
  --orange: #e85d1f;
  --gold: #b45309;
  --shadow: 0 18px 44px rgba(20, 33, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 33, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  box-shadow: 5px 5px 0 var(--orange);
  font-size: 12px;
  font-weight: 950;
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  max-width: 340px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.site-search {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background: var(--navy);
}

.site-nav {
  border-top: 1px solid rgba(220, 227, 236, 0.8);
  background: var(--navy);
}

.nav-scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
}

.site-nav a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

body.is-scrolled .brand-mark {
  width: 38px;
  height: 38px;
}

body.is-scrolled .brand strong {
  font-size: 16px;
}

.breadcrumb {
  padding: 15px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #97a3b3;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.hero {
  padding: 24px 0 0;
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(9, 18, 38, 0.96) 0%, rgba(9, 18, 38, 0.82) 40%, rgba(9, 18, 38, 0.12) 78%),
    linear-gradient(0deg, rgba(9, 18, 38, 0.62), transparent 45%),
    url("/assets/hero-entrepreneurs.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-copy-panel {
  width: min(720px, 100%);
  padding: 38px 24px;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #ffb387;
}

.hero h1 {
  max-width: 680px;
  margin-top: 10px;
  font-size: 44px;
  line-height: 1.02;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.07);
}

.category-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 72px;
  padding: 13px;
  background: var(--panel);
}

.category-tile > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
}

.category-tile strong {
  font-size: 13px;
  line-height: 1.2;
}

.category-tile b {
  color: var(--blue);
  font-size: 18px;
}

.category-tile:hover {
  background: var(--panel-soft);
}

.ad-slot {
  display: grid;
  min-height: 90px;
  place-items: center;
  border: 1px dashed #9eabbc;
  border-radius: 7px;
  color: #667386;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ad-band {
  margin-top: 18px;
}

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

.admin-alert.success {
  border: 1px solid #b7dfc8;
  color: #17663a;
  background: #eefaf2;
}

.admin-alert.error {
  border: 1px solid #f1c0bd;
  color: #9f2b24;
  background: #fff2f1;
}

.section-block {
  margin-top: 42px;
}

.home-section {
  padding-top: 2px;
}

.home-section-tinted {
  padding: 24px;
  border: 1px solid #d9e5f7;
  border-radius: 8px;
  background: #eef4ff;
}

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

.section-head > div {
  display: grid;
  gap: 4px;
}

.section-head h2 {
  font-size: 26px;
  line-height: 1.14;
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.section-link span {
  margin-left: 4px;
}

.editorial-grid {
  display: grid;
  gap: 13px;
}

.editorial-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 130px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 33, 61, 0.12);
}

.editorial-media {
  position: relative;
  display: grid;
  place-items: end start;
  padding: 15px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

.editorial-media::before,
.editorial-media::after {
  position: absolute;
  content: "";
}

.editorial-media::before {
  inset: 16% 18%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(12deg);
}

.editorial-media::after {
  width: 44px;
  height: 44px;
  top: 14px;
  right: 14px;
  border: 9px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.editorial-media span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 950;
}

.tone-0 { background: #1f5eff; }
.tone-1 { background: #0f766e; }
.tone-2 { background: #e85d1f; }
.tone-3 { background: #7c3aed; }
.tone-4 { background: #c2410c; }
.tone-5 { background: #334155; }

.editorial-copy {
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
  padding: 16px;
}

.editorial-copy small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.editorial-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.editorial-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-grid,
.list-grid {
  display: grid;
  gap: 13px;
}

.resource-card,
.article-teaser {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:nth-child(3n + 2) {
  border-top-color: var(--blue);
}

.resource-card:nth-child(3n + 3) {
  border-top-color: var(--orange);
}

.resource-card:hover,
.article-teaser:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 33, 61, 0.12);
}

.card-kicker,
.article-teaser span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.resource-card strong,
.article-teaser strong {
  font-size: 18px;
  line-height: 1.2;
}

.resource-card small,
.article-teaser small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.84), rgba(31, 94, 255, 0.72)),
    var(--panel-soft);
  background-position: center;
  background-size: cover;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 16px 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-body {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.06);
}

.article-body p + p,
.article-body ul + p,
.article-body ol + p,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 18px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--navy);
  line-height: 1.22;
}

.article-body h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.article-body h2 {
  font-size: clamp(25px, 3vw, 32px);
}

.article-body h3 {
  font-size: clamp(21px, 2.3vw, 26px);
}

.article-body h4 {
  font-size: 20px;
}

.article-body h5 {
  font-size: 17px;
}

.article-body h6 {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-body a {
  color: var(--blue);
  font-weight: 850;
}

.page-layout {
  display: grid;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
}

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

.sidebar-ad {
  order: 2;
}

.sidebar-ad .ad-slot {
  min-height: 280px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 24px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(118deg, rgba(20, 33, 61, 0.98), rgba(31, 94, 255, 0.86)),
    var(--navy);
  box-shadow: var(--shadow);
}

.page-hero::after {
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  bottom: -105px;
  border: 26px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.empty-state {
  display: grid;
  gap: 7px;
  min-height: 150px;
  align-content: center;
  padding: 24px;
  border: 1px dashed #9eabbc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.empty-state strong {
  font-size: 18px;
}

.empty-state p {
  color: var(--muted);
}

.calculator-shell {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.calculator-form,
.result-card,
.contact-form,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.07);
}

.calculator-form,
.contact-form,
.filter-panel {
  padding: 20px;
}

.form-grid {
  display: grid;
  gap: 13px;
  margin-bottom: 15px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdd6e2;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 94, 255, 0.13);
}

textarea {
  resize: vertical;
}

.result-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-top: 4px solid var(--orange);
}

.result-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.result-card strong {
  font-size: 24px;
}

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

.filter-panel {
  display: grid;
  gap: 13px;
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.not-found {
  display: grid;
  min-height: 52vh;
  gap: 14px;
  align-content: center;
  padding: 46px 0;
}

.not-found h1 {
  font-size: 36px;
}

.site-footer {
  margin-top: 54px;
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
}

.footer-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 759px) {
  .site-nav {
    display: none;
  }

  body.nav-open .site-nav {
    display: block;
  }

  body.nav-open .nav-scroll {
    display: grid;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 10px 0 18px;
  }

  body.nav-open .site-nav a {
    min-height: 44px;
    padding: 12px;
  }

  .brand small {
    display: none;
  }

  .section-head {
    align-items: start;
  }

  .section-link {
    padding-top: 4px;
  }

  .home-section-tinted {
    width: 100%;
    padding-inline: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 58px;
  }

  .hero-copy-panel {
    padding: 46px 38px;
  }

  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .editorial-grid,
  .card-grid,
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-card-lead {
    grid-row: span 2;
    grid-template-columns: 1fr;
  }

  .editorial-card-lead .editorial-media {
    min-height: 210px;
  }

  .form-grid,
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .header-inner {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
  }

  .site-search {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .site-search input,
  .site-search button {
    min-height: 43px;
    border: 0;
    border-radius: 0;
  }

  .site-search button {
    padding: 0 17px;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .nav-scroll {
    justify-content: center;
  }

  .hero-content {
    min-height: 580px;
  }

  .category-rail {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .category-tile {
    grid-template-columns: 1fr auto;
    align-content: center;
    min-height: 90px;
  }

  .category-tile > span {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }

  .page-main {
    grid-column: 1;
    grid-row: 1;
  }

  .sidebar-ad {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 136px;
    order: 0;
  }

  .calculator-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .editorial-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .editorial-card,
  .editorial-card-lead {
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .editorial-media,
  .editorial-card-lead .editorial-media {
    min-height: 210px;
  }

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

  .hero h1 {
    font-size: 68px;
  }
}

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