/* Scoped adaptation of public-shell.css #corkBtn and journeys.html. */
.corkboard-entry {
  position: fixed; right: max(12px, env(safe-area-inset-right)); z-index: 80;
  bottom: calc(100px + env(safe-area-inset-bottom));
  box-sizing: border-box; min-height: 44px;
  background: #e8e4d8; color: #1a1a1a;
  border: none; border-radius: 8px; padding: 10px 14px 9px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.4;
  cursor: pointer; display: flex; align-items: center; gap: 7px; text-decoration: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.4);
  transform: rotate(2.5deg); transform-origin: top center;
  animation: corkboard-entry-sway 4s ease-in-out 1;
}
.corkboard-entry::before {
  content: ""; position: absolute; top: -7px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d65, #b5392f);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.corkboard-entry .ck { font-size: 14px; line-height: 1; }
.corkboard-entry:hover, .corkboard-entry:focus-visible { animation: none; transform: none; color: #1a1a1a; }
.corkboard-entry:focus-visible { outline: 3px solid #b5392f; outline-offset: 4px; }
.corkboard-entry:active { transform: scale(.97); }
@keyframes corkboard-entry-sway { 0%,100% { transform: rotate(2.5deg); } 50% { transform: rotate(-1.5deg); } }
/* Clear HOPE's full-width mobile help launcher at bottom:75px. */
@media (max-width: 700px) { .corkboard-entry { bottom: calc(155px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .corkboard-entry { animation: none; transform: none; } }
html.reduce-motion .corkboard-entry, body.reduce-motion .corkboard-entry,
[data-reduce-motion="true"] .corkboard-entry { animation: none; transform: none; }
@media print { .corkboard-entry { display: none; } }
/* Keep the legacy footer destination, but give this page only one floating tab. */
html.hope-civic-context body.corkboard-entry-page .os-footer a[href^="corkboard.html"] {
  all: revert !important;
  color: inherit !important; font: inherit !important;
  text-decoration: underline !important; cursor: pointer !important;
}
html.hope-civic-context body.corkboard-entry-page .os-footer a[href^="corkboard.html"]::before,
html.hope-civic-context body.corkboard-entry-page .os-footer a[href^="corkboard.html"]::after { content: none !important; }
html.hope-civic-context body.corkboard-entry-page .os-footer a[href^="corkboard.html"]:focus-visible { outline: 3px solid #e8b23a !important; outline-offset: 3px !important; }

/* Home only: optional links stay in flow on narrow screens instead of covering search. */
@media (max-width: 700px) {
  .hope-home-page .hope-help-launcher,
  .hope-home-page .corkboard-entry {
    position: static;
    inset: auto;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 16px;
    transform: none;
    animation: none;
  }
  .hope-home-page .corkboard-entry::before { display: none; }
}
@media (max-width: 430px) {
  .hope-home-page .os-header-in {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-block: 8px;
  }
  .hope-home-page .os-brand { flex-shrink: 0; }
  .hope-home-page .os-tools {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hope-home-page #languageToggle { position: static; inset: auto; flex: 0 0 auto; }
  .hope-home-page .watch-snapshot { white-space: normal; overflow-wrap: anywhere; }
}

/* Reserve a header band for the mobile floating assistant before its deferred mount. */
@media (max-width: 700px) {
  .hope-home-page .os-header-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(128px + env(safe-area-inset-right));
    grid-template-rows: minmax(76px, auto) auto;
    height: auto;
    gap: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .hope-home-page .os-brand { grid-column: 1; grid-row: 1; min-height: 76px; }
  .hope-home-page .os-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hope-home-page #languageToggle { position: static; inset: auto; flex: 0 0 auto; }
  .hope-home-page .sherlock-dock {
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
    z-index: 900;
  }
  .hope-home-page .sherlock-dock .sherlock-launch { min-height: 64px; padding: 3px 8px; }
}
