.pn-tcg-catalog {
    --catalog-ink: #132951;
    --catalog-blue: #1755ba;
    --catalog-line: #d7e3f2;
    --catalog-ice: #e4effd;
    --catalog-stripe: #eff5fd;
    min-width: 0;
    color: var(--catalog-ink);
}
.pn-tcg-catalog [hidden] { display: none !important; }

.pn-tcg-catalog .pn-tcg-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(12px, 2.4vw, 30px);
    padding: clamp(20px, 3.1vw, 40px);
    margin: 0 0 18px;
    border: 0;
    border-radius: 16px;
    background: #e5effc;
}
.pn-tcg-hero::before,
.pn-tcg-hero::after {
    position: absolute;
    z-index: -1;
    right: -14%;
    bottom: -195px;
    width: 54%;
    height: 260px;
    border-radius: 58% 0 0 0;
    transform: rotate(-15deg);
    background: #cee3fa;
    content: "";
}
.pn-tcg-hero::after {
    right: -21%;
    bottom: -219px;
    background: #bbd8f8;
}
.pn-tcg-catalog .pn-tcg-hero h1 {
    max-width: 29ch;
    margin: 0;
    color: var(--catalog-ink);
    font-size: clamp(27px, 3.8vw, 49px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
}
.pn-tcg-hero h1::after {
    display: block;
    width: clamp(36px, 7vw, 92px);
    height: 5px;
    margin-top: clamp(10px, 1.3vw, 16px);
    border-radius: 6px;
    background: #f4c32e;
    content: "";
}
.pn-tcg-icon {
    display: block;
    width: clamp(42px, 7.9vw, 96px);
    height: auto;
}

.pn-tcg-copy {
    width: 100%;
    padding: clamp(13px, 1.6vw, 21px);
    border: 1px solid var(--catalog-line);
    border-radius: 12px;
    background: #fff;
}
.pn-tcg-catalog .pn-tcg-copy p {
    max-width: none;
    margin: 0;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.62;
}
.pn-tcg-catalog .pn-tcg-copy p + p { margin-top: 12px; }
.pn-tcg-intro { margin-bottom: 18px; }
.pn-tcg-notes { margin-top: 20px; background: var(--catalog-stripe); }
.pn-tcg-notes a {
    color: var(--catalog-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pn-tcg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.pn-tcg-tabs button {
    min-width: clamp(76px, 8.6vw, 124px);
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #c9dcf5;
    border-radius: 8px;
    background: #eaf2fd;
    color: var(--catalog-ink);
    font: inherit;
    font-size: clamp(13px, 2.5vw, 16px);
    font-weight: 750;
    cursor: pointer;
}
.pn-tcg-tabs button:hover { background: #dceafe; }
.pn-tcg-tabs button[aria-selected="true"] {
    border-color: #134aba;
    background: #134aba;
    color: white;
}
.pn-tcg-tabs button:focus-visible,
.pn-tcg-scroll:focus-visible {
    outline: 2px solid var(--catalog-blue);
    outline-offset: 2px;
}

.pn-tcg-panel {
    display: flow-root;
    margin: 0;
    border: 1px solid var(--catalog-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px #1329510d;
}
.pn-tcg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px clamp(11px, 1.5vw, 20px);
    border-radius: 11px 11px 0 0;
    background: #132f5d;
}
.pn-tcg-catalog .pn-tcg-title {
    margin: 0;
    color: white;
    font-family: inherit;
    font-size: clamp(17px, 2.2vw, 27px);
    font-weight: 760;
    line-height: 1.24;
    overflow-wrap: anywhere;
}
.pn-tcg-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    width: min(100%, 500px);
    margin-inline-start: auto;
}
.pn-tcg-search :is(input, button) {
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 6px clamp(8px, 1vw, 14px);
    border: 1px solid #bed2ef;
    border-radius: 7px;
    background: white;
    color: var(--catalog-ink);
    font: inherit;
    font-size: 14px;
}
.pn-tcg-search input { width: 100%; font-size: 16px; }
.pn-tcg-search button { font-weight: 750; cursor: pointer; }
.pn-tcg-search button[type="submit"] {
    border-color: #5688d0;
    background: var(--catalog-blue);
    color: white;
}
.pn-tcg-search button[type="submit"]:hover { background: #2163ca; }
.pn-tcg-search button[type="reset"]:hover { background: var(--catalog-ice); }
.pn-tcg-search :is(input, button):focus-visible { outline: 2px solid white; outline-offset: 2px; }
.pn-tcg-catalog .pn-tcg-search-status {
    margin: 0;
    padding: 6px 12px;
    background: var(--catalog-stripe);
    font-size: 14px;
}
.pn-tcg-search-status:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; }

.pn-tcg-scroll {
    /* Rows scroll independently of the toolbar, and the header stays in the same scrollport as the columns. */
    max-height: 390px;
    max-height: clamp(155px, 48svh, 430px);
    overflow: auto;
    margin: 7px;
    border: 1px solid var(--catalog-line);
    border-radius: 8px;
    scrollbar-gutter: stable;
    scrollbar-color: #a9bdd7 #edf3fc;
}
.pn-tcg-catalog table {
    min-width: 660px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.pn-tcg-catalog :is(th, td) {
    padding: 9px 13px;
    border: 0;
    border-bottom: 1px solid #e5edf8;
    text-align: start;
}
.pn-tcg-catalog th {
    color: var(--catalog-ink);
    font-size: inherit;
    font-weight: 750;
    text-transform: none;
}
.pn-tcg-catalog thead th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #deebfb;
    box-shadow: 0 1px 0 #cbdcf2;
}
.pn-tcg-catalog thead th:has(.pn-tcg-sort) { padding: 0; }
.pn-tcg-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: start;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.pn-tcg-sort:hover { background: #d0e2fa; }
.pn-tcg-sort:focus-visible { outline: 2px solid var(--catalog-blue); outline-offset: -2px; }
.pn-tcg-sort-icon::before { content: "↕"; }
[aria-sort="ascending"] .pn-tcg-sort-icon::before { content: "↑"; }
[aria-sort="descending"] .pn-tcg-sort-icon::before { content: "↓"; }
.pn-tcg-catalog tbody tr:nth-child(even) { background: var(--catalog-stripe); }
@media (hover: hover) {
    .pn-tcg-catalog tbody tr:hover { background: #e2edfc; }
}
.pn-tcg-catalog tbody :is(td, th):nth-last-child(-n+3) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pn-tcg-catalog th small {
    display: block;
    color: #465b7b;
    font-size: 12px;
    font-weight: 400;
}
.pn-tcg-catalog .pn-tcg-scroll-note { display: none; }

@media (max-width: 720px) {
    .pn-tcg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .pn-tcg-tabs button { min-width: 0; padding-inline: 4px; }
    .pn-tcg-search { width: 100%; margin: 0; gap: 5px; }
    .pn-tcg-search input::placeholder { font-size: 13px; }
    .pn-tcg-scroll { margin: 5px; }
    .pn-tcg-catalog .pn-tcg-scroll-note {
        display: block;
        margin: 0;
        padding: 5px 10px;
        background: var(--catalog-stripe);
        font-size: 12px;
    }
}
