/* Content styles. Generated from main.css by tools/split-discovery-css.php. */

body.chaptertrail-site .discovery-public-page {
    width: 100%;
    margin: 0;
    min-height: 0;
    padding: 0 0 12px;
}

.discovery-public-page {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 28px 0 48px;
    min-height: 0;
}

.discovery-public-page h1 {
    max-width: none;
    margin: 0 0 22px;
    font-family: inherit;
    font-size: clamp(2.35rem, 4.8vw, 3.55rem);
    line-height: 1.05;
}

.discovery-public-page > p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.legal-document h1 {
    max-width: none;
}

.legal-document__updated {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.legal-document__section {
    max-width: 720px;
    margin-top: 34px;
}

.legal-document__section h2 {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 1.65rem;
    line-height: 1.2;
}

.legal-document__section p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.legal-document__section p:last-child {
    margin-bottom: 0;
}

.knowledge-base h1 {
    max-width: none;
}

.knowledge-base__intro {
    max-width: 720px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.knowledge-base__section {
    max-width: 760px;
    margin-top: 34px;
}

.knowledge-base__section h2 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 1.65rem;
    line-height: 1.2;
}

@keyframes ct-page-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.knowledge-base > .eyebrow,
.support-tickets-page > .eyebrow,
.contact-page > .eyebrow {
    animation: ct-page-rise 0.5s ease both;
}

.knowledge-base > h1,
.support-tickets-page > h1,
.contact-page > h1 {
    animation: ct-page-rise 0.55s ease 0.05s both;
}

.knowledge-base > .knowledge-base__intro,
.knowledge-base > p,
.support-tickets-page > p,
.contact-page > p {
    animation: ct-page-rise 0.55s ease 0.1s both;
}

.knowledge-base__section:nth-of-type(1),
.community-landing > .knowledge-base__links,
.support-tickets-page > .account-settings-alert,
.contact-page > .contact-page__channels,
.contact-page > .account-settings-alert {
    animation: ct-page-rise 0.55s ease 0.16s both;
}

.knowledge-base__section:nth-of-type(2),
.support-tickets-page > .account-settings-card,
.support-tickets-page > .support-ticket-form,
.contact-page > .support-ticket-form {
    animation: ct-page-rise 0.55s ease 0.22s both;
}

.knowledge-base__section:nth-of-type(3) {
    animation: ct-page-rise 0.55s ease 0.28s both;
}

.knowledge-base__section:nth-of-type(4),
.knowledge-base__section:nth-of-type(n + 5) {
    animation: ct-page-rise 0.55s ease 0.34s both;
}

.knowledge-base__links {
    display: grid;
    gap: 12px;
}

.knowledge-base__link {
    position: relative;
    display: grid;
    gap: 6px;
    overflow: hidden;
    padding: 18px 44px 18px 20px;
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-radius: 16px;
    background: var(--surface-card);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 8%, transparent);
    text-decoration: none;
    color: inherit;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.knowledge-base__link::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--wine);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 220ms ease;
}

.knowledge-base__link::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--wine);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1;
    opacity: 0;
    transform: translate(8px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.knowledge-base__link:hover,
.knowledge-base__link:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--wine) 28%, transparent);
    background: var(--surface-card-hover);
    box-shadow: 0 22px 42px color-mix(in srgb, var(--ink) 12%, transparent);
}

.knowledge-base__link:hover::before,
.knowledge-base__link:focus-visible::before {
    transform: scaleY(1);
}

.knowledge-base__link:hover::after,
.knowledge-base__link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.knowledge-base__link strong {
    font-size: 1rem;
    font-weight: 850;
}

.knowledge-base__link span {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.support-tickets-page .support-ticket-card,
.contact-page .support-ticket-card,
.contact-page .contact-page__channels {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-radius: 16px;
    background: var(--surface-card);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 8%, transparent);
}

.support-tickets-page > .support-ticket-card {
    grid-template-columns: 1fr;
}

@media (max-width: 760px) {
    .support-tickets-page .support-ticket-card,
    .contact-page .support-ticket-card {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knowledge-base > .eyebrow,
    .knowledge-base > h1,
    .knowledge-base > .knowledge-base__intro,
    .knowledge-base > p,
    .knowledge-base__section,
    .community-landing > .knowledge-base__links,
    .support-tickets-page > .eyebrow,
    .support-tickets-page > h1,
    .support-tickets-page > p,
    .support-tickets-page > .account-settings-alert,
    .support-tickets-page > .account-settings-card,
    .support-tickets-page > .support-ticket-form,
    .contact-page > .eyebrow,
    .contact-page > h1,
    .contact-page > p,
    .contact-page > .contact-page__channels,
    .contact-page > .account-settings-alert,
    .contact-page > .support-ticket-form {
        animation: none;
    }

    .knowledge-base__link,
    .knowledge-base__link::before,
    .knowledge-base__link::after,
    .knowledge-base__link:hover,
    .knowledge-base__link:focus-visible {
        transition: none;
        transform: none;
    }

    .knowledge-base__link::after {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.reader-plans-page {
    padding-bottom: 64px;
}

.for-authors-intro {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.for-authors-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 36px;
}

.for-authors-section-title {
    margin: 0 0 16px;
    font-family: inherit;
    font-size: 1.65rem;
    line-height: 1.2;
}

.for-authors-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.for-authors-steps li {
    display: grid;
    gap: 8px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-card);
}

.for-authors-steps li strong {
    font-family: inherit;
    font-size: 1.35rem;
    line-height: 1.2;
}

.for-authors-steps li span {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.for-authors-detail {
    max-width: 720px;
}

.for-authors-detail h2 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 1.65rem;
    line-height: 1.2;
}

.for-authors-detail p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.for-authors-detail p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .for-authors-steps {
        grid-template-columns: 1fr;
    }
}

.reader-plans-intro {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.reader-plans-alert {
    max-width: 760px;
    margin: 0 0 18px;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-card);
    font-weight: 750;
    line-height: 1.55;
}

.reader-plans-alert.is-success {
    border-color: rgba(47, 111, 94, 0.24);
    background: rgba(47, 111, 94, 0.1);
    color: var(--green);
}

.reader-plans-alert.is-error {
    border-color: color-mix(in srgb, var(--wine) 24%, transparent);
    background: color-mix(in srgb, var(--wine) 10%, transparent);
    color: var(--wine);
}

.reader-plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    margin-top: 28px;
}

.reader-plan-card {
    position: relative;
    flex: 0 1 calc((100% - 36px) / 3);
    width: calc((100% - 36px) / 3);
    display: block;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #111418;
    box-shadow: 0 16px 36px rgba(24, 32, 43, 0.06);
    cursor: pointer;
}

.reader-plan-card.is-featured {
    border-color: color-mix(in srgb, var(--green) 42%, var(--line));
    box-shadow: 0 18px 44px rgba(47, 111, 94, 0.12);
}

.reader-plan-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.reader-plan-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.reader-plan-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(47, 111, 94, 0.94);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reader-plan-card__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 72px 18px 18px;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(8, 10, 14, 0.96) 0%,
        rgba(8, 10, 14, 0.84) 42%,
        rgba(8, 10, 14, 0.4) 72%,
        transparent 100%
    );
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.reader-plan-card:hover .reader-plan-card__panel,
.reader-plan-card:focus-visible .reader-plan-card__panel,
.reader-plan-card:focus-within .reader-plan-card__panel {
    transform: translateY(0);
}

.reader-plan-card__slots {
    margin: 0;
    color: #f3c6bf;
    font-size: 0.9rem;
    font-weight: 850;
}

.reader-plan-card h2 {
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1.15;
}

.reader-plan-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.55;
}

.reader-plan-card__price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 0;
    color: #fff;
}

.reader-plan-card__price strong {
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.reader-plan-card__price span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (hover: none) and (min-width: 901px) {
    .reader-plan-card__panel {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
    .reader-plan-card__panel {
        transform: translateY(0);
        transition: none;
    }
}

@media (max-width: 900px) {
    .reader-plan-grid {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .reader-plan-card {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        width: 100%;
        aspect-ratio: auto;
        background: var(--surface-card);
    }

    .reader-plan-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        background: #111418;
    }

    .reader-plan-card__panel {
        position: static;
        transform: none;
        padding: 16px 18px 18px;
        color: var(--ink);
        background: none;
    }

    .reader-plan-card__slots {
        color: var(--wine);
    }

    .reader-plan-card h2,
    html[data-color-scheme="dark"] .reader-plan-card h2 {
        color: var(--ink);
    }

    .reader-plan-card__description {
        color: var(--muted);
    }

    .reader-plan-card__price {
        color: inherit;
    }

    .reader-plan-card__price span {
        color: var(--muted);
    }
}

.community-page {
    width: 100%;
    min-width: 0;
}

.discovery-public-page.community-landing,
.discovery-public-page.member-directory-page {
    min-height: 0;
    padding: 28px 0 48px;
}

body.chaptertrail-site .discovery-public-page.community-landing,
body.chaptertrail-site .discovery-public-page.member-directory-page {
    padding: 28px 0 48px;
}

.community-landing {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
}

.community-landing h1,
.member-directory-page h1 {
    max-width: none;
    margin: 0 0 14px;
    font-size: clamp(2.35rem, 4.8vw, 3.55rem);
    line-height: 1.05;
}

.community-landing .knowledge-base__intro,
.member-directory-page .knowledge-base__intro {
    margin-bottom: 0;
}

.community-landing .knowledge-base__links {
    margin-top: 22px;
    max-width: 760px;
}

.community-section {
    max-width: 960px;
    margin-top: 28px;
    padding: 20px 22px;
    overflow: hidden;
}

.community-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.community-section__head h2 {
    margin: 0;
    font-family: inherit;
    font-size: 1.55rem;
    line-height: 1.15;
    color: var(--ink);
}

.community-empty {
    margin-top: 24px;
    padding: 22px 24px;
}

.member-directory-page .knowledge-base__intro {
    margin-bottom: 18px;
}

.member-directory-search {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-top: 18px;
    padding: 20px 22px;
}

.member-directory-search label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.member-directory-search input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--reader-panel);
    font: inherit;
}

.member-directory-search__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-directory-pagination {
    margin: 18px 0;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1080px;
}

.member-directory-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    min-width: 0;
}

.member-directory-card__avatar {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.member-directory-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-directory-card__copy {
    min-width: 0;
}

.member-directory-card__copy h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--ink);
}

.member-directory-card__copy h2 a {
    color: inherit;
    text-decoration: none;
    font-weight: 850;
}

.member-directory-card__copy h2 a:hover {
    color: var(--wine);
}

.member-directory-card__copy p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.member-directory-card__meta {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.changelog-page h1 {
    max-width: none;
}

.changelog-page__intro {
    max-width: 720px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.changelog-timeline {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    max-width: 760px;
    display: grid;
    gap: 22px;
}

.changelog-entry {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 18px 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-card);
}

.changelog-entry__meta time {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.changelog-entry__body h2 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 1.45rem;
    line-height: 1.25;
}

.changelog-entry__body ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.changelog-entry__body li + li {
    margin-top: 8px;
}

.contact-page__channels {
    max-width: 760px;
    margin: 0 0 18px;
}

.contact-page__channels p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-page__channels p + p {
    margin-top: 10px;
}

.status-summary {
    max-width: 760px;
    margin-top: 24px;
    padding: 20px 22px;
}

.status-summary__label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-components {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-top: 22px;
}

.status-component__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.status-notice {
    max-width: 760px;
    margin-top: 22px;
    padding: 20px 22px;
}

.status-notice__when {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 860px) {
.changelog-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.status-summary strong {
    display: block;
    font-family: inherit;
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--ink);
}

.status-summary p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.status-summary--operational strong,
.status-component--operational .status-component__badge {
    color: var(--green);
}

.status-summary--degraded strong,
.status-component--degraded .status-component__badge {
    color: #b45309;
}

.status-summary--maintenance strong,
.status-component--maintenance .status-component__badge {
    color: var(--wine);
}

.status-component__head h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.status-component__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-component p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.status-notice h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.status-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 760px) {
.discovery-public-page h1 {
        font-size: 3.4rem;
    }
}
