/* Page hierarchy shared across EvidentChain's editorial and product surfaces. */
body[data-ec-ui] {
  --desk-ink: #1d3026;
  --desk-paper: #faf9f5;
  --desk-panel: #fffef9;
  --desk-rule: #dadfd4;
  --desk-muted: #536259;
  --desk-accent: #cadb94;
  --desk-dark: #1c2c23;
  --desk-width: min(1180px, calc(100% - 56px));
}

.desk-home .fin-hero {
  width: min(1320px, calc(100% - 40px));
  margin: 20px auto 0;
  padding-block: clamp(38px, 5.2vw, 76px);
  border: 0;
  border-radius: 12px;
  background: var(--desk-dark);
  color: #fcfcf5;
}
.desk-home .fin-hero .fin-wrap { width: min(1160px, calc(100% - 88px)); }
.desk-home .fin-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: clamp(26px, 5vw, 78px); }
.desk-home.fin-shell .fin-hero h1 {
  color: #fbfcf4;
  font-size: clamp(42px, 6.2vw, 85px);
  line-height: 1.07;
  font-weight: 540;
  letter-spacing: -.062em;
  max-width: 15ch;
  margin-block: 18px 17px;
}
.desk-home .fin-hero h1 span { display: block; color: #d0e0a2; }
.desk-home[data-ec-ui="home"] .fin-hero .fin-hero-grid > div > .fin-kicker { color: #d0e0a2; font-size: .76rem; }
.desk-home[data-ec-ui="home"] .fin-hero .fin-hero-grid > div > .fin-kicker::before { background: #a1ad83; }
.desk-home .fin-hero p { max-width: 49ch; color: #e2e8dc; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; text-wrap: pretty; }
.desk-home .fin-hero .fin-actions { margin-top: 24px; }
.desk-home .fin-hero .fin-button:not(.secondary) { background: var(--desk-accent); color: #25311d !important; border-color: var(--desk-accent); }
.desk-home .fin-hero .fin-button:not(.secondary):hover { background: #e1edb3; }
.desk-home .fin-hero .fin-button.secondary { background: transparent; border-color: #809182; color: #f5f8f0 !important; }
.desk-home .fin-hero .fin-button.secondary:hover { background: #ffffff16; }
.desk-home .fin-hero .fin-quick a { color: #dde9c5 !important; }
.desk-home .fin-hero :focus-visible { outline-color: #d0e0a2; }
.desk-home .fin-board { background: var(--desk-panel); border: 1px solid #e3e9db; padding: clamp(14px, 2vw, 24px); }
.desk-home .fin-hero .fin-board :focus-visible { outline-color: #285b47; }
.desk-home .fin-board .fin-kicker { color: #4e6b4a; }
.desk-home .fin-board h2 { font-weight: 600; }
.desk-home .fin-board .fin-project-offer { background: #eaf0de; border-color: #d3ddc2; }
.desk-home .desk-section-head { border-top: 1px solid var(--desk-rule); padding-top: 15px; margin-bottom: 17px; }
.desk-home .desk-section-head h2 { font-size: clamp(27px, 3.6vw, 43px); line-height: 1.2; font-weight: 540; letter-spacing: -.048em; }
.desk-home .desk-section-head p { margin-top: 7px; color: var(--desk-muted); }
.desk-home .desk-reading { padding-top: clamp(29px, 4.6vw, 55px); }
.desk-home .desk-reading .fin-split { gap: clamp(18px, 4vw, 56px); }
.desk-home .desk-reading .ec-news-latest { border-top: 0; margin: 0; padding: 0; }
.desk-home .desk-reading .ec-news-latest > div { border-top: 1px solid var(--desk-rule); padding-top: 14px; margin-bottom: 11px; }
.desk-home .desk-reading .ec-news-latest > div h2 { font-size: clamp(27px, 3.6vw, 43px); line-height: 1.2; font-weight: 540; letter-spacing: -.048em; }
.desk-home .desk-reading .ec-news-latest > div p { color: var(--desk-muted); }
.desk-home .desk-reading .ec-news-latest li:first-child a { font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -.035em; line-height: 1.4; }
.desk-home .desk-reading .ec-news-latest li { padding-block: 12px; }
.desk-home .desk-reading .ec-news-latest li:first-child { padding-top: 2px; }
.desk-home .desk-reading .fin-card { background: #edf0e8; border: 0; }
.desk-home .desk-route-section .fin-grid .fin-card { padding: 15px 0 9px; }
.desk-home .desk-route-section .fin-card h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 610; }

/* Section headers use a readable title, a single action row, and a clear start to the content. */
body.desk-landing .fin-editorial-hero {
  padding-block: clamp(30px, 5vw, 66px) clamp(24px, 3.3vw, 42px);
  background: var(--desk-paper);
  border-bottom: 1px solid var(--desk-rule);
}
body.desk-landing .fin-editorial-hero .fin-wrap { width: var(--desk-width); }
body.desk-landing .fin-editorial-hero h1 {
  margin-block: 12px 9px;
  font-size: clamp(39px, 6vw, 72px);
  font-weight: 540;
  line-height: 1.12;
}
body.desk-landing .fin-editorial-hero p { max-width: 53ch; color: var(--desk-muted); line-height: 1.65; }
body.desk-landing .j-library { padding-top: clamp(18px, 3vw, 36px); }
body.desk-landing .j-section-title { border-bottom-color: var(--desk-rule); }
body.desk-landing .j-section-title h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 540; }
body.desk-landing .j-search-form { border-color: var(--desk-rule); background: var(--desk-panel); }
body.desk-news #catalog-grid > .j-card:first-child .j-card-link {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 40%);
  align-items: center;
  gap: clamp(16px, 4vw, 42px);
  padding: 12px 0;
}
body.desk-news #catalog-grid > .j-card:first-child .j-card-body h3 {
  font-size: clamp(23px, 3.6vw, 44px);
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -.04em;
  max-width: 21ch;
}
body.desk-news #catalog-grid > .j-card:first-child .j-card-body p { max-width: 48ch; color: var(--desk-muted); }
body.desk-news #catalog-grid > .j-card:first-child .j-card-art { border-radius: 6px; }
body.desk-news #catalog-grid > .j-card:nth-child(n+5) {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 116px;
}
body.desk-news #catalog-grid > .j-search-result { background: var(--desk-panel); border-color: var(--desk-rule); }
[data-ec-ui="journal"] .j-article-head { padding-top: clamp(15px, 3vw, 39px); }
[data-ec-ui="journal"] .j-article-head h1 { max-width: 24ch; }
[data-ec-ui="journal"] .j-prose h2 { border-top: 1px solid var(--desk-rule); padding-top: .75em; }
[data-ec-ui="journal"] .j-toc { background: #f0f2e9; }
body[data-ec-ui] .j-promo .j-project-chain .j-kicker { color: #dce7bc; }
body[data-ec-ui] .j-promo .j-project-security p { color: #514360; }
body[data-ec-ui] .j-footer :is(.j-footer-main a, .j-footer-bottom span) { color: #e1ded2; }

/* Tools and checkout keep their original controls and bring the task into view sooner. */
.desk-tools .j-tool-note { margin-block: 12px 0; }
.desk-tools .j-library .j-tool-grid { gap: 12px; }
.desk-tools .j-tool-card { background: var(--desk-panel); }
.desk-tools .j-tool-card:hover { border-color: #758771; }
.desk-tools .home-hero { padding-block: clamp(27px, 5vw, 62px) clamp(21px, 4vw, 42px); }
.desk-tools .home-hero h1 { font-weight: 540; line-height: 1.13; }
[data-ec-ui="tools"] .tool-main .tool-heading { padding-bottom: 9px; border-bottom: 1px solid var(--desk-rule); }
[data-ec-ui="tools"] .tool-main .tool-heading h1 { line-height: 1.18; }
[data-ec-ui="tools"] :is(.ecosystem-topbar .shell > strong, .ecosystem-topbar .shell > a,
  .tool-main .breadcrumbs a, .tool-main .breadcrumbs span, .editor-label label, .editor-label small,
  .editor-foot span, #output-empty span, #output-empty small, #standard-output-actions > span,
  .tool-main .run-bar > span, .tool-main .context-note, .metrics-consent p) { color: #4d5f51; }
[data-ec-ui="tools"] .promo:not(.dark) .promo-tag,
[data-ec-ui="tools"] .metrics-consent button:not(.consent-yes) { color: #4d5f51; }
[data-ec-ui="tools"] .promo.dark .promo-tag { color: #cadfce; }
[data-ec-ui="tools"] .promo .promo-tag small { color: inherit; opacity: 1; }
[data-ec-ui="tools"] .metrics-consent .consent-yes { color: #fff; }
[data-ec-ui="asset"] .m-coin-hero h1,
[data-ec-ui="review"] .hero h1,
[data-ec-ui="chain"] .page-head h1 { font-weight: 540; letter-spacing: -.05em; }
[data-ec-ui="asset"] .fin-quote-profile { border-color: var(--desk-rule); }
.desk-checkout .hero { padding-block: clamp(22px, 3.4vw, 47px) 18px; }
.desk-checkout .hero h1 { font-size: clamp(33px, 4.7vw, 63px); margin-block: 8px 12px; line-height: 1.12; }
.desk-checkout .hero h1 span { display: inline; }
.desk-checkout .hero p { max-width: 46ch; margin-bottom: 14px; }
.desk-checkout .hero a[href="#participation"] { margin-top: 2px; color: #244738; font-weight: 650; }
.desk-checkout .participation-flow a { padding-block: 11px; }
.desk-checkout .participation-flow { margin-block: 12px 20px; }
.desk-checkout #checkout-purchase-form { border-color: #8b9b81; }

.desk-market.fin-shell .fin-market-head { padding-block: clamp(22px, 4vw, 51px) 24px; }
.desk-market.fin-shell .fin-market-head h1 { font-size: clamp(34px, 4.8vw, 62px); margin-block: 9px; }
.desk-market .fin-market-head .fin-market-grid { margin-top: 13px; }
.desk-market .fin-market-head .fin-quote-status { margin-top: 13px; }
.desk-market.fin-shell #directory { padding-top: 19px; }

@media (max-width: 930px) {
  .desk-home .fin-hero-grid { grid-template-columns: 1fr; }
  .desk-home .fin-hero .fin-wrap { width: calc(100% - 46px); }
  .desk-home .fin-hero h1 { max-width: 19ch; }
}

@media (max-width: 620px) {
  body[data-ec-ui] { --desk-width: calc(100% - 28px); }
  .desk-home .fin-hero { width: calc(100% - 24px); margin-top: 12px; padding-block: 25px 16px; }
  .desk-home .fin-hero .fin-wrap { width: calc(100% - 32px); }
  .desk-home.fin-shell .fin-hero h1 { font-size: clamp(33px, 10vw, 45px); margin-block: 11px 12px; }
  .desk-home .fin-hero .fin-actions { margin-top: 16px; }
  .desk-home .fin-hero .fin-button { min-height: 42px; font-size: .83rem; padding: 7px 10px; }
  .desk-home .fin-hero .fin-quick { font-size: .77rem; }
  .desk-home .fin-hero-grid { gap: 16px; }
  .desk-home .fin-board { padding: 12px; }
  .desk-home .fin-board-row { min-height: 43px; }
  body.desk-landing .fin-editorial-hero { padding-block: 28px 20px; }
  body.desk-news #catalog-grid > .j-card:first-child .j-card-link { display: grid; grid-template-columns: 1fr; gap: 10px; }
  body.desk-news #catalog-grid > .j-card:first-child .j-card-art { grid-area: 2 / 1; aspect-ratio: 2.2; }
  body.desk-news #catalog-grid > .j-card:first-child .j-card-body { grid-area: 1 / 1; }
  .desk-checkout .participation-flow { gap: 7px; }
  .desk-checkout .hero p { margin-bottom: 9px; }
}
