/* ==========================================================
   Content Kit — frontend styles
   All blocks use currentColor so they adapt to any theme.
   ========================================================== */

/* ----------------------------------------------------------
   Related Pages
   ---------------------------------------------------------- */
.ck-related-pages {
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    padding: 14px 18px;
    margin: 24px 0;
}
.ck-related-pages__title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 8px;
    letter-spacing: .2px;
}
.ck-related-pages__title-line {
    display: block;
    height: 3px;
    width: 70px;
    background: currentColor;
    margin: 6px auto 0;
    border-radius: 3px;
    opacity: .3;
}
.ck-related-pages__list {
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}
.ck-related-pages__list li,
.ck-related-pages__item {
    margin: 0 !important;
    padding: 2px 0 !important;
    list-style: none !important;
}
.ck-related-pages__item + .ck-related-pages__item {
    margin-top: 2px !important;
}
.ck-related-pages__link {
    color: currentColor;
    opacity: .85;
    text-decoration: none;
}
.ck-related-pages__link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Related Pages — style: cards */
.ck-related-pages--style-cards {
    border: none;
    padding: 0;
    background: transparent;
}
.ck-related-pages--style-cards .ck-related-pages__title {
    text-align: left;
    margin-bottom: 12px;
}
.ck-related-pages--style-cards .ck-related-pages__title-line {
    margin: 6px 0 0;
}
.ck-related-pages--style-cards .ck-related-pages__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.ck-related-pages--style-cards .ck-related-pages__item {
    padding: 0 !important;
}
.ck-related-pages--style-cards .ck-related-pages__item + .ck-related-pages__item {
    margin-top: 0 !important;
}
.ck-related-pages--style-cards .ck-related-pages__link {
    display: block;
    padding: 12px 16px;
    border: 1px solid currentColor;
    border-radius: 8px;
    transition: transform .15s ease, opacity .15s ease;
    opacity: .85;
}
.ck-related-pages--style-cards .ck-related-pages__link:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Related Pages — style: minimal */
.ck-related-pages--style-minimal {
    border: none;
    padding: 0;
    margin: 18px 0;
}
.ck-related-pages--style-minimal .ck-related-pages__title {
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 8px;
}
.ck-related-pages--style-minimal .ck-related-pages__title-line {
    display: none;
}
.ck-related-pages--style-minimal .ck-related-pages__link {
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
}

/* ----------------------------------------------------------
   Content Update Date
   ---------------------------------------------------------- */
.ck-updated-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: .875rem;
    opacity: .85;
}
.ck-updated-date__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: .6;
}
.ck-updated-date__label {
    font-size: .8rem;
}

/* Content Update — style: inline */
.ck-updated-date--style-inline {
    border: none;
    padding: 0;
    opacity: .75;
}

/* Content Update — style: pill */
.ck-updated-date--style-pill {
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 999px;
    padding: 5px 16px;
    opacity: 1;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .ck-updated-date--style-pill {
        border-color: currentColor;
        background: rgba(127, 127, 127, .08);
    }
}

/* ----------------------------------------------------------
   Author Block (full card)
   ---------------------------------------------------------- */
.ck-author-block {
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    padding: 28px 30px;
    margin: 22px 0;
}
.ck-author-block__heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 20px;
    letter-spacing: .2px;
}
.ck-author-block__heading-line {
    display: block;
    height: 3px;
    width: 70px;
    background: currentColor;
    margin: 10px auto 0;
    border-radius: 3px;
    opacity: .3;
}
.ck-author-block__inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.ck-author-block__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ck-author-block__meta { flex: 1; }
.ck-author-block__name {
    display: block;
    font-weight: 700;
    margin: 0 0 6px;
}
.ck-author-block__name a {
    color: inherit;
    text-decoration: none;
}
.ck-author-block__name a:hover { text-decoration: underline; }
.ck-author-block__bio {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .ck-author-block__inner { flex-direction: column; }
    .ck-author-block__avatar { width: 64px; height: 64px; }
}

/* Author Block — style: centered */
.ck-author-block--style-centered .ck-author-block__heading {
    text-align: center;
}
.ck-author-block--style-centered .ck-author-block__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.ck-author-block--style-centered .ck-author-block__avatar {
    width: 108px;
    height: 108px;
}
.ck-author-block--style-centered .ck-author-block__name {
    font-size: 1.15rem;
}

/* Author Block — style: card */
.ck-author-block--style-card {
    border: none;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border-radius: 12px;
    padding: 26px 28px;
}
.ck-author-block--style-card .ck-author-block__heading {
    text-align: left;
}
.ck-author-block--style-card .ck-author-block__heading-line {
    margin: 8px 0 0;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .ck-author-block--style-card { background: rgba(127, 127, 127, .07); }
}

/* ----------------------------------------------------------
   Author Byline (compact)
   ---------------------------------------------------------- */
.ck-author-byline {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    padding: 14px 18px;
    margin: 22px 0;
}
.ck-author-byline__inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ck-author-byline__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ck-author-byline__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ck-author-byline__name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.ck-author-byline__name a {
    text-decoration: none;
    color: inherit;
}
.ck-author-byline__name a:hover {
    text-decoration: underline;
}
.ck-author-byline__subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.4;
}
.ck-author-byline__date {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Author Byline — style: inline */
.ck-author-byline--style-inline {
    border: none;
    padding: 0;
    margin: 14px 0;
}
.ck-author-byline--style-inline .ck-author-byline__avatar {
    width: 40px;
    height: 40px;
}
.ck-author-byline--style-inline .ck-author-byline__inner {
    gap: 10px;
}

/* Author Byline — style: card */
.ck-author-byline--style-card {
    border: none;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border-radius: 10px;
    padding: 16px 20px;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .ck-author-byline--style-card { background: rgba(127, 127, 127, .07); }
}
