/* Equipment directory. All article links are in the document on first load. */
.choosing-page {
  --ink: #102f3b;
  --line: #d8e1e3;
  --red: #c42e2a;
  padding-top: 8px;
}
.choosing-utility, .choosing-actions, .choosing-tile-label {
  display: flex;
  align-items: center;
}
.choosing-utility { justify-content: space-between; gap: 6px 18px; margin-bottom: 5px; flex-wrap: wrap; }
.choosing-utility .guide-sports { padding: 0; gap: 2px; }
.choosing-utility .guide-sports a { min-height: 36px; border: 0; border-radius: 0; padding: 7px 12px; font-size: .875rem; }
.choosing-utility .guide-sports a[aria-current] { color: var(--ink); background: transparent; box-shadow: inset 0 -2px var(--red); }
.choosing-hero {
  isolation: isolate; position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: clamp(216px,20vw,275px);
  color: #fff; background: #102b39;
}
.choosing-cover { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 76%; height: 100%; object-fit: cover; object-position: 55% 62%; }
.choosing-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#102b39 0%,#102b39 23%,rgba(16,43,57,.93) 35%,rgba(16,43,57,.45) 55%,transparent 76%);
}
.choosing-hero-copy { width: min(100%, 630px); padding: clamp(24px,3.5vw,48px); }
.choosing-hero h1 { color: #fff; font-size: clamp(2.2rem,4vw,3.6rem); line-height: 1.12; margin: 0; }
.choosing-hero-copy > p { color: #f3f7f7; font-size: 1.0625rem; max-width: 42ch; line-height: 1.65; margin: 12px 0 19px; word-break: keep-all; overflow-wrap: anywhere; }
.choosing-actions { flex-wrap: wrap; gap: 3px 18px; }
.choosing-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.choosing-actions a:first-child { padding: 9px 15px; color: var(--ink); background: #fff; }
.choosing-actions a + a { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
.choosing-actions a:first-child:hover { background: #dceef0; }
.choosing-page .choosing-actions a:focus-visible { outline-color: #fff; outline-offset: 3px; }

.choosing-library { position: relative; margin-block: clamp(28px,3.4vw,45px) 32px; color: var(--ink); }
.choosing-library > h2 { margin: 0 0 16px; font-size: clamp(1.4rem,2.25vw,2rem); line-height: 1.35; }
.choosing-library:has(.choosing-all) > h2 { margin-right: 125px; }
.choosing-filters { min-width: 0; margin: 0 0 6px; padding: 0; border: 0; }
.choosing-sr, .choosing-filters input {
  position: absolute; margin: 0; padding: 0; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.choosing-tiles { display: grid; grid-template-columns: repeat(var(--topic-count),minmax(0,1fr)); gap: clamp(8px,1vw,12px); }
.choosing-option, .choosing-all { position: relative; cursor: pointer; }
.choosing-tile {
  display: grid; align-content: start; gap: 7px; height: 100%; padding: 15px 17px;
  border: 1px solid #cbd8dc; border-radius: 4px; background: #f6f8f8;
}
.choosing-tile-label { justify-content: space-between; align-items: baseline; gap: 6px; line-height: 1.35; }
.choosing-tile-label strong { color: var(--ink); font-size: clamp(1.05rem,1.55vw,1.3rem); font-weight: 750; }
.choosing-tile-label small, .choosing-articles small { color: #4f6570; font-size: .875rem; white-space: nowrap; }
.choosing-topic-hint { color: #395663; font-size: .94rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.choosing-option:hover .choosing-tile { border-color: #63818c; }
.choosing-option input:checked + .choosing-tile { background: var(--ink); border-color: var(--ink); }
.choosing-option input:checked + .choosing-tile strong { color: white; }
.choosing-option input:checked + .choosing-tile :is(.choosing-topic-hint,small) { color: #e1eef0; }
.choosing-option input:checked + .choosing-tile small::before {
  content: ""; display: inline-block; width: .35em; height: .66em; margin-right: .55em;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.choosing-filters input:focus-visible + span { outline: 3px solid #08728e; outline-offset: 3px; }
.choosing-all { position: absolute; top: -4px; right: 0; }
.choosing-all span { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: #265563; text-decoration: underline; text-underline-offset: .28em; font-size: .9375rem; }
.choosing-all input:checked + span { color: var(--red); font-weight: 700; }
.choosing-articles { margin: 0; padding: 0; list-style: none; }
.choosing-articles .guide-card {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.06fr) auto; align-items: baseline;
  gap: 18px; border-bottom: 1px solid var(--line); padding: 16px 2px;
  color: var(--ink); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
.choosing-articles strong { font-size: 1.0625rem; }
.choosing-excerpt { font-size: 1rem; color: #3d5965; }
.choosing-articles a:hover strong, .choosing-articles a:focus-visible strong { color: var(--red); text-decoration: underline; text-underline-offset: .2em; }
.choosing-library:has(input[value="boards"]:checked) li:not([data-topic="boards"]),
.choosing-library:has(input[value="paddles"]:checked) li:not([data-topic="paddles"]),
.choosing-library:has(input[value="wing"]:checked) li:not([data-topic="wing"]),
.choosing-library:has(input[value="materials"]:checked) li:not([data-topic="materials"]) { display: none; }
@supports not selector(:has(*)) { .choosing-filters { display: none; } }
.choosing-page :is(#sup-volume-guide,#board-comparison) { scroll-margin-top: 165px; }
.choosing-related { border-block: 1px solid var(--line); margin-top: 30px; }
.choosing-related summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.choosing-related .guide-categories { border: 0; padding-bottom: 12px; }
.choosing-page details > summary:focus-visible { outline: 3px solid #08728e; outline-offset: 2px; }

@media (max-width: 760px) {
  .choosing-hero-copy { max-width: 70%; padding: 24px; }
  .choosing-hero-copy > p { font-size: 1rem; }
  .choosing-tiles { gap: 8px 12px; }
  .choosing-articles .guide-card { grid-template-columns: minmax(0,1fr) auto; gap: 3px 12px; }
  .choosing-excerpt { grid-column: 1 / -1; grid-row: 2; }
  .choosing-articles small { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  .choosing-utility { gap: 0; margin-bottom: 8px; }
  .choosing-utility .guide-crumb { gap: 4px 8px; }
  .choosing-utility .guide-crumb a { min-height: 36px; }
  .choosing-utility .guide-sports a { padding-inline: 6px; }
  .choosing-hero { min-height: 210px; }
  .choosing-cover { width: 100%; object-position: 60% center; }
  .choosing-hero::before { background: linear-gradient(90deg,rgba(8,31,43,.93),rgba(8,31,43,.79) 54%,rgba(8,31,43,.30)); }
  .choosing-hero-copy { max-width: 100%; padding: 22px 18px; }
  .choosing-hero-copy > p { max-width: 30ch; margin-block: 10px 14px; }
  .choosing-actions { gap: 2px 12px; }
  .choosing-actions a { font-size: .875rem; }
  .choosing-actions a:first-child { padding-inline: 10px; }
  .choosing-library:has(.choosing-all) > h2 { margin-right: 104px; }
  .choosing-all { top: -6px; }
  .choosing-all span { font-size: .875rem; }
  .choosing-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .choosing-tile { padding: 11px 10px; gap: 5px; }
  .choosing-tile-label { flex-wrap: wrap; }
  .choosing-topic-hint { font-size: .875rem; }
  .choosing-tile-label small { font-size: .8125rem; }
  .choosing-articles .guide-card { padding-block: 12px; }
  .choosing-page :is(#sup-volume-guide,#board-comparison) { scroll-margin-top: 85px; }
}
@media print {
  .choosing-filters, .choosing-actions, .choosing-utility { display: none; }
  .choosing-page .choosing-library .choosing-articles li { display: list-item; }
}
