/* Milano Cortina 2026 — final light/ice visual layer.
   Loaded last so the Olympic page cannot fall back to the legacy dark shell. */
body.v15-og-active,
body.v15-og-active>.wrap,
body.v15-og-active #comp-og26,
#comp-og26,
#comp-og26 .og26-view,
#comp-og26 .og26-groups{
  background:#fff!important;
  background-image:none!important;
  color:#0b2d55!important;
}

/* Hero: keep the Olympic artwork, remove the black/navy wash. */
#comp-og26 .v15-og-titlebar{
  border-color:#c7dce9!important;
  background:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.84) 48%,rgba(238,248,253,.62) 100%),
    url('olympics_ice_command_center_v1521.webp?v=20260831-1530') center 56%/cover no-repeat!important;
  background-blend-mode:normal!important;
  box-shadow:0 12px 34px rgba(49,105,138,.10)!important;
}
#comp-og26 .v15-og-titlebar::before{
  background:radial-gradient(ellipse at 45% 0%,rgba(151,220,249,.20),rgba(209,240,253,.09) 38%,transparent 72%)!important;
}
#comp-og26 .v15-og-titlebar::after{
  background:linear-gradient(90deg,transparent,#92d8f5 18%,#ff2e67 52%,#92d8f5 82%,transparent)!important;
  box-shadow:none!important;
  opacity:.48!important;
}
#comp-og26 .v15-og-titlebar h1,
#comp-og26 .v15-og-titlebar h1 span,
#comp-og26 .v15-og-statline{color:#0b2d55!important;text-shadow:none!important}
#comp-og26 .v15-og-titlebar h1 span{color:#1677a8!important}
#comp-og26 .v15-og-titlebar p{color:#4d6879!important;text-shadow:none!important}
#comp-og26 .v15-og-titlebar .v15-eyebrow{color:#ff2e67!important;text-shadow:none!important}
#comp-og26 .v15-og-statline i{background:#49bce8!important;box-shadow:none!important}

/* Facts and local tabs. */
#comp-og26 .v15-og-facts{
  border-color:#d5e5ee!important;
  background:#f4f9fc!important;
  background-image:none!important;
  box-shadow:none!important;
}
#comp-og26 .v15-og-facts span{
  border-color:#d8e7ef!important;
  background:#fff!important;
  color:#496477!important;
}
/* 2026-09-22 · local-tab colors moved to nhl_41_v227.css (#comp-og26 .og26-local-nav and friends),
   which now matches NHL/PL/UCL/WC26's subnav one-to-one instead of this page's own light-blue scheme.
   Removed here rather than left to lose a specificity tie (this file loads last, so an equal-specificity
   rule here would have won over the new one). */

/* Groups, calendar, seeding and playoff. */
#comp-og26 .og26-group-card,
#comp-og26 .og26-stage,
#comp-og26 .og26-seed-head,
#comp-og26 .og26-seed,
#comp-og26 .og26-playoff-note,
#comp-og26 .og26-match,
#comp-og26 .og26-savebar,
#comp-og26 .og26-player-lock{
  background:#fff!important;
  background-image:none!important;
  border-color:#d8e5ed!important;
  color:#102c3e!important;
  box-shadow:none!important;
}
#comp-og26 .og26-group-card>header,
#comp-og26 .og26-stage>header,
#comp-og26 .og26-match>header{
  background:#eef7fb!important;
  background-image:none!important;
  border-color:#d7e6ef!important;
  color:#0b2d55!important;
}
#comp-og26 .og26-group-card>header span,
#comp-og26 .og26-stage>header span,
#comp-og26 .og26-seed-head span,
#comp-og26 .og26-date span,
#comp-og26 .og26-match>header small,
#comp-og26 .og26-team small,
#comp-og26 .og26-playoff-note span{
  color:#698091!important;
}
#comp-og26 .og26-team b,
#comp-og26 .og26-date b,
#comp-og26 .og26-seed b,
#comp-og26 .og26-stage b{color:#102c3e!important}
#comp-og26 .og26-group-card th,
#comp-og26 .og26-group-card td,
#comp-og26 table,
#comp-og26 th,
#comp-og26 td{
  background:#fff!important;
  color:#17384d!important;
  border-color:#e3edf2!important;
}
#comp-og26 th{background:#f3f8fb!important;color:#607789!important}
#comp-og26 .og26-match-main{background:#fff!important;color:#17384d!important}
#comp-og26 .og26-match select,
#comp-og26 .og26-score input,
#comp-og26 input,
#comp-og26 select{
  background:#fff!important;
  color:#102c3e!important;
  -webkit-text-fill-color:#102c3e!important;
  border-color:#b9cfdb!important;
}
#comp-og26 .og26-savebar span{color:#61798a!important;opacity:1!important}
#comp-og26 .og26-savebar button{
  background:#eaf6fc!important;
  color:#0b5f8d!important;
  border:1px solid #b8dced!important;
}

/* Statistics: eliminate every legacy dark surface. */
#comp-og26 .og26-stats-hero{
  border-color:#c9e0ec!important;
  background:radial-gradient(circle at 84% 18%,rgba(104,202,241,.16),transparent 34%),linear-gradient(135deg,#fff,#f1f9fd 62%,#eaf6fb)!important;
  box-shadow:0 14px 34px rgba(49,105,138,.09)!important;
}
#comp-og26 .og26-stats-hero:after{color:rgba(31,136,185,.055)!important}
#comp-og26 .og26-stats-hero span{color:#1687bb!important}
#comp-og26 .og26-stats-hero h2{color:#0b2d55!important}
#comp-og26 .og26-stats-hero p{color:#587181!important}
#comp-og26 .og26-stats-summary>div{
  border-color:#d6e5ed!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:none!important;
}
#comp-og26 .og26-stats-summary span{color:#6b8292!important}
#comp-og26 .og26-stats-summary b{color:#0b2d55!important}
#comp-og26 .og26-stats-summary small{color:#7890a0!important}
#comp-og26 .og26-stat-card,
#comp-og26 .og26-stats-match{
  border-color:#d7e5ed!important;
  background:#fff!important;
  background-image:none!important;
  color:#17384d!important;
  box-shadow:none!important;
}
#comp-og26 .og26-stat-card>header,
#comp-og26 .og26-stats-match footer,
#comp-og26 .og26-match-protocol-foot{
  border-color:#dce8ee!important;
  background:#f4f9fc!important;
  background-image:none!important;
}
#comp-og26 .og26-stat-card>header span{color:#1687bb!important}
#comp-og26 .og26-stat-card>header b,
#comp-og26 .og26-stats-stage b,
#comp-og26 .og26-leader-list span b,
#comp-og26 .og26-stats-team b,
#comp-og26 .og26-stats-match-main>strong{color:#12364d!important}
#comp-og26 .og26-stats-stage span,
#comp-og26 .og26-leader-list strong,
#comp-og26 .og26-leader-list span small,
#comp-og26 .og26-stats-match-main>strong small,
#comp-og26 .og26-stats-match footer small,
#comp-og26 .og26-stat-empty,
#comp-og26 .og26-stats-tbd{color:#718898!important}
#comp-og26 .og26-leader-list>div{border-color:#e6eef3!important}
#comp-og26 .og26-leader-list>div.og26-leader-top10{
  background:#f0f9fd!important;
  box-shadow:inset 3px 0 0 #64c7ee!important;
}
#comp-og26 .og26-leader-list>div.og26-leader-top10 strong,
#comp-og26 .og26-leader-list em{color:#1687bb!important}
#comp-og26 .og26-stats-match.has-stats{border-color:#a7d9c5!important}
#comp-og26 .og26-stats-match button,
#comp-og26 .og26-match-protocol-foot button{
  border-color:#b9d8e7!important;
  background:#fff!important;
  color:#0b5f8d!important;
}
#comp-og26 .og26-stats-match button:hover,
#comp-og26 .og26-match-protocol-foot button:hover{background:#eaf6fc!important;border-color:#75c8ec!important}

/* Protocol modal is light as well. */
.og26-stats-backdrop{background:rgba(232,244,250,.88)!important;backdrop-filter:blur(8px)!important}
.og26-stats-sheet{
  border-color:#bfd8e6!important;
  background:#fff!important;
  color:#12364d!important;
  box-shadow:0 30px 90px rgba(45,93,119,.20)!important;
}
.og26-stats-close{border-color:#bfd8e6!important;background:#fff!important;color:#0b5f8d!important}
.og26-protocol-kicker{color:#1687bb!important}
.og26-protocol-head strong,
.og26-protocol-head .og26-stats-team b,
.og26-protocol-owners b,
.og26-goal-row b,
.og26-protocol-empty b{color:#12364d!important}
.og26-protocol-head strong small,
.og26-protocol-meta,
.og26-protocol-owners span,
.og26-goal-row small,
.og26-goal-row p,
.og26-protocol-empty,
.og26-stats-loading{color:#718898!important}
.og26-protocol-owners,
.og26-goal-row,
.og26-protocol-empty{
  border-color:#dce8ee!important;
  background:#f7fbfd!important;
  color:#17384d!important;
}
.og26-protocol-confirmed{color:#269767!important}
.og26-goal-row>strong{color:#1687bb!important}

@media(max-width:600px){
  #comp-og26 .v15-og-titlebar{
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(245,251,254,.80)),url('olympics_ice_command_center_v1521.webp?v=20260831-1530') 68% center/cover no-repeat!important;
  }
  #comp-og26 .v15-og-titlebar p{color:#506b7c!important}
}

/* 2026-09-16 · remove retired Olympic intro block. */
#comp-og26 .v15-og-titlebar,
#comp-og26 .v15-og-facts{
  display:none!important;
}

/* 2026-09-16 · collapse the obsolete dark top gutter after intro removal. */
body.v15-og-active #comp-og26 .v15-unified-main.v15-tournament-main{
  padding-top:0!important;
  margin-top:0!important;
  background:#fff!important;
}
body.v15-og-active #comp-og26 .v15-tournament-content,
body.v15-og-active #comp-og26 .og26-local-nav{
  margin-top:0!important;
}

/* 2026-09-16 · remove the actual 38px outer shell gap (keeps the group/playoff
   content flush with the top -- do not restore this one). */
body.v15-og-active #comp-og26 > .v15-shell{
  margin-top:0!important;
}
/* 2026-09-22 · the rule above also pulled the sidebar (and its brand logo) up
   with the content, 38px above where every other section's logo sits. Put
   that 38px back on the sidebar alone, at the same breakpoint the base
   .v15-shell/.v15-unified-shell/.v15-tournament-shell rule uses
   (home_results_phone_height_v1.css), so the logo lines up with NHL/PL/UCL/
   WC26 again without moving the tables below it. */
@media(min-width:901px){
  body.v15-og-active #comp-og26 > .v15-shell > .v15-sidebar{
    margin-top:38px!important;
  }
}

/* 2026-09-22 · Group table (Группы tab): team names ("Швейцария", "Словакия", "Финляндия" --
   the longest, 10 letters) were ellipsis-truncated to a single letter ("Ш…"). Root cause: the
   table used the browser's default (auto) column layout, which grows every column to fit its
   own widest cell with no wrapping (olympics26_v138.css sets white-space:nowrap on every th/td) --
   so the 3-letter headers "OTW"/"OTL" alone claimed 42px/38px, more than the actual single-digit
   values ever need, while "Сборная" (name) was squeezed to ~68px total, most of which the flag
   badge (28px) + its gap (9px) already consumed, leaving ~2px for the text itself. The table then
   overflowed its 199px-wide card by 100+px, silently relying on .og26-table-scroll's horizontal
   scroll -- so columns past "П" were only reachable by scrolling, not just visually cramped.
   Fix: table-layout:fixed with each column's share picked to fit its own real content (single
   digits/"OTW"/"OTL" need far less than a 10-letter name), and the name itself is allowed to wrap
   to a second line instead of ellipsis-truncating, so any name is fully visible regardless of the
   exact width available at a given breakpoint (name/flag values verified at 1280 and 375). Scoped
   to .og26-group-card only -- no other section uses this table/class. */
#comp-og26 .og26-group-card table{
  table-layout:fixed!important;
}
#comp-og26 .og26-group-card th,
#comp-og26 .og26-group-card td{
  padding:10px 4px!important;
}
#comp-og26 .og26-group-card th:nth-child(1),
#comp-og26 .og26-group-card td:nth-child(1){width:7%!important}
#comp-og26 .og26-group-card th:nth-child(2),
#comp-og26 .og26-group-card td:nth-child(2){width:35%!important;padding-left:7px!important}
#comp-og26 .og26-group-card th:nth-child(3),
#comp-og26 .og26-group-card td:nth-child(3),
#comp-og26 .og26-group-card th:nth-child(4),
#comp-og26 .og26-group-card td:nth-child(4),
#comp-og26 .og26-group-card th:nth-child(7),
#comp-og26 .og26-group-card td:nth-child(7){width:7%!important}
#comp-og26 .og26-group-card th:nth-child(5),
#comp-og26 .og26-group-card td:nth-child(5),
#comp-og26 .og26-group-card th:nth-child(6),
#comp-og26 .og26-group-card td:nth-child(6){width:8%!important}
#comp-og26 .og26-group-card th:nth-child(8),
#comp-og26 .og26-group-card td:nth-child(8){width:13%!important}
#comp-og26 .og26-group-card th:nth-child(9),
#comp-og26 .og26-group-card td:nth-child(9){width:8%!important}
/* Smaller flag + tighter gap free up a little more room for the text itself, and the name
   wraps (instead of "…") whenever the column still isn't quite wide enough for one line. */
#comp-og26 .og26-group-card table .ll-flag-badge{
  width:20px!important;height:14px!important;flex:0 0 20px!important;
}
#comp-og26 .og26-group-card .og26-team{gap:5px!important}
#comp-og26 .og26-group-card .og26-team b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:break-word!important;
  line-height:1.15!important;
}

/* 2026-09-22 · Seed grid (Группы tab, "Посев плей-офф рассчитан"): same ellipsis-truncation as
   the group table above ("Ш…"), but different markup (.og26-seed-grid > .og26-seed, no <table>).
   Only reproduces at >900px, where the grid is 4 seeds per row (repeat(4,minmax(0,1fr))) -- each
   seed is only ~150px wide, and its own inner grid (30px rank / minmax(0,1fr) name+flag / auto
   "N pts · +M") already spends most of that on the fixed rank column, the auto-sized points text
   and the flex gaps + 10px padding, squeezing the name+flag column to ~35px -- nowhere near enough
   for a 10-letter name on one line at any reasonable font size. Confirmed no truncation at 375px
   (1 seed per row) or 750px (2 per row) even without this rule, so it's scoped to >900px only.
   Same treatment as the group table: smaller flag+gap+padding free a little room, and the name
   wraps to a second line instead of ellipsis-truncating. .og26-seed-grid is a plain CSS grid, so
   all 4 seeds in a row share that row's height automatically -- a 2-line name doesn't misalign its
   row neighbours, they just grow to match, same as any other CSS grid row. */
@media(min-width:901px){
  #comp-og26 .og26-seed{
    grid-template-columns:26px minmax(46px,1fr) auto!important;
    gap:5px!important;
    padding:8px 7px!important;
  }
  #comp-og26 .og26-seed .og26-team{gap:4px!important}
  #comp-og26 .og26-seed .og26-team .ll-flag-badge{
    width:17px!important;height:12px!important;flex:0 0 17px!important;
  }
  #comp-og26 .og26-seed .og26-team b{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:break-word!important;
    line-height:1.1!important;
  }
}
