/* FM27 R27.90c – Shared Laragon / lima-city visual polish.
   No changes to offline access rules, login/registration or gameplay. */

/* Make both visible gaps in the six-column recent-results row larger and equal:
   date (right aligned) | 21px crest | opponent/competition. */
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list > .fmh-result-row {
  grid-template-columns: 63px 21px minmax(0,1fr) 21px 43px 26px !important;
  column-gap: 12px !important;
}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list > .fmh-result-row > time {
  justify-self: end;
  margin: 0;
  text-align: right;
}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list > .fmh-result-row > img,
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list > .fmh-result-row > .fmh-r2790-empty-crest {
  justify-self: start;
  margin: 0 !important;
  width: 21px !important;
  height: 21px !important;
}

/* Offline landing: same compact design family as login and registration. */
body.fm27-midnight .fm27-auth-screen--offline { padding-top: clamp(26px, 6vh, 64px); }
body.fm27-midnight .fm27-auth-screen--offline .fm27-offline-card {
  flex-basis: 620px;
  max-width: 620px;
  padding: clamp(24px, 3.5vw, 39px);
}
body.fm27-midnight .fm27-offline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 21px;
  padding: 6px 11px;
  border: 1px solid #4b6180;
  border-radius: 20px;
  background: #202f49;
  color: #c4d6f3;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .025em;
}
body.fm27-midnight .fm27-offline-status-dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0ab58;
  box-shadow: 0 0 0 3px rgba(240,171,88,.12);
}
body.fm27-midnight .fm27-auth-screen--offline .fm27-offline-heading {
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
}
body.fm27-midnight .fm27-offline-heading-copy { min-width: 0; }
body.fm27-midnight .fm27-offline-subtitle {
  margin: 7px 0 0;
  color: #aabedb;
  font-size: .87rem;
  line-height: 1.55;
}
body.fm27-midnight .fm27-offline-message {
  color: #d3e0f2;
  font-size: .91rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.fm27-midnight .fm27-offline-message > :last-child { margin-bottom: 0; }
body.fm27-midnight .fm27-offline-message a { color: #83dac2; }
body.fm27-midnight .fm27-offline-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(42,139,112,.13);
  border: 1px solid rgba(93,201,162,.32);
  border-radius: 9px;
  color: #d9f8eb;
  font-size: .82rem;
  line-height: 1.55;
}
body.fm27-midnight .fm27-offline-notice .bi { flex: 0 0 auto; color: #7ee2bc; font-size: 1.05rem; }
body.fm27-midnight .fm27-offline-access {
  margin-top: 26px;
  padding: 21px 0 0;
  border-top: 1px solid #374d69;
}
body.fm27-midnight .fm27-offline-access > p {
  margin: 0 0 16px;
  color: #aebfda;
  font-size: .83rem;
  line-height: 1.6;
}
body.fm27-midnight .fm27-offline-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
body.fm27-midnight .fm27-offline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .87rem;
  font-weight: 720;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.fm27-midnight .fm27-offline-button--primary {
  background: #267e69;
  border-color: #369980;
  color: #fff;
}
body.fm27-midnight .fm27-offline-button--primary:hover,
body.fm27-midnight .fm27-offline-button--primary:focus-visible {
  background: #30977e;
  border-color: #64c5a9;
  color: #fff;
}
body.fm27-midnight .fm27-offline-button--secondary {
  background: #20354f;
  border-color: #506786;
  color: #e5eefb;
}
body.fm27-midnight .fm27-offline-button--secondary:hover,
body.fm27-midnight .fm27-offline-button--secondary:focus-visible {
  background: #2b4766;
  border-color: #8baacb;
  color: #fff;
}
@media (max-width: 600px) {
  body.fm27-midnight .fm27-home-dashboard .fmh-recent-list > .fmh-result-row {
    grid-template-columns: 58px 21px minmax(0,1fr) 18px 42px 25px !important;
    column-gap: 9px !important;
  }
  body.fm27-midnight .fm27-auth-screen--offline { padding: 17px 0 36px; }
  body.fm27-midnight .fm27-auth-screen--offline .fm27-offline-card { flex-basis: 100%; padding: 23px 19px; }
  body.fm27-midnight .fm27-offline-actions { flex-direction: column; }
  body.fm27-midnight .fm27-offline-button { flex-basis: auto; width: 100%; }
}
