/* Homepage and market desk share a restrained editorial grid. */
body.fin-shell:is(.desk-home, .desk-market) {
  --quiet-width: min(1180px, calc(100% - 60px));
  --quiet-paper: #faf9f5;
  --quiet-ink: #1d2821;
  --quiet-green: #23533f;
  --quiet-muted: #4e5d52;
  --quiet-rule: #dcdfd5;
  background: var(--quiet-paper);
  color: var(--quiet-ink);
}
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header {
  margin: 0;
  background: var(--quiet-paper);
  border-bottom: 1px solid var(--quiet-rule);
}
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-head-row {
  width: var(--quiet-width);
  min-height: 65px;
  margin: 0 auto;
  padding-inline: 0;
  color: var(--quiet-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
}
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header :is(.fin-brand, .fin-logo, .fin-brand sup, .fin-language, .fin-nav a, summary) { color: var(--quiet-ink); }
body[data-ec-ui].fin-shell.desk-home .fin-header .fin-brand::before { background-color: var(--quiet-green); }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-head-actions { border-color: var(--quiet-rule); }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header :is(.fin-nav a:is(:hover,[aria-current]), .fin-language:hover) { color: var(--quiet-green); border-bottom-color: currentColor; }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-mobile summary { border-color: #a7b3a8; }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header :focus-visible { outline-color: var(--quiet-green); }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-head-actions > .fin-button { background: var(--quiet-green); border-color: var(--quiet-green); color: white !important; border-radius: 5px; }
body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-head-actions > .fin-button:hover { background: #183d2d; }
.fin-shell.desk-market .fin-header .fin-brand sup { display: none; }
/* The legacy shared selector includes #app, so reset its homepage surface explicitly. */
.fin-shell.desk-home .fin-header .fin-head-row { background: transparent !important; border-radius: 0 !important; padding: 0 !important; }
.fin-shell.desk-home .fin-header .fin-language { color: var(--quiet-green) !important; }

.fin-shell.desk-home .fin-hero { width: 100%; margin: 0; border-radius: 0; color: inherit; background: transparent; padding-block: clamp(34px, 5.5vw, 76px) clamp(20px, 3vw, 38px); }
.fin-shell.desk-home .fin-hero .fin-wrap, .fin-shell.desk-home main > .fin-wrap { width: var(--quiet-width); }
.fin-shell.desk-home .fin-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: clamp(28px, 6vw, 94px); align-items: start; }
.fin-shell.desk-home .fin-hero h1 {
  color: var(--quiet-ink);
  max-width: 21ch;
  margin-block: 0 18px;
  font-size: clamp(39px, 5.15vw, 70px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.052em;
}
.fin-shell.desk-home:lang(zh) .fin-hero h1 { letter-spacing: -.045em; }
.fin-shell.desk-home .fin-hero h1 span { color: var(--quiet-green); }
.fin-shell.desk-home .fin-hero p { color: var(--quiet-muted); }
.fin-shell.desk-home .fin-hero :is(.fin-hero-grid > div > .fin-kicker, .fin-board .fin-kicker) { display: none; }
.fin-shell.desk-home .fin-hero .fin-button { border-radius: 5px; }
.fin-shell.desk-home .fin-hero .fin-button:not(.secondary) { background: var(--quiet-green); border-color: var(--quiet-green); color: white !important; }
.fin-shell.desk-home .fin-hero .fin-button:not(.secondary):hover { background: #183d2d; }
.fin-shell.desk-home .fin-hero .fin-button.secondary { border-color: #a7b3a8; color: var(--quiet-green) !important; }
.fin-shell.desk-home .fin-hero .fin-button.secondary:hover { background: #edf1e9; }
.fin-shell.desk-home .fin-hero .fin-quick a { color: var(--quiet-green) !important; }
.fin-shell.desk-home .fin-hero :focus-visible { outline-color: var(--quiet-green); }
.fin-shell.desk-home .fin-board { border: 0; border-top: 2px solid var(--quiet-green); background: transparent; border-radius: 0; box-shadow: none; padding: 13px 0 0; }
.fin-shell.desk-home .fin-board h2 { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.fin-shell.desk-home .fin-board .fin-project-offer { background: transparent; border: 0; border-bottom: 1px solid var(--quiet-rule); border-radius: 0; margin-block: 0; padding-inline: 0; }
.fin-shell.desk-home .fin-board .fin-project-offer strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fin-shell.desk-home .desk-reading { padding-top: 20px; }
.fin-shell.desk-home .desk-reading .fin-card { border-radius: 5px; }

.fin-shell.desk-market .fin-market-head { padding-block: clamp(24px, 4vw, 51px) 12px; background: transparent; }
.fin-shell.desk-market :is(.fin-market-head > .fin-wrap, main > .fin-wrap) { width: var(--quiet-width); }
.fin-shell.desk-market .fin-market-head h1 { margin: 0 0 11px; font-weight: 620; letter-spacing: -.045em; }
.fin-shell.desk-market .fin-market-head .fin-kicker, .fin-shell.desk-market :is(#directory, #compare, #methodology) .fin-kicker { display: none; }
.fin-shell.desk-market .fin-market-head p { color: var(--quiet-muted); }
.fin-market-jumps { display: flex; gap: 18px; margin: 9px 0 10px; color: var(--quiet-green); font-size: .85rem; }
.fin-market-jumps a { text-decoration: underline; text-underline-offset: 3px; }
.fin-shell.desk-market .fin-market-head .fin-quote-status { background: transparent; border: 0; border-radius: 0; padding: 0; }
.fin-shell.desk-market .fin-market-head .fin-market-grid { border: 0; border-top: 1px solid var(--quiet-rule); border-bottom: 1px solid var(--quiet-rule); border-radius: 0; background: transparent; }
.fin-shell.desk-market :is(#directory, #compare) .fin-panel { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.fin-shell.desk-market :is(#directory, #compare) .fin-heading { padding-bottom: 9px; border-bottom: 1px solid var(--quiet-rule); }
.fin-shell.desk-market :is(#directory, #compare) h2 { font-weight: 620; letter-spacing: -.03em; }
.fin-shell.desk-market .fin-filter { gap: 6px; }
.fin-shell.desk-market .fin-filter button { border-radius: 4px; }
.fin-shell.desk-market .fin-filter button[aria-pressed="true"] { background: var(--quiet-green); border-color: var(--quiet-green); }
.fin-shell.desk-market :is(#directory, #compare) .fin-scroll { border: 1px solid var(--quiet-rule); border-radius: 5px; background: #fffefa; }
.fin-shell.desk-market .fin-table thead th { background: #f0f1eb; }
.fin-shell.desk-market #directory .fin-table tbody tr:nth-child(even) { background: transparent; }
.fin-shell.desk-market #directory .fin-table tbody tr[data-fin-project-row] { background: #edf2e8; }
.fin-shell.desk-market #directory .fin-table tbody tr:hover { background: #f3f4ed; }
.fin-shell.desk-market #directory .fin-project-purchase { display: inline-block; color: var(--quiet-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; align-content: center; }

@media (max-width: 850px) {
  .fin-shell.desk-home .fin-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  body.fin-shell:is(.desk-home, .desk-market) { --quiet-width: calc(100% - 28px); }
  body[data-ec-ui].fin-shell:is(.desk-home, .desk-market) .fin-header .fin-head-row { min-height: 52px; }
  .fin-shell.desk-home .fin-hero { padding-block: 24px 15px; }
  .fin-shell.desk-home .fin-hero h1 { font-size: clamp(32px, 8.9vw, 48px); margin-bottom: 13px; }
  .fin-shell.desk-home .fin-hero-grid { gap: 21px; }
  .fin-shell.desk-home .fin-board { padding-top: 10px; }
  .fin-shell.desk-market .fin-market-head h1 { margin-bottom: 7px; }
  .fin-shell.desk-market .fin-market-head .fin-market-grid { margin-top: 9px; }
  .fin-shell.desk-market #directory .fin-project-purchase { font-size: .74rem; }
}

@media (min-width: 621px) {
  .fin-shell.desk-market #directory .fin-table tbody :is(th, td) { padding-block: 12px; }
}
