/* Extend Premier's existing cream, copper, ink borders and tactile shadows. */
.home-carousel:focus-visible { outline: 3px solid #d47848; outline-offset: 4px; }
.home-discovery [hidden], .discovery-notes [hidden],
.store-shell [data-store-discovery][hidden], .store-shell [data-store-empty][hidden],
.store-shell [data-store-save][hidden], .store-shell [data-store-item-id][hidden] { display: none !important; }
.discovery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-discovery { padding: clamp(18px, 3vw, 28px); }
.discovery-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.discovery-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin: 8px 0; line-height: 1.15; }
.discovery-heading p { color: #6a5248; margin: 0; }
.discovery-emblem { flex: 0 0 60px; height: 60px; display: grid; place-items: center; background: #f3cfb5; border: 2px solid #6b2e14; border-radius: 16px; box-shadow: 4px 4px 0 #8f644b; color: #6b2e14; font-size: 1.6rem; transform: rotate(6deg); }
.discovery-progress { margin: 22px 0 18px; }
.discovery-progress-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: #6b2e14; margin-bottom: 8px; }
.discovery-progress-label strong { white-space: nowrap; }
.discovery-progress progress { display: block; appearance: none; width: 100%; height: 9px; border: 1px solid #b48a6e; border-radius: 999px; overflow: hidden; background: #ecdfd1; color: #c65a2b; }
.discovery-progress progress::-webkit-progress-bar { background: #ecdfd1; }
.discovery-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #e8a87c, #c65a2b); border-radius: 999px; transition: width 300ms ease; }
.discovery-progress progress::-moz-progress-bar { background: #c65a2b; border-radius: 999px; }
.discovery-routes { display: grid; gap: 10px; margin-top: 18px; }
.discovery-route { display: flex; position: relative; align-items: flex-start; gap: 14px; padding: 16px; border: 2px solid #b48a6e; border-radius: 12px; background: #fffaf4; color: #2d1810; text-decoration: none; box-shadow: 2px 2px 0 #c4a58e; transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease; }
.discovery-route-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f4e1cf; color: #8e3d1b; font-size: 1.1rem; }
.discovery-route-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.discovery-route-copy > strong { font-size: 1.05rem; }
.discovery-route-copy > span { font-size: .87rem; color: #6a5248; }
.discovery-route-copy > .discovery-route-action { color: #8c3919; font-weight: 700; margin-top: 5px; }
.discovery-route-action i { display: inline-block; margin-left: 5px; transition: transform 140ms ease; }
.discovery-route-check { color: #487046; background: #e8efdf; border: 1px solid #94ac83; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.discovery-route.is-discovered { border-color: #94ac83; }
.discovery-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #6a5248; font-size: .73rem; margin-top: 16px; align-items: center; }
.discovery-reset { width: auto; margin: 0; padding: 4px 0; font-size: .73rem; color: #6b2e14; border: 0; border-radius: 0; box-shadow: none; background: none; text-decoration: underline; }
.home-discovery.is-complete .discovery-emblem { background: #e8efdf; border-color: #58784a; color: #487046; }
.home-discovery.is-celebrating .discovery-emblem { animation: discovery-stamp 650ms ease both; }
.discovery-notes { padding: 20px; }
.discovery-notes-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.discovery-notes h3 { font-size: .92rem; margin: 0; color: #6b2e14; }
.discovery-notes-heading > span { color: #6a5248; font-size: .8rem; white-space: nowrap; }
.discovery-notes [data-discovery-note] { min-height: 120px; padding-top: 18px; }
.discovery-notes [data-discovery-note] p { font-size: 1.18rem; font-weight: 800; margin: 0 0 8px; }
.discovery-notes [data-discovery-note] > span { display: block; color: #6a5248; font-size: .92rem; line-height: 1.5; }
.discovery-notes [data-discovery-note] a { display: inline-block; margin-top: 10px; color: #8c3919; font-weight: 700; font-size: .85rem; }
.discovery-note-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.discovery-note-controls button { width: auto; margin: 0; min-height: 44px; padding: 8px 14px; font-size: .85rem; }
.discovery-note-controls button:disabled { opacity: .4; cursor: default; transform: none; }
.store-discovery-tools { margin-bottom: 16px; }
.store-search { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 2px solid #8f644b; border-radius: 12px; background: #fffaf4; color: #8c3919; }
.store-search:focus-within { outline: 3px solid #d47848; outline-offset: 3px; }
.store-search input { width: 100%; min-width: 0; padding: 14px 0; margin: 0; border: 0; background: transparent; box-shadow: none; color: #2d1810; font: inherit; outline: none; }
.store-search input:focus { outline: none; box-shadow: none; }
.store-discovery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-discovery-filters button { width: auto; margin: 0; min-height: 44px; padding: 8px 14px; font-size: .85rem; border-radius: 999px; }
.store-discovery-filters button.is-active { color: #fff8f0; background: #a34420; border-color: #6b2e14; }
.store-discovery-filters [data-saved-count] { display: inline-block; margin-left: 4px; min-width: 20px; border-radius: 999px; background: rgba(143,100,75,.15); font-size: .75rem; }
.store-discovery-filters .is-active [data-saved-count] { background: rgba(255,255,255,.2); }
.store-discovery-meta { font-size: .78rem; color: #6a5248; margin: 12px 0 0; }
.store-discovery-meta[role="status"] { font-weight: 700; }
.store-item-action .store-save-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; margin: 0 0 12px; font-size: .8rem; border-radius: 8px; }
.store-item-action .store-save-btn[aria-pressed="true"] { color: #6b2e14; background: #f3cfb5; }
.store-save-btn[aria-pressed="true"] i { animation: discovery-save 240ms ease; }
.store-item-action .store-save-btn.is-popping { animation: store-save-pop 420ms ease; }
.store-discovery-empty { padding: 30px 18px; text-align: center; border: 2px dashed #b48a6e; border-radius: 12px; background: #fffaf4; margin: 12px 0; }
.store-discovery-empty > i { font-size: 1.8rem; color: #8f644b; }
.store-discovery-empty h3 { margin: 12px 0 8px; }
.store-discovery-empty p { color: #6a5248; font-size: .9rem; }
.store-discovery-empty button { width: auto; min-height: 44px; }
.discovery-route:focus-visible, .discovery-reset:focus-visible, .discovery-note-controls button:focus-visible,
.store-discovery-filters button:focus-visible, .store-save-btn:focus-visible { outline: 3px solid #d47848; outline-offset: 4px; }
@media (hover: hover) {
  .discovery-route:hover { border-color: #6b2e14; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #8f644b; }
  .discovery-route:hover .discovery-route-action i { transform: translateX(4px); }
}
.discovery-route:active { transform: translate(1px, 1px); box-shadow: none; }
@media (min-width: 700px) {
  .discovery-routes { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .discovery-route { flex-direction: column; }
  .discovery-route-copy { gap: 6px; }
  .discovery-route-copy > .discovery-route-action { margin-top: auto; padding-top: 10px; }
  .discovery-route-check { position: absolute; top: 12px; right: 12px; }
}
@media (max-width: 520px) {
  .discovery-emblem { flex-basis: 46px; height: 46px; font-size: 1.2rem; border-radius: 12px; }
  .discovery-route { padding: 12px; gap: 10px; }
  .discovery-route-copy > span { font-size: .82rem; }
  .store-discovery-filters { gap: 8px; }
  .store-discovery-filters button { padding: 8px 10px; font-size: .78rem; }
  .discovery-notes [data-discovery-note] { min-height: 165px; }
}
@keyframes discovery-stamp { 0% { transform: rotate(6deg) scale(.85); } 45% { transform: rotate(-10deg) scale(1.12); } 100% { transform: rotate(6deg) scale(1); } }
@keyframes discovery-save { 50% { transform: translateY(-3px) scale(1.18); } }
@keyframes store-save-pop { 45% { transform: translateY(-2px) scale(1.04); box-shadow: 3px 4px 0 #8f644b; } }
@media (prefers-reduced-motion: reduce) { .store-item-action .store-save-btn.is-popping { animation: none; } }
