.community-quick, .community-actions, .community-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .8rem;
}
.community-quick { margin: .6rem 0 1rem; }
.community-status { flex-basis: 100%; margin: .35rem 0; }
.community-status:empty { display: none; }
.community-secondary.gear-note-button {
  background: #eff3e8;
  color: #25362a;
  border: 1px solid #9fae95;
}
.community-secondary.gear-note-button:hover { background: #e3ebd8; }
.community-form { display: grid; gap: .65rem; max-width: 33rem; }
.community-form > button { justify-self: start; }
.community-form label { display: grid; gap: .2rem; }
.community-form label:has(input[type="checkbox"]) { display: flex; align-items: center; flex-direction: row-reverse; justify-content: start; gap: .5rem; }
.community-form :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #9fae95;
  border-radius: var(--panel-radius);
  background: #fff;
  color: #25362a;
  padding: .55rem .65rem;
  font: inherit;
}
.community-form input[type="file"] { padding: .45rem; }
.community-form [hidden], .community-dashboard [hidden] { display: none; }
.community-challenge:empty { display: none; }
.community-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: 92vh;
  border: 1px solid #9fae95;
  border-radius: var(--panel-radius);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1rem, 5vw, 2rem);
}
.community-dialog::backdrop { background: rgb(16 31 24 / .58); }
.community-dialog h2, .community-panel h2 { margin: 0 0 .65rem; }
.community-dialog > button { margin-top: .65rem; }
.community-panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid #c8d1bd;
  border-radius: var(--panel-radius);
  background: #fbfcf7;
}
.community-panel :is(p, h3, ul) { margin: .35rem 0 .65rem; }
.community-panel details { margin: .65rem 0; }
.community-panel details > form { margin: .65rem 0; }
.community-panel summary { cursor: pointer; width: fit-content; font-weight: 700; }
.community-panel a, .community-index a, .community-status a { text-decoration: underline; text-underline-offset: .2em; }
.community-dashboard { display: grid; gap: 1rem; margin: 0 0 3rem; }
.community-dashboard p { overflow-wrap: anywhere; }
.community-sign-in { max-width: 38rem; }
.community-list { list-style: none; padding: 0; }
.community-list > li + li { border-top: 1px solid #dce2d4; }
.community-list > li { padding: .65rem 0; }
.community-list .community-actions { margin-top: .4rem; }
.community-pin {
  margin-left: .55rem;
  color: #384e24;
  background: #e4ecd7;
  padding: .16rem .45rem;
  border-radius: var(--panel-radius);
  font-weight: 700;
}
[data-review-content] { display: grid; gap: .65rem; width: 100%; }
[data-review-status]:empty { display: none; }
[data-review-content] > p { margin: 0; }
[data-review-content] > button { justify-self: start; }
.community-stars { letter-spacing: .12em; color: #496422; margin: .25rem 0; }
.community-review-photo {
  display: block;
  max-width: min(100%, 26rem);
  max-height: 32rem;
  object-fit: contain;
  border-radius: var(--panel-radius);
  margin: .6rem 0;
}

/* My Kit and product actions */
body[data-view="my-kit"] .page-intro { padding-bottom: .65rem; }
.community-dashboard-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}
.community-index {
  gap: 0 clamp(.65rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.community-index a {
  padding: .45rem .15rem .65rem;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.community-index a:hover, .community-index a:focus-visible { text-decoration: underline; }
.community-gear-panel {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: #fafbf6;
  align-items: stretch;
}
.community-gear-panel .community-panel { border: 0; background: transparent; }
.community-gear-panel .community-panel + .community-panel { border-left: 1px solid var(--line); }
.community-gear-panel .community-list > li { padding: .6rem 0; }
.community-saved-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .75rem;
  align-items: center;
}
.community-saved-row .community-status { grid-column: 1 / -1; }
.community-saved-row .community-product img { width: 52px; height: 52px; flex-basis: 52px; }
.community-saved-row .community-product a { text-decoration-thickness: 1px; text-decoration-color: #adb6a5; }
.community-item-menu { position: relative; justify-self: end; }
.community-item-menu > summary {
  display: grid;
  place-content: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--panel-radius);
  font-size: 1.35rem;
  line-height: 1;
}
.community-item-menu > summary::-webkit-details-marker { display: none; }
.community-item-menu[open] > summary, .community-item-menu > summary:hover {
  border-color: var(--line);
  background: #edf2e3;
}
.community-item-menu > .community-actions {
  position: absolute;
  inset: calc(100% + .2rem) 0 auto auto;
  z-index: 2;
  min-width: max-content;
  padding: .25rem;
  display: grid;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: #fafbf6;
  box-shadow: 0 4px 12px rgb(25 43 36 / .13);
}
.community-item-menu .gear-note-button {
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
}
.community-panel {
  display: flow-root;
  border-color: var(--line);
  background: #fafbf6;
}
.community-panel > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font: 700 clamp(1.65rem, 2.5vw, 2.1rem)/1.1 var(--display);
}
.community-count {
  min-width: 1.7em;
  padding: .1rem .35rem;
  text-align: center;
  color: var(--green);
  background: #e6edda;
  border-radius: var(--panel-radius);
  font: 700 .8rem/1.45 var(--body);
}
.community-panel > p, .community-panel small { color: var(--muted); }
.community-panel a:not(.community-product a) { text-decoration-thickness: 1px; }
.community-panel .community-list { margin-bottom: 0; }
.community-product {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.community-product img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.community-product small { display: block; font-weight: 500; }
.community-product .community-pin { display: inline-block; margin: .2rem 0 0; font-size: .75rem; }
.community-kit-picker {
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: .5rem;
  align-items: end;
}
.community-kit-custom > label { margin: .5rem 0; }
.community-kit-selection { display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
#race-kits { position: relative; }
.community-panel .community-create-kit { margin-top: .25rem; }
.community-create-kit > summary {
  padding: .5rem .75rem;
  list-style: none;
  border-radius: var(--panel-radius);
  background: var(--ink);
  color: var(--white);
}
.community-create-kit > summary::-webkit-details-marker { display: none; }
.community-create-kit > summary::before { content: '+'; margin-right: .4rem; }
.community-kit-title { display: flex; align-items: baseline; gap: .35rem .75rem; flex-wrap: wrap; }
.community-kit-title h3 { margin: 0; font-size: 1.1rem; }
.community-kit-title span { font-size: .8rem; color: var(--muted); }
.community-kit-race { color: var(--muted); font-size: .88rem; }
.community-kit-items {
  margin: .85rem 0;
  padding-block: .6rem;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: .65rem 1rem;
}
.community-kit-items h4 {
  color: var(--muted);
  margin: 0;
  font: 600 .68rem/1.5 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.community-kit-items ul { margin: .2rem 0 0; }
.community-kit-items li { padding: .25rem 0; }
.community-kit-items .community-product { font-size: .88rem; line-height: 1.35; }
.community-kit-items img { width: 42px; height: 42px; flex-basis: 42px; }
.community-kit-actions { gap: .1rem .8rem; }
.community-kit-actions details { margin: 0; }
.community-kit-actions details[open] { flex-basis: 100%; }
.community-kit-actions summary { font-weight: 500; }
.community-kit-actions .gear-note-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
  padding: .25rem .1rem;
}
.community-match-columns, .community-match-group {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: .3rem 1.2rem;
}
.community-match-columns {
  margin-top: 1rem;
  padding-bottom: .45rem;
  color: var(--muted);
  font: 600 .7rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .045em;
}
.community-match-tier + .community-match-tier { margin-top: 1.05rem; }
.community-match-tier > h3 {
  margin: 0;
  padding: .35rem 0;
  border-top: 1px solid #aebc9d;
  color: var(--green);
  font-size: .8rem;
}
.community-match-tier > .community-list { margin-top: 0; }
.community-match-group ul { margin: 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.community-match-group ul:first-child { font-weight: 700; }
.community-match-group ul:last-child { display: flex; flex-wrap: wrap; gap: .15rem .4rem; align-content: start; }
#athlete-matches .community-match-group a { text-decoration: none; }
#athlete-matches .community-match-group a:is(:hover, :focus-visible) { text-decoration: underline; }
.community-athlete-link { display: inline-flex; align-items: center; gap: .45rem; }
.community-athlete-link img { width: 36px; height: 36px; }
.community-product-copy .profile-title { margin-bottom: 0; }
.community-product-tools { margin: .65rem 0 1rem; }
.community-product-tools .community-quick { margin: .25rem 0 0; gap: .35rem .55rem; }
.community-product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem .65rem;
  min-height: 2.5rem;
}
.community-product-rating .community-rate-button {
  background: #e4edcc;
  border-color: #95a675;
  color: #263d23;
  font-weight: 700;
}
.community-product-rating .community-rate-button:hover { background: #d9e7b9; }
.community-product-tools [data-save-product] button { background: #f2f3e9; }
.community-product-tools [data-save-product] button:hover { background: #e8eddc; }
.community-product-rating .community-rate-button[data-selected],
.community-product-tools [data-save-product] button[data-selected] {
  border-color: #779066;
  background: #dae9d4;
  color: #263d23;
  font-weight: 700;
}
.community-product-rating .community-rate-button[data-selected]:hover,
.community-product-tools [data-save-product] button[data-selected]:hover { background: #d2e3c9; }
.community-product-rating a, [data-review-content] > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
}
.community-product-rating a:hover { text-decoration: underline; }
.community-product-rating .community-stars { font-size: 1rem; letter-spacing: .045em; }
[data-review-content] > p .community-stars { font-size: 1.14rem; }
.community-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .25rem 0 0; }
.community-review-actions p { margin: 0; flex: 0 0 100%; }
.community-review-dialog { position: fixed; }
.community-review-dialog > h2 {
  margin: 0 0 .2rem;
  padding-right: 2.6rem;
  font: 700 2rem/1 var(--display);
}
.community-dialog-product { margin: 0 0 .9rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.community-review-dialog .gear-note-form { background: none; border: 0; padding: 0; margin: 0; }
.community-review-dialog .gear-note-form label { margin: 0; }
.community-review-dialog .gear-note-form [type=submit] { background: var(--ink); color: white; margin-top: 0; }
.community-review-dialog .community-dialog-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  padding: 0;
  width: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 1.45rem;
}
.community-review-dialog .community-dialog-close:hover { background: #edf2e3; }
.community-review-dialog textarea { font-weight: 400; }
.community-review-dialog .community-review-help { margin: 0 0 .3rem; font-size: .82rem; }
.community-review-dialog ::file-selector-button {
  border: 0;
  border-radius: var(--panel-radius);
  background: #e8eddf;
  color: var(--ink);
  padding: .25rem .4rem;
  font: 500 .8rem var(--body);
  cursor: pointer;
}
.community-rate-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.community-rate-field > legend { padding: 0; font-weight: 700; }
.community-rate-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .15rem;
  max-width: 15rem;
  margin: .2rem 0;
}
.community-rate-choices label {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: .15rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--panel-radius);
  cursor: pointer;
}
.community-rate-choices label > input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.community-rate-choices label > span::before { content: '☆'; color: #697764; font-size: 1.55rem; line-height: 1; }
.community-rate-choices label:has(:checked) > span::before,
.community-rate-choices label:has(~ label :checked) > span::before { content: '★'; color: #496422; }
.community-rate-choices label:has(:checked), .community-rate-choices label:hover { background: #e8eddf; }
.community-rate-choices label:has(:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.community-rate-field > label { display: flex; align-items: center; justify-content: start; flex-direction: row-reverse; gap: .4rem; width: fit-content; }
.community-rate-field > label input { width: auto; }
.community-follow { position: relative; }
.community-follow .community-follow-button {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  background: transparent;
  font-weight: 700;
}
.community-follow-button span { font-size: 1.25rem; line-height: 1; }
.community-follow .community-follow-button[data-following] { background: #e8eddf; }
.community-follow [role="tooltip"] {
  position: absolute;
  z-index: 5;
  top: calc(100% + .4rem);
  left: 0;
  width: min(15rem, calc(100vw - 3rem));
  padding: .5rem .7rem;
  border-radius: var(--panel-radius);
  background: var(--ink);
  color: white;
  font-size: .8rem;
  opacity: 0;
  pointer-events: none;
}
.community-follow [role="tooltip"]::before {
  content: '';
  position: absolute;
  top: -.25rem;
  left: 1rem;
  width: .5rem;
  height: .5rem;
  background: inherit;
  transform: rotate(45deg);
}
.community-follow:is(:hover, :focus-within) [role="tooltip"] { opacity: 1; }
@media (min-width: 480px) {
  .community-panel .community-create-kit:not([open]) { position: absolute; top: 1rem; right: 1.55rem; }
  #race-kits:has(.community-create-kit:not([open])) > h2 { padding-right: 11rem; min-height: 2rem; }
}
@media (max-width: 660px) {
  .community-dashboard-pair, .community-kit-picker, .community-match-group { grid-template-columns: minmax(0, 1fr); }
  .community-kit-picker > button { justify-self: start; }
  .community-index { justify-content: space-between; }
  .community-gear-panel .community-panel + .community-panel { border-left: 0; border-top: 1px solid var(--line); }
  .community-match-columns { display: none; }
  .community-match-group ul:last-child { font-size: .9rem; }
  .community-match-group ul:first-child li + li { margin-top: .1rem; }
}
@media (min-width: 561px) {
  .product-detail-hero:has(> .community-product-copy) { row-gap: 0; grid-template-rows: auto 1fr; align-items: start; }
  .community-product-copy { grid-area: 1 / 1; min-width: 0; }
  .community-product-copy + .product-media { grid-area: 1 / 2 / span 2; align-self: center; }
  .community-product-copy ~ .product-facts { grid-area: 2 / 1; }
}
@media (max-width: 560px) {
  main > .breadcrumb:has(+ .product-detail-hero > .community-product-copy) { margin-bottom: .75rem; }
  main .product-detail-hero:has(> .community-product-copy) { gap: .8rem; padding-top: 0; }
  .community-product-tools { margin: .45rem 0 .1rem; }
}


.community-product-copy ~ .product-facts .shoe-spec-heading,
.product-detail-hero:has(> .community-product-copy) + .product-detail-section .product-section-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}
.community-product-copy ~ .product-facts .shoe-spec dd { font-size: clamp(1rem, 1.4vw, 1.1rem); }
.community-product-copy ~ .product-facts .shoe-spec .shoe-spec-number { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.community-product-copy ~ .product-facts .shoe-spec-unit { font-size: .9rem; }
.community-product-copy ~ .product-facts .shoe-spec .shoe-spec-note { font-size: .7rem; }
.product-detail-hero:has(> .community-product-copy) + .product-detail-section .product-person h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
}

.community-inline-action { margin: .6rem 0; }
.community-inline-action .gear-note-button { padding: .45rem .7rem; }
.community-contribution-body { display: grid; gap: .35rem; margin-top: .75rem; }
.community-contribution-summary { border-left: 3px solid #708e51; padding: .3rem .8rem; background: #eef3e5; }
.community-contribution-summary strong { font: 800 1.6rem var(--display); }
.community-contribution-summary p { margin-bottom: .2rem; }
.community-form .community-check:has(input) { flex-direction: row; }
.community-release-record { overflow: auto; background: #e8eddf; padding: 1rem; }
.gear-note-nav [aria-current="page"] { font-weight: 700; }
.community-card-dialog { width: min(42rem, calc(100% - 2rem)); }
.community-card-dialog > label { display: grid; gap: .15rem; width: 100%; }
.community-card-dialog select { width: 100%; max-width: 24rem; padding: .5rem; font: inherit; }
.community-card-dialog summary { cursor: pointer; margin: .7rem 0 .25rem; font-weight: 700; }
.community-card-items { max-height: 12rem; overflow: auto; }
.community-card-items span { min-width: 0; overflow-wrap: anywhere; }
.community-card-items input { flex: none; }
.community-card-preview { display: grid; justify-items: center; margin: .85rem 0; background: #e8eddf; padding: .85rem; }
.community-card-preview canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(48vh, 31rem); }
