/* Blocks of the left column of an article: our offer, exchange rates, world time. */

.article-blocks { display: grid; gap: 16px; }
.aside-card {
  padding: 16px 18px; background: #fff; border: 1px solid var(--tcts-line); border-radius: var(--tcts-radius);
  font-size: var(--toc-font, var(--tcts-fs-m, 15px));
}
.aside-card__title { margin: 0 0 10px; color: var(--tcts-muted); font-size: var(--tcts-fs-s, 13px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aside-card p { margin: 0 0 10px; }
.aside-card .btn { width: 100%; justify-content: center; }

.aside-offer { background: var(--tcts-dark, #0b3b27); border-color: transparent; color: #fff; }
.aside-offer .aside-card__title { color: var(--tcts-on-dark, #cfe3d6); }
.aside-offer__list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.aside-offer__list li { position: relative; padding-left: 20px; line-height: 1.35; }
.aside-offer__list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--tcts-accent, #f0b04a); }

.rates-list, .time-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rates-list li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 4.5em; grid-template-areas: "code chart val" "name chart val"; gap: 0 8px; align-items: center; padding: 5px 0; line-height: 1.2; border-bottom: 1px solid var(--tcts-line); }
.rates-list li:last-child { border-bottom: 0; }
.aside-rates[data-kind="crypto"] .rates-list li { grid-template-columns: minmax(0, 1fr) 56px 6.6em; }
.rates-code { grid-area: code; font-weight: 800; }
.rates-name { grid-area: name; color: var(--tcts-muted); font-size: .76em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rates-val { grid-area: val; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates-val small { display: block; font-size: .74em; font-weight: 700; }
.rates-up { color: #b3261e; }
.rates-down { color: #1b7f4b; }
.rates-chart { grid-area: chart; width: 100%; max-width: 60px; height: 24px; justify-self: center; align-self: center; }
.rates-chart polyline { fill: none; stroke: var(--tcts-brand, #146c43); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.aside-note { margin: 8px 0 0 !important; color: var(--tcts-muted); font-size: .8em; }

.time-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--tcts-line); }
.time-list li:last-child { border-bottom: 0; }
.time-place { display: flex; align-items: center; gap: 8px; min-width: 0; }
.time-city { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.time-wx { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--tcts-muted); font-size: .88em; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-wx[hidden] { display: none; }
.wx-i { display: inline-flex; color: var(--tcts-brand, #146c43); }
.wx-i svg { width: 19px; height: 19px; }
.time-clock { font-variant-numeric: tabular-nums; font-weight: 800; }
.time-day { width: 14px; height: 14px; border-radius: 50%; background: #cfd8d2; }
.time-day.is-day { background: var(--tcts-accent, #f0b04a); box-shadow: 0 0 0 3px rgba(240, 176, 74, .25); }
.time-day.is-night { background: #3b4a8f; box-shadow: inset -4px -2px 0 0 #fff; border: 1px solid #3b4a8f; }

.article-layout.has-aside { grid-template-columns: var(--toc-w, 280px) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) {
  .article-layout.has-aside { grid-template-columns: minmax(0, 1fr); }
  .article-layout.has-aside .article-side { display: contents; }
  .article-layout.has-aside .article-toc { order: 0; }
  .article-layout.has-aside .article-body { order: 1; }
  .article-layout.has-aside .article-blocks { order: 2; }
}
@media print { .article-blocks { display: none !important; } }
