/* Self-hosted Plus Jakarta Sans, SIL Open Font License. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./plus-jakarta-sans-latin.woff2") format("woff2");
}

/* HSJ USA reference palette. One visual layer; screen-only. */
@media screen {
  :root {
    --ink: #0f172a;
    --body: #475569;
    --blue: #2768f2;
    --green: #047857;
    --green-hover: #065f46;
    --line: #dce5e1;
    --paper: #f7faf9;
    --surface-shadow: 0 12px 32px #0f172a0a;
    --hero-surface: #071d2b;
    --hero-title: #ffffff;
    --hero-body: #d0dce2;
    --hero-label: #9cd9c7;
    --hero-crumb: #c2d3da;
  }

  body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    color: #475569;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
  }

  button,
  input,
  select,
  textarea {
    font-family: inherit;
  }
  ::selection {
    color: #064e3b;
    background: #d1fae5;
  }
  :focus-visible {
    outline: 3px solid #047857;
    outline-offset: 4px;
  }

  .btn,
  .navlinks > a.btn {
    color: #ffffff;
    background: #047857;
    border-color: #047857;
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    transition:
      background-color 160ms ease,
      border-color 160ms ease;
  }

  .btn:hover,
  .navlinks > a.btn:hover {
    color: #ffffff;
    background: #065f46;
    border-color: #065f46;
    box-shadow: none;
    transform: none;
  }

  .btn-outline,
  .btn-ghost {
    color: #0f172a;
    background: #ffffff;
    border-color: #d5e1dc;
    box-shadow: none;
  }

  .btn-outline:hover,
  .btn-ghost:hover {
    color: #065f46;
    background: #f0fdf4;
    border-color: #9bc7b5;
  }

  .btn-blue {
    color: #ffffff;
    background: #2768f2;
    border-color: #2768f2;
  }
  .btn-blue:hover {
    color: #ffffff;
    background: #1d4ed8;
    border-color: #1d4ed8;
  }
  .text-link {
    color: #047857;
    text-underline-offset: 4px;
  }
  .text-link:hover {
    color: #064e3b;
    text-decoration: underline;
  }

  /* Deep ink heroes across every service family; light cards keep their own colours. */
  .theme-finance,
  .theme-banking {
    --hero-surface: #071d2b;
    --hero-title: #ffffff;
    --hero-body: #d0dce2;
    --hero-label: #9cd9c7;
    --hero-crumb: #c2d3da;
  }

  .theme-governance {
    --hero-surface: linear-gradient(120deg, #071127, #10254b);
    --hero-title: #ffffff;
    --hero-body: #d1dbea;
    --hero-label: #9bd4df;
    --hero-crumb: #c4d2e3;
  }

  .theme-pricing,
  .theme-utility {
    --hero-surface: #0b2633;
  }

  .service-hero {
    color: var(--hero-body);
    background: var(--hero-surface);
    border-bottom: 1px solid #1b3a47;
  }

  .service-hero::before,
  .service-hero::after {
    display: none;
  }
  .service-hero h1 {
    color: var(--hero-title);
    text-shadow: none;
    line-height: 1.12;
  }
  .service-hero .lead {
    color: var(--hero-body);
  }
  .service-hero .eyebrow {
    color: var(--hero-label);
  }
  .service-hero .breadcrumbs,
  .service-hero .breadcrumbs a {
    color: var(--hero-crumb);
  }
  .service-hero .dot {
    background: #10b981;
    box-shadow: 0 0 0 4px #10b98112;
  }
  .service-hero .actions .btn-ghost {
    color: #ffffff;
    background: #ffffff08;
    border-color: #ffffff45;
  }

  .service-hero .actions .btn-ghost:hover {
    color: #ffffff;
    background: #ffffff14;
    border-color: #ffffff70;
  }

  .hero-art {
    border-color: #dce6e1;
    box-shadow: 0 18px 45px #001d2512;
  }
  .hero-art--ein-cases,
  .hero-art--finance-bookkeeping,
  .hero-art--finance-foreign-owned {
    border-color: #abc7c638;
    box-shadow: 0 18px 45px #00151e18;
  }

  .hero-art--us-founders .us-entry-gates li {
    background: #f7faf9;
    border-color: #dce6e1;
    border-top-color: #90b6a5;
    box-shadow: none;
  }

  .hero-art--c-corporation-registration .equity-ledger,
  .hero-art--required-documents .document-index,
  .hero-art--minutes-version-file .gov-record-file,
  .hero-art--bank-dossier .op-bank-documents > div {
    background: #ffffff;
    border-color: #d9e3e0;
    box-shadow: 0 6px 18px #0f172a06;
  }

  .hero-art--finance-accounting .finance-layer {
    background: #f1f8f5;
    border-color: #d4e4dc;
    box-shadow: none;
  }
  .hero-art--finance-accounting .finance-layer--reports {
    background: #f5f8fa;
  }
  .hero-art--finance-accounting .finance-layer--returns {
    background: #fcfaf4;
  }
  .hero-art--secretarial-role-map .gov-role-node {
    background: #f4f7fc;
    box-shadow: none;
  }
  .hero-art--secretarial-role-map .gov-role-centre {
    box-shadow: none;
  }
  .hero-art--finance-bookkeeping .finance-bridge-node {
    box-shadow: none;
  }

  .audience-rail {
    background: #f5faf7;
    border-color: #e1eae5;
    box-shadow: none;
  }
  .audience-rail a {
    color: #047857;
  }
  .composed-content {
    background: #ffffff;
  }
  .service-article .content-chapter > p {
    color: #475569;
  }
  .service-article .content-chapter > p a:not(.btn) {
    color: #047857;
    text-decoration-color: #9bc7b5;
    text-underline-offset: 4px;
  }

  .service-article .answer-box {
    color: #334155;
    background: #f1f8f4;
    border-color: #d7e7de;
    border-left: 3px solid #047857;
    box-shadow: none;
  }
  .service-article .answer-box h2,
  .service-article .answer-box h3 {
    color: #0f172a;
  }
  .composition-index .page-toc {
    border-color: #dce5e1;
    box-shadow: none;
  }
  .composition-index .page-toc a {
    color: #475569;
  }
  .composition-index .page-toc a:hover {
    color: #047857;
  }
  .family--roadmap .content-chapter {
    border-left-color: #dbe7e0;
  }
  .family--roadmap .content-chapter::before {
    color: #ffffff;
    background: #047857;
    box-shadow: none;
  }

  .family--dossier .content-chapter--key,
  .family--directory .guide-tile {
    background: #ffffff;
    border-color: #dce5e1;
    border-top-color: #b4cfc0;
    border-top-width: 1px;
    box-shadow: var(--surface-shadow);
  }
  .family--calendar .content-chapter--key {
    background: #f5f9f7;
    box-shadow: none;
  }
  .family--caseflow .content-chapter--key:first-of-type,
  .family--workbench .content-chapter--key:first-of-type {
    background: #f7faf8;
    border-color: #dce5e1;
    box-shadow: none;
  }
  .family--routing .content-chapter--key {
    border-left-color: #9cbfac;
  }
  .family--evidence .content-chapter--key {
    background: #fafbf9;
    border-color: #e1e7df;
    box-shadow: none;
  }
  .family--comparison .content-chapter--key,
  .family--scope .content-chapter--key {
    border-bottom-color: #d5e4db;
  }

  .service-article .table-wrap {
    border-color: #dce5e1;
    box-shadow: none;
  }
  .service-article .table-wrap caption {
    color: #475569;
    background: #f7faf8;
  }
  .service-article .table-wrap thead th {
    color: #ffffff;
    background: #133b36;
    border-color: #395d56;
  }
  .service-article .table-wrap tbody tr:nth-child(even) {
    background: #f7faf8;
  }
  .service-article .table-wrap td,
  .service-article .table-wrap tbody th {
    color: #334155;
    border-color: #dce5e1;
  }

  .service-article .inline-consult {
    background: #eff8f3;
    border-color: #d2e6d9;
    border-left: 3px solid #047857;
    box-shadow: none;
  }
  .service-article .inline-consult h3,
  .service-article .inline-consult strong {
    color: #0f172a;
  }
  .service-article .inline-consult p {
    color: #475569;
  }

  .intent-aside {
    background: #f5faf7;
    border-color: #d9e7df;
    border-top-color: #047857;
    box-shadow: none;
  }
  .intent-aside .eyebrow {
    color: #047857;
  }
  .intent-aside .intent-question {
    color: #0f172a;
  }
  .intent-aside .intent-answer,
  .intent-aside .intent-checks li {
    color: #475569;
  }
  .intent-aside .intent-checks,
  .intent-aside .intent-checks li,
  .intent-aside .intent-related {
    border-color: #d4e3db;
  }
  .intent-aside .intent-related {
    color: #047857;
  }
  .composition-interlude .intent-aside {
    background: #f2f8f4;
    border-left-color: #047857;
    box-shadow: none;
  }

  /* Explicit child colours protect all nine dark enquiry components. */
  .composition-interlude.interlude--middle .intent-aside {
    background: #102f35;
    border-left-color: #8fc4ae;
    box-shadow: none;
  }
  .composition-interlude.interlude--middle .intent-aside .eyebrow {
    color: #a9ddca;
  }
  .composition-interlude.interlude--middle .intent-aside .intent-question {
    color: #ffffff;
  }
  .composition-interlude.interlude--middle .intent-aside .intent-answer,
  .composition-interlude.interlude--middle .intent-aside .intent-checks li,
  .composition-interlude.interlude--middle .intent-aside .intent-related {
    color: #dfebe8;
  }
  .composition-interlude.interlude--middle .intent-aside .intent-checks,
  .composition-interlude.interlude--middle .intent-aside .intent-checks li,
  .composition-interlude.interlude--middle .intent-aside .intent-related {
    border-color: #54736e;
  }
  .composition-interlude.interlude--middle .intent-aside .intent-checks li::before {
    color: #9cd9c1;
  }
  .composition-interlude.interlude--middle .intent-aside .btn {
    color: #ffffff;
    background: #047857;
    border-color: #79af99;
    box-shadow: none;
  }

  .service-article .related-pages a {
    color: #047857;
    border-color: #dce5e1;
  }
  .service-article .page-faq details {
    background: #ffffff;
    border-color: #dce5e1;
    box-shadow: none;
  }
  .service-article .page-faq details[open] {
    background: #f6faf7;
    border-color: #a7cdb9;
  }
  .service-article .page-faq summary {
    color: #0f172a;
  }
  .service-article .page-faq summary::after {
    color: #047857;
  }

  /* Neutral price summaries and one dark, clearly readable featured scope. */
  .service-hero .hero-cost-snapshot {
    background: transparent;
    border: 0;
    gap: 16px;
  }
  .service-hero .hero-cost-snapshot > div {
    background: #ffffff;
    border: 1px solid #d7e3db;
    border-radius: 18px;
    box-shadow: 0 8px 22px #0f172a06;
  }
  .service-hero .hero-cost-snapshot > div:nth-child(2) {
    background: #edf8f2;
    border-color: #bcdacb;
  }
  .service-hero .hero-cost-snapshot > div > span {
    color: #047857;
  }
  .service-hero .hero-cost-snapshot > div > strong {
    color: #0f172a;
  }
  .service-hero .hero-cost-snapshot > div > small {
    color: #475569;
  }

  .service-article .detailed-packages .price-card {
    border-color: #dce5e1;
    box-shadow: var(--surface-shadow);
  }
  .service-article .detailed-packages .price-card:not(.featured) .chapter {
    color: #047857;
  }
  .service-article .detailed-packages .price-card.featured {
    background: #102f35;
    border-color: #102f35;
    box-shadow: 0 16px 36px #0f172a0e;
  }
  .service-article .detailed-packages .price-card.featured h3,
  .service-article .detailed-packages .price-card.featured .price,
  .service-article .detailed-packages .price-card.featured .price > span,
  .service-article .detailed-packages .price-card.featured strong {
    color: #ffffff;
  }
  .service-article .detailed-packages .price-card.featured > p,
  .service-article .detailed-packages .price-card.featured li {
    color: #dfebe8;
  }

  .full-cost-tool,
  .purpose-tool,
  .bank-tool,
  .contact-card {
    background: #f6faf7;
    border-color: #d6e4db;
    box-shadow: none;
  }
  .full-cost-tool .cost-result-total {
    color: #ffffff;
    background: #047857;
    border-color: #047857;
    box-shadow: none;
  }
  .full-cost-tool .cost-result-total span,
  .full-cost-tool .cost-result-total strong {
    color: #ffffff;
  }
  .field input,
  .field select,
  .field textarea {
    color: #0f172a;
    background-color: #ffffff;
    border-color: #ccdcd2;
    box-shadow: none;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: #047857;
    outline: 2px solid #047857;
    outline-offset: 2px;
    box-shadow: none;
  }
  #quote-dialog {
    border-color: #e0e8e2;
    box-shadow: 0 24px 80px #071d2b36;
  }
  #quote-dialog::backdrop {
    background: #071d2b99;
    backdrop-filter: blur(3px);
  }
  .scope-label {
    color: #065f46;
    background: #edf8f1;
    border-color: #cee5d7;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* Right-side hero artwork: quiet paper surfaces; preserve every diagram's geometry. */
@media screen {
  .hero-art {
    color: #102f3d;
    background: #f4f6f7;
    border-color: #d9e1e3;
    border-radius: 28px;
    box-shadow: 0 14px 36px #071d2b12;
  }
  .hero-art.formation-art h2,
  .hero-art.operations-art h2,
  .hero-art.finance-art h2,
  .hero-art .governance-art-heading h2 {
    color: #102b3a;
    text-shadow: none;
  }
  .hero-art .formation-art__eyebrow,
  .hero-art .op-kicker,
  .hero-art .finance-art-kicker,
  .hero-art .governance-art-kicker {
    color: #047857;
  }
  .hero-art--us-founders .us-entry-gates li:nth-child(n) {
    background: #ffffff;
    border-color: #d9e3de;
    border-top-color: #83b69e;
    border-radius: 12px;
    box-shadow: none;
  }
  .hero-art--international-founders .cross-border-node,
  .hero-art--llc-registration .llc-role:nth-of-type(n),
  .hero-art--compare .entity-balance > div:nth-child(n),
  .hero-art--delaware-company-formation .delaware-branches > div:nth-child(n) {
    background: #ffffff;
    border-color: #d6e1de;
    box-shadow: none;
  }
  .hero-art--compare .entity-balance > div:last-child strong {
    color: #173b45;
  }
  .hero-art--c-corporation-registration .equity-ledger,
  .hero-art--required-documents .document-index {
    background: #ffffff;
    border-color: #d4dfe2;
    box-shadow: none;
  }
  .hero-art--c-corporation-registration .equity-ledger > div {
    border-bottom-color: #e0e7e8;
  }
  .hero-art--c-corporation-registration .equity-ledger > div:last-child,
  .hero-art--wyoming-llc .wyoming-seal {
    background: #f7faf9;
  }
  .hero-art--delaware-company-formation .delaware-origin {
    color: #356758;
    background: #edf5f0;
    border-color: #c8dbd0;
  }
  .hero-art--best-state-to-form-an-llc .footprint-point,
  .hero-art--company-registration-timeline .evidence-rail li > span {
    background: #ffffff;
    border-color: #d2e0da;
  }
  .hero-art--bank-dossier .op-bank-documents > div,
  .hero-art--notice-route .op-notice-agent,
  .hero-art--address-map .op-address-agent,
  .hero-art--address-map .op-address-mail,
  .hero-art--address-map .op-address-work {
    background: #ffffff;
    border-color: #d5e0df;
    box-shadow: none;
  }
  .hero-art--bank-dossier .op-folder-tab {
    color: #047857;
    background: #e7f1ec;
  }
  .hero-art--service-scope .op-scope-receipt,
  .hero-art--service-scope .op-scope-receipt > div,
  .hero-art--annual-lanes .op-calendar-lanes,
  .hero-art--annual-lanes .op-calendar-lanes > div {
    border-color: #d7e1e2;
  }
  .hero-art--finance-accounting .finance-layer.finance-layer--records,
  .hero-art--finance-accounting .finance-layer.finance-layer--reports,
  .hero-art--finance-accounting .finance-layer.finance-layer--returns,
  .hero-art--finance-tax .finance-equation > div,
  .hero-art--finance-sales-tax .finance-sales-matrix {
    background: #ffffff;
    border-color: #d5e0de;
    box-shadow: none;
  }
  .hero-art--finance-accounting .finance-layer strong {
    color: #102f3d;
  }
  .hero-art--finance-accounting .finance-layer small {
    color: #52656d;
  }
  .hero-art--finance-sales-tax .finance-sales-axis,
  .hero-art--finance-catchup .finance-period-grid td:nth-child(n) {
    background: #f8faf9;
    border-color: #d8e2dd;
  }
  .hero-art--finance-payroll .finance-pay-gates > li > span {
    color: #047857;
    background: #eaf4ee;
    border-color: #c6dcd0;
  }
  .hero-art--secretarial-role-map,
  .hero-art--minutes-version-file,
  .hero-art--annual-notice-taxonomy,
  .hero-art--amendment-destination-board,
  .hero-art--ownership-evidence-ledger {
    background: #f4f6fa;
    border-color: #d9e0ea;
  }
  .hero-art--secretarial-role-map .gov-role-node,
  .hero-art--minutes-version-file .gov-record-file,
  .hero-art--annual-notice-taxonomy .gov-notice,
  .hero-art--annual-notice-taxonomy .gov-notice--provider,
  .hero-art--annual-notice-taxonomy .gov-notice--offer,
  .hero-art--amendment-destination-board .gov-change-destinations > div,
  .hero-art--ownership-evidence-ledger .gov-ownership-views {
    background: #ffffff;
    border-color: #d8e1e8;
    box-shadow: none;
  }
  .hero-art--ownership-evidence-ledger .gov-ownership-views .gov-ownership-asof {
    background: #edf4f1;
  }
  .hero-art.hero-art--ein-cases {
    color: #ffffff;
    background: #102f3c;
    border-color: #3b5a65;
  }
  .hero-art.hero-art--finance-bookkeeping {
    color: #ffffff;
    background: #153e37;
    border-color: #41665b;
  }
  .hero-art.hero-art--finance-foreign-owned {
    color: #ffffff;
    background: #102e3c;
    border-color: #3a5968;
  }
  .hero-art.hero-art--ein-cases h2,
  .hero-art.hero-art--finance-bookkeeping h2,
  .hero-art.hero-art--finance-foreign-owned h2 {
    color: #ffffff;
  }
  .hero-art.hero-art--ein-cases .op-kicker,
  .hero-art.hero-art--finance-bookkeeping .finance-art-kicker,
  .hero-art.hero-art--finance-foreign-owned .finance-art-kicker {
    color: #b2dfce;
  }
  .hero-art--finance-bookkeeping .finance-bridge-node,
  .hero-art--finance-foreign-owned .finance-owner-link > div {
    background: #f7faf8;
    border-color: #cfdfd6;
    box-shadow: none;
  }
}

/* Right-panel label contrast and compact governance-node typography. */
@media screen {
  .hero-art--address-map .op-address-agent > span,
  .hero-art--address-map .op-address-mail > span,
  .hero-art--address-map .op-address-work > span,
  .hero-art--c-corporation-registration .equity-ledger dt span,
  .hero-art--wyoming-llc .wyoming-seal > span,
  .hero-art--wyoming-llc .wyoming-boundary li span,
  .hero-art--required-documents .document-index__heading > span {
    color: #52656d;
  }
  .hero-art--finance-catchup .finance-period-grid td:nth-child(n) {
    color: #426255;
  }
  .hero-art--compare .entity-balance__join,
  .hero-art--llc-registration .llc-distinction,
  .hero-art--llc-registration .llc-record-bridge > span,
  .hero-art--wyoming-llc .wyoming-address-line > span,
  .hero-art--annual-lanes .op-calendar-lanes b,
  .hero-art--ownership-evidence-ledger .gov-evidence-ledger i,
  .hero-art--finance-tax .finance-equation > b {
    color: #526b63;
  }
  .hero-art--secretarial-role-map .gov-role-node {
    font-size: 14px;
  }
  .hero-art--secretarial-role-map .gov-role-centre > strong {
    font-size: 18px;
  }
}

@media screen and (max-width: 600px) {
  .hero-art--secretarial-role-map .gov-role-map {
    height: 250px;
  }
}
