/* Neutral navigation refinements; preserve existing artwork and page content. */
.navigation-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.section-contents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 20px;
  border-bottom: 1px solid #d3e3f1;
}
.section-contents-label { color: #476581; font-size: 14px; font-weight: 600; }
.section-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-contents a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #1855a0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-contents a:focus-visible,
.navigation-back-top:focus-visible {
  outline: 3px solid #288fdd;
  outline-offset: 4px;
  border-radius: 4px;
}
.page-offers .offers-page-nav ul {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}
.site-footer .navigation-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 44px;
  color: #c1d4e4;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  grid-column: 1 / -1;
  order: 10;
  width: 100%;
}
@media (min-width: 781px) and (max-width: 1150px) {
  .page-offers .related-section .related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  body.detail-page .breadcrumb { font-size: 16px; flex-wrap: wrap; }
  body.detail-page .breadcrumb a,
  body.detail-page .related-heading > a,
  body.detail-page .related-home,
  body .site-footer nav[aria-label="頁尾導覽"] a,
  body .site-footer a[href="#main"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.5;
  }
  body.detail-page .related-heading { flex-wrap: wrap; }
  body .site-footer nav[aria-label="頁尾導覽"] a { white-space: normal; }
  .section-contents { display: block; }
  .section-contents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    margin-top: 8px;
  }
  .section-contents a { width: 100%; justify-content: space-between; }
  .page-offers .offers-page-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-offers .offers-page-nav li:last-child { grid-column: 1 / -1; }
}
