/* Shared alignment for the Market Desk home, article pages and member screens. */
:root { --desk-page-width: min(1450px, calc(100% - clamp(38px, 7.8vw, 150px))); }
@media (max-width: 760px) { :root { --desk-page-width: calc(100% - 36px); } }

a.strategy-link, .md-surface a.strategy-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: #ad925d;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a.strategy-link:is(:hover, :focus-visible), .md-surface a.strategy-link:is(:hover, :focus-visible) {
  color: #f4c75c;
  text-decoration-color: currentColor;
}
a.strategy-link:focus-visible { outline: 2px solid #f4c75c; outline-offset: 2px; }

.desk-page-head {
  color: #f5f4ee;
  background: #0c0f0f;
  border-bottom: 1px solid #363b39;
  font: 400 14px/1.4 var(--desk-body, "DM Sans", sans-serif);
}
.desk-page-head__inner {
  width: var(--desk-page-width);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 42px);
}
.desk-page-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.desk-page-head .desk-page-head__brand {
  gap: 9px;
  margin-right: auto;
  font: 600 32px/1 var(--desk-display, "Barlow Condensed", sans-serif);
  white-space: nowrap;
}
.desk-page-head__brand img { width: 36px; height: 36px; border-radius: 4px; }
.desk-page-head nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.desk-page-head nav a { color: #c3cac5; }
.desk-page-head nav a:is(:hover,[aria-current]) { color: #f4c75c; }
.desk-page-head .desk-page-head__access {
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid #f4c75c;
  border-radius: 4px;
  background: #f4c75c;
  color: #1b160b;
  font-weight: 600;
  text-align: center;
}
.desk-page-head .desk-page-head__access:hover { background: #fad978; }
.desk-page-head a:focus-visible { outline: 2px solid #f4c75c; outline-offset: 3px; }
@media (max-width: 760px) {
  .desk-page-head__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    padding-block: 8px 0;
  }
  .desk-page-head .desk-page-head__brand { font-size: 27px; gap: 6px; }
  .desk-page-head__brand img { width: 30px; height: 30px; }
  .desk-page-head .desk-page-head__access { grid-column: 2; grid-row: 1; padding-inline: 9px; font-size: 13px; }
  .desk-page-head nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 clamp(10px, 3.4vw, 26px); font-size: 13px; }
}

.market-footer {
  --foot-gold: #f4c75c;
  --foot-ink: #f1f0e9;
  --foot-muted: #b0b5ae;
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #44453d;
  background: #101211;
  color: var(--foot-ink);
  font: 400 15px/1.5 var(--desk-body, "DM Sans", sans-serif);
  text-align: left;
}
.market-footer__inner {
  position: relative;
  width: var(--desk-page-width);
  margin-inline: auto;
}
.market-footer__inner::before {
  position: absolute;
  top: -2px;
  width: 46px;
  height: 3px;
  background: var(--foot-gold);
  content: "";
}
.market-footer__grid {
  display: grid;
  grid-template-columns: minmax(205px, 1.4fr) minmax(130px, .75fr) minmax(155px, .85fr) minmax(208px, 1fr);
  gap: clamp(20px, 4vw, 70px);
  padding-block: clamp(36px, 4.5vw, 70px) clamp(30px, 3.6vw, 56px);
}
.market-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .24em;
}
.market-footer a:hover { color: var(--foot-gold); text-decoration: underline; }
.market-footer a:focus-visible { outline: 2px solid var(--foot-gold); outline-offset: 4px; }
.market-footer .market-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foot-ink);
  font: 600 32px/1 var(--desk-display, "Barlow Condensed", sans-serif);
  letter-spacing: 0;
}
.market-footer__brand img { display: block; width: 38px; height: 38px; border-radius: 5px; }
.market-footer__identity p {
  max-width: 29ch;
  margin: 13px 0 16px;
  color: var(--foot-muted);
  font-size: 14px;
}
.market-footer .market-footer__journal {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 10px;
  color: var(--foot-gold);
  font-size: 14px;
  font-weight: 650;
}
.market-footer__journal span { font-size: 19px; line-height: 1; }
.market-footer__group h2 {
  margin: 3px 0 12px;
  color: var(--foot-gold);
  font: 600 11px/1.4 var(--desk-mono, "IBM Plex Mono", monospace);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.market-footer__group ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.market-footer__group li { margin: 0; }
.market-footer__group a { display: inline-block; padding: 3px 0; font-size: 14px; }
.market-footer__contact address { margin: 0 0 7px; color: var(--foot-muted); font: inherit; font-size: 14px; line-height: 1.6; }
.market-footer__contact > a { display: block; width: fit-content; }
.market-footer__profiles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 12px 0; border-top: 1px solid #353934; }
.market-footer__profiles h2 { margin: 0; color: var(--foot-gold); font: 400 11px/1.4 var(--desk-mono); text-transform: uppercase; letter-spacing: .065em; }
.market-footer__profiles ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; padding: 0; margin: 0; }
.market-footer__profiles a { display: inline-block; padding: 5px 0; font-size: 14px; }
.market-footer__bottom { border-top: 1px solid #353934; padding: 18px 0 24px; }
.market-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 24px; font-size: 13px; }
.market-footer__legal nav { display: flex; flex-wrap: wrap; gap: 3px 20px; }
.market-footer__legal a { display: inline-block; padding: 4px 0; }
.market-footer__legal button { border: 0; background: none; color: inherit; padding: 4px 0; font: inherit; cursor: pointer; }
.market-footer__legal button:hover { text-decoration: underline; }
.market-footer__bottom p { margin: 8px 0 0; max-width: 110ch; color: var(--foot-muted); font-size: 12px; }
@media (max-width: 840px) {
  .market-footer__grid { grid-template-columns: 1.25fr 1fr; gap: 26px 34px; }
}
@media (max-width: 550px) {
  .market-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .market-footer__identity, .market-footer__contact { grid-column: 1 / -1; }
  .market-footer__identity p { max-width: 33ch; margin-block: 9px; }
  .market-footer__group h2 { margin-bottom: 8px; }
  .market-footer__group a { padding-block: 6px; }
  .market-footer__bottom { padding-bottom: 30px; }
}

.analytics-choices {
  position: fixed; bottom: 16px; left: 16px; z-index: 10;
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 16px 20px; color: var(--ink, #f5f4ee); background: var(--sheet, #161a1a);
  border: 1px solid var(--control-line, #78827c); border-radius: 8px; box-shadow: 0 6px 24px #0008;
  font: 400 14px/1.4 var(--desk-body, sans-serif);
}
.analytics-choices[hidden], .analytics-choices [hidden] { display: none !important; }
.analytics-choices label { display: flex; align-items: baseline; gap: 9px; margin: 9px 0; cursor: pointer; }
.analytics-choices input[type=checkbox] { accent-color: var(--gold, #f4c75c); width: 16px; height: 16px; flex: none; }
.analytics-choices button {
  margin: 8px 8px 0 0; min-height: 37px; padding: 7px 14px; border-radius: 5px;
  border: 1px solid var(--control-line, #78827c); color: inherit; background: transparent;
  font: 600 13px/1.25 var(--desk-body, sans-serif); cursor: pointer;
}
.analytics-choices button:hover { background: var(--raised, #272c2b); }
.analytics-choices a { color: inherit; text-decoration: underline; }
@media print {
  .analytics-choices, .market-footer__legal button { display: none !important; }
}
