/* Rupiah, in blue — the colours of the Rp 50.000 note; Plus Jakarta Sans, the typeface drawn for Jakarta.
   The dashboard page was written against claude.ai's token names, so those names are set here. */

:root {
  color-scheme: light;
  --font-anthropic-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-anthropic-serif: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --note-deep: #0b2f5e;         /* banner, darkest */
  --note-blue: #1d5fa8;         /* Rp 50.000 */
  --note-tint: #edf3fb;         /* review panel */
  --site-accent: var(--note-blue);

  --color-bg: #fafbfd;
  --color-panel: #ffffff;
  --color-fg: #142133;
  --color-fg-muted: #586678;
  --color-border-line: #e1e6ee;
  --color-ok: #23804e;          /* better */
  --color-warn: #a86b00;
  --color-bad: #c42b3f;         /* worse */

  /* chart series: blue first, then gold — red and green stay for worse and better */
  --series-1: #1d5fa8; --series-2: #c08a1e; --series-3: #2a8f87; --series-4: #6a4aa0;
  --series-5: #8b5e34; --series-6: #5b8fd0; --series-7: #a3abb8; --series-8: #c9184a;

  --cds-text-secondary: var(--color-fg-muted);
  --cds-border: var(--color-border-line);
  --cds-surface-popover: #ffffff;
  --cds-shadow-popover: 0 8px 28px rgba(11, 47, 94, .16);
  --cds-chart-grid: #edf0f5;
  --cds-chart-axis: #b6c0cc;
  --cds-chart-muted: #9aa6b4;
  --cds-chart-reference: #7d8a9a;

  --cds-font-size-caption: .78rem;
  --cds-font-size-body: .92rem;
  --cds-font-size-heading: 1.02rem;
  --cds-font-size-title: 1.75rem;
  --cds-font-weight-medium: 650;
  --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap: 12px; --cds-gap-md: 16px; --cds-gap-lg: 28px;
  --cds-pad-xs: 6px; --cds-pad-sm: 10px; --cds-pad-lg: 18px;
  --cds-radius: 6px;
  --cds-dur-slow: 240ms;
  --fp-input: #1d5fa8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --note-deep: #08203f; --note-blue: #6ea8ec; --note-tint: #142640;
    --color-bg: #0e1622; --color-panel: #142030; --color-fg: #e7edf5; --color-fg-muted: #9dabbb;
    --color-border-line: #26364a; --color-ok: #5cc28e; --color-warn: #e0a83a; --color-bad: #f2707e;
    --series-1: #6ea8ec; --series-2: #e3b04f; --series-3: #4fc1b7; --series-4: #a98be0;
    --series-5: #c99a6b; --series-6: #9ec4f2; --series-7: #7b8899; --series-8: #f07aa8;
    --cds-surface-popover: #1b2a3d; --cds-shadow-popover: 0 8px 28px rgba(0, 0, 0, .55);
    --cds-chart-grid: #1f2d3f; --cds-chart-axis: #3e5068; --cds-chart-muted: #64758a; --cds-chart-reference: #8495aa;
    --fp-input: #6ea8ec;
  }
}
@media (prefers-reduced-motion: reduce) { :root { --cds-dur-slow: 0ms; } }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--color-bg); color: var(--color-fg); }
body { overflow-x: clip; }
body { font-family: var(--font-anthropic-sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }

/* claude.ai's loading placeholder */
.dash-skeleton { color: transparent !important; background: var(--cds-chart-grid); border-radius: 4px; animation: site-pulse 1.4s ease-in-out infinite; }
.dash-skeleton * { visibility: hidden; }
@keyframes site-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .dash-skeleton { animation: none; } }

/* ---------- shell ---------- */
.site { max-width: 1320px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); }

/* the banner: banknote guilloche over Rp 50.000 blue — the one bold element on the page */
.site-bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 calc(50% - 50vw) 30px; padding: 26px calc(50vw - 50%) 22px; color: #fff;   /* full width, text aligned with the page */
  background-color: var(--note-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.15' stroke-width='.7'%3E%3Cpath d='M0 30 Q30 2 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 30 Q30 58 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 22 Q30 -6 60 22 T120 22 T180 22 T240 22'/%3E%3Cpath d='M0 38 Q30 66 60 38 T120 38 T180 38 T240 38'/%3E%3Cpath d='M0 14 Q30 42 60 14 T120 14 T180 14 T240 14'/%3E%3Cpath d='M0 46 Q30 18 60 46 T120 46 T180 46 T240 46'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, #0b2f5e 0%, #1d5fa8 58%, #123f78 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-bar { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='.7'%3E%3Cpath d='M0 30 Q30 2 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 30 Q30 58 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 22 Q30 -6 60 22 T120 22 T180 22 T240 22'/%3E%3Cpath d='M0 38 Q30 66 60 38 T120 38 T180 38 T240 38'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, #061a33 0%, #10386a 58%, #0a2649 100%); }
}
.site-name { margin: 0; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.site-name span { color: rgba(255, 255, 255, .75); font-weight: 500; }
.site-asof { font-size: .8rem; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
#dash-root { min-height: 60vh; }

/* ---------- headlines and footer ---------- */
.site-news { margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--color-border-line); }
.site-news h2 { font-size: 1.02rem; margin: 0 0 4px; font-weight: 700; }
.site-news p { margin: 0 0 14px; color: var(--color-fg-muted); font-size: .8rem; }
.site-news ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2px 28px; }
.site-news li { padding: 9px 0; border-bottom: 1px solid var(--color-border-line); }
.site-news a { color: var(--color-fg); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.site-news a:hover { color: var(--note-blue); text-decoration: underline; }
.site-news time { display: block; margin-top: 3px; font-size: .74rem; color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.site-foot { margin: 36px 0 28px; font-size: .76rem; color: var(--color-fg-muted); line-height: 1.55; max-width: 62rem; }


/* the site shows its own banner above the page, so the page's banner stays hidden here */
.site #dash-root .fp-banner { display: none; }

/* the site's Dark switch: the same dark values, whatever the device says */
  :root[data-theme="dark"] {
    color-scheme: dark;
    --note-deep: #08203f; --note-blue: #6ea8ec; --note-tint: #142640;
    --color-bg: #0e1622; --color-panel: #142030; --color-fg: #e7edf5; --color-fg-muted: #9dabbb;
    --color-border-line: #26364a; --color-ok: #5cc28e; --color-warn: #e0a83a; --color-bad: #f2707e;
    --series-1: #6ea8ec; --series-2: #e3b04f; --series-3: #4fc1b7; --series-4: #a98be0;
    --series-5: #c99a6b; --series-6: #9ec4f2; --series-7: #7b8899; --series-8: #f07aa8;
    --cds-surface-popover: #1b2a3d; --cds-shadow-popover: 0 8px 28px rgba(0, 0, 0, .55);
    --cds-chart-grid: #1f2d3f; --cds-chart-axis: #3e5068; --cds-chart-muted: #64758a; --cds-chart-reference: #8495aa;
    --fp-input: #6ea8ec;
  }
  :root[data-theme="dark"] .site-bar { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='.7'%3E%3Cpath d='M0 30 Q30 2 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 30 Q30 58 60 30 T120 30 T180 30 T240 30'/%3E%3Cpath d='M0 22 Q30 -6 60 22 T120 22 T180 22 T240 22'/%3E%3Cpath d='M0 38 Q30 66 60 38 T120 38 T180 38 T240 38'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, #061a33 0%, #10386a 58%, #0a2649 100%); }

/* the theme switch, in the banner */
.site-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-theme { display: inline-flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; }
.site-theme button { font: inherit; font-size: .76rem; font-weight: 600; color: rgba(255, 255, 255, .85); background: none; border: 0; padding: 4px 11px; cursor: pointer; }
.site-theme button + button { border-left: 1px solid rgba(255, 255, 255, .25); }
.site-theme button[aria-pressed="true"] { background: #fff; color: var(--note-deep); }
.site-theme button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
