/* Rublay shared: fonts, tokens, base, sign band, signs, the terms plate. Pages add their own sheet. */
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url(/static/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url(/static/fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 400 800; font-display: swap; src: url(/static/fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --ground: #eef1f3;
  --panel: #ffffff;
  --navy: #10202e;
  --navy-2: #44525f;
  --navy-lift: #22364a;
  --rule: #c5ced5;
  --on-navy: #b9c5cf;
  --red: #d52b1e;
  --red-dark: #b32116;
  --red-text: #bd2417;
  --green: #00916e;
  /* reserved for the locked rate, nowhere else */
  --lock: #f2b705;
  --font: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--navy-2) var(--ground); scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--ground); color: var(--navy);
  font: 18px/1.6 var(--font); font-variant-numeric: tabular-nums;
}
::selection { background: var(--navy); color: #fff; }
h1, h2, p, dl, dd, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
a:focus-visible, .sign:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.red { color: var(--red-text); }

/* sign band: header and footer */
.band { background: var(--navy); color: #fff; }
.band-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.band a:focus-visible { outline-color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.brand.small { font-size: 20px; }
.mark { width: 48px; height: 24px; }
.mark rect { fill: var(--red); }
.mark circle { fill: #fff; }
.mark .dot { fill: var(--navy); }
.line-name { color: var(--on-navy); font-size: 16px; }
.band-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 16px; }
.band-nav a { text-decoration: none; padding: 6px 0; }
.band-nav a:hover { text-decoration: underline; }
.band-nav .strong { background: var(--red); padding: 8px 16px; border-radius: 2px; font-weight: 700; }
.band-nav .strong:hover { background: var(--red-dark); text-decoration: none; }

.legend { background: var(--panel); border-radius: 2px; overflow: hidden; align-self: start; }
.legend h2 { background: var(--navy); color: #fff; font-size: 20px; font-weight: 700; padding: 12px 24px; }
.legend dl { padding: 4px 24px 12px; }
/* the value is centred on its description, which may wrap to two lines */
.legend dl div { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; padding: 12px 0; }
.legend dl div + div { border-top: 2px solid var(--navy); }
.legend dt { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.legend dd { font-size: 16px; line-height: 1.4; color: var(--navy-2); }

.sign {
  display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 28px;
  border-radius: 2px; font-size: 21px; font-weight: 700; text-decoration: none; color: #fff;
  transition: background-color 160ms cubic-bezier(.16, 1, .3, 1);
}
.sign svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.sign.go { background: var(--red); }
.sign.go:hover { background: var(--red-dark); }
.sign.go:hover svg { transform: translateX(4px); }
.sign.alt { background: var(--navy); }
.sign.alt:hover { background: var(--navy-lift); }

.foot .band-in { min-height: 88px; }
.foot-col { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
/* brand and columns share the row in equal parts */
.foot-grid { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
.foot-grid > .foot-brand, .foot-grid > .foot-col { flex: 1 1 0; min-width: 0; }
.foot-brand p { margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--on-navy); max-width: 22em; }
.foot-col h2 { font-size: 14px; font-weight: 700; opacity: .7; margin-bottom: 4px; }
.foot-col a { text-decoration: none; padding: 4px 0; }
.foot-col a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .sign, .sign svg { transition: none; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .band-in { gap: 16px; min-height: 60px; }
  .brand { font-size: 22px; }
  .mark { width: 36px; height: 18px; }
  .band-nav { gap: 16px; font-size: 16px; }
  header.band .band-nav a:not(.strong):not([href="/login"]) { display: none; }
  .foot .band-in { flex-wrap: wrap; padding: 20px 16px; }
  .foot .band-nav { margin-left: 0; flex-wrap: wrap; }
  .foot-grid > .foot-brand { flex: 1 1 100%; }
  .foot-grid > .foot-col { flex: 1 1 40%; }
  .sign { min-height: 56px; font-size: 18px; padding: 0 22px; }
}
