/* Market directory treatment derived from the PQChain network page. */
[data-ec-ui="market"] {
  --market-dark: #202b24;
  --market-paper: #faf9f5;
  --market-panel: #fffef9;
  --market-border: #ddd9ce;
  --market-lavender: #eee9f7;
  --market-violet: #624d7b;
  --market-mono: Consolas, "Liberation Mono", monospace;
  background: var(--market-paper);
}

.fin-shell[data-ec-ui="market"] .fin-wrap { width: min(1180px, calc(100% - 72px)); }
.fin-shell .fin-market-header { background: transparent; border: 0; }
.fin-market-header .fin-market-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  min-height: 54px;
  font-size: .75rem;
}
.fin-market-masthead b { color: var(--market-dark); letter-spacing: .045em; }
.fin-market-masthead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fin-market-masthead nav { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.fin-shell .fin-market-header .fin-head-row {
  width: min(1260px, calc(100% - 40px));
  min-height: 64px;
  margin-top: 12px;
  padding-inline: clamp(16px, 2.3vw, 28px);
  border-radius: 36px;
  color: #f8f8f1;
  background: var(--market-dark);
}
.fin-market-header .fin-brand { gap: 8px; font-size: clamp(19px, 2vw, 25px); letter-spacing: -.052em; }
.fin-market-header .fin-brand sup { margin-left: 3px; color: #dce8db; font-size: .5em; }
.fin-market-header .fin-logo { width: 30px; height: 30px; background: transparent; color: #deeadc; }
.fin-market-header .fin-logo svg { width: 29px; height: 29px; }
.fin-market-header .fin-nav { margin-inline: auto 0; }
.fin-header.fin-market-header .fin-nav a { padding-inline: 5px; color: #e6e8de; }
.fin-header.fin-market-header .fin-nav a:is(:hover, [aria-current]) { border-bottom-color: #dce8db; color: #fff; }
.fin-market-header .fin-head-actions { border-left: 1px solid #ffffff24; padding-left: 8px; }
.fin-market-header .fin-language { padding-inline: 9px; font-size: .8rem; }
.fin-market-header .fin-head-actions > .fin-button {
  border: 0;
  border-radius: 50px;
  padding-inline: 16px;
  background: #e1eadf;
  color: #25362c !important;
}
.fin-market-header .fin-head-actions > .fin-button:hover { background: #f3f6ee; }
.fin-market-header .fin-mobile summary { padding: 0 8px; border: 0; }
.fin-market-header .fin-mobile summary svg { width: 21px; height: 21px; }
.fin-market-header .fin-mobile nav { background: var(--market-panel); color: var(--market-dark); border-color: var(--market-border); }
.fin-market-header :is(.fin-brand, .fin-head-actions > a, .fin-nav a, summary):focus-visible { outline-color: #e1eadf; }

.fin-shell .fin-market-head {
  padding-block: clamp(38px, 5.8vw, 76px) clamp(24px, 4vw, 52px);
  background: var(--market-paper);
  border: 0;
}
.fin-shell .fin-market-head h1 {
  margin-block: 14px 14px;
  font: 500 clamp(35px, 5vw, 69px)/1.16 var(--ec-sans);
  letter-spacing: -.057em;
}
.fin-market-head p { max-width: 71ch; color: #665b71; font-size: .94rem; }
.fin-shell[data-ec-ui="market"] .fin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--market-violet);
  font: 400 .74rem/1.35 var(--market-mono);
  letter-spacing: .09em;
}
.fin-shell[data-ec-ui="market"] .fin-kicker::before { content: ""; width: 23px; height: 1px; background: #a79ab7; }
.fin-market-head .fin-quote-status {
  width: fit-content;
  max-width: 100%;
  margin: 19px 0 0;
  padding: 6px 12px;
  border: 1px solid #e2d9ee;
  border-radius: 15px;
  background: var(--market-lavender);
  color: #534265;
  font-size: .74rem;
  gap: 3px 12px;
}
.fin-market-head .fin-quote-status strong::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; border-radius: 50%; background: currentColor; }
.fin-market-head .fin-quote-status [data-quote-status="current"] { color: #374e41; }
.fin-market-head .fin-quote-status [data-quote-status="delayed"] { color: #874418; }
.fin-market-head .fin-market-grid { margin-top: 24px; overflow: hidden; border-color: var(--market-border); background: var(--market-panel); }
.fin-market-head .fin-market-grid .fin-card { padding: 13px clamp(12px, 2.2vw, 24px); background: transparent; }
.fin-market-head .fin-market-grid .fin-card a { color: var(--market-dark); font-size: .84rem; font-weight: 650; }
.fin-market-head .fin-market-grid .fin-card a:hover { text-decoration: underline; }
.fin-market-head .fin-market-grid .fin-card strong { margin: 1px 0 3px; font-size: clamp(18px, 2.65vw, 32px); line-height: 1.2; font-weight: 530; }
.fin-market-head .fin-market-grid .fin-card b { font-size: .8rem; }

.fin-shell[data-ec-ui="market"] .fin-section { padding: 28px 0 38px; border-top: 1px solid var(--market-border); scroll-margin-top: 12px; }
.fin-shell[data-ec-ui="market"] .fin-heading { gap: 9px 16px; margin-bottom: 17px; }
.fin-shell[data-ec-ui="market"] .fin-heading h2 { margin-top: 7px; font-size: clamp(25px, 3vw, 40px); font-weight: 520; letter-spacing: -.046em; }
.fin-shell[data-ec-ui="market"] .fin-heading > a { font-size: .81rem; }
.fin-shell[data-ec-ui="market"] :is(.fin-panel, .fin-section .fin-card) { padding: clamp(14px, 2.4vw, 24px); border-color: var(--market-border); background: var(--market-panel); }
.fin-shell[data-ec-ui="market"] .fin-control { color: #414a42; font-size: .79rem; font-weight: 600; }
.fin-shell[data-ec-ui="market"] .fin-control :is(input, select) { background: var(--market-panel); border-color: var(--market-border); font-size: .87rem; }
.fin-shell[data-ec-ui="market"] .fin-filter { gap: 7px; margin-block: 14px 8px; }
.fin-shell[data-ec-ui="market"] .fin-filter button { min-height: 35px; padding: 4px 13px; border-radius: 20px; border-color: var(--market-border); background: transparent; font-size: .8rem; }
.fin-shell[data-ec-ui="market"] .fin-filter button[aria-pressed="true"] { background: var(--market-dark); border-color: var(--market-dark); color: #fff; }
.fin-market-table-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; margin-block: 4px 7px; }
.fin-shell[data-ec-ui="market"] .fin-scroll { border-color: var(--market-border); }
.fin-shell[data-ec-ui="market"] .fin-table thead th { background: #eeeee7; color: #465247; font-weight: 650; }
.fin-shell[data-ec-ui="market"] .fin-table :is(td, th) { border-color: #e9e6dc; }
.fin-shell[data-ec-ui="market"] .fin-table tbody tr:nth-child(even) { background: #f9f8f3; }
.fin-shell[data-ec-ui="market"] .fin-table tbody tr:hover { background: #f0f1e9; }
.fin-shell[data-ec-ui="market"] .fin-table .fin-quote-stamp { color: #555e55; font-weight: 450; }
.fin-shell[data-ec-ui="market"] .fin-table .fin-star { background: transparent; border-color: #e3e0d6; }
.fin-shell[data-ec-ui="market"] .fin-table .fin-star[aria-pressed="true"] { background: #e4ece2; border-color: #adc1ae; }
.fin-project-price + .fin-project-caption { color: var(--market-violet); }
.fin-shell .fin-market-table-bar .fin-mobile-columns { margin: 0; padding-inline: 8px; }
.fin-shell[data-ec-ui="market"] #fin-market-rows th[scope="row"] { text-align: left; }
.fin-shell[data-ec-ui="market"] .fin-compare { margin-top: 0; }
.fin-shell[data-ec-ui="market"] .fin-footer { background: #21211f; border: 0; color: #f4f1e8; padding-block: clamp(26px, 4vw, 50px); }
.fin-shell[data-ec-ui="market"] .fin-footer p { color: #d1cec1; }
.fin-shell[data-ec-ui="market"] .fin-footer a:focus-visible { outline-color: #e1eadf; }

@media (max-width: 930px) {
  .fin-shell[data-ec-ui="market"] .fin-wrap { width: calc(100% - 36px); }
  .fin-market-header .fin-head-row { justify-content: space-between; }
}

@media (max-width: 620px) {
  .fin-shell[data-ec-ui="market"] .fin-wrap { width: calc(100% - 28px); }
  .fin-shell .fin-market-header .fin-head-row { min-height: 53px; margin-top: 7px; }
  .fin-market-header .fin-market-masthead { min-height: 38px; gap: 4px 12px; font-size: .68rem; }
  .fin-market-masthead nav { gap: 4px 11px; }
  .fin-market-header .fin-head-actions { gap: 3px; }
  .fin-market-header .fin-language { padding-inline: 6px; }
  .fin-shell .fin-market-head { padding-block: 34px 25px; }
  .fin-market-head p { font-size: .88rem; }
  .fin-market-head .fin-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
  .fin-market-head .fin-market-grid .fin-card { padding: 9px 6px; }
  .fin-market-head .fin-market-grid .fin-card + .fin-card { border-top: 0; border-left: 1px solid var(--market-border); }
  .fin-market-head .fin-market-grid .fin-card a { font-size: .72rem; }
  .fin-market-head .fin-market-grid .fin-card strong { font-size: clamp(13px, 4vw, 20px); }
  .fin-market-head .fin-market-grid .fin-card small { font-size: .62rem; }
  .fin-market-head .fin-market-grid .fin-card small:not(.fin-quote-badge) { display: block; line-height: 1.25; }
  .fin-shell[data-ec-ui="market"] .fin-section { padding: 22px 0 27px; }
  .fin-shell[data-ec-ui="market"] .fin-panel { padding: 9px; }
  #fin-market-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 7px; }
  #fin-market-controls .grow { grid-column: 1 / -1; }
  #fin-market-reset { min-height: 42px; padding-inline: 7px; font-size: .77rem; }
  .fin-shell[data-ec-ui="market"] .fin-filter { gap: 4px; }
  .fin-shell[data-ec-ui="market"] .fin-filter button { min-height: 37px; padding-inline: 8px; }
  .fin-market-table-bar .fin-live { font-size: .72rem; }
  #directory .fin-scroll:not([data-fin-wide]) .fin-table .fin-star { width: min(30px, 100%); }
  #directory .fin-scroll:not([data-fin-wide]) .fin-project-purchase { font-size: .72rem; }
}
