:root {
  color-scheme: light;
  --monitor-ink: #24221e;
  --monitor-muted: #817c71;
  --monitor-line: #e9e4d8;
  --monitor-paper: #f7f5ef;
  --monitor-panel: #fffefa;
  --monitor-gold: #bd8b35;
  --monitor-gold-soft: #f4ead4;
  --monitor-green: #328164;
  --monitor-red: #a9564a;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--monitor-paper); }
body {
  margin: 0;
  color: var(--monitor-ink);
  background: radial-gradient(ellipse at 50% -24%, rgba(211, 179, 111, .16), transparent 46%), var(--monitor-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; }

.monitor-topbar {
  min-height: 78px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(221, 215, 202, .8);
}
.monitor-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.monitor-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #211c12;
  background: linear-gradient(145deg, #f0cd7e, #a87520);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 4px 12px rgba(174, 128, 39, .16);
  font: 21px Georgia, serif;
}
.monitor-brand-copy { display: grid; line-height: 1.18; }
.monitor-brand-copy strong { font: 20px Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.monitor-brand-copy small { color: var(--monitor-muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; margin-top: 3px; }
.back-link {
  color: #605b51;
  padding: 8px 11px;
  border: 1px solid var(--monitor-line);
  border-radius: 8px;
  background: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.back-link:hover { background: #fffefa; border-color: #d4c9b4; }
.back-link span { margin-right: 5px; color: var(--monitor-gold); }

.monitor-main { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 28px; }
.monitor-eyebrow, .board-kicker {
  color: #8b6a31;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .17em;
}
.monitor-eyebrow span { color: #c3b99f; margin: 0 5px; }
.monitor-intro h1 {
  margin: 12px 0 8px;
  font: 400 clamp(34px, 5vw, 52px)/1.06 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.intro-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.intro-meta p { margin: 0; color: #706b61; font-size: 14px; }
.intro-meta p span { margin: 0 4px; color: #bcb5a7; }
.feed-status { display: inline-flex; align-items: center; gap: 8px; color: #615d54; font-size: 11px; white-space: nowrap; }
.feed-dot, .cadence-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #b5aa91; }
.feed-status[data-state="live"] .feed-dot { background: var(--monitor-green); box-shadow: 0 0 0 4px rgba(50,129,100,.11); animation: status-pulse 2.2s ease-out infinite; }
.feed-status[data-state="delayed"] .feed-dot, .feed-status[data-state="stale"] .feed-dot { background: #c58a3a; }
.feed-status[data-state="error"] .feed-dot { background: var(--monitor-red); }
@keyframes status-pulse { 0% { box-shadow: 0 0 0 2px rgba(50,129,100,.16); } 70% { box-shadow: 0 0 0 6px rgba(50,129,100,0); } 100% { box-shadow: 0 0 0 2px rgba(50,129,100,0); } }

.price-board {
  margin-top: 28px;
  padding: 25px 25px 0;
  border: 1px solid #e6e1d6;
  border-radius: 16px;
  background: rgba(255,254,250,.9);
  box-shadow: 0 18px 48px rgba(46, 39, 24, .055);
}
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.board-kicker { color: #9a9385; font-size: 9px; }
.board-heading h2 { margin: 4px 0 0; font: 400 22px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.refresh-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--monitor-line);
  border-radius: 8px;
  color: #5e594f;
  background: #fffefa;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.refresh-button:hover { border-color: #d3c4a5; background: #fbf7ed; transform: translateY(-1px); }
.refresh-button:disabled { cursor: wait; opacity: .72; transform: none; }
.refresh-icon { display: inline-block; color: #a97926; font-size: 17px; line-height: 1; }
.refresh-button.is-refreshing .refresh-icon { animation: rotate-refresh .8s linear infinite; }
@keyframes rotate-refresh { to { transform: rotate(360deg); } }

.rates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rate-card {
  min-width: 0;
  padding: 18px 17px 17px;
  border: 1px solid #ece8df;
  border-radius: 12px;
  background: #fff;
}
.rate-card-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; }
.metal-mark {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font: 700 12px Georgia, serif;
}
.gold-mark { color: #85611f; background: var(--monitor-gold-soft); }
.silver-mark { color: #616873; background: #edf0f2; font-size: 14px; }
.rate-card-heading h3 { margin: 0; font-size: 14px; font-weight: 700; }
.rate-card-heading p { margin: 1px 0 0; color: #9a958a; font-size: 10px; }
.city-prices { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #f0ede6; }
.city-price { width: 100%; min-width: 0; text-align: center; display: grid; align-content: start; gap: 4px; }
.city-price + .city-price { padding-left: 12px; border-left: 1px solid #eeeae2; }
.city-price > span { min-height: 30px; color: #777267; font-size: 10px; line-height: 1.35; }
.city-price strong { color: #25231f; font: 400 clamp(17px, 2vw, 22px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; white-space: nowrap; }
.city-price small { color: #aaa397; font-size: 9px; }

.board-footer {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
  border-top: 1px solid #eeebe3;
  color: #8a857a;
  font-size: 10px;
}
.refresh-cadence { display: inline-flex; align-items: center; gap: 7px; }
.cadence-dot { width: 5px; height: 5px; background: var(--monitor-green); }
.refresh-cadence strong { color: #5d594f; font-weight: 650; }
.source-note { max-width: 850px; margin: 15px 2px 0; color: #898477; font-size: 10px; line-height: 1.65; }
.monitor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 15px 2px 0;
  border-top: 1px solid #e7e2d7;
  color: #a29b8d;
  font-size: 10px;
}
.monitor-footer a { color: #817968; text-decoration: underline; text-decoration-color: #d5cdbd; text-underline-offset: 2px; }
.footer-separator { margin: 0 8px; color: #c7c0b4; }

@media (max-width: 850px) {
  .monitor-main { padding-top: 45px; }
  .rates-grid { grid-template-columns: 1fr; gap: 9px; }
  .rate-card { padding: 16px 17px; }
  .rate-card-heading { padding-bottom: 12px; }
  .city-price > span { min-height: 0; }
  .city-price strong { font-size: 22px; }
}
@media (max-width: 560px) {
  .monitor-topbar, .monitor-main { width: calc(100% - 32px); }
  .monitor-topbar { min-height: 67px; }
  .monitor-brand-mark { width: 32px; height: 32px; font-size: 19px; }
  .monitor-brand-copy strong { font-size: 18px; }
  .monitor-brand-copy small { font-size: 7px; }
  .back-link { padding: 7px 9px; font-size: 10px; }
  .monitor-main { padding: 36px 0 22px; }
  .monitor-intro h1 { font-size: 36px; }
  .intro-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .intro-meta p { font-size: 12px; }
  .price-board { margin-top: 22px; padding: 19px 13px 0; border-radius: 13px; }
  .board-heading { margin: 0 3px 14px; }
  .board-heading h2 { font-size: 20px; }
  .refresh-button { min-height: 34px; padding: 6px 9px; }
  .rate-card { padding: 15px 13px; }
  .city-prices { gap: 8px; }
  .city-price + .city-price { padding-left: 9px; }
  .city-price > span { font-size: 9px; }
  .city-price strong { font-size: clamp(17px, 5vw, 21px); }
  .board-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 3px; }
  .monitor-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
