Jump to content

MediaWiki:Common.css

From Garmin Wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Enable native mobile behaviors (pull-to-refresh, scroll-to-top) */
html, body {
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
}


/* Hide DPL template link */
a[href*="Template%3AExtension_DPL"],
a[href*="Template:Extension_DPL"],
a[title="Template:Extension DPL"],
a.new[title="Template:Extension DPL (page does not exist)"] {
    display: none !important;
}

/* Random article infobox - compact, mechanical */
.featured-article-content .infobox {
    float: right;
    max-width: 200px;
    margin: -3.5em 0 8px 12px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Mobile - reset to normal positioning */
@media (max-width: 768px) {
    .featured-article-content .infobox {
        margin-top: 0;
    }
}

.featured-article-content .infobox > tbody > tr {
    display: none;
}

.featured-article-content .infobox > tbody > tr:nth-child(2) {
    display: table-row;
}

.featured-article-content .infobox td {
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.featured-article-content .infobox img {
    max-width: 200px;
    height: auto;
}

/* File pages - constrain preview */
.ns-6 .fullImageLink img {
    max-width: 200px !important;
    max-height: 200px !important;
    height: auto !important;
    width: auto !important;
}

/* Homepage - utilitarian density */
body.page-Main_Page .mw-parser-output table {
    border-collapse: collapse;
}

body.page-Main_Page .mw-parser-output table td,
body.page-Main_Page .mw-parser-output table th {
    padding: 2px 0;
    vertical-align: middle;
}

/* Main Page - hide references (from DPL included content) */
body.page-Main_Page .mw-parser-output .references,
body.page-Main_Page .mw-parser-output ol.references {
    display: none !important;
}

/* Main Page - hide category box */
body.page-Main_Page #catlinks {
    display: none !important;
}

/* Main Page - reduce footer spacing */
body.page-Main_Page .mw-body {
    margin-bottom: 0;
    padding-bottom: 0;
}

body.page-Main_Page #mw-content-text {
    margin-bottom: 0;
}

/* Homepage lists - tight */
body.page-Main_Page .mw-parser-output ul {
    margin: 0;
}

body.page-Main_Page .mw-parser-output li {
    margin-bottom: 0.1em;
}


/* Mobile improvements */
@media (max-width: 768px) {
    /* Main container padding - reduce from 24px to 12px */
    body.page-Main_Page .mw-page-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Remove padding from inner containers */
    body.page-Main_Page .mw-body,
    body.page-Main_Page .mw-content-container,
    body.page-Main_Page .mw-body-content,
    body.page-Main_Page #mw-content-text,
    body.page-Main_Page .mw-parser-output {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Content starts higher - remove all top spacing */
    body.page-Main_Page .vector-page-toolbar-container,
    body.page-Main_Page .vector-body-before-content,
    body.page-Main_Page #firstHeading,
    body.page-Main_Page .vector-sitenotice-container {
        display: none !important;
    }
    
    body.page-Main_Page .mw-body-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    body.page-Main_Page #mw-content-text {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body.page-Main_Page .mw-page-container-inner {
        padding-top: 0 !important;
    }
    
    body.page-Main_Page main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
}


/* Header spacing - Vector 2022 skin (mobile) */
@media (max-width: 768px) {
    body .vector-header-container .vector-header-start a.mw-logo {
        margin-left: 12px !important;
    }
    
    body .vector-header-container .vector-header-end {
        padding-right: 12px !important;
    }
}


/* Hide edit section links on subsections (only show on main H2 headers) */
/* Vector 2022 skin uses .mw-heading wrapper divs */
.mw-heading3 .mw-editsection,
.mw-heading4 .mw-editsection,
.mw-heading5 .mw-editsection,
.mw-heading6 .mw-editsection {
    display: none !important;
}


/* ============================================================================
 * Explore Rail — Fandom-style left rail + inline mobile fallback
 * ========================================================================== */

/* ---------- Wide-viewport: persistent left rail ---------- */
.gr-rail {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 264px;
    background: #f7f8fa;
    border-right: 1px solid #e3e6ea;
    z-index: 95;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: transform 0.22s ease;
    /* Make sure trackpad/wheel scrolling works inside the rail */
    overscroll-behavior: contain;
}

.gr-rail-head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e3e6ea;
    background: #fff;
    flex-shrink: 0;
}

.gr-rail-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7585;
}

.gr-rail-subhead {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    color: #1c2330;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-rail-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 80px; /* extra bottom padding so last card isn't flush */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Always allow vertical scroll gesture even if content fits, so
       trackpad scrolling on the rail doesn't bubble to the page */
    scrollbar-gutter: stable;
}

.gr-rail-list::-webkit-scrollbar { width: 8px; }
.gr-rail-list::-webkit-scrollbar-thumb { background: #cfd4dc; border-radius: 4px; }
.gr-rail-list::-webkit-scrollbar-thumb:hover { background: #aab1bc; }
.gr-rail-list::-webkit-scrollbar-track { background: transparent; }

/* Cards (shared with inline) */
.gr-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.gr-card:hover,
.gr-card:focus {
    background: #fff;
    text-decoration: none !important;
    outline: 0;
    box-shadow: 0 1px 3px rgba(20, 30, 50, 0.08), 0 1px 2px rgba(20, 30, 50, 0.06);
    transform: translateY(-1px);
}

.gr-card:focus-visible { box-shadow: inset 0 0 0 2px #2a6df4; }

.gr-card-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef0f3;
    display: block;
}

.gr-card-thumb-ph {
    background: linear-gradient(135deg, #e3e6ea 0%, #d4d8df 100%);
    position: relative;
}
.gr-card-thumb-ph::after {
    content: '';
    position: absolute;
    inset: 50% 0 0 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #aab1bc;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff inset;
}

.gr-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.gr-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1c2330;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gr-card-sub {
    font-size: 12px;
    color: #6c7585;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Collapse tab on right edge of rail */
.gr-rail-tab {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 28px;
    height: 56px;
    border: 1px solid #e3e6ea;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: #fff;
    cursor: pointer;
    box-shadow: 2px 1px 6px rgba(20, 30, 50, 0.06);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5363;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gr-rail-tab:hover { background: #f3f5f8; color: #1c2330; }

.gr-rail-tab-arrow {
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: -3px;
    transition: transform 0.2s ease;
}

.gr-rail.gr-rail-collapsed { transform: translateX(-100%); }
.gr-rail.gr-rail-collapsed .gr-rail-tab {
    transform: translateY(-50%) translateX(28px);
}
.gr-rail.gr-rail-collapsed .gr-rail-tab-arrow { transform: rotate(-135deg); margin-right: 3px; }

/* Push body content to the right when rail is mounted (wide screens only) */
@media (min-width: 1100px) {
    html.gr-has-rail body {
        padding-left: 264px;
        transition: padding-left 0.22s ease;
    }
    html.gr-has-rail.gr-rail-is-collapsed body {
        padding-left: 0;
    }
    /* Vector 2022 sticky header should also offset so it doesn't overlap rail */
    html.gr-has-rail .vector-header-container,
    html.gr-has-rail .vector-sticky-header {
        padding-left: 264px;
        transition: padding-left 0.22s ease;
    }
    html.gr-has-rail.gr-rail-is-collapsed .vector-header-container,
    html.gr-has-rail.gr-rail-is-collapsed .vector-sticky-header {
        padding-left: 0;
    }

    /* Vector 2022 ships a sticky left TOC panel (.vector-toc-landmark /
       #vector-toc-pinned-container) that lives at the same edge as our rail.
       Hide it when the rail is expanded so the two don't fight; the in-page
       __TOC__ block remains available for navigation. */
    html.gr-has-rail:not(.gr-rail-is-collapsed) #vector-toc-pinned-container,
    html.gr-has-rail:not(.gr-rail-is-collapsed) .vector-toc-landmark,
    html.gr-has-rail:not(.gr-rail-is-collapsed) .mw-table-of-contents-container,
    html.gr-has-rail:not(.gr-rail-is-collapsed) #vector-page-titlebar-toc {
        display: none !important;
    }
}

/* Footer "More from {category}" link */
.gr-rail-foot {
    flex-shrink: 0;
    border-top: 1px solid #e3e6ea;
    background: #fff;
    padding: 10px 14px;
}
.gr-rail-foot a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2a6df4;
    text-decoration: none;
}
.gr-rail-foot a:hover { text-decoration: underline; }

/* ---------- Narrow viewports: hide rail, use inline grid ---------- */
@media (max-width: 1099px) {
    .gr-rail { display: none !important; }
    html.gr-has-rail body { padding-left: 0; }
}

.gr-inline {
    margin: 32px 0 16px;
    padding: 16px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.gr-inline-head {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c7585;
}

.gr-inline-sub {
    font-size: 15px;
    font-weight: 700;
    color: #1c2330;
    margin-bottom: 10px;
}

.gr-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px;
}

.gr-card-inline { background: #fff; }
.gr-card-inline:hover { background: #fff; }

@media (max-width: 600px) {
    .gr-inline { margin-left: -8px; margin-right: -8px; border-radius: 0; border-left: 0; border-right: 0; }
    .gr-inline-grid { grid-template-columns: 1fr; }
    .gr-card-thumb { width: 64px; height: 64px; }
}

/* ---------- Dark / night mode ---------- */
html.skin-night-mode-clientpref-1 .gr-rail,
html.skin-theme-clientpref-night .gr-rail,
html.skin-night-mode-clientpref-1 .gr-inline,
html.skin-theme-clientpref-night .gr-inline {
    background: #161a20;
    border-color: #2c333d;
}

html.skin-night-mode-clientpref-1 .gr-rail-head,
html.skin-theme-clientpref-night .gr-rail-head {
    background: #1f242c;
    border-bottom-color: #2c333d;
}

html.skin-night-mode-clientpref-1 .gr-rail-title,
html.skin-theme-clientpref-night .gr-rail-title,
html.skin-night-mode-clientpref-1 .gr-inline-head,
html.skin-theme-clientpref-night .gr-inline-head { color: #98a0ad; }

html.skin-night-mode-clientpref-1 .gr-rail-subhead,
html.skin-theme-clientpref-night .gr-rail-subhead,
html.skin-night-mode-clientpref-1 .gr-inline-sub,
html.skin-theme-clientpref-night .gr-inline-sub,
html.skin-night-mode-clientpref-1 .gr-card-name,
html.skin-theme-clientpref-night .gr-card-name { color: #e8ebef; }

html.skin-night-mode-clientpref-1 .gr-card-sub,
html.skin-theme-clientpref-night .gr-card-sub { color: #98a0ad; }

html.skin-night-mode-clientpref-1 .gr-card:hover,
html.skin-night-mode-clientpref-1 .gr-card:focus,
html.skin-theme-clientpref-night .gr-card:hover,
html.skin-theme-clientpref-night .gr-card:focus { background: #1f242c; }

html.skin-night-mode-clientpref-1 .gr-card-thumb,
html.skin-theme-clientpref-night .gr-card-thumb { background: #2c333d; }

html.skin-night-mode-clientpref-1 .gr-rail-tab,
html.skin-theme-clientpref-night .gr-rail-tab {
    background: #1f242c;
    border-color: #2c333d;
    color: #aab1bc;
}
html.skin-night-mode-clientpref-1 .gr-rail-tab:hover,
html.skin-theme-clientpref-night .gr-rail-tab:hover { background: #262d36; color: #e8ebef; }

html.skin-night-mode-clientpref-1 .gr-card-inline,
html.skin-theme-clientpref-night .gr-card-inline { background: #1f242c; }

html.skin-night-mode-clientpref-1 .gr-rail-foot,
html.skin-theme-clientpref-night .gr-rail-foot {
    background: #1f242c;
    border-top-color: #2c333d;
}
html.skin-night-mode-clientpref-1 .gr-rail-foot a,
html.skin-theme-clientpref-night .gr-rail-foot a { color: #6ea7ff; }

html.skin-night-mode-clientpref-1 .gr-rail-list::-webkit-scrollbar-thumb,
html.skin-theme-clientpref-night .gr-rail-list::-webkit-scrollbar-thumb { background: #3a414c; }

/* Explore tray layout fix: avoid double-shift from Vector's left TOC column.
   Keep tray-induced shift, but collapse Vector's own column when tray is active. */
@media (min-width: 1100px) {
  html.gr-has-rail .mw-page-container-inner {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-areas:
      "siteNotice"
      "pageContent"
      "columnStart"
      "footer" !important;
  }

  html.gr-has-rail .vector-column-start,
  html.gr-has-rail #vector-toc-pinned-container,
  html.gr-has-rail .vector-toc-landmark,
  html.gr-has-rail .mw-table-of-contents-container {
    display: none !important;
  }
}

/* Final tray-content/header separation override */
@media (min-width: 1100px) {
  /* Header stays full width at viewport left */
  html.gr-has-rail body {
    padding-left: 0 !important;
  }
  html.gr-has-rail .vector-header-container,
  html.gr-has-rail .vector-sticky-header,
  html.gr-has-rail .vector-sticky-header-container {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  /* Shift only the page content area to clear the fixed tray */
  html.gr-has-rail .mw-page-container {
    margin-left: 264px !important;
    margin-right: 0 !important;
    max-width: none !important;
  }
  html.gr-has-rail.gr-rail-is-collapsed .mw-page-container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 99.75rem !important;
  }

  /* Separate TOC solution: disable Vector pinned left column while tray active */
  html.gr-has-rail .mw-page-container-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "siteNotice"
      "pageContent"
      "columnStart"
      "footer" !important;
  }
  html.gr-has-rail .vector-column-start,
  html.gr-has-rail #vector-toc-pinned-container,
  html.gr-has-rail .vector-toc-landmark,
  html.gr-has-rail .mw-table-of-contents-container,
  html.gr-has-rail #vector-page-titlebar-toc {
    display: none !important;
  }
}

@media (max-width: 1099px) {
  html.gr-has-rail .mw-page-container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 99.75rem !important;
  }
}

/* Collapsed tray tab label */
.gr-rail.gr-rail-collapsed .gr-rail-tab {
  width: 86px;
  right: -86px;
  border-radius: 0 14px 14px 0;
  justify-content: flex-start;
  padding-left: 10px;
  gap: 8px;
}

.gr-rail.gr-rail-collapsed .gr-rail-tab::after {
  content: "Explore";
  font-size: 12px;
  font-weight: 600;
  color: #4a5363;
  letter-spacing: 0.01em;
}

html.skin-night-mode-clientpref-1 .gr-rail.gr-rail-collapsed .gr-rail-tab::after,
html.skin-theme-clientpref-night .gr-rail.gr-rail-collapsed .gr-rail-tab::after {
  color: #c4cad3;
}

/* Header/Explore visual separation */
@media (min-width: 1100px) {
  /* Keep header visually distinct from the tray */
  html.gr-has-rail .vector-header-container {
    background: #ffffff;
    box-shadow: 0 1px 0 #d8dee8;
    position: relative;
    z-index: 140;
  }
  html.gr-has-rail .vector-sticky-header-container {
    background: #ffffff;
    box-shadow: 0 1px 0 #d8dee8;
    z-index: 140;
  }

  /* Drop the tray slightly below header + give it a distinct top edge */
  html.gr-has-rail .gr-rail {
    top: 66px !important;
    border-top: 1px solid #d8dee8;
    box-shadow: inset 0 1px 0 #eef2f8;
  }

  /* Explore header should read as its own panel header */
  html.gr-has-rail .gr-rail-head {
    background: #f3f6fb;
    border-bottom: 1px solid #d8dee8;
  }
}

html.skin-night-mode-clientpref-1 .gr-rail-head,
html.skin-theme-clientpref-night .gr-rail-head {
  background: #1b2028;
  border-bottom-color: #333a45;
}

html.skin-night-mode-clientpref-1 .vector-header-container,
html.skin-night-mode-clientpref-1 .vector-sticky-header-container,
html.skin-theme-clientpref-night .vector-header-container,
html.skin-theme-clientpref-night .vector-sticky-header-container {
  box-shadow: 0 1px 0 #2d3440;
}

/* Tray mode switch + internal contents panel */
.gr-rail-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #e3e6ea;
  background: #f9fbff;
}

.gr-rail-mode {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #4a5363;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.gr-rail-mode:hover { background: #f3f6fb; }
.gr-rail-mode.is-active {
  background: #e9f0ff;
  border-color: #98b4ee;
  color: #1f3a75;
}

.gr-rail-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}
.gr-rail-panel.is-active { display: flex; }

.gr-rail-toc-list {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 80px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.gr-rail-toc-item {
  display: block;
  text-decoration: none;
  color: #202a39;
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 8px;
  border-radius: 8px;
}
.gr-rail-toc-item:hover { background: #f1f4f9; text-decoration: none; }
.gr-rail-toc-item.is-active {
  background: #e8f0ff;
  box-shadow: inset 3px 0 0 #2f6fed;
  color: #12326a;
  font-weight: 700;
}
.gr-rail-toc-item.gr-toc-l3 { padding-left: 22px; color: #43506a; }

.gr-rail-empty {
  font-size: 12px;
  color: #6c7585;
  padding: 10px 8px;
}

@media (min-width: 1100px) {
  /* Use tray's built-in Contents panel; hide Vector TOC triggers/panels */
  html.gr-has-rail #vector-page-titlebar-toc,
  html.gr-has-rail .vector-page-titlebar-toc,
  html.gr-has-rail .vector-sticky-header-toc,
  html.gr-has-rail .vector-toc-toggle,
  html.gr-has-rail #vector-toc-pinned-container,
  html.gr-has-rail .vector-toc-landmark,
  html.gr-has-rail .mw-table-of-contents-container {
    display: none !important;
  }
}

html.skin-night-mode-clientpref-1 .gr-rail-modes,
html.skin-theme-clientpref-night .gr-rail-modes {
  background: #1a1f27;
  border-bottom-color: #2f3743;
}
html.skin-night-mode-clientpref-1 .gr-rail-mode,
html.skin-theme-clientpref-night .gr-rail-mode {
  background: #252d38;
  border-color: #394352;
  color: #c4cad3;
}
html.skin-night-mode-clientpref-1 .gr-rail-mode.is-active,
html.skin-theme-clientpref-night .gr-rail-mode.is-active {
  background: #273a62;
  border-color: #4060a2;
  color: #dce7ff;
}
html.skin-night-mode-clientpref-1 .gr-rail-toc-item,
html.skin-theme-clientpref-night .gr-rail-toc-item { color: #d6dbe3; }
html.skin-night-mode-clientpref-1 .gr-rail-toc-item.gr-toc-l3,
html.skin-theme-clientpref-night .gr-rail-toc-item.gr-toc-l3 { color: #aab1bc; }
html.skin-night-mode-clientpref-1 .gr-rail-toc-item:hover,
html.skin-theme-clientpref-night .gr-rail-toc-item:hover { background: #262e3a; }
html.skin-night-mode-clientpref-1 .gr-rail-toc-item.is-active,
html.skin-theme-clientpref-night .gr-rail-toc-item.is-active {
  background: #253a62;
  box-shadow: inset 3px 0 0 #7ea7ff;
  color: #e3ecff;
}

/* Disable Vector main-menu popout while tray is active */
@media (min-width: 1100px) {
  html.gr-has-rail .vector-main-menu-dropdown,
  html.gr-has-rail .vector-main-menu-container,
  html.gr-has-rail .vector-main-menu-landmark,
  html.gr-has-rail .vector-main-menu-pinned-container,
  html.gr-has-rail .vector-main-menu-unpinned-container,
  html.gr-has-rail .vector-sticky-header .vector-main-menu-dropdown {
    display: none !important;
  }

  /* tighten left side now that hamburger is disabled */
  html.gr-has-rail .vector-header-start {
    padding-left: 10px;
  }
}

/* Dynamic rail top alignment (menu/header aware) */
@media (min-width: 1100px) {
  html.gr-has-rail .gr-rail {
    top: var(--gr-rail-top, 56px) !important;
    transition: transform 0.22s ease, top 0.12s linear;
  }
}

/* Tray category dropdown + subtitle cleanup */
.gr-card-sub { display: none !important; }

.gr-rail-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #e3e6ea;
  background: #fff;
}

.gr-rail-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #6c7585;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gr-rail-category {
  width: 100%;
  border: 1px solid #c9d1de;
  border-radius: 7px;
  background: #fff;
  color: #1f2a3a;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 9px;
  line-height: 1.2;
}

.gr-rail-category:focus {
  outline: none;
  border-color: #5e90ff;
  box-shadow: 0 0 0 2px rgba(94, 144, 255, 0.2);
}

.gr-rail-panel-explore.is-loading .gr-rail-list {
  opacity: 0.55;
  pointer-events: none;
}

html.skin-night-mode-clientpref-1 .gr-rail-filter,
html.skin-theme-clientpref-night .gr-rail-filter {
  background: #1f242c;
  border-bottom-color: #2c333d;
}

html.skin-night-mode-clientpref-1 .gr-rail-filter-label,
html.skin-theme-clientpref-night .gr-rail-filter-label {
  color: #aab1bc;
}

html.skin-night-mode-clientpref-1 .gr-rail-category,
html.skin-theme-clientpref-night .gr-rail-category {
  background: #252d38;
  border-color: #394352;
  color: #d7dce4;
}

/* Mobile ad-safe launcher + overlay panel */
.gr-mobile-root {
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
}

.gr-mobile-launcher {
  position: fixed;
  right: 8px;
  top: var(--gr-mobile-launcher-top, 48vh);
  transform: translateY(-50%);
  border: 1px solid #cfd5e0;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #ffffff;
  color: #1c2a41;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(13, 22, 38, 0.16);
  cursor: pointer;
  pointer-events: auto;
}
.gr-mobile-launcher:active { transform: translateY(-50%) scale(0.98); }

.gr-mobile-overlay {
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: auto;
}
.gr-mobile-overlay.is-open { display: block; }

.gr-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 30, 0.5);
}

.gr-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--gr-mobile-panel-top, 64px);
  bottom: 0;
  background: #f7f8fa;
  border-top: 1px solid #d6dbe4;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(10, 18, 30, 0.24);
}

.gr-mobile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #e0e5ed;
  background: #ffffff;
}
.gr-mobile-head-main { min-width: 0; }

.gr-mobile-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7585;
}

.gr-mobile-subhead {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #1c2330;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 72vw;
}

.gr-mobile-close {
  border: 1px solid #d5dbe6;
  border-radius: 9px;
  background: #ffffff;
  color: #4a5363;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  width: 36px;
  height: 34px;
  padding: 0;
  cursor: pointer;
}

.gr-mobile-panel .gr-rail-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}
.gr-mobile-panel .gr-rail-panel.is-active {
  display: flex;
  flex-direction: column;
}
.gr-mobile-panel .gr-rail-list,
.gr-mobile-panel .gr-rail-toc-list {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: max(96px, env(safe-area-inset-bottom, 0px) + 28px);
}

html.gr-mobile-open,
html.gr-mobile-open body {
  overflow: hidden;
}

@media (min-width: 1100px) {
  .gr-mobile-root { display: none !important; }
}

@media (max-width: 1099px) {
  .gr-inline { display: none !important; }
}

html.skin-night-mode-clientpref-1 .gr-mobile-launcher,
html.skin-theme-clientpref-night .gr-mobile-launcher {
  background: #212833;
  border-color: #3a4453;
  color: #dce2ea;
}
html.skin-night-mode-clientpref-1 .gr-mobile-backdrop,
html.skin-theme-clientpref-night .gr-mobile-backdrop {
  background: rgba(5, 9, 16, 0.62);
}
html.skin-night-mode-clientpref-1 .gr-mobile-panel,
html.skin-theme-clientpref-night .gr-mobile-panel {
  background: #161a20;
  border-top-color: #2c333d;
}
html.skin-night-mode-clientpref-1 .gr-mobile-head,
html.skin-theme-clientpref-night .gr-mobile-head {
  background: #1f242c;
  border-bottom-color: #2c333d;
}
html.skin-night-mode-clientpref-1 .gr-mobile-subhead,
html.skin-theme-clientpref-night .gr-mobile-subhead {
  color: #e6ebf1;
}
html.skin-night-mode-clientpref-1 .gr-mobile-close,
html.skin-theme-clientpref-night .gr-mobile-close {
  background: #252d38;
  border-color: #3a4453;
  color: #c8cfda;
}

/* === OTD-CSS-START: On This Day card (do not split or duplicate) === */
.otd-card { box-sizing: border-box; }
.otd-card * { box-sizing: border-box; }

/* Mobile: ≤640px */
@media (max-width: 640px) {
  /* When also-section wraps below main, force full width so divider spans edge-to-edge */
  .otd-card .otd-also {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-top: 1px solid #eef0f3;
    padding-top: 10px;
    margin-top: 4px;
  }
  /* Split also-list into 2 equal-width columns when 2+ items */
  .otd-card .otd-also-multi .otd-also-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
  }
  .otd-card .otd-also-multi .otd-also-list li {
    margin: 0 !important;
  }
  /* Center single also-item */
  .otd-card .otd-also-single .otd-also-list,
  .otd-card .otd-also-single .otd-also-header {
    text-align: center;
  }
}

/* Night mode: the card markup carries inline light-mode colors, so the
   surfaces and text must be overridden with !important to stay readable. */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card {
  background: #1f242c !important;
  border-color: #3a414c !important;
}
html.skin-theme-clientpref-night body.page-Main_Page .otd-card div,
html.skin-theme-clientpref-night body.page-Main_Page .otd-card b,
html.skin-theme-clientpref-night body.page-Main_Page .otd-card li {
  color: #e8ebef !important;
}
/* Keep the eyebrow label and links as blue accents */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-main > div:first-child,
html.skin-theme-clientpref-night body.page-Main_Page .otd-card a,
html.skin-theme-clientpref-night body.page-Main_Page .otd-card a span {
  color: #88b4ff !important;
}
/* Muted secondary text */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-also-header,
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-also-list span {
  color: #98a0ad !important;
}
/* Date tile + thumbnail surfaces */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-tiles > div {
  background: #2c333d !important;
  border-color: #3a414c !important;
}
/* Keep the month ribbon white on its blue background */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-tiles > div > div:first-child {
  color: #fff !important;
}
/* Divider that separates the "also this week" column */
html.skin-theme-clientpref-night body.page-Main_Page .otd-card .otd-also {
  border-color: #3a414c !important;
}

/* Desktop: ≥641px */
@media (min-width: 641px) {
  .otd-card .otd-also {
    border-left: 1px solid #eef0f3;
    padding-left: 14px;
  }
}
/* === OTD-CSS-END === */

/* === GR-TIMELINE CSS START (managed) === */
/* Garmin software-update timeline.
 * Year labels in a fixed left gutter; lanes in a horizontal-scroll area (clean
 * clipping, no overlap). Focal zoom. Round HTML dots. Codex tokens => dark/light. */
.gr-timeline {
	margin: 1em 0;
	font-size: 14px;
	--grtl-green: #2e7d33;
	--grtl-orange: #e07c0a;
	--grtl-line: rgba( 128, 128, 128, .22 );
	--grtl-base: rgba( 128, 128, 128, .42 );
	--grtl-zoom: 1;
	--grtl-gutter: 52px;
	--grtl-min: 40rem;
}
.grtl-box {
	border: 1px solid var( --border-color-subtle, #c8ccd1 );
	border-radius: 10px;
	padding: 10px 0 12px;
	background: var( --background-color-base, #fff );
	color: var( --color-base, #202122 );
}

.grtl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 4px 14px 10px; border-bottom: 1px solid var( --border-color-subtle, #eaecf0 ); }
.grtl-legend { display: flex; gap: 18px; }
.grtl-leg { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9em; }
.grtl-swatch { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.grtl-swatch.grtl-stable, .grtl-dot.grtl-stable { background-color: var( --grtl-green ); }
.grtl-swatch.grtl-beta, .grtl-dot.grtl-beta { background-color: var( --grtl-orange ); }

/* zoom control */
.grtl-zoom { display: inline-flex; align-items: stretch; border: 1px solid var( --border-color-base, #a2a9b1 ); border-radius: 6px; overflow: hidden; }
.grtl-zbtn { border: 0; background: var( --background-color-base, #fff ); color: var( --color-base, #202122 ); font: inherit; font-weight: 700; line-height: 1; padding: 5px 11px; cursor: pointer; min-width: 34px; }
.grtl-zbtn + .grtl-zbtn { border-left: 1px solid var( --border-color-subtle, #c8ccd1 ); }
.grtl-zfit { min-width: 48px; font-size: .85em; }
.grtl-zbtn:hover:not(:disabled) { background: var( --background-color-neutral, #eaecf0 ); }
.grtl-zbtn:disabled { opacity: .4; cursor: default; }

/* body = fixed gutter + scrolling lanes */
.grtl-body { display: flex; align-items: flex-start; }
.grtl-gutter { flex: 0 0 var( --grtl-gutter ); width: var( --grtl-gutter ); padding-left: 10px; box-sizing: border-box; }
.grtl-gcell { height: 50px; margin: 6px 0; padding-top: 17px; box-sizing: border-box; text-align: right; padding-right: 10px; font-weight: 700; font-size: .95em; }

.grtl-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding-right: 14px; scrollbar-width: thin; overscroll-behavior-x: contain; touch-action: pan-x; }
/* Mobile: force a comfortable min width so the year is readable + scrollable.
   Desktop: fit the content column exactly (no needless scroll). Zoom widens both. */
.grtl-track { width: calc( max( 100%, var( --grtl-min ) ) * var( --grtl-zoom ) ); }
@media ( min-width: 768px ) { .gr-timeline { --grtl-min: 0rem; } }

.grtl-lane {
	position: relative; height: 50px; margin: 6px 0; overflow: visible;
	background-image: repeating-linear-gradient( to right, var( --grtl-line ), var( --grtl-line ) 1px, transparent 1px, transparent calc( 100% / 12 ) );
	background-repeat: no-repeat; background-size: 100% 24px;
}
.grtl-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; border-top: 2px solid var( --grtl-base ); }
.grtl-dot {
	position: absolute; top: 24px; width: 13px; height: 13px; padding: 0; border-radius: 50%;
	border: 1.5px solid var( --background-color-base, #fff ); transform: translate( -50%, -50% );
	cursor: pointer; background-clip: padding-box; box-shadow: 0 1px 2px rgba( 0, 0, 0, .25 );
	transition: width .08s, height .08s;
}
.grtl-dot:hover { width: 17px; height: 17px; z-index: 3; }
.grtl-dot:focus { outline: 2px solid var( --color-base, #202122 ); outline-offset: 1px; }
.grtl-months { position: absolute; left: 0; right: 0; top: 30px; height: 14px; pointer-events: none; }
.grtl-mlabel { position: absolute; font-size: 11px; color: var( --color-subtle, #9aa0a6 ); transform: translateX( 2px ); white-space: nowrap; }

.grtl-foot { color: var( --color-subtle, #9aa0a6 ); font-size: .8em; margin-top: 8px; padding: 6px 14px 0; border-top: 1px solid var( --border-color-subtle, #eaecf0 ); }
.grtl-foot-hint { margin-left: 6px; }
.grtl-empty { color: var( --color-subtle, #72777d ); font-style: italic; padding: 0 14px; }

/* shared Stable/Beta pill */
.grtl-pill { color: #fff; font-size: .72em; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; display: inline-block; white-space: nowrap; }
/* fallback colours: the tooltip + modal mount on <body>, outside .gr-timeline,
   so the --grtl-* custom properties aren't in scope there. */
.grtl-pill.grtl-stable { background: var( --grtl-green, #2e7d33 ); }
.grtl-pill.grtl-beta { background: var( --grtl-orange, #e07c0a ); }

/* hover/focus tooltip */
.grtl-tip {
	position: fixed; z-index: 10001; transform: translate( -50%, -100% ); pointer-events: none;
	background: var( --background-color-base, #fff ); color: var( --color-base, #202122 );
	border: 1px solid var( --border-color-subtle, #c8ccd1 ); border-radius: 9px;
	padding: 9px 12px; box-shadow: 0 6px 20px rgba( 0, 0, 0, .26 );
	text-align: center; white-space: nowrap;
	opacity: 0; visibility: hidden; transition: opacity .1s ease;
}
.grtl-tip.grtl-show { opacity: 1; visibility: visible; }
.grtl-tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX( -50% ); border: 7px solid transparent; border-top-color: var( --background-color-base, #fff ); filter: drop-shadow( 0 1px 0 var( --border-color-subtle, #c8ccd1 ) ); }
.grtl-tip-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.grtl-tip-ver { font-weight: 800; font-size: 1.1em; }
.grtl-tip-date { color: var( --color-subtle, #54595d ); font-size: .85em; margin-top: 5px; }

/* details modal */
.grtl-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.grtl-modal {
	position: relative; background: var( --background-color-base, #fff ); color: var( --color-base, #202122 );
	border: 1px solid var( --border-color-subtle, #c8ccd1 ); border-radius: 14px; overflow: hidden;
	max-width: 580px; width: 100%; max-height: 86vh; display: flex; flex-direction: column;
	box-shadow: 0 18px 54px rgba(0,0,0,.45); animation: grtl-pop .13s ease-out;
}
@keyframes grtl-pop { from { transform: translateY( 10px ) scale( .98 ); opacity: .5; } to { transform: none; opacity: 1; } }
.grtl-modal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 2; }
.grtl-modal.grtl-stable::before { background: var( --grtl-green, #2e7d33 ); }
.grtl-modal.grtl-beta::before { background: var( --grtl-orange, #e07c0a ); }

.grtl-mhead { padding: 14px 46px 12px 18px; border-bottom: 1px solid var( --border-color-subtle, #eaecf0 ); }
.grtl-mtop { display: flex; align-items: center; gap: 11px; }
.grtl-mver { font-size: 1.55em; font-weight: 800; line-height: 1; }
.grtl-msub { color: var( --color-subtle, #54595d ); font-size: .9em; margin-top: 5px; }
.grtl-close { position: absolute; top: 8px; right: 10px; z-index: 3; border: 0; background: none; font-size: 1.7em; line-height: 1; cursor: pointer; color: var( --color-subtle, #72777d ); padding: 1px 6px; border-radius: 6px; }
.grtl-close:hover { color: var( --color-base, #202122 ); background: var( --background-color-neutral, #eaecf0 ); }

.grtl-mbody { padding: 12px 18px; overflow: auto; }
.grtl-mbody ul { margin: 0 0 .4em; padding-left: 1.2em; }
.grtl-mbody li { margin: .28em 0; line-height: 1.45; }
.grtl-sub { font-weight: 700; font-size: 1em; margin: .7em 0 .3em; padding-bottom: .2em; border-bottom: 1px solid var( --border-color-subtle, #eaecf0 ); }
.grtl-mbody .grtl-empty { padding: 0; }

.grtl-mfoot { padding: 10px 18px 16px; text-align: center; }
.grtl-btn { display: inline-block; padding: 9px 20px; border-radius: 8px; background: var( --color-progressive, #3366cc ); font-weight: 700; }
.grtl-btn, .grtl-btn:link, .grtl-btn:visited, .grtl-btn:hover, .grtl-btn:focus, .grtl-btn:active { color: #fff; text-decoration: none; }
.grtl-btn:hover, .grtl-btn:focus { background: var( --color-progressive--hover, #2a4b8d ); }

@media ( max-width: 600px ) { .gr-timeline { --grtl-gutter: 42px; } }
/* === GR-TIMELINE CSS END === */

/* Main Page: compact inline rendering of the live Special:WantedPages transclusion */
.mp-wanted ol.special { list-style: none; margin: 0; padding: 0; }
.mp-wanted ol.special li { display: inline; }
.mp-wanted ol.special li:not(:last-child)::after { content: " • "; color: #72777d; }
.mp-wanted ol.special li a[href*="WhatLinksHere"] { color: #72777d; }

/* === GR-ADS-DARK CSS START (managed) === */
/* Raptive/AdThrive injects .adthrive-sticky-container { background:#fafafa }.
   In night mode give the ad slots a dark plate; leave the creative iframes light. */
html.skin-theme-clientpref-night .adthrive-ad,
html.skin-theme-clientpref-night .adthrive-sticky-container,
html.skin-theme-clientpref-night [class*="adthrive"]:not(iframe):not(video):not(button),
html.skin-theme-clientpref-night [id*="AdThrive"]:not(iframe),
html.skin-theme-clientpref-night [class*="raptive"]:not(iframe):not(video):not(button),
html.skin-theme-clientpref-night .rp-sticky-sb-wrapper {
  background: #202122 !important;
  background-color: #202122 !important;
  color-scheme: dark;
}
html.skin-theme-clientpref-night .adthrive-ad iframe,
html.skin-theme-clientpref-night iframe[id*="google_ads"],
html.skin-theme-clientpref-night iframe[src*="adthrive"],
html.skin-theme-clientpref-night iframe[src*="raptive"] {
  color-scheme: light;
  background: transparent;
}
html.skin-theme-clientpref-night .adthrive-footer,
html.skin-theme-clientpref-night [class*="adthrive-footer"],
html.skin-theme-clientpref-night [class*="raptive-footer"] {
  color: #c8c8d0 !important;
}
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .adthrive-ad,
  html.skin-theme-clientpref-os .adthrive-sticky-container,
  html.skin-theme-clientpref-os [class*="adthrive"]:not(iframe):not(video):not(button),
  html.skin-theme-clientpref-os [id*="AdThrive"]:not(iframe),
  html.skin-theme-clientpref-os [class*="raptive"]:not(iframe):not(video):not(button) {
    background: #202122 !important;
    background-color: #202122 !important;
    color-scheme: dark;
  }
  html.skin-theme-clientpref-os .adthrive-ad iframe,
  html.skin-theme-clientpref-os iframe[id*="google_ads"] {
    color-scheme: light;
    background: transparent;
  }
}
/* === GR-ADS-DARK CSS END === */

/* Ads beside the infobox (Oct 21 2026): Mediavine in-content boxes clear floats, which pushed them below the
   infobox and left a gap. flow-root keeps a box beside the float without sliding under it; a box too wide still drops below. */
@media (min-width: 769px) {
    .mw-parser-output .mv-ad-box { clear: none !important; display: flow-root; }
}
/* Explore rail on wide screens (Oct 22 2026): the article column is 59.25rem, but Vector's container is 99.75rem and
   left-aligns it, so pages sat left of center. With the rail, size the container (and header) to the article plus its
   padding and center it. Open or closed it stays put; it only shifts right when the 264px tray doesn't fit in the gutter.
   % (not vw) so the scrollbar doesn't make it wobble when the tray toggles. */
@media (min-width: 1100px) {
  html.gr-has-rail .mw-page-container,
  html.gr-has-rail.gr-rail-is-collapsed .mw-page-container {
    max-width: calc(59.25rem + 208px) !important;
    margin-left: max(280px, calc((100% - 59.25rem - 208px) / 2)) !important;
    margin-right: auto !important;
  }
  html.gr-has-rail.gr-rail-is-collapsed .mw-page-container {
    margin-left: max(0px, calc((100% - 59.25rem - 208px) / 2)) !important;
  }
  html.gr-has-rail .vector-header-container .vector-header,
  html.gr-has-rail .vector-sticky-header {
    max-width: calc(59.25rem + 208px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
Garmin Wiki
A project by GarminRumors.com