/* Market tracker: Tickwise, an invented consumer watchlist app. Off white, ink navy and a teal accent; tabular figures everywhere. Up and down always carry a sign and a word, never colour alone. */

.mt-page {
  --mt-canvas: #f8f9fb;
  --mt-surface: #ffffff;
  --mt-band: #eef1f5;
  --mt-ink: #111a2b;
  --mt-muted: #4c5a6e;
  --mt-line: #d9dfe8;
  --mt-line-strong: #77839a;
  --mt-accent: #0b6e79;
  --mt-accent-hover: #08545d;
  --mt-on-accent: #ffffff;
  --mt-tint: #dff1f2;
  --mt-success: #13734a;
  --mt-danger: #b3261e;
  --mt-focus: #0b6e79;
  --mt-grid: #e6eaf0;
  --mt-head: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --mt-body: "Segoe UI", system-ui, sans-serif;
  --mt-r: 10px;

  background: var(--mt-canvas);
  color: var(--mt-ink);
  font-family: var(--mt-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): near black slate with teal. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .mt-page {
    --mt-canvas: #0b0f16;
    --mt-surface: #121925;
    --mt-band: #0e141e;
    --mt-ink: #e7ecf4;
    --mt-muted: #a3aec0;
    --mt-line: #243042;
    --mt-line-strong: #6c7a90;
    --mt-accent: #5fd4dd;
    --mt-accent-hover: #8fe3e9;
    --mt-on-accent: #04282c;
    --mt-tint: #14303a;
    --mt-success: #5fd49a;
    --mt-danger: #ff8a80;
    --mt-focus: #5fd4dd;
    --mt-grid: #1c2635;
    color-scheme: dark;
  }
}

.mt-page [hidden] { display: none !important; }
:where(.mt-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.mt-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.mt-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.mt-page) a { color: var(--mt-accent); }
:where(.mt-page) :is(h1, h2, h3, h4) { color: inherit; }
.mt-page :focus-visible { outline: 3px solid var(--mt-focus); outline-offset: 2px; }
.mt-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--mt-accent); }
html:has(.mt-page) { scroll-behavior: smooth; }
.mt-page section[id] { scroll-margin-top: 72px; }
.mt-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.mt-header { position: sticky; top: 0; z-index: 20; background: var(--mt-canvas); border-bottom: 1px solid var(--mt-line); }
.mt-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.mt-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--mt-head); color: var(--mt-ink) !important; text-decoration: none; }
.mt-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--mt-tint); stroke: var(--mt-accent); stroke-width: 2; stroke-linejoin: round; }
.mt-nav { margin-left: auto; }
.mt-nav ul { display: flex; gap: 22px; }
.mt-nav a { color: var(--mt-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mt-nav a:hover { color: var(--mt-accent); text-decoration: underline; text-underline-offset: 4px; }
.mt-menu-btn { display: none; }
.mt-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--mt-line-strong); border-radius: var(--mt-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.mt-theme-btn:hover { background: var(--mt-tint); }

.mt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--mt-accent); border-radius: var(--mt-r); font: 700 1rem/1.2 var(--mt-head); text-decoration: none; cursor: pointer; text-align: center;
}
.mt-btn--fill { background: var(--mt-accent); color: var(--mt-on-accent) !important; }
.mt-btn--fill:hover { background: var(--mt-accent-hover); border-color: var(--mt-accent-hover); }
.mt-btn--line { background: transparent; color: var(--mt-accent) !important; }
.mt-btn--line:hover { background: var(--mt-tint); }
.mt-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.mt-btn:disabled { background: var(--mt-band); border-color: var(--mt-line-strong); color: var(--mt-muted) !important; cursor: not-allowed; }

.mt-eyebrow { font-weight: 700; color: var(--mt-accent); font-size: .92rem; letter-spacing: .02em; }
.mt-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--mt-head); }
.mt-sub { color: var(--mt-muted); margin-top: 8px; max-width: 64ch; }
.mt-head { margin-bottom: 26px; }
.mt-sec { padding: 72px 0; }
.mt-band { background: var(--mt-band); }
.mt-muted { color: var(--mt-muted); }
.mt-small { font-size: .9rem; color: var(--mt-muted); }

.mt-hero { padding: 64px 0 56px; }
.mt-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.mt-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--mt-head); margin-top: 10px; }
.mt-lede { font-size: 1.15rem; color: var(--mt-muted); margin-top: 16px; max-width: 54ch; }
.mt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mt-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--mt-muted); font-size: .95rem; }
.mt-facts strong { color: var(--mt-ink); }
.mt-panel { padding: 24px; background: var(--mt-surface); border: 1px solid var(--mt-line); border-radius: calc(var(--mt-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.mt-panel-title { font: 700 1.1rem var(--mt-head); margin-bottom: 12px; }

.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.mt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--mt-surface); border: 1px solid var(--mt-line); border-radius: var(--mt-r); }
.mt-card h3 { font: 700 1.15rem/1.25 var(--mt-head); }
.mt-card p { color: var(--mt-muted); font-size: .96rem; }
.mt-card .mt-btn { margin-top: auto; align-self: flex-start; }
.mt-card.is-on { border: 2px solid var(--mt-accent); }
.mt-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--mt-r) var(--mt-r) 0 0; background: var(--mt-tint); position: relative; overflow: hidden; }
.mt-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--mt-canvas); opacity: .7; }
.mt-price { font: 700 1.5rem var(--mt-head); color: var(--mt-ink); }
.mt-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--mt-line-strong); font-size: .82rem; font-weight: 600; color: var(--mt-ink); }
.mt-badge--on { background: var(--mt-tint); border-color: var(--mt-accent); }
.mt-badge--bad { border-color: var(--mt-danger); color: var(--mt-danger); }
.mt-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--mt-muted); }

.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mt-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--mt-line-strong); border-radius: 999px; background: var(--mt-surface); color: var(--mt-ink); font: 600 .95rem var(--mt-body); cursor: pointer; }
.mt-chip:hover { border-color: var(--mt-accent); }
.mt-chip[aria-pressed="true"] { background: var(--mt-accent); border-color: var(--mt-accent); color: var(--mt-on-accent); }
.mt-count { font-weight: 600; margin-bottom: 14px; }
.mt-empty { padding: 28px; text-align: center; border: 1px dashed var(--mt-line-strong); border-radius: var(--mt-r); }

.mt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.mt-steps li { padding: 22px; background: var(--mt-surface); border: 1px solid var(--mt-line); border-radius: var(--mt-r); counter-increment: st; }
.mt-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--mt-accent); color: var(--mt-on-accent); font-weight: 700; }
.mt-steps h3 { font: 700 1.1rem var(--mt-head); }
.mt-steps p { color: var(--mt-muted); font-size: .95rem; margin-top: 4px; }

.mt-table { width: 100%; border-collapse: collapse; background: var(--mt-surface); border: 1px solid var(--mt-line); border-radius: var(--mt-r); overflow: hidden; }
.mt-table th, .mt-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--mt-line); vertical-align: top; }
.mt-table th { font-size: .88rem; color: var(--mt-muted); background: var(--mt-band); }
.mt-table td.mt-num, .mt-table th.mt-num { text-align: right; font-variant-numeric: tabular-nums; }

.mt-meter { height: 10px; border-radius: 999px; background: var(--mt-line); overflow: hidden; }
.mt-meter span { display: block; height: 100%; background: var(--mt-accent); border-radius: inherit; }
.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.mt-stat strong { display: block; font: 700 2rem/1.1 var(--mt-head); }
.mt-stat span { color: var(--mt-muted); font-size: .92rem; }

.mt-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.mt-qs details { border-bottom: 1px solid var(--mt-line); }
.mt-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.mt-qs p { padding: 0 0 16px; color: var(--mt-muted); }

.mt-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--mt-surface); border: 1px solid var(--mt-line); border-radius: calc(var(--mt-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.mt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mt-field--full { grid-column: 1 / -1; }
.mt-field label, .mt-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.mt-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--mt-line-strong); border-radius: calc(var(--mt-r) - 2px); background: var(--mt-canvas); color: var(--mt-ink); font: 1rem var(--mt-body); }
.mt-field textarea { min-height: 110px; resize: vertical; }
.mt-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--mt-danger); }
.mt-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.mt-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--mt-accent); }
.mt-hint { font-size: .88rem; color: var(--mt-muted); margin-top: 6px; }
.mt-error { color: var(--mt-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.mt-error::before { content: "! "; }
.mt-status { font-weight: 600; }
.mt-status.is-ok { padding: 14px 16px; border-radius: calc(var(--mt-r) - 2px); background: var(--mt-tint); border-left: 4px solid var(--mt-success); }

.mt-footer { padding: 28px 0; border-top: 1px solid var(--mt-line); color: var(--mt-muted); font-size: .92rem; }
.mt-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .mt-header-in { flex-wrap: wrap; gap: 10px; }
  .mt-theme-btn { margin-left: auto; }
  .mt-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--mt-line-strong); border-radius: var(--mt-r); background: transparent; color: var(--mt-ink); font: 600 .95rem var(--mt-body); cursor: pointer;
  }
  .mt-nav { display: none; order: 5; width: 100%; margin: 0; }
  .mt-nav.is-open { display: block; padding-bottom: 12px; }
  .mt-nav ul { flex-direction: column; gap: 0; }
  .mt-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--mt-line); }
  .mt-header-cta { display: none; }
  .mt-hero-in, .mt-faq-in, .mt-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .mt-sec { padding: 52px 0; }
  .mt-fields { grid-template-columns: minmax(0, 1fr); }
  .mt-form { padding: 20px; }
  .mt-table thead { display: none; }
  .mt-table, .mt-table tbody, .mt-table tr, .mt-table td { display: block; width: 100%; }
  .mt-table tr { border-bottom: 1px solid var(--mt-line-strong); padding: 6px 0; }
  .mt-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .mt-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--mt-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.mt-page) { scroll-behavior: auto; }
}

@media print {
  .mt-header, .mt-theme-btn, .mt-form { display: none; }
}

/* This template's own sections */
.mt-movers li, .mt-alerts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mt-line); font-variant-numeric: tabular-nums; }
.mt-hint { color: var(--mt-muted); font-size: .88rem; margin-top: 10px; }
.mt-up { color: var(--mt-success); font-weight: 700; }
.mt-down { color: var(--mt-danger); font-weight: 700; }
.mt-watch td { font-variant-numeric: tabular-nums; }
.mt-watch small { color: var(--mt-muted); }
.mt-watch tr.is-on th, .mt-watch tr.is-on td { background: var(--mt-tint); color: var(--mt-ink); }
.mt-sort { font: inherit; font-weight: 700; color: var(--mt-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mt-sort::after { content: ""; margin-left: 4px; }
th[aria-sort="ascending"] .mt-sort::after { content: "\2191"; }
th[aria-sort="descending"] .mt-sort::after { content: "\2193"; }
.mt-spark { width: 90px; height: 28px; }
.mt-spark polyline, .mt-fig polyline { fill: none; stroke: var(--mt-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mt-fig { margin-top: 18px; padding: 16px; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); background: var(--mt-surface); }
.mt-fig svg { width: 100%; height: 240px; display: block; }
.mt-fig line { stroke: var(--mt-grid); vector-effect: non-scaling-stroke; }
.mt-fig figcaption { margin-top: 10px; color: var(--mt-muted); font-variant-numeric: tabular-nums; }
.mt-two { display: grid; gap: 40px; align-items: start; }
.mt-alert { display: grid; gap: 8px; max-width: 360px; margin-top: 12px; }
.mt-alert label { font-weight: 700; margin-top: 6px; }
.mt-alert select, .mt-alert input { font: inherit; padding: 10px 12px; border: 1px solid var(--mt-line-strong); border-radius: var(--mt-radius); background: var(--mt-surface); color: var(--mt-ink); }
.mt-alert input[aria-invalid="true"] { border-color: var(--mt-danger); }
.mt-alert button { margin-top: 10px; justify-self: start; }
.mt-x { background: none; border: 0; color: var(--mt-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.mt-price { font: 700 1.4rem var(--mt-head); margin: 4px 0 6px; }
