/* OLIMP Archive v0.2.19 — competition ordering and centered home VS */
.oa-order-intro { margin-bottom: 26px; }
.oa-order-intro h1 { font-size: clamp(24px,3vw,45px); }
.oa-order-intro p { max-width: 850px; line-height: 1.5; }
.oa-order-season { padding: 24px; margin: 0 0 24px; border: 1px solid #d8dcdd; background: #fff; }
.oa-order-heading { display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px; }
.oa-order-heading h2 {font-size:clamp(15px,2vw,23px);margin:0;}
.oa-order-heading>span {font-size:10px;color:#686c70;white-space:nowrap;}
.oa-order-list {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.oa-order-item {display:flex;align-items:center;gap:14px;min-height:60px;border:1px solid #d8dcdd;padding:8px 12px;background:#f8f9f9;cursor:grab;}
.oa-order-item:focus-within,.oa-order-item:hover {border-color:#e51f2b;}
.oa-order-item.oa-dragging {opacity:.45;}
.oa-order-item strong {font-size:13px;flex:1;min-width:0;}
.oa-order-grip {font-size:23px;line-height:1;color:#777;user-select:none;}
.oa-order-number {display:grid;place-items:center;color:#e51f2b;font-size:11px;font-weight:800;width:26px;height:26px;background:white;border:1px solid #d8dcdd;flex-shrink:0;}
.oa-order-actions {display:flex;gap:5px;}
.oa-order-arrow {background:white;color:#15181a;border:1px solid #bbb;min-width:39px;min-height:36px;font-size:22px;cursor:pointer;}
.oa-order-arrow:hover,.oa-order-arrow:focus-visible {background:#111517;color:#fff;}
.oa-order-form {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:17px;}
.oa-order-help {font-size:12px;color:#696f72;}
.oa-order-form.oa-dirty .oa-order-help {color:#b7182a;font-weight:700;}
/* OLIMP v0.2.19 FIX1: VS is a real grid cell, never an absolute overlay. */
/* Desktop: center VS in the entire match row, keep dates and venue at the edges. */
@media (min-width: 1180px) {
  .match-list > .match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    align-items: center;
    position: relative;
    column-gap: 0;
  }
  .match-list > .match-row .teams-vs { display: contents; }
  .match-list > .match-row .dateblock {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .match-list > .match-row .team-title:first-child {
    grid-column: 1;
    padding: 0 24px 0 94px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .match-list > .match-row .vs {
    position: static;
    grid-column: 2;
    transform: none;
    justify-self: center;
    align-self: center;
    white-space: nowrap;
    z-index: auto;
    pointer-events: none;
  }
  .match-list > .match-row .team-title:last-child {
    grid-column: 3;
    padding: 0 clamp(185px, 16vw, 290px) 0 24px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .match-list > .match-row .match-meta {
    position: absolute;
    right: 69px;
    top: 50%;
    transform: translateY(-50%);
    width: 145px;
    min-width: 0;
  }
  .match-list > .match-row .row-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .match-list > .match-row .status {
    position: absolute;
    right: 230px;
    top: 50%;
    transform: translateY(-50%);
  }
}
/* Small desktop: preserve date/city columns and reserve an actual center cell. */
@media (min-width: 801px) and (max-width: 1179px) {
  .match-list > .match-row .teams-vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }
  .match-list > .match-row .vs {
    position: static;
    transform: none;
    justify-self: center;
    white-space: nowrap;
    z-index: auto;
    pointer-events: none;
  }
  .match-list > .match-row .team-title {
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
}
@media(max-width:600px) {
  .oa-order-season {padding:14px;}
  .oa-order-item {gap:7px;padding:8px;}
  .oa-order-grip {display:none;}
  .oa-order-arrow {min-width:35px;min-height:35px;}
  .oa-order-form .btn {width:100%;}
}
