/* LegoList theme: a sun-yellow header, a sky-tinted page, and lists drawn as bricks. */

:root {
    --sun: #ffd500;
    --sun-edge: #d1a900;
    --red: #d9151b;
    --red-edge: #a50e13;
    --blue: #0b5fd3;
    --blue-edge: #08469c;
    --ink: #1a2238;
    --ink-soft: #55607a;
    --sky: #eef5ff;
    --line: #d3dff2;
    --paper: #ffffff;

    --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
    --font-body: 'Figtree', 'Segoe UI', sans-serif;
}

html, body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--sky);
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--ink);
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
    margin: 0;
}

h1:focus {
    outline: none;
}

a {
    color: var(--blue);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--sun);
    border-bottom: 4px solid var(--sun-edge);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__inner,
.site-main {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.site-main {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    position: relative;
    width: 30px;
    height: 18px;
    margin-bottom: 2px;
    background: var(--red);
    border-radius: 2px;
}

.brand__mark::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 4px;
    width: 22px;
    height: 5px;
    background: linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px, var(--red) 14px 22px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.site-nav__user {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav__link {
    font-weight: 700;
    text-decoration: none;
}

.site-nav__link:hover {
    text-decoration: underline;
}

/* ---------- Admin ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: 6px;
}

.stat__value {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
}

.stat__label {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    margin-bottom: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.admin-table .num {
    text-align: right;
    white-space: nowrap;
}

.admin-list {
    margin-top: 2rem;
    overflow-x: auto;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

@media (max-width: 560px) {
    .site-nav__user {
        display: none;
    }
}

/* ---------- Buttons ---------- */

.lb-btn {
    --btn: var(--sun);
    --btn-edge: var(--sun-edge);
    --btn-ink: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--btn-ink);
    background: var(--btn);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--btn-edge);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 80ms ease, box-shadow 80ms ease;
}

.lb-btn:hover {
    color: var(--btn-ink);
    filter: brightness(1.06);
}

.lb-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--btn-edge);
}

.lb-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    filter: none;
}

.lb-btn--red {
    --btn: var(--red);
    --btn-edge: var(--red-edge);
    --btn-ink: #fff;
}

.lb-btn--green {
    --btn: #1e8e3e;
    --btn-edge: #146c2c;
    --btn-ink: #fff;
}

.lb-btn--blue {
    --btn: var(--blue);
    --btn-edge: var(--blue-edge);
    --btn-ink: #fff;
}

.lb-btn--ink {
    --btn: var(--ink);
    --btn-edge: #000;
    --btn-ink: #fff;
}

.lb-btn--small {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    box-shadow: 0 3px 0 var(--btn-edge);
}

.lb-btn--danger {
    --btn: var(--red);
    --btn-edge: var(--red-edge);
    --btn-ink: #fff;
}

/* ---------- Form fields ---------- */

.lb-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lb-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-weight: 400;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid #b6c5de;
    border-radius: 8px;
}

.lb-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(11 95 211 / 0.25);
}

.lb-input:disabled {
    background: #f1f4f9;
}

.lb-input--qty {
    width: 5.5rem;
}

/* ---------- Page furniture ---------- */

.page-head {
    margin-bottom: 2rem;
}

.page-head__summary {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.search-bar {
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.notice {
    margin: 1.5rem 0 0;
    padding: 0.85rem 1rem;
    max-width: 44rem;
    background: #ffe9e9;
    border-left: 6px solid var(--red);
    border-radius: 6px;
    color: #6d0a0e;
    font-weight: 500;
}

.muted {
    color: var(--ink-soft);
}

/* ---------- Bricks (one per list) ---------- */

.brick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 2rem 1.5rem;
}

.brick {
    --brick: var(--red);
    --brick-edge: var(--red-edge);
    --brick-ink: #fff;
    position: relative;
    margin-top: 10px;
    min-height: 9rem;
    background: var(--brick);
    color: var(--brick-ink);
    border-radius: 5px;
    box-shadow: 0 6px 0 var(--brick-edge);
    transition: transform 120ms ease;
}

/* Studs, seen from the side. */
.brick::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 16px;
    width: 162px;
    max-width: calc(100% - 32px);
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--brick) 0 30px, transparent 30px 44px);
}

/* Official LEGO colors (Rebrickable/BrickLink values), ten common ones; neutrals and brown left out. */
.brick--c0 { --brick: #c91a09; --brick-edge: #971205; --brick-ink: #fff; }    /* Red */
.brick--c1 { --brick: #0055bf; --brick-edge: #003f8c; --brick-ink: #fff; }    /* Blue */
.brick--c2 { --brick: #f2cd37; --brick-edge: #c4a21c; --brick-ink: #1a2238; } /* Yellow */
.brick--c3 { --brick: #237841; --brick-edge: #185430; --brick-ink: #fff; }    /* Green */
.brick--c4 { --brick: #fe8a18; --brick-edge: #c96a0a; --brick-ink: #1a2238; } /* Orange */
.brick--c5 { --brick: #720e0f; --brick-edge: #500a0b; --brick-ink: #fff; }    /* Dark Red */
.brick--c6 { --brick: #e4cd9e; --brick-edge: #b9a272; --brick-ink: #1a2238; } /* Tan */
.brick--c7 { --brick: #0a3463; --brick-edge: #062446; --brick-ink: #fff; }  /* Dark Blue */
.brick--c8 { --brick: #bbe90b; --brick-edge: #8fb306; --brick-ink: #1a2238; } /* Lime */
.brick--c9 { --brick: #36aebf; --brick-edge: #26828f; --brick-ink: #1a2238; } /* Medium Azure */

.brick:hover,
.brick:focus-within {
    transform: translateY(-4px);
}

.brick__link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.15rem;
    min-height: 9rem;
    padding: 2.75rem 1.1rem 1rem;
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
}

.brick__link:hover {
    color: inherit;
}

.brick__link:focus-visible {
    outline-color: var(--ink);
    outline-offset: 4px;
}

.brick__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.brick__count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

.brick__delete {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.6rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
    background: rgb(0 0 0 / 0.16);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.brick__delete:hover {
    background: rgb(0 0 0 / 0.32);
}

.brick__delete:focus-visible {
    outline-color: var(--ink);
}

/* Select / rename controls on a list brick. */
.brick__tools {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: flex;
    gap: 0.35rem;
}

.brick__tools .brick__delete {
    position: static;
}

.brick__select {
    position: absolute;
    top: 0.6rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.brick__select input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.brick__rename {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
    min-height: 9rem;
    padding: 1.5rem 1rem 1rem;
}

.brick__rename-label {
    font-weight: 600;
}

.brick__rename-actions {
    display: flex;
    gap: 0.5rem;
}

/* Export / merge toolbar above the lists. */
.list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.list-tools__status {
    margin-right: auto;
    color: var(--ink-soft);
}

.merge-panel {
    max-width: 36rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 12px;
}

.merge-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.merge-panel fieldset {
    margin: 1rem 0;
    padding: 0;
    border: 0;
}

.merge-panel legend {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.merge-panel__choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.merge-panel__name {
    margin-top: 0.4rem;
}

.merge-panel__actions {
    display: flex;
    gap: 0.6rem;
}

/* The empty slot where the next list goes. */
.brick-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 10px;
    min-height: 9rem;
    padding: 1rem;
    border: 3px dashed #9db4d8;
    border-radius: 5px;
}

.brick-slot__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
}

.brick-slot__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.5rem;
}

.brick-slot__row .lb-input {
    flex: 1 1 9rem;
    width: auto;
}

/* ---------- Welcome (signed out) ---------- */

.welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 1.5rem;
}

.welcome__text {
    flex: 1 1 22rem;
    max-width: 34rem;
}

.welcome__text h1 {
    font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.25rem);
}

.welcome__text p {
    margin: 1.25rem 0 1.75rem;
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.stack {
    display: flex;
    flex-direction: column-reverse; /* bottom brick first, so upper bricks cover its studs */
    align-items: flex-start;
    padding-top: 12px;
    margin: 0 auto;
}

.stack .brick {
    position: relative;
    margin: 0;
    min-height: 0;
    height: 64px;
    box-shadow: none;
    border-radius: 3px;
    transform: none;
}

.stack .brick::before {
    width: auto;
    max-width: none;
    left: 14px;
    right: 14px;
}

.stack .brick:nth-child(1) { width: 278px; }
.stack .brick:nth-child(2) { width: 190px; margin-left: 88px; }
.stack .brick:nth-child(3) { width: 190px; }
.stack .brick:nth-child(4) { width: 102px; margin-left: 44px; }

/* ---------- Add-a-set bar ---------- */

.add-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.6rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 12px;
}

.add-bar__title {
    flex-basis: 100%;
    margin: 0;
    font-size: 1.25rem;
}

.add-bar .lb-field--number {
    width: 11rem;
}

.add-hint {
    margin: 0 0 2rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.spinner {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid rgb(255 255 255 / 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Set cards ---------- */

.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.5rem;
}

.set-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.set-card__picture {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.set-card__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
}

.set-card__picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.set-card__number {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.1rem 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: var(--sun);
    border-radius: 4px;
}

.set-card__qty {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.1rem 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--blue);
    border-radius: 4px;
}

.set-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
    padding: 0.9rem 1rem 1rem;
}

.set-card__theme {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
}

.set-card__name {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.set-card__pieces {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.set-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.set-card--editing {
    border-color: var(--blue);
}

.set-card--editing .set-card__body {
    gap: 0.6rem;
}

.empty {
    max-width: 30rem;
    padding: 2rem 1.5rem;
    border: 3px dashed #9db4d8;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.empty strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .lb-btn,
    .brick {
        transition: none;
    }

    .brick:hover,
    .brick:focus-within {
        transform: none;
    }

    .spinner {
        animation-duration: 2s;
    }
}

/* ---------- Blazor built-ins ---------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: var(--red-edge);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.set-card__move {
    flex: 1 1 100%;
}

/* ---------- Add several sets at once ---------- */

.bulk-add {
    margin: 0 0 1.5rem;
}

.bulk-add summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--blue);
}

.bulk-add .lb-field {
    margin-top: 0.75rem;
    max-width: 32rem;
}

.bulk-add__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* ---------- Picture viewer (lightbox) ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 1rem;
    background: rgb(26 34 56 / 0.85);
    cursor: zoom-out;
}

.lightbox:focus {
    outline: none;
}

.lightbox__image {
    max-width: min(100%, 60rem);
    max-height: 100%;
    object-fit: contain;
    background: var(--paper);
    border-radius: 12px;
    cursor: default;
}

.lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* ---------- Confirm-set dialog ---------- */

.confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(26 34 56 / 0.6);
}

.confirm-dialog {
    width: min(100%, 26rem);
    max-height: 100%;
    overflow-y: auto;
    padding: 1.25rem;
    text-align: center;
    background: var(--paper);
    border-radius: 12px;
}

.confirm-dialog:focus {
    outline: none;
}

.confirm-dialog h2 {
    margin: 0 0 0.75rem;
}

.confirm-dialog__image {
    max-width: 100%;
    max-height: 14rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.confirm-dialog__name {
    margin: 0.25rem 0;
}

.confirm-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ---------- Bulk look-up bar ---------- */

.lookup-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lookup-bar .add-hint {
    margin: 0;
}

.spinner--dark {
    border-color: var(--line);
    border-top-color: var(--blue);
}

/* ---------- Set card badges ---------- */

.set-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.badge {
    padding: 0.05rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.badge--built {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

/* ---------- Set details page ---------- */

.set-detail {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.set-detail__picture {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 12px;
    color: var(--ink-soft);
}

.set-detail__picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.set-detail__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 36rem;
}

.set-detail__check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.set-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 720px) {
    .set-detail {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Theme grouping and filter ---------- */

.theme-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.theme-filter__label {
    font-weight: 600;
    color: var(--ink-soft);
}

.theme-chip {
    padding: 0.25rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--sky);
    border: 2px solid var(--blue);
    border-radius: 999px;
    cursor: pointer;
}

.theme-chip--on {
    color: #fff;
    background: var(--blue);
}

.theme-chip__count {
    opacity: 0.75;
    font-weight: 400;
}

.theme-group {
    margin-bottom: 2.25rem;
}

.theme-group__title {
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--sun);
}

.theme-group__count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-soft);
}

/* A whole search-result card is a link to the set's details; the theme and list links sit above it. */
.set-card--link {
    position: relative;
}

.set-card--link:hover,
.set-card--link:focus-within {
    border-color: var(--blue);
}

.set-card__link {
    color: inherit;
    text-decoration: none;
}

.set-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.set-card__theme-link,
.set-card__list-link {
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

.set-card__theme-link:hover {
    text-decoration: underline;
}
