/* Shared guide navigation and title treatment for all individual visitor guides. */
.all-guides,
.all-guides-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #082f34 !important;
  padding: 8px max(18px, calc((100% - 1120px) / 2));
  text-align: left;
}

.all-guides > a,
.all-guides-bar > a,
a.all-guides {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #e1bd63 !important;
  border-radius: 999px;
  background: #fff9e8 !important;
  padding: 9px 16px;
  color: #173f43 !important;
  font: 850 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: 0 2px 7px #06182026;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.all-guides > a:hover,
.all-guides-bar > a:hover,
a.all-guides:hover {
  background: #f4e6bb !important;
  box-shadow: 0 3px 10px #06182033;
  transform: translateY(-1px);
}

.all-guides > a:focus-visible,
.all-guides-bar > a:focus-visible,
a.all-guides:focus-visible {
  outline: 3px solid #e1bd63;
  outline-offset: 3px;
}

/* Shared opening-header palette: dark return strip above a soft pastel title bar. */
.bar,
.topbar,
body > .all-guides + header:not(:has(.hero, .hero-image)),
body > .all-guides-bar + header:not(:has(.hero, .hero-image)) {
  background: #d4e3dd !important;
  color: #17383b !important;
  border-bottom: 1px solid #bfd2ca;
}

.bar .brand,
.topbar .brand,
body > .all-guides + header:not(:has(.hero, .hero-image)) .brand,
body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand,
body > .all-guides + header:not(:has(.hero, .hero-image)) h1,
body > .all-guides-bar + header:not(:has(.hero, .hero-image)) h1 {
  color: #17383b !important;
}

.bar .brand small,
.topbar .brand small,
body > .all-guides + header:not(:has(.hero, .hero-image)) .brand p,
body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand p,
body > .all-guides + header:not(:has(.hero, .hero-image)) .brand small,
body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand small {
  color: #5e7071 !important;
}

/* One pale-yellow treatment for guide-wide filter reset actions. */
button.clear#clear,
button.small-button#reset-filters,
button.reset-button,
button#reset:not(.reset-button) {
  border: 1px solid #d8bd72 !important;
  background: #fff5d5 !important;
  color: #173f43 !important;
  font-weight: 850 !important;
}

button.clear#clear:hover,
button.small-button#reset-filters:hover,
button.reset-button:hover,
button#reset:not(.reset-button):hover {
  background: #ffedb7 !important;
}

button.clear#clear:focus-visible,
button.small-button#reset-filters:focus-visible,
button.reset-button:focus-visible,
button#reset:not(.reset-button):focus-visible {
  outline: 3px solid #315f56 !important;
  outline-offset: 2px !important;
}

header a.vgo-comments-link,
.bar .pill,
.topbar a:not(.all-guides),
 .all-guides .vgo-comments-link,
 .all-guides-bar .vgo-comments-link,
body > .all-guides + header .vgo-comments-link,
body > .all-guides-bar + header .vgo-comments-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-color: #b8cbc4 !important;
  border-radius: 999px;
  background: #fff9e8 !important;
  padding: 9px 14px;
  color: #173f43 !important;
  font: 850 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  text-decoration: none !important;
}

/* Keep the return link, guide title, and page actions together in one opening row. */
.all-guides:has(+ .bar),
.all-guides:has(+ .topbar) {
  position: relative;
  z-index: 2;
  height: 0;
  margin: 0;
  padding: 0;
  background: transparent !important;
  text-align: left;
}

.all-guides:has(+ .bar) > a,
.all-guides:has(+ .topbar) > a {
  position: absolute;
  top: 12px;
  left: max(18px, calc((100% - 1120px) / 2));
}

.all-guides:has(+ .bar) + .bar,
.all-guides:has(+ .topbar) + .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 2fr) max-content;
  align-items: center;
  column-gap: 12px;
}

.all-guides:has(+ .bar) + .bar .bar-actions,
.all-guides:has(+ .topbar) + .topbar .bar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.all-guides:has(+ .bar) + .bar .bar-actions .pill,
.all-guides:has(+ .topbar) + .topbar .bar-actions .pill {
  white-space: nowrap;
}

.all-guides:has(+ .bar) + .bar .brand,
.all-guides:has(+ .topbar) + .topbar .brand {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.all-guides:has(+ .bar) + .bar .bar-actions {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 760px) {
  .all-guides:has(+ .bar) + .bar,
  .all-guides:has(+ .topbar) + .topbar {
    grid-template-columns: minmax(145px, auto) minmax(0, 1fr) auto;
    column-gap: 8px;
  }

  .all-guides:has(+ .bar) > a,
  .all-guides:has(+ .topbar) > a {
    left: 12px;
    top: 11px;
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px !important;
  }

  .all-guides:has(+ .bar) + .bar .brand,
  .all-guides:has(+ .topbar) + .topbar .brand {
    font-size: 13px;
  }

  .all-guides:has(+ .bar) + .bar .brand small,
  .all-guides:has(+ .topbar) + .topbar .brand small {
    font-size: 10px;
  }

  /* Some guide-specific mobile rules hide the first pill, assuming it is
     secondary navigation. Preserve Comments when it is the only action. */
  .bar-actions .pill.vgo-comments-link,
  body > .all-guides-bar + header .vgo-comments-link {
    display: inline-flex !important;
  }
}

/* One consistent, prominent HOWTO control beside Comments in every guide header. */
.vgo-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.all-guides > .vgo-header-actions,
.all-guides-bar > .vgo-header-actions {
  position: static;
  z-index: 8;
  align-self: center;
}

/* When HOW-TO is added beside a direct header Comments link, keep the pair
   anchored together in the same corner. Reset guide-specific positioning on
   the link so it cannot drift away from its new shared action group. */
header:has(> .vgo-header-actions) { position: relative; }
header > .vgo-header-actions {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 31;
}
header > .vgo-header-actions > .vgo-comments-link {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
}
header.top > .vgo-header-actions { position: static; }

.vgo-howto {
  position: relative;
  z-index: 30;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
}

.vgo-howto > summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #d3a82e;
  border-radius: 999px;
  background: #ffe38b;
  padding: 8px 15px;
  color: #263d37;
  font: 950 12px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .055em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 2px 8px #0618202e;
}

.vgo-howto > summary::-webkit-details-marker { display: none; }
.vgo-howto > summary::after { content: "＋"; font-size: 14px; }
.vgo-howto[open] > summary::after { content: "−"; }
.vgo-howto > summary:hover { background: #ffd75c; border-color: #be8b12; }
.vgo-howto > summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.vgo-howto-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 50;
  width: min(460px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  overflow: auto;
  border: 1px solid #b9ccc4;
  border-radius: 16px;
  background: #fff;
  padding: 19px 20px;
  color: #183b3d;
  text-align: left;
  white-space: normal;
  box-shadow: 0 16px 40px #102f2f38;
}

.vgo-howto-panel h2 { margin: 0 0 7px; color: #183b3d; font-size: 20px; line-height: 1.2; }
.vgo-howto-panel > p { margin: 0; color: #52686a; font-size: 13px; line-height: 1.5; }
.vgo-howto-steps { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: guide-howto; }
.vgo-howto-steps li { position: relative; min-height: 58px; padding: 10px 12px 10px 43px; border: 1px solid #e0e8e3; border-radius: 11px; background: #f8faf8; counter-increment: guide-howto; }
.vgo-howto-steps li::before { content: counter(guide-howto); position: absolute; top: 10px; left: 11px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #fff0bf; color: #6d551d; font-size: 11px; font-weight: 950; }
.vgo-howto-steps strong { display: block; margin: 0 0 3px; color: #183b3d; font-size: 12px; }
.vgo-howto-steps span { display: block; color: #52686a; font-size: 11px; line-height: 1.45; }
.vgo-howto-tip { margin-top: 11px !important; border-left: 3px solid #d8ae55; background: #fff9e8; padding: 9px 11px; color: #465d5a !important; font-size: 11px !important; }

@media (max-width: 760px) {
  .vgo-header-actions { gap: 5px; }
  .vgo-howto > summary { min-height: 36px; padding: 7px 10px; font-size: 10px; }
  .vgo-howto-panel { position: fixed; top: 84px; right: 10px; width: min(460px, calc(100vw - 20px)); max-height: calc(100dvh - 100px); }
  .all-guides > .vgo-header-actions,
  .all-guides-bar > .vgo-header-actions { gap: 5px; }
  .all-guides .vgo-howto > summary,
  .all-guides-bar .vgo-howto > summary { min-height: 34px; padding: 6px 8px; font-size: 9px; }
  .all-guides .vgo-comments-link,
  .all-guides-bar .vgo-comments-link { min-height: 34px; padding: 6px 9px; font-size: 10px !important; }
}

@media print {
  .vgo-howto, .vgo-header-actions { display: none !important; }
}

/* On phones, keep the return link in its own strip and the page title and
   Comments action together on the header's first line. */
@media (max-width: 760px) {
  .all-guides:has(+ .bar),
  .all-guides:has(+ .topbar) {
    position: static;
    display: flex;
    height: auto;
    min-height: 0;
    align-items: center;
    padding: 7px 12px;
    background: #082f34 !important;
  }

  .all-guides:has(+ .bar) > a,
  .all-guides:has(+ .topbar) > a {
    position: static;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px !important;
  }

  .all-guides:has(+ .bar) + .bar,
  .all-guides:has(+ .topbar) + .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 8px;
    padding: 10px 14px;
  }

  .all-guides:has(+ .bar) + .bar .brand,
  .all-guides:has(+ .topbar) + .topbar .brand {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    justify-self: start;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.25;
  }

  .all-guides:has(+ .bar) + .bar .brand small,
  .all-guides:has(+ .topbar) + .topbar .brand small {
    line-height: 1.3;
  }

  .all-guides:has(+ .bar) + .bar .bar-actions,
  .all-guides:has(+ .topbar) + .topbar .bar-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* A few itinerary-style guides use a standalone return strip and a
     conventional header instead of .bar/.topbar. Keep those headers tidy too. */
  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 8px;
    height: auto !important;
    min-height: 0 !important;
    padding: 11px 14px;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    justify-self: start;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    text-align: left;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand > div {
    min-width: 0;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand h1 {
    overflow-wrap: anywhere;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .vgo-comments-link {
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .all-guides:has(+ .bar) + .bar .brand,
  .all-guides:has(+ .topbar) + .topbar .brand,
  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand {
    font-size: 12px;
  }

  .all-guides:has(+ .bar) + .bar .bar-actions .pill,
  .all-guides:has(+ .topbar) + .topbar .bar-actions .pill,
  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .vgo-comments-link {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px !important;
    white-space: nowrap;
  }
}

/* On narrow screens, keep both navigation actions on the top return strip;
   the guide name and subtitle get their own clean row below it. */
@media (max-width: 760px) {
  .all-guides:has(+ .bar),
  .all-guides:has(+ .topbar) {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 7px 12px;
  }

  .all-guides:has(+ .bar) + .bar,
  .all-guides:has(+ .topbar) + .topbar {
    position: relative;
    z-index: 6;
    display: block !important;
    min-height: 54px;
    padding: 10px 14px;
  }

  .all-guides:has(+ .bar) + .bar .brand,
  .all-guides:has(+ .topbar) + .topbar .brand {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .all-guides:has(+ .bar) + .bar .bar-actions,
  .all-guides:has(+ .topbar) + .topbar .bar-actions {
    position: absolute;
    top: -43px;
    right: 12px;
    z-index: 10;
    max-width: calc(100% - 160px);
    flex-wrap: nowrap;
  }

  body > .all-guides-bar {
    display: flex;
    justify-content: flex-start;
    min-height: 48px;
    padding: 7px 12px;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) {
    position: relative;
    display: block;
    min-height: 54px !important;
    padding: 10px 14px;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .brand {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  body > .all-guides-bar + header:not(:has(.hero, .hero-image)) .vgo-comments-link {
    position: absolute;
    top: -43px;
    right: 12px;
    z-index: 10;
  }
}

/* Keep page titles readable without letting them dominate the guide. */
.hero h1,
.page-intro h1,
.intro h1,
main > h1 {
  font-size: clamp(26px, 3.8vw, 42px) !important;
}

.brand h1 {
  font-size: 15px !important;
}

/* Shared typography for form labels and search/filter controls across guides. */
.control-field label,
.control-clear-label,
.region-label,
.filter-group legend,
.field label,
.gps-label,
.search-label,
.hub-field label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.control-input,
.control-select,
.field input,
.field select,
.gps-select,
.search-label input,
.hub-input {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.filter,
.category-button,
.region-button,
.small-button,
.reset-button,
.checklist-link,
.hub-button,
.gps-center,
.search-clear,
.view-toggle,
.plan-btn,
.food-btn,
.shows-btn,
.ticket-btn,
.stops-btn,
.activity-btn,
.restaurant-btn,
.winery-btn,
.restaurant-map-filter,
.club-btn,
.map-button,
.gps-button,
.view-btn,
.type-filter,
.start-now-button,
.build-button,
.primary-button,
.secondary-button,
.button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

/* Give controls that perform an action the same clear interaction cues
   without changing each guide's existing color hierarchy or dimensions. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
summary,
a[href][class*="btn"],
a[href][class*="button"],
a[href][class~="pill"],
a[href][class~="vgo-comments-link"],
a[href][class~="action"],
a[href][class~="button"],
a[href][class~="link-button"],
a[href][class~="primary"],
a[href][class~="secondary"],
a[href][class~="primary-action"],
a[href][class~="checklist-link"],
a[href][class~="plan-btn"],
a[href][class~="restaurant-btn"],
a[href][class~="winery-btn"],
a[href][class~="activity-btn"],
a[href][class~="stops-btn"],
a[href][class~="club-btn"],
a[href][class~="all-guides"] {
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

button:not(:disabled):not([aria-disabled="true"]):hover,
input[type="button"]:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="reset"]:not(:disabled):hover,
[role="button"]:not([aria-disabled="true"]):hover,
summary:hover,
a[href][class*="btn"]:hover,
a[href][class*="button"]:hover,
a[href][class~="pill"]:hover,
a[href][class~="vgo-comments-link"]:hover,
a[href][class~="action"]:hover,
a[href][class~="button"]:hover,
a[href][class~="link-button"]:hover,
a[href][class~="primary"]:hover,
a[href][class~="secondary"]:hover,
a[href][class~="primary-action"]:hover,
a[href][class~="checklist-link"]:hover,
a[href][class~="plan-btn"]:hover,
a[href][class~="restaurant-btn"]:hover,
a[href][class~="winery-btn"]:hover,
a[href][class~="activity-btn"]:hover,
a[href][class~="stops-btn"]:hover,
a[href][class~="club-btn"]:hover,
a[href][class~="all-guides"]:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 3px 9px #102c3026;
}

button:not(:disabled):not([aria-disabled="true"]):active,
input[type="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="reset"]:not(:disabled):active,
[role="button"]:not([aria-disabled="true"]):active,
summary:active,
a[href][class*="btn"]:active,
a[href][class*="button"]:active,
a[href][class~="pill"]:active,
a[href][class~="vgo-comments-link"]:active,
a[href][class~="action"]:active,
a[href][class~="button"]:active,
a[href][class~="link-button"]:active,
a[href][class~="primary"]:active,
a[href][class~="secondary"]:active,
a[href][class~="primary-action"]:active,
a[href][class~="checklist-link"]:active,
a[href][class~="plan-btn"]:active,
a[href][class~="restaurant-btn"]:active,
a[href][class~="winery-btn"]:active,
a[href][class~="activity-btn"]:active,
a[href][class~="stops-btn"]:active,
a[href][class~="club-btn"]:active,
a[href][class~="all-guides"]:active {
  transform: translateY(0) scale(.985);
  filter: brightness(.92);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
a[href][class*="btn"]:focus-visible,
a[href][class*="button"]:focus-visible,
a[href][class~="pill"]:focus-visible,
a[href][class~="vgo-comments-link"]:focus-visible,
a[href][class~="action"]:focus-visible,
a[href][class~="button"]:focus-visible,
a[href][class~="link-button"]:focus-visible,
a[href][class~="primary"]:focus-visible,
a[href][class~="secondary"]:focus-visible,
a[href][class~="primary-action"]:focus-visible,
a[href][class~="checklist-link"]:focus-visible,
a[href][class~="plan-btn"]:focus-visible,
a[href][class~="restaurant-btn"]:focus-visible,
a[href][class~="winery-btn"]:focus-visible,
a[href][class~="activity-btn"]:focus-visible,
a[href][class~="stops-btn"]:focus-visible,
a[href][class~="club-btn"]:focus-visible,
a[href][class~="all-guides"]:focus-visible {
  outline: 3px solid #e1bd63;
  outline-offset: 3px;
}

button:disabled,
button[aria-disabled="true"],
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .all-guides > a,
  .all-guides-bar > a,
  a.all-guides {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px !important;
  }

  .hero h1,
  .page-intro h1,
  .intro h1,
  main > h1 {
    font-size: clamp(25px, 7vw, 35px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .all-guides > a,
  .all-guides-bar > a,
  a.all-guides {
    transition: none;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  summary,
  a[href][class*="btn"],
  a[href][class*="button"],
  a[href][class~="pill"],
  a[href][class~="vgo-comments-link"],
  a[href][class~="action"],
  a[href][class~="button"],
  a[href][class~="link-button"],
  a[href][class~="primary"],
  a[href][class~="secondary"],
  a[href][class~="primary-action"],
  a[href][class~="checklist-link"],
  a[href][class~="plan-btn"],
  a[href][class~="restaurant-btn"],
  a[href][class~="winery-btn"],
  a[href][class~="activity-btn"],
  a[href][class~="stops-btn"],
  a[href][class~="club-btn"],
  a[href][class~="all-guides"] {
    transition: none;
  }
}

/* Final shared header layout: return link and guide actions occupy one real
   navigation row; they never float over the hero or collapse to zero height. */
.all-guides,
.all-guides-bar,
.all-guides:has(+ header),
.all-guides:has(+ .bar),
.all-guides:has(+ .topbar) {
  position: relative !important;
  z-index: 40 !important;
  display: flex !important;
  height: auto !important;
  min-height: 56px !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  margin: 0 !important;
  padding: 8px max(18px, calc((100% - 1120px) / 2)) !important;
  background: #082f34 !important;
  text-align: left !important;
}

.all-guides > a,
.all-guides-bar > a,
.all-guides:has(+ .bar) > a,
.all-guides:has(+ .topbar) > a {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  transform: none !important;
}

.vgo-header-actions,
header > .vgo-header-actions,
.all-guides > .vgo-header-actions,
.all-guides-bar > .vgo-header-actions {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 1 auto !important;
  gap: 8px !important;
  margin: 0 0 0 auto !important;
  transform: none !important;
  white-space: nowrap;
}

.all-guides > .vgo-header-actions,
.all-guides-bar > .vgo-header-actions {
  z-index: auto !important;
  align-self: center !important;
}

/* The page title and subtitle are repeated by each guide's main heading.
   Keep its useful links in row one, then remove that redundant title bar. */
header.vgo-redundant-title-row {
  display: none !important;
}

.vgo-visually-hidden-guide-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.vgo-header-actions > a:not(.vgo-comments-link) {
  display: inline-flex !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #b8cbc4 !important;
  border-radius: 999px !important;
  background: #fff9e8 !important;
  padding: 9px 14px !important;
  color: #173f43 !important;
  font: 850 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .all-guides,
  .all-guides-bar,
  .all-guides:has(+ header),
  .all-guides:has(+ .bar),
  .all-guides:has(+ .topbar) {
    min-height: 48px !important;
    padding: 7px 12px !important;
  }

  .all-guides > .vgo-header-actions,
  .all-guides-bar > .vgo-header-actions {
    gap: 5px !important;
  }

  .vgo-header-actions > a:not(.vgo-comments-link) {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
  }

  /* Page-specific shortcuts can stay beside the title, but must not be
     pulled upward into the shared return/actions strip on smaller screens. */
  .all-guides:has(+ .bar) + .bar .bar-actions,
  .all-guides:has(+ .topbar) + .topbar .bar-actions {
    position: static !important;
    inset: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin: 0 !important;
  }
}
