:root {
    --tjcx-pink: #ff0090;
    --tjcx-orange: #ef5b2a;
    --tjcx-black: #161619;
    --tjcx-burgundy: #72123f;
    --tjcx-line: #dedee3;
}

.tjcx-families {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-top: 32px !important;
}

.tjcx-family {
    overflow: hidden;
    border: 1px solid var(--tjcx-line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 17, 20, .07);
}

.tjcx-family__header {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    min-height: 132px;
    color: #fff;
}

.tjcx-family__number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,.42);
    font-family: Oswald, 'Bebas Neue', sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.tjcx-family__header > div {
    padding: 25px 30px 22px;
}

.tjcx-family__header h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Oswald, 'Bebas Neue', sans-serif !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    text-transform: uppercase;
}

.tjcx-family__header p {
    max-width: 920px;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Abel, sans-serif;
    font-size: 18px;
    line-height: 1.45;
}

.tjcx-family--natural .tjcx-family__header { background: var(--tjcx-pink); }
.tjcx-family--artificial .tjcx-family__header { background: var(--tjcx-orange); }
.tjcx-family--synthetic .tjcx-family__header { background: var(--tjcx-black); }
.tjcx-family--special .tjcx-family__header { background: var(--tjcx-burgundy); }

.tjcx-parent {
    padding: 24px 30px;
    border: 2px solid var(--tjcx-pink);
    background: #fff;
}

.tjcx-parent span {
    display: block;
    color: var(--tjcx-pink);
    font-family: Oswald, 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.05;
}

.tjcx-parent p {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    font-size: 18px;
}

.tjcx-family__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 12px 28px 30px;
}

.tjcx-subgroup {
    min-width: 0;
    margin: 18px 0 0;
    padding: 0 24px 0 0;
}

.tjcx-subgroup h4 {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border-bottom: 2px solid var(--tjcx-line);
    color: #111 !important;
    font-family: Oswald, 'Bebas Neue', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.tjcx-family--natural .tjcx-subgroup h4 { border-color: rgba(255,0,144,.42); }
.tjcx-family--artificial .tjcx-subgroup h4 { border-color: rgba(239,91,42,.44); }
.tjcx-family--synthetic .tjcx-subgroup h4 { border-color: rgba(22,22,25,.38); }
.tjcx-family--special .tjcx-subgroup h4 { border-color: rgba(114,18,63,.40); }

.tjcx-subgroup ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tjcx-subgroup li {
    margin: 0 !important;
    padding: 4px 0 !important;
    font-family: Abel, sans-serif;
    font-size: 17px;
    line-height: 1.35;
}

.tjcx-subgroup a {
    color: #3a3a3d !important;
    text-decoration: none !important;
}

.tjcx-subgroup a:hover,
.tjcx-subgroup a:focus-visible {
    color: var(--tjcx-pink) !important;
    text-decoration: underline !important;
}

.single-post .entry-content .tjcx-article {
    max-width: 100%;
}

.single-post .entry-content .tjcx-article .tjcx-lead {
    max-width: 920px;
    margin-bottom: 28px;
    font-size: 20px;
    line-height: 1.65;
}

.single-post .entry-content .tjcx-definitions {
    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
    max-width: 920px;
    margin: 24px 0 36px;
    border-top: 1px solid var(--tjcx-line);
}

.single-post .entry-content .tjcx-definitions dt,
.single-post .entry-content .tjcx-definitions dd {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tjcx-line);
}

.single-post .entry-content .tjcx-definitions dt {
    color: var(--tjcx-pink);
    font-family: Oswald, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.single-post .entry-content .tjcx-definitions dd {
    font-family: Abel, sans-serif;
}

.single-post .entry-content .tjcx-article-image {
    width: 100%;
    max-width: 920px;
    margin: 28px 0 34px !important;
}

.single-post .entry-content .tjcx-article-image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-post .entry-content .tjcx-article-image figcaption {
    padding-top: 8px;
    color: #666;
    font-size: 15px;
    line-height: 1.35;
}

.single-post .entry-content .tjcx-callout {
    max-width: 920px;
    margin: 28px 0;
    padding: 22px 24px;
    border-left: 5px solid var(--tjcx-pink);
    background: #f5f5f7;
}

.single-post .entry-content .tjcx-callout--warning {
    border-color: #ef5b2a;
    background: #fff4ef;
}

.single-post .entry-content .tjcx-callout p:last-child {
    padding-bottom: 0;
}

.single-post .entry-content .tjcx-table-wrap {
    width: 100%;
    max-width: 920px;
    margin: 26px 0 36px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-post .entry-content .tjcx-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-family: Abel, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.single-post .entry-content .tjcx-table-wrap th {
    padding: 12px 13px;
    border: 1px solid #333;
    background: var(--tjcx-black);
    color: #fff;
    font-family: Oswald, sans-serif;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
}

.single-post .entry-content .tjcx-table-wrap td {
    padding: 11px 13px;
    border: 1px solid #d7d7da;
    vertical-align: top;
}

.single-post .entry-content .tjcx-table-wrap tbody tr:nth-child(even) {
    background: #f7f7f8;
}

.single-post .entry-content .tjcx-sources {
    max-width: 920px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

@media (max-width: 980px) {
    .tjcx-family__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .tjcx-families { gap: 22px !important; }
    .tjcx-family__header {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 0;
    }
    .tjcx-family__number { font-size: 38px; }
    .tjcx-family__header > div { padding: 20px 18px 18px; }
    .tjcx-family__header h3 { font-size: 28px !important; }
    .tjcx-family__header p { font-size: 17px; }
    .tjcx-parent { padding: 20px; }
    .tjcx-parent span { font-size: 28px; }
    .tjcx-family__groups {
        grid-template-columns: 1fr;
        padding: 10px 20px 26px;
    }
    .tjcx-subgroup { padding-right: 0; }
    .single-post .entry-content .tjcx-article .tjcx-lead { font-size: 18px; }
    .single-post .entry-content .tjcx-definitions { grid-template-columns: 1fr; }
    .single-post .entry-content .tjcx-definitions dt { border-bottom: 0; padding-bottom: 2px; }
    .single-post .entry-content .tjcx-definitions dd { padding-top: 2px; }
}
