/* Trends presentation, adapted from the approved desktop and mobile mockups. */
#trends-app .trends-heading {
  padding:.25rem 0 1.25rem;
  margin-bottom:.5rem;
}
#trends-app .trends-heading h1 {
  margin:0;
  font-family:var(--zbd-font-sans);
  font-size:1.75rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.2;
  text-wrap:balance;
}
#trends-app .trends-heading p {
  color:#8b949e;
  font-size:13px;
  margin-top:8px;
  max-width:680px;
}
#trends-app .trends-navigation .market-nav-link[aria-current] {
  border-bottom-color:#f0b90b;
  color:#e5c454;
}
#trends-app .trends-navigation [data-scope=all] {
  gap:0;
}
#trends-app .desktop-nav-copy {
  white-space:pre;
}
#trends-app .trends-control-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
#trends-app .type-switch {
  display:inline-flex;
  gap:4px;
  padding:3px;
  background:#1e2026;
  border:1px solid #30363d;
  border-radius:10px;
}
#trends-app .type-switch :is(button,a) {
  min-height:36px;
  padding:6px 24px;
  border:1px solid transparent;
  border-radius:7px;
  background:none;
  color:#8b949e;
  font-size:12px;
}
#trends-app .type-switch :is(button,a)[aria-current] {
  border-color:#4b5562;
  background:#30343c;
  color:#f0f6fc;
  box-shadow:0 1px 4px #0004;
}
#trends-app .ranking-switch {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  max-width:570px;
  border:1px solid #30363d;
  border-radius:10px;
  background:#191d24;
  padding:4px;
  margin-bottom:22px;
}
#trends-app .ranking-switch :is(button,a) {
  min-height:40px;
  background:none;
  border:1px solid transparent;
  border-radius:7px;
  color:#8b949e;
  font-size:13px;
  font-weight:600;
}
#trends-app .ranking-switch :is(button,a)[aria-current] {
  border-color:#b9974370;
  background:#f0b90b14;
  color:#e5c454;
}
#trends-app .ranking-switch :is(button,a)[data-ranking=positive][aria-current] {
  border-color:#3fb95060;
  background:#3fb95012;
  color:#65c879;
}
#trends-app .ranking-switch :is(button,a)[data-ranking=negative][aria-current] {
  border-color:#f8514960;
  background:#f8514912;
  color:#ff817a;
}
#trends-app .trends-period-row {
  display:flex;
  align-items:center;
  gap:20px;
  margin:-4px 0 22px;
}
#trends-app .trends-period-row>span {
  font-size:12px;
  color:#8b949e;
  white-space:nowrap;
}
#trends-app .trends-periods {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;
  width:100%;
  max-width:410px;
  border:1px solid #30363d;
  border-radius:9px;
  padding:3px;
  background:#191d24;
}
#trends-app .trends-periods button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:36px;
  padding:5px 3px;
  border:1px solid transparent;
  background:none;
  border-radius:6px;
  font-size:12px;
  color:#9eacbe;
  white-space:nowrap;
}
#trends-app .trends-periods button[aria-pressed=true] {
  border-color:#687586;
  background:#30343c;
  color:#fff;
}
#trends-app .trends-periods button.is-locked {
  color:#b5a472;
}
#trends-app .trends-periods svg {
  width:11px;
  height:11px;
}
#trends-app .trends-periods button:not(.is-locked) [data-icon=lock] {
  display:none;
}
#trends-app .trends-periods button:hover {
  background:#ffffff08;
}
#trends-app.trends-modernized .market-scope-row {
  margin:0 0 22px;
}
#trends-app .scope-heading {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
#trends-app .scope-heading>img {
  width:72px;
  height:42px;
  object-fit:contain;
}
#trends-app.trends-modernized .market-scope-row h2 {
  font-size:17px;
}
#trends-app .market-scope-search {
  padding:8px 16px 14px;
}
#trends-app .scope-choice-logo {
  width:64px;
  height:36px;
  object-fit:contain;
  flex-shrink:0;
}
#trends-app .market-scope-options {
  overflow-y:auto;
  min-height:0;
  flex:1;
  padding:4px 12px 16px;
  overscroll-behavior:contain;
}
#trends-app .market-scope-option {
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:62px;
  padding:11px 12px;
  border:1px solid transparent;
  border-bottom-color:#ffffff08;
  border-radius:8px;
  background:none;
  color:#f0f6fc;
  text-align:left;
}
#trends-app .market-scope-option[aria-current] {
  border-color:#b99743;
  background:#f0b90b0c;
}
#trends-app .market-scope-option:hover {
  background:#ffffff06;
}
#trends-app .market-scope-option-name {
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere;
}
#trends-app .scope-option-meta {
  display:block;
  font-size:11px;
  font-weight:400;
  color:#8b949e;
  margin-top:3px;
}
#trends-app .scope-option-count {
  font-size:11px;
  color:#8b949e;
  white-space:nowrap;
}
#trends-app .scope-current {
  display:block;
  color:#e5c454;
  font-size:10px;
  margin-top:3px;
}
#trends-app .market-scope-empty {
  padding:24px 10px;
  font-size:13px;
  color:#8b949e;
  text-align:center;
}
#trends-app .results-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:19px 0;
  border-top:1px solid #30363d;
}
#trends-app .results-heading h2 {
  font-size:16px;
  font-weight:650;
  line-height:1.4;
}
#trends-app .results-heading h2>span {
  font-size:12px;
  color:#8b949e;
  font-weight:400;
  margin-left:6px;
}
#trends-app .results-heading p {
  font-size:11px;
  color:#8b949e;
  margin-top:5px;
  line-height:1.5;
}
#trends-app .info-button {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:28px;
  height:28px;
  border:1px solid #3c4654;
  background:none;
  color:#a8b4c4;
  border-radius:50%;
  font-size:13px;
  font-style:italic;
}
#trends-app .trends-table-head,
#trends-app .trend-row {
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 150px 130px 110px 36px;
  gap:12px;
  align-items:center;
}
#trends-app .trends-table-head {
  padding:11px 14px;
  background:#191e26;
  border-radius:8px;
  color:#8b949e;
  font-size:11px;
}
#trends-app .trends-table-head>span:nth-child(n+3) {
  text-align:right;
}
#trends-app .trend-row {
  height:116px;
  padding:10px 14px;
  border-bottom:1px solid #ffffff09;
}
#trends-app .trend-row:hover {
  background:#ffffff03;
}
#trends-app .trend-rank {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border:1px solid transparent;
  border-radius:50%;
  font-size:12px;
  font-weight:700;
  color:#7e8b9c;
  font-variant-numeric:tabular-nums;
}
#trends-app .trend-rank[data-rank="1"] {
  background:#f0b90b15;
  border-color:#a88b3f50;
  color:#e8c158;
}
#trends-app .trend-rank[data-rank="2"] {
  background:#b7c6da0b;
  border-color:#b7c6da30;
  color:#b7c6da;
}
#trends-app .trend-rank[data-rank="3"] {
  background:#c3895c0b;
  border-color:#c3895c30;
  color:#c3895c;
}
#trends-app .trend-identity {
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
#trends-app .trend-thumb {
  position:relative;
  display:block;
  flex:0 0 64px;
  width:64px;
  height:96px;
  border:0;
  background:none;
  padding:0;
  border-radius:5px;
}
#trends-app .trend-thumb>a {
  display:block;
  width:100%;
  height:100%;
}
#trends-app .trend-thumb .variant-badge {
  font-size:.5rem;
  padding:.22em .5em;
}
#trends-app .trend-thumb .variant-badge--is-long {
  font-size:.46rem;
}
#trends-app .trend-thumb .variant-badge--is-xlong {
  font-size:.42rem;
}
#trends-app .trend-thumb img {
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:4px;
}
#trends-app .trend-copy {
  min-width:0;
}
#trends-app .trend-name {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
  padding:0;
  border:0;
  background:none;
  text-align:left;
  color:#f0f6fc;
  font-size:13px;
  font-weight:600;
  line-height:1.45;
}
#trends-app .trend-name:hover {
  color:#e5c454;
}
#trends-app .trend-meta {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  color:#8b949e;
  margin-top:5px;
  min-width:0;
}
#trends-app .trend-code {
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#trends-app .trend-series {
  color:#8b949e;
  font-size:11px;
  margin-top:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#trends-app.trends-modernized img.zbd-flag {
  width:18px;
  height:13px;
  border:1px solid #30363d;
  border-radius:2px;
  object-fit:cover;
  flex-shrink:0;
}
#trends-app .trend-price {
  font-size:16px;
  font-weight:650;
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
}
#trends-app .trend-change {
  font-size:13px;
  white-space:nowrap;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
#trends-app .is-positive {
  color:#65c879;
}
#trends-app .is-negative {
  color:#ff817a;
}
#trends-app .is-flat {
  color:#8b949e;
}
#trends-app .trend-more {
  display:grid;
  place-items:center;
  width:34px;
  height:38px;
  border:1px solid #30363d;
  border-radius:8px;
  background:none;
  color:#8b949e;
  font-size:22px;
}
#trends-app .trend-more:hover {
  color:#fff;
  border-color:#687586;
}
#trends-app .mobile-change,
#trends-app .mobile-estimate-label {
  display:none;
}
#trends-app .ranking-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:11px;
  color:#8b949e;
  padding:17px 0 0;
}
#trends-app .trends-explanation {
  border:1px solid #30363d;
  border-radius:10px;
  margin-top:30px;
  color:#8b949e;
}
#trends-app .trends-explanation summary {
  padding:14px 16px;
  font-size:12px;
  cursor:pointer;
  color:#b8c3d1;
}
#trends-app .trends-explanation>div {
  padding:0 16px 16px;
  display:grid;
  gap:12px;
  font-size:12px;
  line-height:1.7;
}
#trends-app .trends-explanation strong {
  color:#c9d4e0;
  font-weight:600;
}
#trends-app .display-context {
  font-size:12px;
  line-height:1.7;
  color:#8b949e;
}
#trends-app .market-dialog-close {
  display:grid;
  place-items:center;
}
#trends-app.trends-modernized .market-dialog-body {
  gap:20px;
}
#trends-app.trends-modernized .market-dialog-body input,
#trends-app.trends-modernized .market-dialog-body select {
  font-size:14px;
}
#trends-app.trends-modernized .market-sheet-footer {
  grid-template-columns:auto minmax(0,1fr);
}
#trends-app .primary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid #f0b90b;
  border-radius:9px;
  background:#f0b90b;
  color:#171b22;
  font-size:13px;
  font-weight:650;
}
#trends-app .primary-button:hover {
  background:#ffd044;
}
#trends-app #trends-info-dialog {
  overflow-y:auto;
}
#trends-app .info-copy {
  padding:4px 20px 24px;
  font-size:13px;
  line-height:1.7;
  display:grid;
  gap:16px;
}
#trends-app .trends-empty {
  text-align:center;
  padding:48px 20px;
  border:1px solid #30363d;
  border-radius:10px;
  background:#191d2470;
}
#trends-app .trends-empty h3 {
  font-size:18px;
}
#trends-app .trends-empty p {
  font-size:13px;
  line-height:1.7;
  color:#8b949e;
  margin:10px auto 22px;
  max-width:450px;
}
#trends-app .trends-login {
  margin-top:24px;
}
#trends-app .trends-login h2 {
  margin:0;
  color:#e6edf3;
  font-size:20px;
  font-weight:650;
  line-height:1.4;
  text-wrap:balance;
}
#trends-app .trends-login .trends-login-signup {
  margin:12px auto 0;
}
#trends-app .trends-login-register {
  min-height:44px;
  padding:8px 2px;
  border:0;
  background:none;
  color:#e5c454;
  font:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
#trends-app.trends-modernized [hidden] {
  display:none!important;
}
@media(max-width:991px) {
  #trends-app .trends-table-head,
  #trends-app .trend-row {
    grid-template-columns:36px minmax(0,1fr) 115px 100px 78px 32px;
    gap:8px;
  }
  #trends-app .trend-identity {
    gap:12px;
  }
  #trends-app .trend-price {
    font-size:14px;
  }
  #trends-app .trend-change {
    font-size:12px;
  }
  #trends-app .trend-more {
    width:30px;
  }
  #trends-app .trends-control-row .market-settings-trigger {
    flex-direction:row;
    width:auto;
    height:42px;
    margin:0;
    padding:7px 12px;
    border:1px solid #3c4654;
    border-radius:9px;
    background:#1a1e25;
    gap:7px;
    font-size:12px;
  }
  #trends-app .trends-control-row .market-round-icon {
    width:20px;
    height:20px;
    border:0;
    background:none;
  }
}
@media(max-width:767px) {
  #trends-app.trends-modernized {
    width:100%;
    padding:1.5rem 0 30px;
  }
  #trends-app .trends-heading h1 {
    font-size:1.5rem;
  }
  #trends-app .trends-heading p {
    font-size:12px;
    line-height:1.6;
    margin-top:6px;
  }
  #trends-app .trends-navigation.market-navigation {
    grid-template-columns:.65fr 1.5fr .65fr .7fr;
    gap:2px;
    margin-bottom:16px;
  }
  #trends-app .trends-navigation .market-nav-link,
  #trends-app .trends-navigation .market-language-trigger {
    font-size:12px;
    padding:9px 3px;
    min-height:44px;
  }
  #trends-app .desktop-nav-copy {
    display:none;
  }
  #trends-app .trends-control-row {
    margin-bottom:12px;
  }
  #trends-app .type-switch :is(button,a) {
    min-height:34px;
    padding:5px 22px;
  }
  #trends-app .trends-control-row .market-settings-trigger {
    min-height:40px;
    height:40px;
    font-size:11px;
    padding:7px 10px;
  }
  #trends-app .ranking-switch {
    max-width:none;
    margin-bottom:18px;
    padding:3px;
    gap:3px;
  }
  #trends-app .ranking-switch :is(button,a) {
    min-height:38px;
    font-size:12px;
  }
  #trends-app .trends-period-row {
    display:block;
    margin:-4px 0 18px;
  }
  #trends-app .trends-period-row>span {
    display:none;
  }
  #trends-app .trends-periods {
    max-width:none;
  }
  #trends-app .trends-periods button {
    min-height:35px;
    font-size:11px;
  }
  #trends-app.trends-modernized .market-scope-row {
    margin:0 0 16px;
    gap:10px;
  }
  #trends-app .scope-heading {
    gap:8px;
  }
  #trends-app .scope-heading>img {
    width:44px;
    height:28px;
  }
  #trends-app.trends-modernized .market-scope-row h2 {
    font-size:13px;
    line-height:1.45;
  }
  #trends-app.trends-modernized .market-scope-row button {
    min-height:38px;
    font-size:10px;
    padding:6px 8px;
    max-width:104px;
    white-space:normal;
  }
  #trends-app .results-heading {
    padding:14px 0;
  }
  #trends-app .results-heading h2 {
    font-size:14px;
  }
  #trends-app .results-heading h2>span {
    font-size:11px;
    margin-left:4px;
  }
  #trends-app .results-heading p {
    font-size:10px;
    margin-top:5px;
    max-width:295px;
  }
  #trends-app .info-button {
    width:27px;
    height:27px;
  }
  #trends-app .trends-table-head {
    display:none;
  }
  #trends-app .trend-row {
    position:relative;
    display:grid;
    grid-template-columns:64px minmax(0,1fr) 100px;
    gap:11px;
    height:116px;
    padding:10px 0;
  }
  #trends-app .trend-rank {
    position:absolute;
    left:1px;
    top:8px;
    z-index:1;
    width:23px;
    height:23px;
    background:#171b22;
    border:1px solid #435062;
    font-size:10px;
    box-shadow:0 2px 6px #0008;
    pointer-events:none;
  }
  #trends-app .trend-rank[data-rank="1"] {
    background:#3c331c;
    border-color:#a88b3f;
    color:#f0cf73;
  }
  #trends-app .trend-rank[data-rank="2"] {
    background:#2a323d;
    border-color:#8293aa;
  }
  #trends-app .trend-rank[data-rank="3"] {
    background:#362b24;
    border-color:#9a6b46;
  }
  #trends-app .trend-identity {
    display:contents;
  }
  #trends-app .trend-thumb {
    width:64px;
    height:96px;
    grid-column:1;
    flex-basis:auto;
  }
  #trends-app .trend-copy {
    grid-column:2;
    min-width:0;
  }
  #trends-app .trend-name {
    font-size:12px;
    line-height:1.45;
  }
  #trends-app .trend-meta {
    font-size:10px;
    gap:4px;
    margin-top:7px;
  }
  #trends-app .trend-series {
    font-size:10px;
    line-height:1.5;
    white-space:nowrap;
    margin-top:5px;
  }
  #trends-app .trend-figures {
    grid-column:3;
    text-align:right;
    align-self:center;
    min-width:0;
  }
  #trends-app .mobile-estimate-label {
    display:block;
    font-size:9px;
    color:#8b949e;
    margin-bottom:2px;
  }
  #trends-app .trend-price {
    font-size:15px;
    line-height:1.5;
  }
  #trends-app .mobile-change {
    display:flex;
    flex-direction:column;
    gap:2px;
    margin-top:7px;
    line-height:1.3;
    font-size:11px;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }
  #trends-app .mobile-change small {
    font-size:10px;
    opacity:.85;
  }
  #trends-app .desktop-change,
  #trends-app .trend-more {
    display:none;
  }
  #trends-app .ranking-footer {
    font-size:10px;
    padding-top:14px;
  }
  #trends-app .trends-explanation {
    margin-top:24px;
  }
  #trends-app .trends-explanation summary {
    font-size:11px;
    padding:13px;
  }
  #trends-app .trends-explanation>div {
    font-size:11px;
    padding:0 13px 14px;
    gap:10px;
  }
  #trends-app.trends-modernized .market-dialog-body select,
  #trends-app.trends-modernized input[type=search] {
    font-size:16px;
  }
  #trends-app .info-copy {
    font-size:12px;
  }
  #trends-app .trends-empty {
    padding:34px 16px;
  }
  #trends-app .trends-empty h3 {
    font-size:16px;
  }
  #trends-app .trends-login h2 {
    font-size:18px;
  }
  #trends-app .trends-empty p {
    font-size:12px;
  }
}
@media(max-width:359px) {
  #trends-app .trend-row {
    grid-template-columns:56px minmax(0,1fr) 90px;
    gap:8px;
  }
  #trends-app .trend-thumb {
    width:56px;
  }
  #trends-app .trend-name {
    font-size:11px;
  }
  #trends-app .trend-price {
    font-size:14px;
  }
  #trends-app .trend-series {
    font-size:9px;
  }
  #trends-app .trends-navigation .market-nav-link,
  #trends-app .trends-navigation .market-language-trigger {
    font-size:11px;
  }
}
@media(prefers-reduced-motion:reduce) {
  #trends-app * {
    scroll-behavior:auto!important;
  }
}
@media(min-width:992px) {
  #trends-app .trends-control-row {
    display:grid;
    grid-template-columns:auto minmax(0,570px) auto;
    justify-content:space-between;
    gap:22px;
    margin-bottom:22px;
  }
  #trends-app .trends-control-row>.type-switch {
    grid-column:1;
    grid-row:1;
  }
  #trends-app .trends-control-row>.ranking-switch {
    grid-column:2;
    grid-row:1;
    margin:0;
  }
  #trends-app .trends-control-row>.market-settings-trigger {
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }
}
@media(max-width:991px) {
  #trends-app .trends-control-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    margin-bottom:18px;
  }
  #trends-app .trends-control-row>.type-switch {
    justify-self:start;
  }
  #trends-app .trends-control-row>.ranking-switch {
    grid-column:1/-1;
    grid-row:2;
    margin:0;
    max-width:none;
  }
  #trends-app .trends-control-row>.market-settings-trigger {
    grid-column:2;
    grid-row:1;
  }
}
body.trends-dialog-open {
  overflow:hidden;
}
#trends-app.trends-modernized {
  display:block;
  width:100%;
  max-width:100%;
  margin:auto;
  padding:1.5rem 0 30px;
  background:transparent;
  border-radius:0;
  --market-panel:#1a1e25;
  --market-line:#30363d;
  color:var(--ft-zbd-text-primary,#f0f6fc);
}
#trends-app h1,
#trends-app h2,
#trends-app h3,
#trends-app p {
  margin-top:0;
}
#trends-app .sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
#trends-app a {
  text-decoration:none;
}
#trends-app .type-switch a,
#trends-app .ranking-switch a {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
#trends-app .market-language-options {
  display:grid;
}
#trends-app .market-language-option {
  width:100%;
}
#trends-app .market-display-dialog {
  height:min(560px,90dvh);
}
#trends-app .market-scope-options {
  flex:1;
  min-height:0;
  overflow-y:auto;
}
#trends-app .market-scope-option {
  display:flex;
  text-decoration:none;
}
#trends-app .market-dialog-close {
  display:grid;
  place-items:center;
}
#trends-app .trends-explanation section.card {
  position:static;
  z-index:auto;
  background:none;
  border:0;
  padding:0!important;
  margin:10px 0!important;
  box-shadow:none;
}
#trends-app .trends-explanation section.card h2 {
  font-size:13px;
  margin:16px 0 10px!important;
}
#trends-app .trends-explanation section.card p {
  margin-bottom:12px;
}
#trends-app :is(a,button,select,input):focus-visible {
  outline:2px solid #58a6ff;
  outline-offset:3px;
}
@media(max-width:767px) {
  #trends-app.trends-modernized {
    width:100%;
    padding:1.5rem 0 24px;
  }
  #trends-app .market-scope-option {
    gap:10px;
  }
  #trends-app .market-sheet-footer {
    padding-bottom:max(13px,env(safe-area-inset-bottom));
  }
  #trends-app .trends-periods button {
    font-size:11px;
    padding:5px 3px;
  }
}
