:root { --rate-ink:#172333; --rate-muted:#64758a; --rate-border:#e2e9f1; --rate-blue:#164f9b; --rate-bg:#f5f8fc; }
* { box-sizing:border-box; }
body { margin:0; color:var(--rate-ink); background:var(--rate-bg); font:16px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; }
a { color:var(--rate-blue); }
.rate-shell { max-width:1160px; margin:auto; padding:0 20px; }
.rate-header { background:white; border-bottom:1px solid var(--rate-border); }
.rate-header-inner { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.rate-brand { color:#123d74; text-decoration:none; font-weight:800; font-size:20px; letter-spacing:-.03em; }
.rate-header nav { display:flex; gap:22px; font-size:14px; }
.rate-header nav a { color:#40536a; text-decoration:none; }
.rate-shell nav[aria-label="breadcrumb"] { margin:20px 0 18px; font-size:13px; color:var(--rate-muted); }
.rate-shell nav[aria-label="breadcrumb"] ol { padding:0; margin:0; list-style:none; display:flex; flex-wrap:wrap; gap:7px; font-size:0; }
.rate-shell nav[aria-label="breadcrumb"] li { display:inline; font-size:13px; }
.rate-shell nav[aria-label="breadcrumb"] li+li:before { content:"›"; padding-right:7px; color:#91a2b5; }
.rate-eyebrow { color:var(--rate-blue); font-weight:700; font-size:12px; letter-spacing:.06em; text-transform:uppercase; margin:0 0 5px; }
.rate-shell h1 { font-size:clamp(23px,2.6vw,33px); line-height:1.2; letter-spacing:-.025em; margin:0 0 8px; }
.rate-lead,.rate-note { color:var(--rate-muted); }
.rate-lead { margin:0 0 22px; }
.rate-layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr); align-items:start; gap:18px; }
.rate-stack { display:grid; gap:18px; min-width:0; }
.rate-card { background:#fff; border:1px solid var(--rate-border); border-radius:16px; padding:24px; min-width:0; box-shadow:0 4px 22px rgba(20,50,85,.035); }
.rate-hero { padding:28px; background:linear-gradient(115deg,#fff 55%,#f1f6ff); }
.rate-badge { display:inline-block; padding:5px 10px; border-radius:20px; background:#e7f5ee; color:#12754e; font-size:12px; font-weight:700; }
.rate-primary { font-size:clamp(39px,5vw,60px); line-height:1.08; letter-spacing:-.045em; font-weight:750; font-variant-numeric:tabular-nums; margin:14px 0 4px; overflow-wrap:anywhere; }
.rate-primary small { font-size:.39em; color:#506278; font-weight:600; letter-spacing:0; white-space:nowrap; }
.rate-delta { margin:0 0 12px; font-weight:650; }
.rate-delta.positive { color:#137a53; } .rate-delta.negative { color:#bb4251; }
.rate-inverse { color:#41546a; font-size:14px; margin:7px 0 0; }
.rate-meta { display:flex; flex-wrap:wrap; gap:14px 36px; margin-top:22px; padding-top:16px; border-top:1px solid var(--rate-border); font-size:13px; }
.rate-meta span { display:block; color:var(--rate-muted); } .rate-meta strong { display:block; }
.rate-card h2 { font-size:22px; letter-spacing:-.025em; margin:0 0 14px; }
.rate-tabs,.rate-links { display:flex; flex-wrap:wrap; gap:7px; }
.rate-tabs a,.rate-links a { border:1px solid var(--rate-border); border-radius:9px; padding:7px 11px; font-size:13px; text-decoration:none; font-weight:600; }
.rate-tabs a:hover,.rate-links a:hover { background:#eaf2fd; }
.rate-chart { height:330px; width:100%; margin-top:14px; }
.rate-chart-fallback { font-size:13px; color:var(--rate-muted); }
.rate-day-nav { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.rate-day-nav a { display:block; border:1px solid var(--rate-border); border-radius:12px; padding:11px; font-size:13px; text-decoration:none; }
.rate-day-nav strong { display:block; font-size:17px; color:var(--rate-ink); font-variant-numeric:tabular-nums; }
.rate-day-nav a:last-child { text-align:right; }
.rate-change table,.rate-conversions table { width:100%; border-collapse:collapse; font-size:14px; }
.rate-change th,.rate-change td,.rate-conversions th,.rate-conversions td { padding:10px 8px; border-bottom:1px solid var(--rate-border); vertical-align:middle; }
.rate-change th,.rate-conversions th { text-align:left; color:var(--rate-muted); font-size:12px; font-weight:600; }
.rate-change th:last-child,.rate-change td:last-child,.rate-conversions td:last-child { text-align:right; }
.rate-change tr:last-child td,.rate-conversions tr:last-child td { border-bottom:0; }
.rate-change td { font-variant-numeric:tabular-nums; }
.rate-change .text-success { color:#137a53; } .rate-change .text-danger { color:#bb4251; }
.rate-change .period-link { display:block; font-size:12px; }
.rate-converter { display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr); align-items:end; gap:7px; }
.rate-field label { display:block; color:var(--rate-muted); font-size:12px; margin-bottom:6px; }
.rate-field input,.rate-field output { display:block; width:100%; padding:10px; border:1px solid #d3dfeb; border-radius:9px; color:var(--rate-ink); font:600 17px/1.4 system-ui,sans-serif; font-variant-numeric:tabular-nums; min-width:0; }
.rate-field output { background:#f7f9fc; } .rate-equals { text-align:center; padding-bottom:12px; }
.rate-note { font-size:13px; margin:12px 0 0; }
.rate-details { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rate-details div { background:#f6f8fb; padding:10px; border-radius:9px; }
.rate-details span { display:block; color:var(--rate-muted); font-size:12px; }
.rate-details strong { font-variant-numeric:tabular-nums; }
.rate-footer { margin:20px 0 40px; font-size:13px; color:var(--rate-muted); }
.rate-upcoming { border-color:#c9dfed; background:#f7fbff; }
.rate-upcoming-value { font-size:30px; font-weight:750; font-variant-numeric:tabular-nums; letter-spacing:-.025em; }
.rate-upcoming-next { border-top:1px solid var(--rate-border); margin:16px 0 0; padding-top:14px; font-size:14px; }
.rate-upcoming-next strong { font-variant-numeric:tabular-nums; }
.rate-upcoming-next span { color:var(--rate-muted); }
.rate-table-scroll { max-width:100%; overflow-x:auto; }
.rate-recent-table { width:100%; border-collapse:collapse; font-size:14px; min-width:540px; }
.rate-recent-table th,.rate-recent-table td { padding:10px 8px; border-bottom:1px solid var(--rate-border); text-align:right; font-variant-numeric:tabular-nums; }
.rate-recent-table th { color:var(--rate-muted); font-size:12px; font-weight:600; }
.rate-recent-table th:first-child,.rate-recent-table td:first-child { text-align:left; }
.rate-recent-table tr:last-child td { border-bottom:0; }
.rate-recent-table .text-success { color:#137a53; } .rate-recent-table .text-danger { color:#bb4251; }
@media(max-width:820px) { .rate-layout { grid-template-columns:1fr; } .rate-header nav { display:none; } .rate-chart { height:280px; } }
@media(max-width:480px) { .rate-shell { padding:0 14px; } .rate-card { padding:17px; } .rate-hero { padding:21px; } .rate-primary { font-size:42px; } .rate-change th,.rate-change td { padding:9px 4px; } .rate-day-nav strong { font-size:15px; } .rate-field input,.rate-field output { font-size:15px; padding:9px 6px; } }

/* Monthly archive */
.rate-hero-label { margin:16px 0 -8px; color:var(--rate-muted); font-size:13px; }
.rate-month-chart { height:310px; }
.rate-month-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.rate-month-stats div { min-width:0; padding:13px; background:#f6f8fb; border-radius:10px; }
.rate-month-stats span,.rate-month-stats small { display:block; color:var(--rate-muted); font-size:12px; }
.rate-month-stats strong { display:block; margin:4px 0; font-size:17px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.rate-month-stats .positive { color:#137a53; } .rate-month-stats .negative { color:#bb4251; }
.rate-month-nav { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top:18px; margin-top:18px; border-top:1px solid var(--rate-border); font-size:13px; }
.rate-month-table { width:100%; min-width:750px; border-collapse:collapse; font-size:14px; }
.rate-month-table th,.rate-month-table td { padding:10px 8px; border-bottom:1px solid var(--rate-border); text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rate-month-table th { color:var(--rate-muted); font-size:12px; font-weight:600; }
.rate-month-table th:first-child,.rate-month-table td:first-child { text-align:left; }
.rate-month-table tr:last-child td { border-bottom:0; }
.rate-month-table .text-success { color:#137a53; } .rate-month-table .text-danger { color:#bb4251; }
@media(max-width:480px) { .rate-month-stats strong { font-size:15px; } .rate-month-chart { height:260px; } }

/* Rate archives and compact tables */
.rate-weekend { background:#f4f7fb; }
.rate-hero-label { margin:16px 0 -8px; }
.rate-date-short { display:none; }
.rate-year-chart { height:340px; }
.rate-year-section { margin-top:18px; }
.rate-year-month-links { display:flex; flex-wrap:wrap; gap:8px 14px; margin:18px 0 22px; font-size:13px; }
.rate-year-month-links a { text-decoration:none; }
.rate-year-months { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.rate-year-month { min-width:0; padding:16px; border:1px solid var(--rate-border); border-radius:12px; scroll-margin-top:18px; }
.rate-year-month h3 { margin:0 0 10px; font-size:17px; }
.rate-year-month h3 a { text-decoration:none; }
.rate-year-month table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.rate-year-month th,.rate-year-month td { padding:8px 5px; border-bottom:1px solid var(--rate-border); text-align:left; overflow-wrap:anywhere; }
.rate-year-month th { color:var(--rate-muted); font-size:12px; font-weight:600; }
.rate-year-month td:nth-child(2),.rate-year-month th:nth-child(2) { text-align:right; }
.rate-year-month td:last-child,.rate-year-month th:last-child { text-align:right; }
.rate-year-month tr:last-child td { border-bottom:0; }
.rate-year-month td { font-variant-numeric:tabular-nums; }
.rate-month-table { min-width:0; table-layout:fixed; }
.rate-month-table th,.rate-month-table td { white-space:normal; overflow-wrap:anywhere; }
.rate-month-table th:first-child { width:21%; }
.rate-month-table th:last-child { width:11%; }
.rate-table-scroll { overflow:visible; }
.rate-recent-table { min-width:0; table-layout:fixed; }
.rate-recent-table th,.rate-recent-table td { overflow-wrap:anywhere; }
.rate-recent-table th:first-child { width:34%; }
.rate-change table,.rate-conversions table { table-layout:fixed; }
.rate-change td,.rate-conversions td { overflow-wrap:anywhere; }
@media(max-width:820px) {
  .rate-year-months { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .rate-month-table thead,.rate-recent-table thead { display:none; }
  .rate-month-table,.rate-month-table tbody,.rate-recent-table,.rate-recent-table tbody { display:block; width:100%; }
  .rate-month-table tr,.rate-recent-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; padding:13px 0; border-bottom:1px solid var(--rate-border); }
  .rate-month-table tr:last-child,.rate-recent-table tr:last-child { border-bottom:0; }
  .rate-month-table tr.rate-weekend,.rate-recent-table tr.rate-weekend { margin:0 -8px; padding:13px 8px; border-radius:9px; }
  .rate-month-table td,.rate-recent-table td { display:block; width:auto; padding:0; border:0; text-align:left; font-size:14px; }
  .rate-month-table td::before,.rate-recent-table td::before { content:attr(data-label); display:block; color:var(--rate-muted); font-size:11px; margin-bottom:2px; }
  .rate-month-table td:first-child,.rate-recent-table td:first-child { grid-column:1 / -1; }
  .rate-recent-table td { text-align:left; }
  .rate-date-full { display:none; } .rate-date-short { display:inline; }
}
@media(max-width:480px) {
  .rate-year-month { padding:12px; }
  .rate-year-month table { font-size:12px; }
  .rate-year-month th,.rate-year-month td { padding:7px 3px; }
  .rate-change table,.rate-conversions table { font-size:12px; }
  .rate-change th,.rate-change td,.rate-conversions th,.rate-conversions td { padding:8px 3px; }
}

/* Full archive and yearly summary */
.rate-weekend,.rate-year-month tr.rate-weekend td { background:#e5f0fc; }
.rate-year-month tr.rate-weekend td:first-child { border-left:3px solid #abcbed; }
.rate-year-summary { background:linear-gradient(125deg,#fff 55%,#f1f6ff); }
.rate-year-feature { padding:18px 0 20px; border-bottom:1px solid var(--rate-border); }
.rate-year-feature span,.rate-year-summary-grid span { display:block; color:var(--rate-muted); font-size:12px; }
.rate-year-feature strong { display:block; margin:5px 0; font-size:clamp(31px,4vw,46px); letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.rate-year-feature small,.rate-year-summary-grid small { display:block; color:var(--rate-muted); font-size:12px; }
.rate-year-feature .positive,.rate-year-summary-grid .positive { color:#137a53; }
.rate-year-feature .negative,.rate-year-summary-grid .negative { color:#bb4251; }
.rate-year-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding-top:18px; }
.rate-year-summary-grid div { min-width:0; padding:13px; background:#f6f8fb; border-radius:10px; }
.rate-year-summary-grid strong { display:block; margin:4px 0; font-size:17px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.rate-archive-chart { margin-bottom:18px; }
.rate-archive-chart-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; align-items:start; }
.rate-chart-controls { display:flex; flex-wrap:wrap; gap:6px; }
.rate-chart-controls button { background:white; color:var(--rate-blue); border:1px solid var(--rate-border); border-radius:9px; padding:7px 11px; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4; cursor:pointer; }
.rate-chart-controls button[aria-pressed="true"] { background:#e5f0fc; border-color:#b7d1ed; }
.rate-chart-controls button:hover { background:#f0f6ff; }
.rate-all-chart { height:360px; }
.rate-archive-index { margin-bottom:18px; }
.rate-archive-year-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.rate-archive-year-links a { padding:6px 10px; border:1px solid var(--rate-border); border-radius:8px; font-size:13px; text-decoration:none; }
.rate-archive-year-links a:hover { background:#eaf2fd; }
.rate-archive-year { margin-bottom:18px; scroll-margin-top:18px; }
.rate-archive-year-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:16px; }
.rate-archive-year-head h2 { margin:0; }
.rate-archive-year-head h2 a { text-decoration:none; }
.rate-archive-year-head>a { color:var(--rate-muted); font-size:12px; white-space:nowrap; }
.rate-archive-months { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.rate-archive-month { min-width:0; border:1px solid var(--rate-border); border-radius:12px; padding:14px; }
.rate-archive-month h3 { margin:0 0 12px; font-size:16px; }
.rate-archive-month h3 a { text-decoration:none; }
.rate-calendar { width:100%; table-layout:fixed; border-collapse:collapse; font-size:13px; text-align:center; }
.rate-calendar th,.rate-calendar td { width:14.285%; padding:5px 1px; }
.rate-calendar th { color:var(--rate-muted); font-size:11px; font-weight:600; }
.rate-calendar .calendar-weekend { background:#e5f0fc; }
.rate-calendar th.calendar-weekend { background:#d6e7f9; color:#365b85; }
.rate-calendar td a { display:block; padding:3px 0; border-radius:6px; text-decoration:none; }
.rate-calendar td a:hover { background:#d1e5fa; }
@media(max-width:960px) { .rate-archive-months { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .rate-archive-months { grid-template-columns:1fr; }
  .rate-archive-month { padding:12px; }
  .rate-all-chart { height:270px; }
  .rate-year-summary-grid strong { font-size:15px; }
  .rate-calendar { font-size:14px; }
}

.rate-chart-loading { min-height:300px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--rate-muted); font-size:14px; }
.rate-chart-loading[hidden],.rate-chart[hidden],.rate-chart-fallback[hidden] { display:none; }
.rate-spinner { width:22px; height:22px; border:3px solid #dbe8f7; border-top-color:#2b76c8; border-radius:50%; animation:rate-spin .8s linear infinite; }
@keyframes rate-spin { to { transform:rotate(360deg); } }
.rate-chart-note { margin:12px 0 0; padding:10px 12px; background:#f4f8fd; border-radius:9px; color:#4a5f77; font-size:13px; }
.rate-chart-controls button:disabled { opacity:.55; cursor:wait; }
.rate-chart-fallback button { color:var(--rate-blue); background:none; border:0; padding:0; font:inherit; text-decoration:underline; cursor:pointer; }
@media(max-width:600px) { .rate-chart-loading { min-height:250px; } }
@media(prefers-reduced-motion:reduce) { .rate-spinner { animation:none; } }
