/* Local preview refinement v2 — preview only */
:root {
  --preview-drawer-width: min(336px, 88vw);
  --preview-ink: #121722;
  --preview-paper: #f7f3eb;
}
html, body { max-width: 100%; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, picture, video, svg, canvas { max-width: 100%; height: auto; }
main, .wrap, section, article, .grid, .route-grid, .mini-grid, .lead-grid,
.entry, .route, .lead-card, .mini-grid li { min-width: 0; }

/* Let fixed-height carousel stages shrink their grid children instead of clipping them. */
body .gallery-slide {
  position: relative;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}
body .gallery-slide img,
body .event-detail-slide img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body .gallery-stage,
body .event-detail-stage {
  background: #f1ede4 !important;
}
body.dark-mode .gallery-stage,
body.dark-mode .event-detail-stage {
  background: #11141b !important;
}

#touchpoints .hero-stat > span:not(.stat-label),
#touchpoints .hero-stat > small,
#touchpoints .hero-stat .stat-detail,
#touchpoints .hero-stat .stat-subcopy,
#touchpoints .hero-stat p {
  display: none !important;
}
#touchpoints .hero-stat {
  min-height: 0 !important;
  background: #173a5e !important;
  border-color: #4f8bc4 !important;
  color: #fff !important;
}
#touchpoints .hero-stat strong,
#touchpoints .hero-stat b {
  display: block;
  color: #fff !important;
}
#touchpoints .hero-stat .stat-label {
  display: block !important;
  color: #dcecff !important;
}
body.dark-mode #touchpoints .hero-stat {
  background: #263b62 !important;
  border-color: #78b7ef !important;
  color: #fff !important;
}
body.dark-mode #touchpoints .hero-stat .stat-label {
  color: #e8f3ff !important;
}

.card-explainer {
  display: block !important;
  max-width: 100%;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.brand-visual small,
.website-identity small,
.identity-copy > span,
.identity-copy .identity-subtitle,
.identity-lockup .identity-copy > span,
.identity-copy [class*="identity-sub"],
[class*="brand-visual"] small {
  display: none !important;
}

/* Remove all legacy helper bubbles without hiding the actual assistant. */
.potato-guide-hint,
.potato-guide-bubble,
.potato-guide-tooltip,
#potatoGuideHint,
[data-potato-hint],
[data-guide-hint] {
  display: none !important;
}
#potatoGuideHandle {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2200 !important;
}
#potatoGuideHandle img,
#potatoGuideHandle svg,
#potatoGuideHandle canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* A calm, high contrast last meter segment in dark mode. */
body.dark-mode .meter-scale,
body.dark-mode .meter-spectrum,
body.dark-mode .meter-bar,
body.dark-mode .meter-track {
  background: linear-gradient(90deg,
    #bfc6d2 0% 24%,
    #efc63c 24% 49%,
    #41ad7d 49% 74%,
    #8267c9 74% 100%) !important;
}
body.dark-mode .meter-scale::after,
body.dark-mode .meter-spectrum::after,
body.dark-mode .meter-bar::after,
body.dark-mode .meter-track::after {
  background: #8267c9 !important;
}

/* Preserve contrast for small priority/category chips. */
body.dark-mode .mini-grade,
body.dark-mode .mini-grid .mini-grade,
body.dark-mode .lead-card .lead-kicker,
body.dark-mode .tags span,
body.dark-mode .tag,
body.dark-mode .badge {
  color: #151923 !important;
  background: #f0ecdf !important;
  border-color: #c9c4b8 !important;
}
body.dark-mode .tags span:nth-child(2),
body.dark-mode .tag.verified,
body.dark-mode .verified {
  color: #102d27 !important;
  background: #bcecd9 !important;
  border-color: #58b796 !important;
}

/* Compact secondary retail and digital cards rather than stretched full-width blocks. */
.mini-grid,
.lead-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.mini-grid > li,
.lead-grid > .lead-card {
  min-height: 176px;
  overflow: hidden;
}
.mini-grid > li > *,
.lead-grid > .lead-card > * { overflow-wrap: anywhere; }

/* Twitter-like slide-out navigation replacing the pinned horizontal bar. */
.local-drawer-toggle {
  position: fixed;
  left: 16px;
  top: max(14px, env(safe-area-inset-top));
  z-index: 2602;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  color: #f9f8f4;
  background: rgba(16, 20, 30, .9);
  border: 1px solid rgba(159, 180, 213, .45);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(4, 8, 15, .24);
  font: 700 14px/1 system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}
.local-drawer-toggle:hover { transform: translateY(-2px); background: #222c3e; }
.local-drawer-toggle svg { width: 18px; height: 18px; }

.local-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 2598;
  background: rgba(8, 10, 15, .36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.local-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.local-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2600;
  display: flex;
  flex-direction: column;
  width: var(--preview-drawer-width);
  max-width: 100vw;
  padding: calc(24px + env(safe-area-inset-top)) 16px 24px;
  overflow-y: auto;
  color: #f6f7fb;
  background: linear-gradient(155deg, rgba(23, 28, 41, .98), rgba(10, 13, 20, .99));
  border-right: 1px solid rgba(170, 193, 228, .28);
  box-shadow: 22px 0 55px rgba(0,0,0,.28);
  transform: translateX(-105%);
  transition: transform .3s cubic-bezier(.2,.85,.25,1);
}
.local-drawer.is-open { transform: translateX(0); }
.local-drawer-title {
  margin: 28px 6px 18px;
  color: #f7cf5b;
  font: 800 11px/1.3 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.local-drawer .toolbar {
  position: static !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.local-drawer .toolbar a,
.local-drawer .toolbar button {
  display: flex !important;
  align-items: center;
  min-height: 48px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  color: #eef2fb !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(157, 177, 212, .22) !important;
  border-radius: 13px !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.local-drawer .toolbar a + a,
.local-drawer .toolbar a + button,
.local-drawer .toolbar button + a { margin-top: 8px !important; }
.local-drawer .toolbar .notes-tab {
  color: #fff !important;
  background: linear-gradient(135deg, #f45152, #b74351) !important;
  border-color: #ff8991 !important;
}
.local-drawer-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 15px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
}

/* Notebook PIN as four intentionally distinct cells. */
.local-pin-cells {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 6px auto 20px;
}
.local-pin-cells input {
  width: 58px !important;
  height: 64px !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 2px solid currentColor !important;
  border-radius: 15px !important;
  outline: none;
  font: 800 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace !important;
  text-align: center;
  caret-color: currentColor;
}
.local-pin-cells input:focus { box-shadow: 0 0 0 4px rgba(67, 139, 255, .26); }

@media (max-width: 900px) {
  .wrap { width: min(100%, 100vw) !important; }
  .stats,
  .grid,
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .route-grid .route {
    min-height: 215px !important;
    padding: 22px !important;
  }
  .route small,
  .route .route-summary {
    padding-right: 124px;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .route-place {
    max-width: 108px !important;
    flex: 0 0 108px !important;
  }
  .mini-grid,
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mini-grid > li,
  .lead-grid > .lead-card { min-height: 158px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-right: 16px !important; padding-left: 16px !important; }
  header { padding: 42px 20px 28px !important; }
  header h1 { max-width: min(100%, 520px); font-size: clamp(38px, 12vw, 58px) !important; line-height: .98 !important; }
  header [class*="potato" i],
  header .potatoz,
  header #potatoHeader,
  header .pet { max-width: min(27vw, 118px) !important; max-height: 150px !important; right: 17px !important; }
  .local-drawer-toggle { left: auto; right: 12px; top: 12px; min-height: 38px; padding: 0 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #touchpoints .hero-stat { grid-column: span 2; }
  .stat { min-width: 0; padding: 20px !important; }
  .stat strong, .stat b { font-size: clamp(36px, 10vw, 48px) !important; }
  .meter, .meter-body, #meter { min-width: 0; }
  .meter-score, .meter-body { grid-template-columns: 1fr !important; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid,
  .route-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .route-grid .route { min-height: 0 !important; padding: 22px 18px !important; }
  .route small,
  .route .route-summary { padding-right: 0; font-size: 16px !important; }
  .route-place { position: static !important; display: inline-flex; max-width: 100% !important; margin: 0 0 13px !important; }
  .entry { min-width: 0; }
  .entry h3 { font-size: clamp(25px, 7vw, 32px) !important; }
  .card-explainer { font-size: 16px !important; }
  .mini-grid,
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .mini-grid > li,
  .lead-grid > .lead-card { min-height: 144px !important; padding: 14px !important; }
  .mini-grid > li { font-size: 14px !important; }
  .mini-grid > li strong, .lead-card h3 { font-size: 16px !important; line-height: 1.18 !important; }
  .lead-card p { font-size: 13px !important; line-height: 1.35 !important; }
  .tags { gap: 8px !important; }
  .tags span, .tag, .badge { font-size: 14px !important; padding: 7px 10px !important; }
  #potatoGuideHandle {
    right: 10px !important;
    bottom: 76px !important;
    transform: scale(.74);
    transform-origin: bottom right;
  }
  .local-pin-cells { gap: 8px; }
  .local-pin-cells input { width: 48px !important; height: 56px !important; font-size: 27px !important; }
}
@media (max-width: 390px) {
  .mini-grid { grid-template-columns: 1fr !important; }
  .mini-grid > li,
  .lead-grid > .lead-card { min-height: 132px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .local-drawer, .local-drawer-scrim, .local-drawer-toggle { transition: none !important; }
}

/* These high-specificity rules must win over the legacy embedded card themes. */
body .potato-guide-hide {
  top: -14px !important;
  right: -18px !important;
  width: 30px !important;
  height: 23px !important;
  min-width: 0 !important;
  padding: 4px 5px !important;
  border-radius: 60% 40% 60% 40% / 55% 55% 45% 45% !important;
  opacity: .88 !important;
  background: #151923 !important;
}
body .potato-guide-hide svg { width: 19px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body .potato-guide-hide svg circle { fill: currentColor; stroke: none; }
body .potato-guide-panel {
  width: min(312px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(560px, calc(100dvh - 32px)) !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}
body .potato-guide-links {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 9px !important;
}
.potato-guide-links li,
.potato-guide-links a { min-width: 0; }
.potato-guide-links a { min-height: 52px !important; padding: 7px 8px !important; }
.potato-guide-links b,
.potato-guide-links small { overflow-wrap: normal; word-break: normal; hyphens: none; }
.potato-guide-links b { font-size: 11px !important; }
.potato-guide-links small { font-size: 8px !important; }

body .route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.route-grid .route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  min-height: 142px !important;
  padding: 15px !important;
}
.route-place {
  position: static !important;
  grid-row: 1 / span 3;
  width: 76px !important;
  max-width: 76px !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 9px !important;
}
.route > b,
.route > small,
.route > .route-cta { grid-column: 2; }
.route > b { font-size: 16px !important; line-height: 1.2 !important; }
.route small,
.route .route-summary {
  margin-top: 7px !important;
  padding-right: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.route-cta { position: static !important; margin-top: 10px; }

#priorityGrid .entry,
#regionalGrid .entry,
main.wrap > section.grid .entry {
  min-height: 0 !important;
  gap: 9px !important;
  padding: 16px !important;
}
#priorityGrid.collectible-card-view .entry > .card-visual,
#priorityGrid.collectible-card-view > article > img,
#regionalGrid.collectible-card-view .entry > .card-visual,
#regionalGrid.collectible-card-view > article > img,
.entry .card-visual,
.entry > img {
  width: 100% !important;
  height: clamp(210px, 27vw, 286px) !important;
  min-height: 210px;
  aspect-ratio: auto !important;
  margin-top: 0 !important;
  object-fit: cover !important;
}
.entry > .tags { display: none !important; }
body .entry .card-explainer,
html body #priorityGrid.collectible-card-view .entry .card-explainer,
html body #regionalGrid.collectible-card-view .entry .card-explainer {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  max-height: 1.35em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: unset !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
html body #priorityGrid.collectible-card-view .entry .card-explainer,
html body #regionalGrid.collectible-card-view .entry .card-explainer {
  display: -webkit-box !important;
  flex-shrink: 0 !important;
  height: calc(1.35em + 33px) !important;
  max-height: calc(1.35em + 33px) !important;
  padding: 6px 10px !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
html body #priorityGrid.collectible-card-view .entry .card-explainer::before,
html body #regionalGrid.collectible-card-view .entry .card-explainer::before {
  content: none !important;
  display: none !important;
}
.tcg-move { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.tcg-move > span { min-width: 0; padding: 8px 7px !important; }
.tcg-move b { overflow-wrap: normal; word-break: normal; }
.tcg-move-access.is-verified {
  color: #0e3a2d !important;
  background: #bcecd9 !important;
  border-color: #58b796 !important;
}
.dark-mode .tcg-move-access.is-verified { color: #102d27 !important; background: #75d5b3 !important; }

.mini-grid,
.lead-grid { align-items: start !important; }
.mini-grid > li,
.lead-grid > .lead-card {
  min-height: 0 !important;
  padding: 12px !important;
}
.lead-card b { margin: 3px 0 !important; }
.lead-card small { display: block; line-height: 1.35; }

@media (max-width: 900px) {
  body .potato-guide-panel {
    position: absolute !important;
    left: var(--guide-panel-offset, 86px) !important;
    right: auto !important;
    top: auto !important;
    bottom: 0 !important;
    width: min(312px, calc(100vw - 24px)) !important;
    max-height: min(520px, calc(100dvh - 112px)) !important;
  }
  body .potato-guide.menu-left .potato-guide-panel { left: auto !important; right: var(--guide-panel-offset, 86px) !important; }
  body .potato-guide.menu-down .potato-guide-panel { top: 0 !important; bottom: auto !important; }
  .route-grid .route { min-height: 136px !important; padding: 13px !important; }
  #priorityGrid.collectible-card-view .entry > .card-visual,
  #priorityGrid.collectible-card-view > article > img,
  #regionalGrid.collectible-card-view .entry > .card-visual,
  #regionalGrid.collectible-card-view > article > img,
  .entry .card-visual,
  .entry > img { height: clamp(200px, 39vw, 300px) !important; }
}

@media (max-width: 560px) {
  body .potato-guide-panel { width: min(292px, calc(100vw - 92px)) !important; max-height: min(480px, calc(100dvh - 32px)) !important; }
  .potato-guide-head { padding: 11px 13px !important; }
  .potato-guide-head b { font-size: 15px !important; }
  .potato-guide-links a { min-height: 48px !important; }
  .potato-guide-size { padding: 7px 9px !important; }
  .potato-guide-foot { display: none; }
  body .route-grid { grid-template-columns: 1fr !important; }
  .route-grid .route { min-height: 0 !important; }
  .route-place { width: 68px !important; max-width: 68px !important; min-height: 68px !important; }
  #priorityGrid.collectible-card-view .entry > .card-visual,
  #priorityGrid.collectible-card-view > article > img,
  #regionalGrid.collectible-card-view .entry > .card-visual,
  #regionalGrid.collectible-card-view > article > img,
  .entry .card-visual,
  .entry > img { height: clamp(220px, 62vw, 310px) !important; }
  .tcg-move small { font-size: 8px !important; }
  .tcg-move b { font-size: 10px !important; line-height: 1.15 !important; }
  .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Browser-feedback refinements: aligned navigation, tab-first missions and wider equal cards. */
.site-nav-mobile-toggle {
  left: 14px !important;
  top: 14px !important;
  border: 2px solid #ff4d91 !important;
  border-radius: 7px !important;
  background: #17191f !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 145, .1), 0 7px 20px rgba(17, 18, 22, .18) !important;
}
.dark-mode .site-nav-mobile-toggle {
  border-color: #ff4d91 !important;
  background: #17191f !important;
  color: #fff !important;
}
@media (max-width: 1024px) {
  .site-nav-toggle { display: none !important; }
}
body.site-nav-open .site-nav-mark {
  opacity: 0;
}

.route-grid .route {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}
.route-grid > .route.progressive-hidden {
  display: none !important;
}
.route > b,
.route > small,
.route > .route-cta { grid-column: auto; }

.tcg-move-access.is-verified,
.dark-mode .tcg-move-access.is-verified {
  color: inherit !important;
  background: transparent !important;
  border-color: inherit !important;
}

/* Compact card, signal, event and disclosure layout. */
#priorityGrid.collectible-card-view .entry::after,
#regionalGrid.collectible-card-view .entry::after {
  content: none !important;
  display: none !important;
}

#priorityGrid.collectible-card-view .entry .location-strip,
#regionalGrid.collectible-card-view .entry .location-strip {
  height: auto !important;
  min-height: 2.8em !important;
  max-height: none !important;
  padding-right: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
}

.news-grid,
.newsletter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.event-grid .event-visual {
  height: clamp(250px, 32vw, 380px) !important;
}

.compact-disclosure {
  margin-block: 20px !important;
}
.compact-disclosure > summary {
  min-height: 58px;
}
.compact-disclosure > .checklist {
  margin: 0;
  padding: 18px 22px 22px 42px;
}
.false-positive-disclosure .false-grid {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .news-grid,
  .newsletter-grid {
    grid-template-columns: 1fr !important;
  }
  .event-grid .event-visual {
    height: 230px !important;
  }
}

.lead-grid {
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}
.lead-grid > .lead-card {
  height: 100% !important;
}

.newsletter > b {
  display: block;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.18;
}

.modal-panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.route-line {
  scroll-snap-type: none;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.route-loop-segment {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding-right: 5px;
}
.route-node { scroll-snap-align: start; }

#potatoGuide,
#potatoGuideHandle {
  pointer-events: auto !important;
  -webkit-user-select: none;
  user-select: none;
}
#potatoGuideHandle {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  touch-action: none;
  -webkit-touch-callout: none;
}

@media (max-width: 1024px) {
  .site-nav-mobile-toggle {
    width: 48px !important;
    height: 48px !important;
  }
  header#top {
    padding-top: 14px !important;
  }
  header#top .brandbar {
    min-height: 48px !important;
    padding-left: 64px !important;
    align-items: flex-start !important;
  }
  header#top .grade10-logo {
    height: 48px;
    align-items: center;
  }
  header#top .grade10-logo i {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
  }
}

/* Three equal research disclosures on wide screens; a single stack on compact screens. */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 45px;
}
.disclosure-grid > .footer.disclaimer {
  min-width: 0;
  margin: 0 !important;
}
.disclosure-grid > .disclaimer > summary {
  align-items: flex-start;
  min-height: 86px;
}
.disclosure-grid > .disclaimer > summary span { display: grid; gap: 4px; }
.disclosure-grid > .disclaimer > summary small { line-height: 1.3; }

/* Match the soft-corner Grade10 mark while opening a little air before the 10. */
header#top .grade10-logo { gap: 7px !important; }
header#top .grade10-logo span { transform: translateX(-1px); }
header#top .grade10-logo i { border-radius: 7px !important; }

/* Guide navigation and notebook entry. */
.site-nav-mobile-toggle {
  width: 48px !important;
  height: 48px !important;
  border-radius: 7px !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 145, .12), 0 0 18px rgba(255, 77, 145, .4), 0 7px 20px rgba(17, 18, 22, .18) !important;
}
.site-nav-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 2px;
  border: 1px solid currentColor;
  border-radius: 7px !important;
  color: #536173;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.site-nav-link:hover .site-nav-index,
.site-nav-link:focus-visible .site-nav-index,
.site-nav-link.is-active .site-nav-index {
  background: #fff;
  color: #174d8e;
  box-shadow: 0 5px 14px rgba(42, 78, 124, .12);
}
.dark-mode .site-nav-index { color: #b5c0cf; }
.dark-mode .site-nav-link:hover .site-nav-index,
.dark-mode .site-nav-link:focus-visible .site-nav-index,
.dark-mode .site-nav-link.is-active .site-nav-index { background: #152236; color: #9dcbff; }
.site-nav-notebook {
  background: linear-gradient(145deg, #ff493d, #ff7b3d) !important;
  border-color: #ff6840 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 73, 61, .24);
}
.site-nav-notebook:hover,
.site-nav-notebook:focus-visible {
  background: linear-gradient(145deg, #e93c32, #f36531) !important;
  border-color: #ff9a70 !important;
  color: #fff !important;
}
.site-nav-notebook-mark {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .72) !important;
}
.site-nav-notebook .site-nav-copy small { color: rgba(255, 255, 255, .82) !important; }

body.site-gate-locked {
  overflow: hidden !important;
  background: #68b3ef !important;
}
body.site-gate-locked > :not(.site-access-gate):not(#potatoGuide):not(#potatoGuideRestore):not(#potatoGuideBeam):not(#potatoGuideSpark) {
  visibility: hidden !important;
}
body.site-gate-locked #potatoGuide,
body.site-gate-locked #potatoGuideRestore,
body.site-gate-locked #potatoGuideBeam,
body.site-gate-locked #potatoGuideSpark {
  visibility: visible !important;
}
body.site-gate-locked #potatoGuide,
body.site-gate-locked #potatoGuideRestore { z-index: 610 !important; }
body.site-gate-locked #potatoGuideBeam { z-index: 609 !important; }
body.site-gate-locked #potatoGuideSpark { z-index: 611 !important; }
body .potato-guide-gate-title,
.potato-guide-gate-message { display: none !important; }
body.site-gate-locked .potato-guide-links,
body.site-gate-locked .potato-guide-size,
body.site-gate-locked .potato-guide-foot {
  display: none !important;
}
body.site-gate-locked .potato-guide-gate-message {
  display: block !important;
  margin: 12px;
  padding: 16px;
  border: 1px solid #4d82b7;
  border-radius: 12px;
  background: #e7f3ff;
  color: #101722;
  box-shadow: inset 5px 0 0 #ffdd3f;
}
body.site-gate-locked .potato-guide-directory-title { display: none !important; }
body.site-gate-locked .potato-guide-gate-title { display: block !important; }
body.site-gate-locked .potato-guide-gate-message b {
  display: block;
  color: #173a5e;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.site-gate-locked .potato-guide-gate-message p {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.site-access-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  isolation: isolate;
  background: #68b3ef;
  color: #101722;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-access-gate[hidden] { display: none; }
.site-access-continuation {
  position: absolute;
  z-index: -3;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(100vw, 82svh);
  pointer-events: none;
  background: url("assets/pin-gate-pattern.png") left bottom / auto 100% repeat-x;
}
.site-access-art {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  width: min(100vw, 82svh);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}
body .site-access-topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-top));
  min-height: 60px;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  border: 0;
  border-bottom: 3px solid #101722;
  background: #ffdd3f;
  color: #101722;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 0 rgba(16, 23, 34, .18);
  overflow: visible;
}
body .site-access-topbar::after { display: none; }
.site-access-logo {
  display: inline-flex;
  align-items: baseline;
  color: #101722;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: 1;
}
.site-access-logo span { color: #101722; }
.site-access-logo i { color: #ff493d; font-style: normal; }
.site-access-header-market {
  color: #101722;
  font: 950 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-access-invite {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 2px solid rgba(16, 23, 34, .7);
  background: rgba(139, 205, 243, .8);
  box-shadow: 4px 4px 0 rgba(16, 23, 34, .16);
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.site-access-invite i {
  width: 7px;
  height: 7px;
  background: #1e8064;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}
.site-access-panel {
  position: absolute;
  z-index: 2;
  top: clamp(92px, 10svh, 112px);
  left: 50%;
  width: min(620px, calc(100vw - 36px));
  transform: translateX(-50%);
  text-align: center;
}
body .site-access-panel h1 {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #101722 !important;
  background: none !important;
  font-size: clamp(35px, 4.6vw, 56px);
  line-height: .92 !important;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .25);
}
.site-access-copy {
  max-width: 570px;
  margin: 8px auto 11px;
  color: #27394f;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 650;
  line-height: 1.38;
}
.site-access-form { width: min(410px, 100%); margin: auto; }
.site-access-pin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1px 7px;
  color: #233449;
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-access-pin-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.site-access-pin-row input {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0;
  border: 2px solid #17202e;
  border-radius: 0;
  background: rgba(248, 253, 255, .9);
  color: #101722;
  box-shadow: 4px 4px 0 rgba(16, 23, 34, .18);
  font: 950 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  caret-color: #1a709f;
  appearance: none;
}
.site-access-pin-row input:focus {
  border-color: #182a40;
  outline: 3px solid rgba(255, 221, 63, .75);
}
.site-access-submit {
  width: 100%;
  height: 40px;
  margin-top: 9px;
  border: 2px solid #17202e;
  border-radius: 0;
  background: #ffdd3f;
  color: #101722;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 5px 5px 0 rgba(16, 23, 34, .25);
  font: 950 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-access-submit:hover,
.site-access-submit:focus-visible { background: #ffe76f; outline: 3px solid rgba(16, 23, 34, .18); outline-offset: 2px; }
.site-access-submit b { font-size: 17px; line-height: 1; }
.site-access-error { min-height: 17px; margin: 8px 0 0; color: #77251e; font-size: 11px; font-weight: 900; }
.site-access-form.is-error { animation: site-access-shake .28s steps(2, end); }
@keyframes site-access-shake { 33% { transform: translateX(-7px); } 66% { transform: translateX(7px); } }

@media (max-width: 700px) {
  .site-access-art { width: 100vw; }
  .site-access-continuation { height: 100vw; }
  body .site-access-topbar {
    height: calc(54px + env(safe-area-inset-top));
    min-height: 54px;
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    gap: 8px;
  }
  .site-access-logo { font-size: 21px; }
  .site-access-header-market { font-size: 7px; letter-spacing: .1em; }
  .site-access-invite { padding: 7px 8px; font-size: 8px; box-shadow: 3px 3px 0 rgba(16, 23, 34, .15); }
  .site-access-panel {
    top: clamp(max(82px, calc(env(safe-area-inset-top) + 76px)), min(calc(50svh - 39vw - 59px), calc(100svh - 100vw - 175px)), 245px);
    width: min(460px, calc(100vw - 32px));
  }
  body .site-access-panel h1 { font-size: clamp(31px, 9vw, 45px); }
  .site-access-copy { max-width: 390px; margin: 8px auto 11px; font-size: 11px; }
  .site-access-form { width: min(340px, 100%); }
  .site-access-pin-row input { height: 40px; }
  .site-access-submit { height: 37px; margin-top: 8px; }
}
@media (max-width: 390px) {
  body .site-access-topbar { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); gap: 5px; }
  .site-access-header-market { font-size: 7px; letter-spacing: .06em; }
  .site-access-invite { gap: 6px; padding: 6px; font-size: 7px; }
  body .site-access-panel h1 { font-size: 30px; }
  .site-access-copy { max-width: 340px; margin: 6px auto 9px; font-size: 10px; }
  .site-access-pin-head { font-size: 8px; }
  .site-access-pin-row { gap: 6px; }
  .site-access-pin-row input { height: 38px; }
  .site-access-submit { height: 36px; }
}
@media (max-height: 760px) and (min-width: 701px) {
  .site-access-panel { top: 76px; }
  body .site-access-topbar { height: 50px; min-height: 50px; }
  body .site-access-panel h1 { font-size: 34px; }
  .site-access-copy { margin: 7px auto 9px; font-size: 10px; }
  .site-access-pin-row input { height: 38px; }
  .site-access-submit { height: 36px; }
  .site-access-art { width: min(100vw, 77svh); }
  .site-access-continuation { height: min(100vw, 77svh); }
}
@media (max-height: 500px) and (min-width: 560px) {
  .site-access-panel { top: 75px; left: 28px; width: min(380px, 45vw); transform: none; text-align: left; }
  body .site-access-panel h1 { font-size: 32px; }
  .site-access-copy { max-width: 370px; margin: 7px 0 9px; }
  .site-access-form { width: 100%; margin: 0; }
  .site-access-pin-row { gap: 6px; }
  .site-access-pin-row input { height: 34px; }
  .site-access-submit { height: 34px; }
  .site-access-art { left: auto; right: 0; width: min(58vw, 94svh); transform: none; }
  .site-access-continuation { height: min(58vw, 94svh); }
}
@media (prefers-reduced-motion: reduce) {
  .site-access-form.is-error { animation: none; }
}

body.notebook-locked > :not(.notebook-gate):not(.site-access-gate) { visibility: hidden !important; }
body.notebook-gate-open { overflow: hidden; }
.notebook-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 11, 15, .82);
  backdrop-filter: blur(12px);
}
.notebook-gate[hidden] { display: none; }
.notebook-gate-card {
  width: min(430px, 100%);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  background: linear-gradient(155deg, #fffaf2, #f8eadc);
  color: #17191f;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}
.dark-mode .notebook-gate-card {
  background: linear-gradient(155deg, #20242d, #15171d);
  color: #f8f9fc;
}
.notebook-gate-kicker {
  margin: 0 0 5px;
  color: #d8462f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.notebook-gate-card h2 { margin: 0; font-size: clamp(26px, 6vw, 34px); }
.notebook-gate-copy { margin: 8px auto 22px; color: #666b75; }
.dark-mode .notebook-gate-copy { color: #bcc3cf; }
.notebook-gate-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 62px));
  justify-content: center;
  gap: clamp(8px, 3vw, 13px);
}
.notebook-gate-cells input {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid #d8c6b8;
  border-radius: 14px;
  background: #fff;
  color: #17191f;
  font: 900 clamp(25px, 8vw, 34px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  caret-color: #ff493d;
}
.notebook-gate-cells input:focus {
  border-color: #ff613c;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 73, 61, .18);
}
.notebook-gate-error { min-height: 22px; margin: 12px 0 4px; color: #b72f25; font-weight: 800; }
.dark-mode .notebook-gate-error { color: #ff9b91; }
.notebook-gate-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 8px; }
.notebook-gate-actions button {
  min-height: 46px;
  border: 1px solid #cbbbad;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 800 14px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.notebook-gate-actions button[type="submit"] {
  border-color: #ff5a39;
  background: linear-gradient(145deg, #ff493d, #ff7b3d);
  color: #fff;
}

.collection-more-wrap { position: relative; z-index: 75; }

header#top h1 {
  color: #fff !important;
  background: none !important;
  line-height: 1.04 !important;
  padding-bottom: .12em;
  animation: none !important;
}

@media (max-width: 720px) {
  .disclosure-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .disclosure-grid > .disclaimer > summary { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  header#top h1 { color: #fff; background: none; animation: none; }
}

/* Browser feedback: keep mobile card titles complete and align the rail mark with Grade10. */
.site-nav-mark {
  border: 2px solid #ff4d91 !important;
  border-radius: 7px !important;
  background: rgba(255, 38, 105, .08) !important;
  font-size: 27px !important;
  letter-spacing: -.04em !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 0 8px rgba(255, 73, 133, .58),
    0 0 19px rgba(255, 42, 119, .24) !important;
}

/* Community cards have fixed geometry; source-image dimensions never size a card. */
#communityGrid:not(.list-view) {
  --community-card-height: 390px;
  --community-banner-height: 250px;
  grid-auto-rows: var(--community-card-height) !important;
  align-items: stretch !important;
}
#communityGrid:not(.list-view) > .entry {
  display: flex;
  height: var(--community-card-height) !important;
  min-height: var(--community-card-height) !important;
  max-height: var(--community-card-height) !important;
  align-self: stretch;
  flex-direction: column;
  gap: 8px !important;
  padding: 14px !important;
  overflow: hidden;
}
#communityGrid > .entry::after {
  content: none !important;
  display: none !important;
}
#communityGrid:not(.list-view) .community-card-visual {
  display: block;
  width: 100%;
  height: var(--community-banner-height) !important;
  min-height: var(--community-banner-height) !important;
  max-height: var(--community-banner-height) !important;
  flex: 0 0 var(--community-banner-height);
  aspect-ratio: auto !important;
  margin-top: 0 !important;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: #11151f;
  object-fit: cover;
  object-position: center;
}
#communityGrid .entry h3 {
  display: -webkit-box !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.12 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
#communityGrid .entry .card-explainer {
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.modal-content .community-banner .gallery-stage {
  height: clamp(220px, 36vw, 360px) !important;
}
.modal-content .community-banner .gallery-slide img {
  object-fit: contain !important;
}

@media (min-width: 1025px) {
  header#top .grade10-logo i,
  .site-nav-mark {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 7px !important;
  }
  .site-nav:not(.expanded) .site-nav-head {
    min-height: 112px !important;
    align-content: start;
    padding: 38px 8px 10px !important;
  }
  .site-nav:not(.expanded) .site-nav-brand {
    padding: 0 !important;
  }
  .site-nav:hover,
  .site-nav:focus-within {
    width: var(--guide-drawer);
    box-shadow: 18px 0 48px rgba(17, 18, 22, .16);
  }
  .site-nav:not(.expanded):not(:hover):not(:focus-within) .site-nav-brand-copy,
  .site-nav:not(.expanded):not(:hover):not(:focus-within) .site-nav-copy {
    width: 0;
    opacity: 0;
    pointer-events: none;
  }
  .site-nav:not(.expanded):hover .site-nav-brand,
  .site-nav:not(.expanded):focus-within .site-nav-brand {
    width: auto;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }
  .site-nav:not(.expanded):hover .site-nav-head,
  .site-nav:not(.expanded):focus-within .site-nav-head {
    display: flex;
    min-height: 72px !important;
    justify-items: initial;
    align-content: initial;
    padding: 10px !important;
  }
  .site-nav:not(.expanded):hover .site-nav-link,
  .site-nav:not(.expanded):focus-within .site-nav-link {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }
  .site-nav:not(.expanded):hover .site-nav-brand-copy,
  .site-nav:not(.expanded):hover .site-nav-copy,
  .site-nav:not(.expanded):focus-within .site-nav-brand-copy,
  .site-nav:not(.expanded):focus-within .site-nav-copy {
    width: auto;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 620px) {
  :is(#priorityGrid, #regionalGrid).collectible-card-view .entry {
    width: min(100%, 370px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 5 / 7 !important;
    justify-self: center;
    overflow: hidden;
  }
  :is(#priorityGrid, #regionalGrid).collectible-card-view h3 {
    display: -webkit-box !important;
    height: 2.1em !important;
    min-height: 2.1em !important;
    max-height: 2.1em !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere;
  }
  :is(#priorityGrid, #regionalGrid).collectible-card-view > article > img,
  :is(#priorityGrid, #regionalGrid).collectible-card-view .entry > .card-visual {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 8.8 !important;
  }
  #communityGrid:not(.list-view) {
    --community-card-height: 390px;
    --community-banner-height: 250px;
  }
}

.partner-logo-visual {
  height: 170px;
  padding: 18px;
  background: #f7f3e9;
}

.partner-logo-visual > img,
.partner-logo-visual > picture,
.partner-logo-visual > picture > img {
  width: 100%;
  height: 134px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.partner-logo-visual > picture {
  display: block;
}

body.dark-mode .partner-logo-futera > picture > img {
  content: url("assets/strategic-futera.png");
}

body.dark-mode .partner-logo-visual {
  background: #11151f;
}
