/*
 * com_atoncjenik - public price list (NN 132/2026).
 * Built on the g5_aton theme tokens (--aton-*), so the dark and the
 * body.aton-light schemes both work without restating any colour.
 * Scoped to .aton-cj; nothing here touches the rest of the site.
 */

.aton-cj {
    --cj-gold: #f2a007;
    --cj-gold-lt: #ffc44d;
    --cj-red: #d8232a;
    --cj-lagoon: #17b6bd;
    --cj-r: 18px;
    --cj-r-lg: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.aton-cj__head { margin-bottom: 2.6rem; }

/* ---- facts strip ------------------------------------------------------ */

.aton-cj__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 3.6rem;
    padding: 0;
    list-style: none;
}

.aton-cj__fact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--aton-rule);
    border-radius: var(--cj-r);
    background: var(--aton-glass);
}

.aton-cj__fact-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cj-gold);
}

.aton-cj__fact strong {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--aton-heading);
}

.aton-cj__fact-sub {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--aton-text-3);
}

/* ---- groups & cards --------------------------------------------------- */

.aton-cj__group { margin-bottom: 3.4rem; }

.aton-cj__group-title {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin: 0 0 1.4rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--aton-heading);
}

.aton-cj__group-title::before {
    content: '';
    align-self: center;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cj-gold-lt), var(--cj-gold) 55%, var(--cj-red));
}

.aton-cj__group-title span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aton-text-4);
}

.aton-cj__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.aton-cj__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--aton-rule);
    border-radius: var(--cj-r-lg);
    background: var(--aton-surface);
    box-shadow: var(--aton-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.aton-cj__card:hover {
    transform: translateY(-4px);
    border-color: var(--aton-rule-strong);
    box-shadow: var(--aton-shadow-lg);
}

.aton-cj__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--aton-bg-2);
}

.aton-cj__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aton-cj__card:hover .aton-cj__media img { transform: scale(1.05); }

.aton-cj__status {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(4, 22, 31, 0.62);
    backdrop-filter: blur(6px);
}

.aton-cj__status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
}

.aton-cj__status.is-off::before { background: #9aa7ad; box-shadow: none; }

.aton-cj__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.3rem;
}

.aton-cj__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.aton-cj__title a { color: var(--aton-heading); text-decoration: none; }
.aton-cj__title a:hover { color: var(--cj-gold); }

.aton-cj__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin: 0.4rem 0 1.2rem;
    font-size: 0.86rem;
    color: var(--aton-text-3);
}

.aton-cj__meta span + span::before {
    content: '·';
    margin-right: 1rem;
    color: var(--aton-text-4);
}

/* Two clearly separated, clearly labelled figures. The base price is
   secondary but legible: never struck through, no percentage. */
.aton-cj__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 1.2rem;
    border: 1px solid var(--aton-rule);
    border-radius: var(--cj-r);
    overflow: hidden;
}

.aton-cj__price {
    padding: 0.9rem 1rem;
    background: var(--aton-glass);
}

.aton-cj__price--base {
    border-left: 1px solid var(--aton-rule);
    background: transparent;
}

.aton-cj__price dt {
    margin: 0 0 0.3rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aton-text-3);
}

.aton-cj__price:first-child dt { color: var(--cj-gold); }

.aton-cj__price dd { margin: 0; line-height: 1.25; }

.aton-cj__price strong {
    display: inline-block;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--aton-heading);
    text-decoration: none;
}

.aton-cj__price--base strong {
    font-size: 1.2rem;
    color: var(--aton-text-2);
}

.aton-cj__unit {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--aton-text-3);
}

.aton-cj__on {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: var(--aton-text-4);
}

.aton-cj__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--aton-rule);
}

.aton-cj__sku {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--aton-text-4);
}

.aton-cj__more {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cj-gold);
    text-decoration: none;
    white-space: nowrap;
}

.aton-cj__more span { display: inline-block; transition: transform 0.25s; }
.aton-cj__more:hover span { transform: translateX(4px); }

/* ---- explanation -------------------------------------------------------- */

.aton-cj__explain {
    position: relative;
    margin: 0.5rem 0 3.4rem;
    padding: 1.6rem 1.8rem 1.6rem 2.1rem;
    border: 1px solid var(--aton-rule);
    border-radius: var(--cj-r);
    background: var(--aton-glass);
    overflow: hidden;
}

.aton-cj__explain::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cj-gold-lt), var(--cj-gold) 55%, var(--cj-red));
}

.aton-cj__explain h3,
.aton-cj__files h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--aton-heading);
}

.aton-cj__explain p,
.aton-cj__files-head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--aton-text-3);
}

/* ---- files -------------------------------------------------------------- */

.aton-cj__files {
    padding: 1.8rem;
    border: 1px solid var(--aton-rule);
    border-radius: var(--cj-r-lg);
    background: var(--aton-surface);
}

.aton-cj__files-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.aton-cj__files-head .aton-btn { flex: none; }

.aton-cj__file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--aton-glass);
}

.aton-cj__file + .aton-cj__file { margin-top: 0.5rem; }

.aton-cj__badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10222b;
    background: var(--cj-gold);
}

.aton-cj__badge.is-muted {
    color: var(--aton-text-2);
    background: var(--aton-glass-strong);
}

.aton-cj__fname {
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--aton-text);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.aton-cj__fname:hover { color: var(--cj-gold); }

.aton-cj__fdate {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--aton-text-3);
}

.aton-cj__empty {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: var(--aton-text-4);
}

.aton-cj__machine {
    margin: 1.2rem 0 0;
    font-size: 0.8rem;
    color: var(--aton-text-4);
}

.aton-cj__machine a { color: var(--aton-text-2); font-weight: 700; }

/* ---- small screens ------------------------------------------------------ */

@media (max-width: 860px) {
    .aton-cj__facts { grid-template-columns: 1fr; }
    .aton-cj__files-head { flex-direction: column; align-items: stretch; }
    .aton-cj__files-head .aton-btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .aton-cj__grid { grid-template-columns: 1fr; }
    .aton-cj__files { padding: 1.2rem; }
    .aton-cj__price strong { font-size: 1.3rem; }
    .aton-cj__price--base strong { font-size: 1.05rem; }
    .aton-cj__fdate { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .aton-cj__card,
    .aton-cj__media img,
    .aton-cj__more span { transition: none; }
}

/* ---- theme resets ------------------------------------------------------- */

/* The theme decorates content list items and headings; not here. */
.aton-cj .aton-cj__facts > li::before,
.aton-cj .aton-cj__facts > li::marker { content: none; display: none; }
.aton-cj .aton-cj__facts > li { margin: 0; padding-left: 1.4rem; }

.aton-cj .aton-cj__explain h3,
.aton-cj .aton-cj__files h3 { margin-top: 0 !important; padding-top: 0; }
.aton-cj .aton-cj__explain h3::after,
.aton-cj .aton-cj__files h3::after { content: none; display: none; }

/* ---- archive by day ----------------------------------------------------- */

.aton-cj .aton-cj__days-title {
    margin: 1.8rem 0 0.8rem !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--aton-text-3);
}

.aton-cj .aton-cj__days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aton-cj .aton-cj__days > li::before { content: none; display: none; }

.aton-cj .aton-cj__day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--aton-rule);
    border-radius: 12px;
    background: var(--aton-glass);
}

.aton-cj__day time {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--aton-heading);
    white-space: nowrap;
}

.aton-cj__day-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.aton-cj__chip {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--aton-text);
    background: var(--aton-glass-strong);
    text-decoration: none;
    white-space: nowrap;
}

.aton-cj__chip:hover { color: #10222b; background: var(--cj-gold-lt); }
.aton-cj__chip.is-current { color: #10222b; background: var(--cj-gold); }
.aton-cj__chip.is-legacy { color: var(--aton-text-3); }

.aton-cj__more-days { margin-top: 0.6rem; }

.aton-cj__more-days summary {
    display: inline-block;
    margin: 0.4rem 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cj-gold);
    cursor: pointer;
}

.aton-cj__legacy-note {
    margin: 0.9rem 0 0;
    font-size: 0.76rem;
    color: var(--aton-text-4);
}
