/* GOL.md 5.0.0-beta.4163 — national-team detail route final cascade.
 * Loaded AFTER generated-pages and canonical match-row CSS. The page uses the
 * real club/team generated-page shell; this file only resolves the legacy
 * generated-page row grid against the canonical nested match-row DOM and keeps
 * country artwork uncropped. */

html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmd-national4161-detail{
  width:100%!important;max-width:720px!important;margin:0!important;padding:0!important;transform:none!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmd-national4161-detail__shared-logo.is-flag{
  object-fit:contain!important;object-position:center!important;background:#fff!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmdm-match-row-logo.golmd-national4161__row-flag{
  width:27px!important;height:18px!important;min-width:27px!important;max-width:27px!important;min-height:18px!important;max-height:18px!important;
  flex:0 0 27px!important;object-fit:contain!important;object-position:center!important;border:1px solid rgba(7,21,35,.14)!important;
  border-radius:2px!important;background:#fff!important;box-shadow:0 1px 2px rgba(7,21,35,.05)!important;
}

/* Canonical nested row contract. generated-pages-v3307 still contains legacy
 * five-column declarations for the former flat row markup. National details use
 * match_card_row_shared(), whose children are date + contest + venue; enforce
 * the same canonical two-area geometry here after the generated stylesheet. */
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 > .golmdm-match-row-link{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  grid-template-areas:"date contest" "date venue"!important;
  align-items:center!important;
  column-gap:12px!important;row-gap:2px!important;
  min-height:60px!important;padding:7px 14px 8px 12px!important;
  background:var(--golmdm-row-bg,#fff)!important;color:var(--golmdm-row-text,#0a1723)!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-datetime{
  grid-area:date!important;min-width:0!important;max-width:none!important;width:auto!important;flex:initial!important;
  align-self:center!important;overflow:visible!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-contest{
  grid-area:contest!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)!important;
  align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;max-width:none!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team{
  display:flex!important;align-items:center!important;width:100%!important;max-width:none!important;gap:8px!important;min-width:0!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team.is-home{
  flex-direction:row-reverse!important;justify-content:flex-start!important;text-align:right!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team.is-away{
  flex-direction:row!important;justify-content:flex-start!important;text-align:left!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team :is(.golmdm-match-row-name,.golmdm-match-row-name-link,.golmdm-match-row-club-link){
  display:block!important;min-width:0!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;
  white-space:normal!important;overflow-wrap:normal!important;font-size:12.75px!important;line-height:1.24!important;font-weight:600!important;text-decoration:none!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-score{
  min-width:0!important;text-align:center!important;font-size:14.5px!important;line-height:1.2!important;font-weight:700!important;white-space:nowrap!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-venue{
  grid-area:venue!important;grid-column:auto!important;justify-self:center!important;display:flex!important;align-items:center!important;
  min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;
}
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-venue em{
  display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:10px!important;line-height:1.2!important;font-weight:500!important;
}

/* Do not restyle club section headings/subnav/rails here. generated-pages owns
 * them so National detail remains identical to club/league surfaces. */
html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmd-national4161-detail__back{
  text-decoration:none!important;
}

@media(max-width:767px){
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 > .golmdm-match-row-link{
    grid-template-columns:54px minmax(0,1fr)!important;grid-template-areas:"date contest" "venue venue"!important;
    column-gap:8px!important;row-gap:4px!important;min-height:58px!important;padding:7px 9px!important;
  }
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-contest{
    grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)!important;gap:5px!important;
  }
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team{gap:5px!important}
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-team :is(.golmdm-match-row-name,.golmdm-match-row-name-link,.golmdm-match-row-club-link){
    font-size:11.2px!important;line-height:1.2!important;
  }
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmdm-match-row-logo.golmd-national4161__row-flag{
    width:24px!important;height:16px!important;min-width:24px!important;max-width:24px!important;min-height:16px!important;max-height:16px!important;flex-basis:24px!important;
  }
  html body.golmdm-national-detail-page-v4163 #golmdm-virtual-page article.golmd-national4161-detail .golmdm-match-row-canonical-v4010 .golmdm-match-row-venue{
    grid-area:venue!important;justify-self:start!important;padding-left:62px!important;
  }
}

:is(html.golmd-theme-dark,html.golmdm-theme-dark,html.golmdm-dark-live,html[data-theme="dark"],html[data-golmdm-real-theme="dark"]) body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmd-national4161-detail__shared-logo.is-flag,
:is(html.golmd-theme-dark,html.golmdm-theme-dark,html.golmdm-dark-live,html[data-theme="dark"],html[data-golmdm-real-theme="dark"]) body.golmdm-national-detail-page-v4163 #golmdm-virtual-page .golmdm-match-row-logo.golmd-national4161__row-flag{
  background:#fff!important;border-color:#3a4650!important;
}
