/* Общие блоки страниц в системе «Федерация»: плитки с цифрами, шаги, плашки, статусы, карточки людей и клубов,
   этапы серии, полосы фона. Без теней, градиентов и скруглений: рамка, толстая цветная линия сверху, крупная цифра.
   Иконки — inline-спрайт brand/icons/sprite.svg (includes/icon.html). */

/* ---------- Иконка в квадрате ---------- */
.ichip { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--mist); color: var(--blue); }
.ichip .ico { width: 22px; height: 22px; vertical-align: 0; }
.ichip-red { color: var(--red-dark); background: #fbeeee; }
.ichip-ok { color: var(--ok); background: #e9f5ee; }
.ichip-warn { color: var(--warn); background: #fbf3e4; }
.ichip-dark { background: var(--brand); color: #fff; }

/* ---------- Плитки с цифрами ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-top: 0; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 20px 20px 18px; border-top: 4px solid var(--blue); background: var(--paper);
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); color: inherit; text-decoration: none; }
a.tile:hover { background: var(--mist); color: inherit; }
.tile-red { border-top-color: var(--red); } .tile-ok { border-top-color: var(--ok); } .tile-warn { border-top-color: #d99a1e; } .tile-grey { border-top-color: var(--grey); }
.tile-b { min-width: 0; }
.tile-v { display: block; font: 600 32px/1.05 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.tile-v small { font: 600 15px/1 var(--font); letter-spacing: 0; color: var(--ink2); margin-left: 4px; }
.tile-v.tile-v-s { font-size: 22px; line-height: 1.2; }
.tile-l { display: block; margin-top: 6px; font: 600 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.tile-n { display: block; margin-top: 6px; font-size: 14px; color: var(--ink2); }
.tile-n.hot { color: var(--red-dark); font-weight: 600; }
.tiles-dark { border-color: rgba(255, 255, 255, .22); }
.tiles-dark .tile { background: transparent; color: #fff; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .22); }
.tiles-dark .tile-l, .tiles-dark .tile-n { color: rgba(255, 255, 255, .78); }
@media (max-width: 600px) {
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tiles.tiles-1 { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: column; gap: 10px; padding: 16px 14px 14px; }
  .tile .ichip { width: 36px; height: 36px; }
  .tile-v { font-size: 26px; } .tile-v.tile-v-s { font-size: 18px; }
}

/* ---------- Шаги 1-2-3 ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; border-left: 1px solid var(--line); }
.flow-i { position: relative; min-width: 0; padding: 22px 22px 22px; border: 1px solid var(--line); border-left: 0; margin: 0 0 -1px; counter-increment: flow; }
.flow-i::before { content: counter(flow); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; background: var(--brand); color: #fff; font: 600 20px/1 var(--serif); }
.flow-t { display: block; font: 600 18px/1.3 var(--font); margin-bottom: 6px; }
.flow-i p, .flow-d { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.flow-i .when { display: inline-block; margin-top: 10px; font: 600 13px/1.3 var(--font); color: var(--blue); }
.flow-i.done::before { content: "\2713"; background: var(--ok); }
.flow-i.now { background: var(--mist); }
.flow-i.now::before { background: var(--red); }
@media (max-width: 600px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-i { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 16px; }
  .flow-i::before { grid-row: span 3; margin: 0; }
}

/* ---------- Плашки «Важно / Срок / Взнос» ---------- */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--paper); margin: 0 0 16px; }
.callout > .ico { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.callout-b { min-width: 0; }
.callout-b > :last-child { margin-bottom: 0; }
.callout-t { display: block; font-weight: 600; margin-bottom: 2px; }
.callout-warn { border-left-color: #d99a1e; background: #fdf8ee; } .callout-warn > .ico { color: var(--warn); }
.callout-red { border-left-color: var(--red); background: #fdf3f3; } .callout-red > .ico { color: var(--red-dark); }
.callout-ok { border-left-color: var(--ok); background: #f0f8f3; } .callout-ok > .ico { color: var(--ok); }
.callout-mist { background: var(--mist); }

/* ---------- Статус турнира ---------- */
/* Без плашки: цветная точка и текст цветом статуса; «идут бои» — точка пульсирует. На тёмной обложке текст белый */
.status { --dot: currentColor; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--font); white-space: nowrap; color: var(--ink2); }
.status::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--dot); }
.status-open { color: var(--ok); }
.status-live { color: var(--red-ink); }
.status-live::before { animation: status-ring 1.8s ease-out infinite; }
.status-soon { color: var(--blue); }
.status-done { color: var(--ink3); }
.table .status { font-size: 14px; }
.status-on-dark { color: #fff; }
.status-on-dark.status-open { --dot: #3ecf7a; }
.status-on-dark.status-live { --dot: #ff5c5c; }
.status-on-dark.status-soon { --dot: #a9a3ff; }
.status-on-dark.status-done { --dot: rgba(255, 255, 255, .6); }
@keyframes status-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dot) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .status-live::before { animation: none; } }

/* ---------- Ещё не в паре (кабинеты, заявка) ---------- */
.awaiting { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--mist); }
.awaiting-h { margin: 0 0 8px; font-weight: 600; }
.awaiting-only .awaiting-h { font-weight: 400; color: var(--ink2); }
.awaiting-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.awaiting-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }

/* ---------- Полосы фона: ритм страницы ---------- */
.band { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--brand); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .kicker { color: rgba(255, 255, 255, .78); }
.band-dark a:not(.btn) { color: #fff; }
.band-pad { padding: 56px 0; }
@media (max-width: 900px) { .band-pad { padding: 36px 0; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 4px 0 0; }
.sec-head p { margin: 8px 0 0; color: var(--ink2); max-width: 62ch; }
.band-dark .sec-head p { color: rgba(255, 255, 255, .82); }

/* ---------- Карточки клубов и людей ---------- */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pcard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--paper); color: inherit; text-decoration: none; }
a.pcard:hover, .pcard:hover { border-color: var(--ink); border-top-color: var(--blue); color: inherit; }
.pcard-top { display: flex; gap: 14px; align-items: center; padding: 16px 16px 14px; min-width: 0; }
.pcard-name { display: block; font: 600 17px/1.25 var(--font); overflow-wrap: anywhere; color: var(--ink); }
.pcard a.pcard-name { text-decoration: none; }
.pcard a.pcard-name::after { content: ""; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.pcard-sub .ico { width: 15px; height: 15px; color: var(--ink3); vertical-align: 0; }
.pcard-stats { display: flex; margin-top: auto; border-top: 1px solid var(--line); }
.pcard-stats > span { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; color: var(--ink3); line-height: 1.2; }
.pcard-stats > span + span { border-left: 1px solid var(--line); }
.pcard-stats b { display: block; font: 600 20px/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.pcard-stats .place { width: 24px; height: 24px; font-size: 12px; vertical-align: -6px; }
.pcard .ava { width: 56px; height: 56px; }
.pcard .ava-initials { font-size: 20px; }
/* В карточках клубов и тренеров и в шапке профиля монограмма — эмблемой: фирменный синий, белые буквы, красная полоса снизу */
.pcard .ava-initials, .profile-head .ava-initials { color: #fff; background: linear-gradient(145deg, #4a41a6, var(--brand) 55%, var(--brand-dark));
  box-shadow: inset 0 -3px 0 var(--red), inset 0 0 0 1px rgba(255, 255, 255, .1); text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.profile-head .ava-initials { box-shadow: inset 0 -5px 0 var(--red), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ava-logo { background: #fff; border: 1px solid var(--line); }
.ava-logo img { width: 100%; height: 100%; object-fit: contain; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.pcard-b { min-width: 0; }
.pcard-mid { font-weight: 400; color: var(--ink2); }
.pcard .pcard-club { position: relative; z-index: 1; color: inherit; }
.pcard .pcard-club:hover { color: var(--blue); }
.pcards > .empty { grid-column: 1 / -1; list-style: none; }
@media (max-width: 600px) {
  .pcards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcard-top { padding: 12px; }
  .pcard .ava { width: 48px; height: 48px; }
  .pcard-stats > span { padding: 8px 12px; }
  .pcard-stats b { display: inline; font-size: 17px; margin-right: 4px; }
}

/* ---------- Шапка профиля: фото/логотип + имя + плитки ---------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.profile-head .ava { width: 120px; height: 120px; }
.profile-head .ava-initials { font-size: 40px; }
.profile-head .ava-photo { width: 140px; height: auto; aspect-ratio: 4 / 5; }
.profile-meta a { color: var(--ink); font-weight: 600; }
.profile-head h1 { margin: 6px 0 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink2); }
.profile-meta > span, .profile-meta > a { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .ico { color: var(--ink3); }
.profile-tiles { margin-top: 28px; }
@media (max-width: 600px) {
  .profile-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .profile-head .ava { width: 88px; height: 88px; }
}

/* ---------- Этапы серии ---------- */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.tl { position: relative; min-width: 0; padding: 30px 16px 0 0; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: var(--line); }
.tl::after { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; background: var(--paper); border: 3px solid var(--grey); box-sizing: border-box; }
.tl.past::before, .tl.past::after { background: var(--blue); border-color: var(--blue); }
.tl.cur::after { background: var(--red); border-color: var(--red); }
.tl-d { display: block; font: 600 22px/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.tl-n { display: block; margin-top: 4px; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tl-n a { color: inherit; text-decoration: none; } .tl-n a:hover { color: var(--blue); text-decoration: underline; }
.tl-s { display: block; margin-top: 2px; font-size: 13px; color: var(--ink3); }
.tl.cur .tl-s { color: var(--red-dark); font-weight: 600; }
@media (max-width: 700px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; }
  .tl { padding: 0 0 18px 32px; }
  .tl::before { left: 7px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tl::after { top: 2px; }
  .tl:last-child::before { display: none; }
}

/* ---------- Фото рядами без обрезки (как во Flickr): ряды одной высоты, каждый кадр в своих пропорциях ----------
   <div class="jg"><a style="--w:ширина;--h:высота"><i></i><img></a>…</div>. Ряд заполняет ширину, последний не растягивается.
   Высота ряда — --rh. Блок кадра уже в пропорциях снимка, поэтому object-fit ничего не срезает. */
.jg { --rh: 200px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.jg::after { content: ""; flex-grow: 999999; }
.jg > a { --w: 3; --h: 2; position: relative; display: block; flex-grow: calc(var(--w) * 100 / var(--h)); width: calc(var(--w) * var(--rh) / var(--h)); max-width: 100%; overflow: hidden; background: var(--slot); color: #fff; }
.jg > a > i { display: block; padding-bottom: calc(var(--h) / var(--w) * 100%); }
.jg > a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.jg-c { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 13px; line-height: 1.3; color: #fff; background: linear-gradient(180deg, rgba(14, 12, 46, 0), rgba(14, 12, 46, .85)); opacity: 0; transition: opacity .2s; }
@media (hover: hover) {
  .jg > a:hover > img { opacity: .9; }
  .jg > a:hover .jg-c, .jg > a:focus-visible .jg-c { opacity: 1; }
}
@media (max-width: 600px) { .jg { --rh: 130px; gap: 4px; } }

/* ---------- Пустое состояние ---------- */
.empty-box { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px dashed var(--slot-line); background: var(--mist); }
.empty-box .ichip { background: var(--paper); }
.empty-box h3 { margin: 0 0 4px; font: 600 18px/1.3 var(--font); }
.empty-box p { margin: 0; color: var(--ink2); }
.empty-box .btn { margin-top: 14px; }
@media (max-width: 600px) { .empty-box { flex-direction: column; padding: 18px; } }
/* Короткое пустое состояние строкой (p.empty, «Боёв пока нет») — плашкой в тон .empty-box: пунктир, подложка, значок «пусто» */
p.empty, div.empty { position: relative; max-width: 720px; margin: 16px 0 0; padding: 16px 18px 16px 52px; border: 1px dashed var(--slot-line); background: var(--mist); color: var(--ink2); line-height: 1.45; }
p.empty::before, div.empty::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--blue); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5l1.5-3h5'/%3E%3Cpath d='M5.5 5h13L21 13v6H3v-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5l1.5-3h5'/%3E%3Cpath d='M5.5 5h13L21 13v6H3v-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
[role="tabpanel"] > p.empty { padding-top: 16px; }
.pub-wide .pub-area > p.empty { padding-left: 46px; }
.pub-wide .pub-area > p.empty::before { left: 14px; }
@media (max-width: 600px) { p.empty, div.empty { padding: 14px 14px 14px 46px; } p.empty::before, div.empty::before { left: 14px; } }
@media print { p.empty, div.empty { border: 0; background: none; padding-left: 0; } p.empty::before, div.empty::before { display: none; } }

/* ---------- Карточки-разделы с иконкой (помощь, «О ЦРЕ», кабинет) ---------- */
.icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.icard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--paper); color: inherit; text-decoration: none; }
a.icard:hover { border-color: var(--ink); border-top-color: var(--blue); color: inherit; }
.icard h3 { margin: 0; font: 600 19px/1.25 var(--font); }
.icard p { margin: 0; color: var(--ink2); font-size: 15px; }
.icard .lnk { align-self: flex-start; margin-top: auto; }
.icard-red { border-top-color: var(--red); }
@media (max-width: 600px) { .icards { grid-template-columns: minmax(0, 1fr); gap: 12px; } .icard { padding: 18px; } }

/* ---------- Ключ — значение с иконкой (контакты) ---------- */
.kv-ico { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.kv-ico li { display: flex; gap: 14px; align-items: center; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv-ico .k { display: block; font: 600 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.kv-ico .v { display: block; font-weight: 600; overflow-wrap: anywhere; }

.about-nums { margin-top: 8px; }
.about-legal { margin: 16px 0 0; }
.kv-ico a.v { color: var(--ink); text-decoration: none; }
.kv-ico a.v:hover { color: var(--blue); text-decoration: underline; }

.cab-dash > li { display: flex; }
.cab-dash > li > .tile { flex: 1; }

@media print {
  .band, .band-dark { background: none; color: inherit; border: 0; }
  .status-live::before { animation: none; }
}

/* ---------- Тройка лидеров рейтинга ---------- */
/* На ПК — пьедестал 2 · 1 · 3 (по позиции в списке — при равенстве мест тоже), первый выше; на телефоне — по порядку строками. Медаль: лента цветов ЦРЕ + металлический диск */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
/* Цвета металла — и на карточке, и на самой медали: .medal-N работает и вне пьедестала (главная) */
.podium-i, .medal-1 { --m1: #fff4c2; --m2: #f0c94a; --m3: #b8871a; --m-ink: #4a3700; }
.podium-2, .medal-2 { --m1: #ffffff; --m2: #cfd3da; --m3: #8d939e; --m-ink: #2f333b; }
.podium-3, .medal-3 { --m1: #fbe3cc; --m2: #d39a66; --m3: #9a5f2e; --m-ink: #4a2810; }
.podium-i { --tint: #fdf6dd;
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 18px 16px 16px; text-align: center;
  border: 1px solid var(--line); border-bottom: 3px solid var(--m3); background: linear-gradient(180deg, var(--tint), var(--paper) 75%); }
.podium-2 { --tint: #f1f2f5; }
.podium-i:nth-child(2) { order: -1; }
.podium-3 { --tint: #f9ece1; }
.podium-1 { padding-top: 26px; padding-bottom: 22px; }
.medal { position: relative; display: block; flex: none; width: 60px; padding-top: 22px; }
.medal-r { position: absolute; top: 0; left: 50%; width: 34px; height: 30px; margin-left: -17px;
  background: linear-gradient(90deg, var(--brand) 0 36%, var(--red) 36% 64%, var(--brand) 64%);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 80%, 22% 100%); }
.medal-d { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--m1), var(--m2) 46%, var(--m3) 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .38), inset 0 0 0 5px rgba(0, 0, 0, .14), 0 3px 8px rgba(0, 0, 0, .2);
  font: 700 26px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--m-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.podium-1 .medal { width: 76px; padding-top: 26px; }
.podium-1 .medal-r { width: 42px; height: 36px; margin-left: -21px; }
.podium-1 .medal-d { width: 76px; height: 76px; font-size: 34px; }
/* Маленькая медаль — строки рейтинга на главной */
.medal-sm { width: 36px; padding-top: 13px; }
.medal-sm .medal-r { width: 20px; height: 18px; margin-left: -10px; }
.medal-sm .medal-d { width: 36px; height: 36px; font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), inset 0 0 0 3px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .2); }
/* Медали строкой: металлический кружок + число (плитка «Медали» клуба) */
.mdots { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.mdots > span { display: inline-flex; align-items: center; gap: 6px; }
.mdot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--m1), var(--m2) 46%, var(--m3) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .18); }
.podium-b { min-width: 0; max-width: 100%; }
.podium-n { display: block; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.25; }
.podium-1 .podium-n { font-size: 19px; }
.podium-n:hover { color: var(--blue); text-decoration: underline; }
.podium-s { display: block; margin-top: 3px; font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.podium-pt { font-size: 13px; color: var(--ink3); line-height: 1; }
.podium-pt b { font: 600 28px/1 var(--serif); color: var(--ink); }
@media (max-width: 800px) {
  .podium { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .podium-i, .podium-1 { flex-direction: row; gap: 14px; padding: 10px 14px; text-align: left; }
  .podium-i:nth-child(2) { order: 0; }
  .podium-b { flex: 1; }
  .podium-i .medal { width: 44px; padding-top: 16px; }
  .podium-i .medal-r { width: 24px; height: 22px; margin-left: -12px; }
  .podium-i .medal-d { width: 44px; height: 44px; font-size: 20px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .38), inset 0 0 0 4px rgba(0, 0, 0, .14), 0 2px 5px rgba(0, 0, 0, .2); }
  .podium-n, .podium-1 .podium-n { font-size: 16px; }
  .podium-pt { flex: none; text-align: right; }
  .podium-pt b { display: block; font-size: 24px; }
}
@media print { .podium { display: none; } }

.series-tl { margin: 20px 0 28px; }
.staff-group { margin: 28px 0 12px; font: 600 13px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.staff-cards .icard { height: 100%; gap: 8px; }
.staff-cards .icard h3 { font-size: 17px; }
.staff-cards .icard h3 a { color: var(--ink); text-decoration: none; }
.staff-cards .icard h3 a::after { content: ""; position: absolute; inset: 0; }
.staff-cards .icard { position: relative; }
.staff-cards .icard:hover { border-color: var(--ink); border-top-color: var(--blue); }
.staff-cards .icard .mark { position: relative; z-index: 1; margin-left: 6px; font-size: 12px; }

/* ---------- Тёмная тема (data-theme="dark", см. app.css): светлые подложки плашек — тёмными оттенками ---------- */
[data-theme="dark"] .ichip-red { background: rgba(255, 107, 112, .13); }
[data-theme="dark"] .ichip-ok { background: rgba(76, 196, 126, .13); }
[data-theme="dark"] .ichip-warn { background: rgba(240, 169, 74, .13); }
[data-theme="dark"] .callout-warn { background: rgba(240, 169, 74, .08); }
[data-theme="dark"] .callout-red { background: rgba(255, 107, 112, .08); }
[data-theme="dark"] .callout-ok { background: rgba(76, 196, 126, .08); }
/* Тройка лидеров: медали те же, подложка — едва тёплая/холодная */
[data-theme="dark"] .podium-i { --tint: rgba(201, 162, 39, .14); }
[data-theme="dark"] .podium-2 { --tint: rgba(154, 160, 171, .12); }
[data-theme="dark"] .podium-3 { --tint: rgba(184, 122, 69, .14); }
