/* Tool material leads; the smaller resource carousel follows as a supplement. */
#tips-shelf { min-width: 0; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.tip-shelf-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.tip-shelf-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.tip-shelf-title h2 { margin: 0; font-size: 18px; line-height: 1.5; letter-spacing: -.4px; }
.tip-shelf-controls { display: flex; align-items: center; gap: 8px; }
.tip-shelf-controls > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; margin-right: 4px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.tip-shelf-controls > a:hover { color: var(--blue); }
.tip-shelf-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.tip-shelf-controls button:hover:not(:disabled) { background: var(--blue-soft); }
.tip-shelf-controls button:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.tip-shelf-controls svg { width: 19px; height: 19px; }
.tip-shelf-controls [data-shelf-previous] svg { rotate: 180deg; }
.tip-shelf-track { display: flex; gap: 14px; min-width: 0; width: 100%; padding: 4px 4px 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--line-soft) transparent; }
.tip-shelf-track:focus-visible { outline-offset: 0; }
.tip-shelf-card { display: flex; flex: 0 0 min(330px, 86%); flex-direction: column; min-width: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; scroll-snap-align: start; }
.tip-shelf-card:hover { background: #fffdf6; }
.tip-shelf-card:focus-visible { outline-offset: -4px; }
.tip-shelf-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line-soft); background: var(--canvas); object-fit: cover; object-position: top; }
.tip-shelf-card > div { padding: 14px; }
.tip-shelf-card h3 { display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: -.2px; overflow-wrap: anywhere; }
.tip-shelf-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 460px) {
  .tip-shelf-heading { gap: 8px; }
  .tip-shelf-controls { gap: 6px; }
  .tip-shelf-controls > a { margin-right: 0; font-size: 11px; }
  .tip-shelf-title { gap: 8px; }
  .tip-shelf-card > div { padding: 12px; }
}
