html body #top .sg-hub-links {
  box-sizing: border-box; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; width: var(--home-content-width); max-width: 1240px; margin: 22px auto 8px;
}
.sg-hub-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 11px 14px; box-sizing: border-box;
  background: #fff; color: #172f48; border: 1px solid #ccd6df; border-radius: 10px;
  text-decoration: none; font-weight: 750; line-height: 1.35; word-break: keep-all;
}
.sg-hub-links a:nth-child(-n+2) {background: #162f46; border-color: #162f46; color: white}
.sg-hub-links a:hover {text-decoration: underline}
.sg-hub-links a:focus-visible {outline: 3px solid #3977b7; outline-offset: 2px}
.sg-detail-back, .sg-guide-title {width: var(--home-content-width); margin: 20px auto 8px}
.sg-detail-back a {display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #234862}
.sg-guide-title, #sg-cooperators-title {color: #182b3d; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2}
html body #cooperating-companies .partner-contact-card[hidden] {display: none !important}
@media(max-width: 790px) {
  html body #top .sg-hub-links {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px}
  .sg-hub-links a {font-size: 15px; padding: 10px}
}

.sg-journey-links {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
  margin: 16px 0; padding: 0;
}
.sg-journey-links a {
  box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center;
  min-height: 46px; padding: 10px 16px; border: 1px solid #c1d0de; border-radius: 10px;
  background: #f3f7fb; color: #1b3e5b; font-weight: 700; line-height: 1.4;
  font-size: 16px; text-align: center; text-decoration: none; word-break: keep-all;
}
.sg-journey-links a:focus-visible, .sg-journey-links a:hover { text-decoration: underline; }
#top .sg-related-pages { width: var(--home-content-width); margin-inline: auto; }
#top #sg-own-title { margin: 0; line-height: 1.25; font-size: clamp(1.55rem, 3vw, 2.25rem); }
@media (max-width: 600px) {
  .sg-journey-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sg-journey-links a { padding: 9px 7px; font-size: 15px; }
}
html body #top .sg-sister-grid a {
  min-height: 44px !important;
  font-size: 15px !important;
  line-height: 1.4;
}

.sg-promo-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto 32px;
}
.sg-promo-card {
  --promo-accent: #164875;
  --promo-tint: #edf4fa;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 10px 14px 10px 10px;
  border: 1px solid #c8d7e3;
  border-radius: 13px;
  color: #152f44;
  background: #fff;
  text-decoration: none;
  text-align: left;
  line-height: 1.35;
  word-break: keep-all;
}
.sg-promo-card.sg-promo-video { --promo-accent: #75401c; --promo-tint: #fff0de; }
.sg-promo-card.sg-promo-member { --promo-accent: #175748; --promo-tint: #e4f3ec; }
.sg-promo-photo {
  align-self: stretch;
  min-height: 54px;
  border-radius: 7px;
  background-color: var(--promo-tint);
  background-size: cover;
  background-position: center;
}
.sg-promo-copy { display: grid; gap: 5px; min-width: 0; }
.sg-promo-copy strong { font-size: 17px; line-height: 1.38; font-weight: 800; color: #152f44; }
.sg-promo-copy > span { font-size: 15px; font-weight: 650; color: var(--promo-accent); }
.sg-promo-arrow { color: var(--promo-accent); font-size: 20px; line-height: 1; }
.sg-promo-card:hover, .sg-promo-card:focus-visible { border-color: var(--promo-accent); background: var(--promo-tint); }
.sg-promo-card:focus-visible { outline: 3px solid var(--promo-accent); outline-offset: 3px; }
.sg-promo-bottom:has(> :only-child) { max-width: 540px; }
@media (max-width: 760px) {
  #store-showcase > .sg-journey-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #store-showcase > .sg-journey-links a { min-height: 52px; font-size: 17px; }
  .sg-promo-bottom { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); gap: 10px; }
}

#top > .sg-footer-partner {
  --banner-bg: #172e42;
  --banner-accent: #ffce83;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  box-sizing: border-box;
  width: var(--home-content-width);
  margin: 20px auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--banner-bg);
  color: #fff;
  text-decoration: none;
}
#top > .sg-footer-peps-environment {
  --banner-bg: #134438;
  --banner-accent: #b6e9b3;
}
.sg-footer-partner-copy {
  align-self: center;
  padding: clamp(18px, 2.4vw, 30px);
  word-break: keep-all;
}
.sg-footer-partner-label {
  color: var(--banner-accent);
  font-size: 13px;
  font-weight: 700;
}
.sg-footer-partner-copy h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.25;
}
.sg-footer-partner-copy p {
  margin: 6px 0 0;
  color: #f1f4f5;
  font-size: 16px;
  line-height: 1.5;
}
.sg-footer-partner-copy p span { display: inline-block; }
.sg-footer-partner-copy p span + span::before { content: "· "; }
.sg-footer-partner-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--banner-accent);
  font-size: 15px;
  font-weight: 750;
}
.sg-footer-partner img {
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center 55%;
  contain: size;
}
.sg-footer-partner:hover .sg-footer-partner-action { text-decoration: underline; }
.sg-footer-partner:focus-visible { outline: 3px solid #3172a4; outline-offset: 3px; }
@media (max-width: 600px) {
  #top > .sg-footer-partner {
    grid-template-columns: minmax(0, 1fr) 36%;
    padding-right: 12px;
    margin-block: 14px;
  }
  .sg-footer-partner-copy { padding: 15px; }
  .sg-footer-partner-copy p { font-size: 15px; }
  .sg-footer-partner-copy p span { display: block; }
  .sg-footer-partner-copy p span + span::before { content: none; }
  .sg-footer-partner img {
    align-self: center;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
}
