header nav a { white-space: nowrap; color: #b2b8ae; }
header nav a[aria-current="page"] { background: #34261b; color: #f3d8ae; }
@media (max-width: 850px) {
  body > header { height: auto; min-height: 76px; flex-wrap: wrap; gap: .45rem 1rem; padding: .65rem 1rem .3rem; }
  body > header nav {
    order: 3;
    flex: 1 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    padding-bottom: .3rem;
  }
}
.market-pulse-page { --pulse-line: #514032; --pulse-accent: #e0bb85; --pulse-muted: #c9b6a2; }
.market-pulse-page main { display: block; }
.market-pulse-page .visual, .market-pulse-page .eyebrow { display: none; }
.market-pulse-page .reading { width: 100%; max-width: 1320px; margin: 0 auto; min-width: 0; padding-inline: clamp(1rem, 5vw, 5rem); }
.market-pulse-page h1 { margin-bottom: .5rem; font-size: clamp(2.6rem, 6.2vw, 5.5rem); }
.market-pulse-page h2 { margin: 0 0 .6rem; }
.market-pulse-page .lead { max-width: 65ch; }
.pulse-label, .pulse-muted { color: var(--pulse-muted); }
.pulse-label { letter-spacing: .11em; text-transform: uppercase; font-size: .75rem; }
.pulse-panel { border: 1px solid var(--pulse-line); border-radius: 12px; padding: clamp(1rem, 3vw, 2rem); margin: 1.4rem 0; background: linear-gradient(145deg, #2a2019, #19130f 65%); }
.pulse-panel small { font: .9rem system-ui, sans-serif; color: var(--pulse-accent); }
.pulse-panel p { margin: .6rem 0; }
.pulse-panel code, .pulse-table code { overflow-wrap: anywhere; }
.pulse-panel code { color: #ead4b5; }
.pulse-toolbar, .pulse-links { display: flex; gap: .9rem; flex-wrap: wrap; align-items: end; margin: 1.5rem 0; }
.pulse-links { align-items: center; }
.pulse-links[hidden], .market-pulse-page canvas[hidden] { display: none; }
.pulse-toolbar { padding: .9rem; border: 1px solid var(--pulse-line); border-radius: 10px; background: #1b140f; }
.pulse-toolbar label { display: grid; gap: .35rem; flex: 1 1 10rem; min-width: 0; }
.pulse-toolbar input, .pulse-toolbar select, #pulse-status input {
  border: 1px solid #705743;
  border-radius: 6px;
  padding: .65rem;
  min-height: 44px;
  background: #211811;
  color: #f2f4ee;
  font: inherit;
  min-width: 0;
  width: 100%;
}
.market-pulse-page button { padding: .55rem .8rem; }
.market-pulse-page button:disabled { opacity: .5; cursor: default; }
.pulse-links a, .pulse-panel a, .pulse-table a, .pulse-search a { color: var(--pulse-accent); text-decoration: underline; text-underline-offset: .2em; }
.pulse-table { overflow: auto; border: 1px solid var(--pulse-line); border-radius: 10px; }
.pulse-table table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.pulse-table th, .pulse-table td { padding: .85rem; border-bottom: 1px solid var(--pulse-line); white-space: nowrap; }
.pulse-table thead { background: #30231a; }
.pulse-table thead th { color: #e9d8bf; font-size: .82rem; }
.pulse-table tbody tr:nth-child(even) { background: #211914; }
.pulse-table tbody tr:focus-within, .pulse-table tbody tr:hover { background: #33261d; }
.pulse-table tbody tr:last-child > * { border-bottom: 0; }
.radar-table th:not(:first-child), .radar-table td { text-align: right; }
.radar-table tbody th { min-width: 11rem; white-space: normal; }
.pulse-table small { display: block; color: var(--pulse-muted); font-weight: normal; margin-top: .3rem; }
.pulse-search { columns: 2 18rem; padding-left: 1.2rem; }
.pulse-search li { margin: 0 0 .55rem; break-inside: avoid; }
.pulse-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pulse-metrics > div { padding: .85rem; border: 1px solid var(--pulse-line); border-radius: 8px; background: #1a130f; }
.pulse-metrics dt { font-size: .83rem; color: var(--pulse-muted); }
.pulse-metrics dd { margin: .35rem 0 0; font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.pulse-up { color: #c4e6aa; }
.pulse-down { color: #f0b3a8; }
.pulse-unavailable { color: var(--pulse-muted); font-weight: 400; }
.market-pulse-page .pulse-primary { background: var(--pulse-accent); color: #141a10; border-color: var(--pulse-accent); font-weight: 650; }
.market-pulse-page .pulse-primary:hover { background: #f1d09c; }
@media (max-width: 600px) {
  .radar-table tr > :first-child { position: sticky; left: 0; background: #241a13; box-shadow: 1px 0 var(--pulse-line); }
  .radar-table tbody th { width: 9rem; min-width: 9rem; max-width: 9rem; }
  .pulse-toolbar label { flex-basis: 8rem; }
}
.market-pulse-page canvas { display: block; max-width: 100%; height: auto; margin: 1.4rem 0; border-radius: 8px; }
.market-pulse-page #pulse-canvas { width: min(100%, 760px); }
.market-pulse-page :focus-visible { outline: 2px solid var(--pulse-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-panel { animation: pulse-enter .24s ease-out; }
  @keyframes pulse-enter { from { opacity: .65; } to { opacity: 1; } }
}

.home-market {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.1rem;
  padding: .85rem 1rem;
  margin: 1.4rem 0;
  border: 1px solid #56402d;
  border-radius: .65rem;
  background: linear-gradient(120deg, #2a1d14, #17100c 75%);
}
.home-market-asset, .home-market-values { display: grid; gap: .2rem; }
.home-market-asset strong { color: #e6c694; letter-spacing: .08em; }
.home-market small, .home-market time { color: #aebbad; font-size: .75rem; }
.home-market-values { font-variant-numeric: tabular-nums; }
.home-market-values span { margin-left: .25rem; }
.home-market-up { color: #c4e6aa; }
.home-market-down { color: #f0b3a8; }
.home-market-radar { margin-inline-start: auto; color: #e6c694; text-decoration: underline; text-underline-offset: .25em; }
.route-loading { color: #bdc7b8; }
.stryg-secondary.market-pulse-page .reading {
  background: linear-gradient(155deg, #21291e 0%, #101410 15rem, transparent 27rem);
}
.stryg-secondary.market-pulse-page #content {
  position: relative;
  isolation: isolate;
}
.stryg-secondary.market-pulse-page #content::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1.4rem 0 auto auto;
  width: min(32%, 15rem);
  aspect-ratio: 1;
  background: center / contain no-repeat url('/pocket-watch.jpg');

  mask-image: radial-gradient(ellipse, black 30%, transparent 72%);
  opacity: .15;
  pointer-events: none;
}
.stryg-secondary.market-pulse-page #content > h1 { max-width: 75%; }
@media (max-width: 600px) {
  .stryg-secondary.market-pulse-page #content::before { width: 34%; opacity: .10; }
  .stryg-secondary.market-pulse-page #content > h1 { max-width: 100%; }
}

.stryg-secondary.market-pulse-page .reading {
  background:
    radial-gradient(ellipse at 90% 4rem, #74502d65, transparent 21rem),
    linear-gradient(165deg, #281d15, #0a0a0a 29rem);
}
.stryg-secondary.market-pulse-page #content::before {
  inset-block-start: -2rem;
  width: min(38%, 19rem);
  opacity: .26;
}
.radar-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.4rem 0;
  border: 1px solid var(--pulse-line);
  border-radius: 12px;
  background: #221914;
}
.radar-overview[hidden], #pulse-placeholder[hidden] { display: none; }
.radar-overview > div { padding: clamp(.65rem, 2vw, 1.25rem); }
.radar-overview > div + div { border-inline-start: 1px solid var(--pulse-line); }
.radar-overview dt { font-size: .8rem; line-height: 1.35; color: var(--pulse-muted); }
.radar-overview dd {
  margin: .35rem 0 0;
  color: var(--pulse-accent);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
}
.pulse-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.pulse-workspace:has(#pulse-detail[hidden]) { grid-template-columns: minmax(0, 1fr); }
.pulse-stage {
  padding: clamp(.8rem, 2vw, 1.4rem);
  border: 1px solid var(--pulse-line);
  border-radius: 12px;
  min-width: 0;
  background: linear-gradient(140deg, #32241a, #1b140f 65%);
}
.pulse-workspace .pulse-panel { margin: 0; }
.market-pulse-page .pulse-stage #pulse-canvas { width: 100%; margin: .85rem 0; }
.pulse-stage .pulse-links { margin-bottom: 0; }
#pulse-placeholder {
  min-height: 14rem;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--pulse-muted);
}
#pulse-placeholder img { object-fit: cover; border-radius: 50%; opacity: .82; }
@media (max-width: 900px) {
  .pulse-workspace { grid-template-columns: minmax(0, 1fr); }
}

.brand-ticker {
  color: #e0bb85;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
}

body:has(.watch-visual) {
  background: #130e0b;
  color: #f3e7d5;
}
body:has(.watch-visual) > header { background: #130e0b; border-color: #59402c; }
body:has(.watch-visual) .reading h1,
body:has(.watch-visual) .reading h2,
body:has(.watch-visual) .brand {
  font-family: 'Baskerville', 'Palatino Linotype', Georgia, serif;
}
body:has(.watch-visual) .reading h1 { letter-spacing: -.045em; }
body:has(.watch-visual) .lead { color: #cdbba8; }
body:has(.watch-visual) .eyebrow,
body:has(.watch-visual) .meta { color: #d0a675; }
.watch-mark {
  position: relative;
  width: 22px;
  height: 22px;
  margin-inline: 4px;
  border: 3px double #d9ad77;
  border-radius: 50%;
}
.watch-mark::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #d9ad77;
  border-radius: 50%;
  inset: -8px auto auto calc(50% - 2.5px);
}
.watch-mark::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 6px;
  inset: 3px auto auto 7px;
  border-left: 1px solid #d9ad77;
  border-bottom: 1px solid #d9ad77;
}
.watch-visual {
  display: grid;
  place-items: center;
  background: #110c09;
  border-left: 1px solid #59402c;
}
.watch-figure {
  position: relative;
  width: min(100%, 622.5px);
  margin: 0;
  transform-origin: 50% 0;
}
.watch-figure img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: radial-gradient(ellipse 74% 79% at 50% 45%, #000 48%, transparent 95%);
}
.watch-second-hand {
  position: absolute;
  left: 51.8%;
  top: 54.35%;
  width: max(2px, .55%);
  height: 14%;
  transform: translate(-50%, -100%) rotate(165deg);
  transform-origin: 50% 100%;
  border-radius: 80% 80% 0 0;
  background: linear-gradient(90deg, #432315, #cb8b48 45%, #5d3621);
  box-shadow: 1px 0 1px #21120bb0;
  pointer-events: none;
}
.watch-second-hand::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 175%;
  height: 15%;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50%;
  background: #684026;
}
.watch-visual .motion-toggle {
  bottom: 1.5rem;
  border-color: #d9ad7770;
  background: #211811;
  color: #ead4b5;
}
.stryg-secondary.market-pulse-page .reading {
  background:
    radial-gradient(ellipse at 90% 4rem, #74502d65, transparent 21rem),
    linear-gradient(165deg, #281d15, #130e0b 29rem);
}
@media (prefers-reduced-motion: no-preference) {
  .watch-visual .watch-figure { animation: watch-sway 12s ease-in-out infinite; }
  .watch-second-hand { animation: watch-tick 60s steps(60, end) infinite; }
  @keyframes watch-tick {
    to { transform: translate(-50%, -100%) rotate(525deg); }
  }
  @keyframes watch-sway {
    0%, 50%, 100% { transform: rotate(0); }
    25% { transform: rotate(1.8deg); }
    75% { transform: rotate(-1.8deg); }
  }
}
@media (max-width: 800px) {
  .watch-visual { min-height: auto; border-left: 0; border-bottom: 1px solid #59402c; }
  .watch-figure { width: min(100%, 330px); }
}
