/* =============================================================================================
   Shoe Guide (features.shoeGuide; MJ's Figma "Shoe Rankings", 11/13): the guide hub, editorial
   posts and their list, community rankings, the Supwell Crew, and Admin > Shoes' guide tabs.

   Plain CSS (no Tailwind), unlayered, linked after shoes.css in both hosts (Supwell/wwwroot/index.html
   and Supwell.Web/Components/App.razor). App classes are sg- prefixed, admin classes sga-, so nothing
   here reaches another page. Values are MJ's frames (402pt phone, 12pt gutter) on sw.css tokens.
   ============================================================================================= */

:root {
  --sg-olive: #374120;            /* the matcher and search cards, the active chip */
  --sg-olive-ink: #3f4531;
  --sg-sage: #9ea796;
  --sg-ink: #2d2d2d;
  --sg-ink-strong: #191919;
  --sg-label: #6b6756;            /* MJ's #7d7d7d label, darkened to AA on the cream (as shoes.css) */
  --sg-line: rgba(194, 183, 163, .6);
  --sg-line-2: #dad4c8;
  --sg-edge: rgba(171, 148, 126, .98);
  --sg-dot: #c2b7a3;
  --sg-dot-on: #3f4d2c;
  --sg-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

/* ---- page frame ------------------------------------------------------------------------------ */
.sg-page { max-width: 42rem; margin: 0 auto; padding: 4px 0 28px; font-family: var(--sw-font-ui); color: var(--sg-ink); }
.sg-stack { display: flex; flex-direction: column; gap: 12px; }
.sg-title { margin: 0; padding: 10px 0; font: 700 24px/26px var(--sw-font-head); letter-spacing: -.43px; color: #1d1d1d; }
.sg-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.sg-head .sg-title { padding: 0; }
.sg-back { flex: none; width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid rgba(0, 0, 0, .05); border-radius: 999px; background: rgba(239, 234, 230, .6); color: var(--sg-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sg-back:focus-visible, .sg-tap:focus-visible { outline: 2px solid var(--sw-olive); outline-offset: 2px; }

.sg-label { margin: 0; font: 700 10px/22px var(--sw-font-mono); letter-spacing: -.43px; color: var(--sg-label); text-transform: uppercase; }
.sg-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-viewall { display: inline-flex; align-items: center; gap: 4px; margin: -8px -4px -8px 0; padding: 8px 13px; border: 0; background: none; font: 600 10px/22px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); text-decoration: none; cursor: pointer; }
.sg-viewall:visited, .sg-viewall:hover { color: var(--sg-ink); }
.sg-section { display: flex; flex-direction: column; }

.sg-card { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--sg-shadow); color: var(--sg-ink); }
.sg-link { color: inherit; text-decoration: none; }
.sg-link:visited, .sg-link:hover { color: inherit; }
.sg-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale 160ms ease; }
.sg-tap:active { scale: .985; }
.sg-more { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 0; font: 500 14px/20px var(--sw-font-ui); letter-spacing: -.43px; color: #000; text-decoration: none; background: none; border: 0; width: 100%; cursor: pointer; }
.sg-more--end { justify-content: flex-end; }
.sg-more:visited { color: #000; }

/* ---- Shoe Matcher and the database search (the two olive cards) -------------------------------- */
.sg-matcher { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--sg-olive); box-shadow: var(--sg-shadow); color: #fff; text-decoration: none; }
.sg-matcher:visited, .sg-matcher:hover { color: #fff; }
.sg-matcher__img { flex: none; width: 80px; height: 80px; border-radius: 999px; object-fit: cover; }
.sg-matcher__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sg-matcher__title { font: 700 20px/20px var(--sw-font-head); letter-spacing: -.43px; color: #fff; }
.sg-matcher__sub { font: 400 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-sage); }
.sg-matcher__chev { flex: none; color: var(--sg-sage); }

.sg-search { position: relative; }
.sg-search__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 14px; background: var(--sg-olive); box-shadow: var(--sg-shadow); color: var(--sg-sage); }
.sg-search__bar input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: 400 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: #fff; -webkit-appearance: none; appearance: none; }
.sg-search__bar input::placeholder { color: var(--sg-sage); opacity: 1; }
.sg-search__bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sg-search__bar:focus-within { outline: 2px solid var(--sg-sage); outline-offset: 1px; }
.sg-search__browse { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 10px 0 10px 8px; border: 0; background: none; font: 600 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: #fff; text-decoration: none; cursor: pointer; }
.sg-search__browse:visited { color: #fff; }
.sg-search__clear { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.sg-results { margin-top: 8px; padding: 4px 0; }
.sg-results__empty { margin: 0; padding: 14px 16px; font: 500 14px/20px var(--sw-font-ui); color: var(--sg-label); }

/* ---- shoe rows (results, rankings, lists) ------------------------------------------------------ */
.sg-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--sg-ink); text-decoration: none; }
.sg-row:visited, .sg-row:hover { color: var(--sg-ink); }
.sg-row + .sg-row, .sg-rows--lined > .sg-row:not(:last-child) { border-bottom: .5px solid var(--sg-line); }
.sg-rows--lined > .sg-row + .sg-row { border-top: 0; }
.sg-row__rank { flex: none; width: 30px; padding-right: 10px; border-right: .5px solid var(--sg-line-2); text-align: center; font: 700 20px/20px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink-strong); }
.sg-row__thumb { flex: none; width: 50px; height: 50px; object-fit: contain; }
.sg-row__thumb--blank { display: inline-grid; place-items: center; color: var(--sg-sage); }
.sg-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sg-row__kicker { font: 700 12px/20px var(--sw-font-mono); letter-spacing: -.43px; color: var(--sg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-row__name { font: 600 18px/20px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-row__meta { margin-top: 2px; font: 500 11px/14px var(--sw-font-mono); letter-spacing: -.2px; color: var(--sg-label); }
.sg-row__chev { flex: none; color: var(--sg-ink); }

/* Framed rows: the featured card's group rows (2px warm border, own radius). */
.sg-frame { border: 2px solid var(--sg-line); border-radius: 14px; background: #fff; }
.sg-frame + .sg-frame { margin-top: 10px; }
.sg-frame.sg-row + .sg-frame.sg-row { border-top: 2px solid var(--sg-line); border-bottom: 2px solid var(--sg-line); }

/* ---- editorial cards ------------------------------------------------------------------------- */
.sg-hero { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px 14px 0 0; background: var(--sw-ground); }
.sg-post { overflow: hidden; }
.sg-post__body { padding: 10px; }
.sg-byline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-byline__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sg-byline__img { flex: none; width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.sg-byline__name { display: block; font: 600 16px/18px var(--sw-font-ui); letter-spacing: -.43px; color: #000; }
.sg-byline__when { display: block; margin-top: 3px; font: 400 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: #000; }
.sg-pill { flex: none; display: inline-flex; align-items: center; padding: 4px 6px; border: 1px solid var(--sg-edge); border-radius: 25px; font: 500 12px/12px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-olive-ink); text-transform: uppercase; }
.sg-post__title { margin: 20px 0 10px; font: 700 20px/22px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink); }
.sg-post__intro { margin: 0 0 10px; font: 400 16px/20px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); white-space: pre-line; }
.sg-post__intro--clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.sg-post__text p { margin: 0 0 12px; font: 400 16px/22px var(--sw-font-ui); letter-spacing: -.3px; color: var(--sg-ink); white-space: pre-line; }
.sg-post__lists { padding: 10px 0 0; }
.sg-draft { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #fdf3d4; font: 600 11px/14px var(--sw-font-mono); color: #6b5410; text-transform: uppercase; }

/* Article lists: ranked items with blurbs, accordion groups. */
.sg-item { padding: 14px 0 12px; border-bottom: 1px solid var(--sg-line-2); }
.sg-item:last-child { border-bottom: 0; }
.sg-item__head { display: flex; align-items: center; gap: 10px; color: var(--sg-ink); text-decoration: none; }
.sg-item__head:visited { color: var(--sg-ink); }
.sg-item__rank { flex: none; min-width: 26px; font: 700 20px/20px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink-strong); }
.sg-item__blurb { margin: 10px 0 0; font: 400 14px/18px var(--sw-font-ui); letter-spacing: -.3px; color: var(--sg-ink); white-space: pre-line; }
.sg-acc { border-top: 2px solid var(--sg-line-2); }
.sg-acc:last-child { border-bottom: 2px solid var(--sg-line-2); }
.sg-acc + .sg-acc { border-top-width: 2px; }
.sg-acc__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 0; background: none; text-align: left; color: var(--sg-ink); font-family: var(--sw-font-ui); cursor: pointer; }
.sg-acc__chev { flex: none; transition: rotate 200ms var(--sw-out, ease); }
.sg-acc__btn[aria-expanded="true"] .sg-acc__chev { rotate: 180deg; }
.sg-acc__panel { padding: 0 10px 8px 20px; }

/* ---- community rankings ------------------------------------------------------------------------ */
.sg-rank-card__head { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 10px; }
.sg-rank-card__title { margin: 0; font: 700 20px/22px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink); }
.sg-rank-card__sub { margin: 0; font: 400 14px/20px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink); }
.sg-rank-card .sg-more { padding-right: 20px; }

.sg-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 6px; overscroll-behavior-x: contain; }
.sg-carousel::-webkit-scrollbar { display: none; }
.sg-carousel > .sg-card { flex: 0 0 100%; scroll-snap-align: center; }
.sg-dots { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 10px 0 4px; }
.sg-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 25px; background: var(--sg-dot); cursor: pointer; transition: width 200ms ease, background 200ms ease; }
.sg-dot[aria-current="true"] { width: 20px; border-radius: 4px; background: var(--sg-dot-on); }

.sg-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 4px 12px; }
.sg-chips::-webkit-scrollbar { display: none; }
.sg-chip { flex: none; padding: 8px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); font: 500 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); cursor: pointer; }
.sg-chip[aria-checked="true"] { background: var(--sg-olive); color: #fff; }

/* ---- Supwell Crew ----------------------------------------------------------------------------- */
.sg-crew__title { margin: 0; padding: 10px 0 0; font: 700 20px/22px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink); }
.sg-crew__sub { margin: 4px 0 10px; font: 400 14px/20px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink); }
.sg-crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-crew__card { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--sg-edge); border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); color: var(--sg-ink); text-decoration: none; }
.sg-crew__card:visited, .sg-crew__card:hover { color: var(--sg-ink); }
.sg-crew__who { display: flex; align-items: center; gap: 5px; min-width: 0; }
.sg-crew__avatar { flex: none; width: 30px; height: 30px; border-radius: 999px; object-fit: cover; background: var(--sw-ground); display: inline-grid; place-items: center; font: 700 13px/1 var(--sw-font-head); color: var(--sg-olive-ink); }
.sg-crew__name { font: 700 16px/20px var(--sw-font-head); letter-spacing: -.43px; color: var(--sg-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-crew__brand { margin-top: 20px; font: 500 12px/20px var(--sw-font-ui); letter-spacing: -.43px; }
.sg-crew__model { font: 600 18px/20px var(--sw-font-ui); letter-spacing: -.43px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-crew__img { display: block; width: 100%; aspect-ratio: 16 / 10; margin-top: 4px; object-fit: contain; }
.sg-crew__note { margin-top: 4px; font: 500 11px/14px var(--sw-font-mono); color: var(--sg-label); }

/* ---- editorial list (gallery / list + search) ------------------------------------------------- */
.sg-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sg-toggle { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); }
.sg-toggle button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--sg-ink); cursor: pointer; }
.sg-toggle button[aria-pressed="true"] { background: var(--sg-olive-ink); color: #fff; }
.sg-find { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); color: var(--sg-sage); }
.sg-find input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 400 14px/16px var(--sw-font-ui); color: var(--sg-ink); -webkit-appearance: none; appearance: none; }
.sg-find input::placeholder { color: #9e9e96; }
.sg-find button { flex: none; padding: 8px 0 8px 6px; border: 0; background: none; font: 600 13px/16px var(--sw-font-ui); color: var(--sg-ink); cursor: pointer; }
.sg-gallery { display: flex; flex-direction: column; gap: 12px; }

.sg-empty { padding: 32px 20px; text-align: center; }
.sg-empty__title { margin: 0 0 6px; font: 700 18px/22px var(--sw-font-head); color: var(--sg-ink); }
.sg-empty__body { margin: 0 0 14px; font: 400 14px/20px var(--sw-font-ui); color: var(--sg-label); }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--sw-olive); font: 600 14px/1 var(--sw-font-ui); color: #fff; text-decoration: none; cursor: pointer; }
.sg-btn:visited { color: #fff; }
.sg-skel { display: block; border-radius: 14px; background: linear-gradient(90deg, #e9e4dd 0%, #f3efe9 50%, #e9e4dd 100%); background-size: 200% 100%; animation: sg-shimmer 1.2s ease-in-out infinite; }
@keyframes sg-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sg-skel { animation: none; } .sg-tap, .sg-dot, .sg-acc__chev { transition: none; } }

/* Shoe Database as the guide's child (features.shoeGuide): its own back and title. */
.sg-db-head { display: flex; align-items: center; gap: 10px; padding: 2px 0 0; }
.sg-db-head .sg-title { padding: 0; }

/* ================================ Admin > Shoes (sga-) ================================ */
.sga { font-family: var(--sw-font-ui); color: var(--sg-ink); }
.sga-head { padding: 4px 0 6px; }
.sga-head h1 { margin: 0; font: 700 22px/26px var(--sw-font-head); color: #2d2d2d; }
.sga-head p { margin: 4px 0 0; font: 500 13px/18px var(--sw-font-ui); color: var(--sg-label); }
.sga-tabs { display: flex; gap: 4px; margin: 10px 0 16px; border-bottom: 1px solid #d9d2c5; overflow-x: auto; scrollbar-width: none; }
.sga-tab { flex: none; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 14px/18px var(--sw-font-ui); color: #5c5a4d; cursor: pointer; margin-bottom: -1px; }
.sga-tab[aria-selected="true"] { border-bottom-color: #2d2d2d; color: #2d2d2d; font-weight: 600; }
.sga-note { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #ddd6ca; border-radius: 10px; background: #f8f6f2; font: 500 13px/18px var(--sw-font-ui); color: #3f4531; }
.sga-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .sga-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.sga-panel { background: #fff; border-radius: 14px; box-shadow: var(--sg-shadow); }
.sga-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #eee9e0; }
.sga-panel__head h2 { margin: 0; font: 700 17px/22px var(--sw-font-head); color: #2d2d2d; }
.sga-panel__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.sga-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sga-field > span, .sga-legend { font: 500 13px/16px var(--sw-font-ui); color: #2d2d2d; }
.sga-field > span em, .sga-legend em { font-style: normal; color: #8a8576; }
.sga-help { margin: 0; font: 400 11.5px/15px var(--sw-font-ui); color: #6b6756; }
.sga-input, .sga-select, .sga-textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; border: 1px solid #d9d2c5; border-radius: 10px; background: #fff; font: 400 14px/20px var(--sw-font-ui); color: #2d2d2d; }
.sga-textarea { min-height: 88px; resize: vertical; }
.sga-input:focus, .sga-select:focus, .sga-textarea:focus { outline: 2px solid #3f4531; outline-offset: 0; border-color: transparent; }
.sga-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .sga-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sga-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sga-choice--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sga-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 8px; border: 1px solid #d9d2c5; border-radius: 10px; background: #fff; text-align: center; cursor: pointer; font-family: var(--sw-font-ui); }
.sga-opt b { font: 500 13.5px/17px var(--sw-font-ui); color: #2d2d2d; }
.sga-opt small { font: 400 11px/14px var(--sw-font-ui); color: #6b6756; }
.sga-opt[aria-pressed="true"] { border: 2px solid #2d2d2d; background: #f3f0ea; }
.sga-shows { margin: -6px 0 0; font: 500 10px/14px var(--sw-font-mono); letter-spacing: .02em; text-transform: uppercase; color: #6b6756; }
.sga-shows b { font: 600 12px/14px var(--sw-font-ui); text-transform: none; color: #2d2d2d; letter-spacing: 0; }
.sga-box { padding: 14px; border: 1px solid #e6e0d5; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.sga-box--tint { background: #f3f0ea; border-color: #ebe5da; }
.sga-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sga-box__head b { font: 600 14px/18px var(--sw-font-ui); }
.sga-check { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/18px var(--sw-font-ui); color: #2d2d2d; cursor: pointer; }
.sga-check input { width: 18px; height: 18px; accent-color: #2d2d2d; }
.sga-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid #d9d2c5; border-radius: 10px; background: #fff; font: 500 13.5px/1 var(--sw-font-ui); color: #2d2d2d; cursor: pointer; }
.sga-btn--primary { border-color: transparent; background: #373c2b; color: #fff; }
.sga-btn--danger { color: #b84c41; }
.sga-btn--sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.sga-btn:disabled { opacity: .5; cursor: default; }
.sga-textbtn { padding: 2px 0; border: 0; background: none; font: 500 12.5px/16px var(--sw-font-ui); color: #2d2d2d; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sga-textbtn--danger { color: #b84c41; }
.sga-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fbe9e7; font: 500 13px/18px var(--sw-font-ui); color: #8c2f25; }
.sga-ok { margin: 0; padding: 10px 12px; border-radius: 10px; background: #edf3e4; font: 500 13px/18px var(--sw-font-ui); color: #3f4d2c; }

/* Post list (right rail) */
.sga-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sga-filter { padding: 6px 10px; border: 1px solid #d9d2c5; border-radius: 999px; background: #fff; font: 500 12px/14px var(--sw-font-ui); color: #2d2d2d; cursor: pointer; }
.sga-filter[aria-pressed="true"] { border-color: #2d2d2d; background: #2d2d2d; color: #fff; }
.sga-list { display: flex; flex-direction: column; gap: 10px; }
.sga-item { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--sg-shadow); border: 1px solid transparent; }
.sga-item--on { border-color: #2d2d2d; }
.sga-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sga-item__title { font: 600 14px/18px var(--sw-font-ui); color: #2d2d2d; }
.sga-item__meta { margin-top: 4px; font: 400 12px/16px var(--sw-font-ui); color: #6b6756; }
.sga-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sga-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.sga-badge { padding: 3px 8px; border-radius: 999px; border: 1px solid #c9c2b4; font: 500 11px/13px var(--sw-font-ui); color: #2d2d2d; white-space: nowrap; }
.sga-badge--dark { border-color: #373c2b; background: #373c2b; color: #fff; }
.sga-badge--muted { border-color: #ebe5da; background: #ebe5da; color: #5c5a4d; }

/* Shoe editor */
.sga-shoe { display: grid; grid-template-columns: auto auto 44px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 10px; border: 1px solid #e6e0d5; border-radius: 10px; background: #fff; }
@media (min-width: 640px) { .sga-shoe { grid-template-columns: auto auto 44px minmax(0, 150px) minmax(0, 1fr) auto; } }
.sga-shoe__move { display: flex; flex-direction: column; gap: 2px; }
.sga-shoe__move button { width: 24px; height: 20px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #e6e0d5; border-radius: 6px; background: #fff; color: #2d2d2d; cursor: pointer; }
.sga-shoe__move button:disabled { opacity: .35; cursor: default; }
.sga-shoe__n { font: 700 15px/20px var(--sw-font-head); padding-top: 10px; min-width: 14px; text-align: right; }
.sga-shoe__img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #f5f2ef; }
.sga-shoe__name { padding-top: 4px; font: 600 13px/16px var(--sw-font-ui); }
.sga-shoe__name small { display: block; font: 400 11px/14px var(--sw-font-ui); color: #6b6756; }
.sga-shoe .sga-textarea { min-height: 44px; grid-column: 1 / -1; }
@media (min-width: 640px) { .sga-shoe .sga-textarea { grid-column: auto; } }
.sga-picker { position: relative; }
.sga-picker__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid #e6e0d5; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.sga-picker__opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 13px/16px var(--sw-font-ui); color: #2d2d2d; cursor: pointer; }
.sga-picker__opt:hover, .sga-picker__opt:focus-visible { background: #f3f0ea; }
.sga-picker__opt img { width: 36px; height: 36px; object-fit: contain; }
.sga-picker__opt small { display: block; color: #6b6756; font-weight: 400; }
.sga-group { padding: 10px 12px; border: 1px solid #e6e0d5; border-radius: 10px; background: #f8f6f2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sga-group b { font: 600 13.5px/18px var(--sw-font-ui); }
.sga-preview { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
.sga-preview img, .sga-preview__ph { width: 110px; height: 110px; border-radius: 8px; object-fit: cover; background: #e6e0d5; display: grid; place-items: center; font: 500 10px/1 var(--sw-font-mono); color: #6b6756; }
.sga-preview__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sga-preview__row { padding: 6px 10px; border: 1px solid #e6e0d5; border-radius: 8px; background: #fff; }
.sga-preview__row small { display: block; font: 500 10px/12px var(--sw-font-mono); color: #6b6756; }
.sga-preview__row b { font: 600 13px/16px var(--sw-font-ui); }
.sga-hero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sga-hero img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #e6e0d5; }
.sga-file { position: relative; overflow: hidden; }
.sga-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Rankings + crew rails */
.sga-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 0 10px; }
.sga-rail-head h2 { margin: 0; font: 700 18px/22px var(--sw-font-head); }
.sga-rail-head span { font: 400 12px/16px var(--sw-font-ui); color: #6b6756; }
.sga-sample { padding: 14px 16px; border-radius: 12px; background: #f3f0ea; }
.sga-sample small { display: block; font: 500 10px/14px var(--sw-font-mono); text-transform: uppercase; color: #5c5a4d; }
.sga-sample b { display: block; margin: 6px 0 4px; font: 700 16px/20px var(--sw-font-head); }
.sga-sample p { margin: 0; font: 400 13px/18px var(--sw-font-ui); color: #3f4531; }
.sga-crew__row { display: flex; align-items: flex-start; gap: 10px; }
.sga-crew__grip { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.sga-crew__grip button { width: 22px; height: 18px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #e6e0d5; border-radius: 5px; background: #fff; cursor: pointer; color: #2d2d2d; }
.sga-crew__grip button:disabled { opacity: .35; cursor: default; }
.sga-crew__main { flex: 1 1 auto; min-width: 0; }
.sga-crew__links { display: flex; gap: 14px; margin-top: 8px; }
.sga-picks { display: flex; flex-direction: column; gap: 4px; }
.sga-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: left; font: 500 13px/16px var(--sw-font-ui); cursor: pointer; color: #2d2d2d; }
.sga-pick[aria-pressed="true"] { border-color: #2d2d2d; background: #f3f0ea; }
.sga-pick img, .sga-pick__ph { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; background: #e6e0d5; flex: none; }
.sga-pick small { display: block; font-weight: 400; color: #6b6756; }

/* ---- the shoe database, the guide's child (MJ's 4361:6296) --------------------------------------
   ShoeDatabase.razor with features.shoeGuide on: a white search card with SEARCH and the filter disc,
   the guide's category chips in one white card, then slim white rows (photo, brand in mono with the
   category as an outlined tag, the model), brand A to Z. */
.sg-dbbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.sg-dbsearch { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px; border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); color: var(--sg-ink); }
.sg-dbsearch:focus-within { outline: 2px solid var(--sw-olive, #373c2b); outline-offset: 1px; }
.sg-dbsearch input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: 400 16px/16px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); -webkit-appearance: none; appearance: none; }
.sg-dbsearch input::placeholder { color: var(--sg-sage); opacity: 1; font-size: 14px; }
.sg-dbsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sg-dbsearch__clear { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .06); color: var(--sg-ink); cursor: pointer; }
.sg-dbsearch__go { flex: none; padding: 10px 2px; border: 0; background: none; font: 600 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: #23261d; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sg-dbfilter { position: relative; flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid rgba(0, 0, 0, .05); border-radius: 999px; background: #fff; color: var(--sg-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sg-dbfilter.is-on { background: var(--sg-olive); color: #fff; }
.sg-dbfilter:focus-visible, .sg-dbcats button:focus-visible, .sg-dbrow:focus-visible { outline: 2px solid var(--sw-olive, #373c2b); outline-offset: 2px; }

.sg-dbcats { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 60px; margin-top: 10px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--sg-shadow); overflow-x: auto; scrollbar-width: none; }
.sg-dbcats::-webkit-scrollbar { display: none; }
.sg-dbcats button { flex: none; height: 40px; padding: 0 10px; border: 0; border-radius: 14px; background: none; font: 600 14px/16px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-olive-ink); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease, color 160ms ease; }
.sg-dbcats button[aria-checked="true"] { background: var(--sg-olive); color: #fff; }

.sg-dblist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sg-dbrow { box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 80px; padding: 10px 20px; border-radius: 14px; background: #fff; color: var(--sg-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: scale 160ms ease; }
.sg-dbrow:visited, .sg-dbrow:hover { color: var(--sg-ink); }
.sg-dbrow:active { scale: .985; }
.sg-dbrow__thumb { flex: none; width: 51px; height: 50px; object-fit: contain; }
.sg-dbrow__thumb.sg-row__thumb--blank, span.sg-dbrow__thumb { display: inline-grid; place-items: center; color: var(--sg-sage); }
.sg-dbrow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-dbrow__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.sg-dbrow__brand { min-width: 0; font: 700 12px/20px var(--sw-font-mono); letter-spacing: -.43px; color: var(--sg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-dbrow__tag { flex: none; padding: 0 10px; border: 1px solid #c2b7a3; border-radius: 25px; font: 700 10px/20px var(--sw-font-mono); letter-spacing: -.43px; color: var(--sg-ink); white-space: nowrap; }
.sg-dbrow__name { font: 600 18px/20px var(--sw-font-ui); letter-spacing: -.43px; color: var(--sg-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (prefers-reduced-motion: reduce) {
  .sg-dbrow, .sg-dbcats button { transition: none; }
  .sg-dbrow:active { scale: none; }
}
