/*
 * Vossische Editorial 1.0.0
 * Erich Reiss Publishing
 * Mobile First Design System
 */

:root {
    --ve-background: #111111;
    --ve-surface: #191919;
    --ve-text: #f1f1ef;
    --ve-muted: #a6a6a6;
    --ve-accent: #d0ad79;
    --ve-border: #363636;
    --ve-news: #d54a45;

    --ve-font-heading: Georgia, serif;
    --ve-font-body: Arial, Helvetica, sans-serif;

    --ve-max-width: 1440px;
    --ve-article-width: 740px;
    --ve-spacing: 16px;
}

.ve-container {
    width: 100%;
    max-width: var(--ve-max-width);
    margin-inline: auto;
    padding-inline: var(--ve-spacing);
    box-sizing: border-box;
}

.ve-section {
    margin-block: 32px;
    border-top: 1px solid var(--ve-border);
    padding-top: 16px;
}

.ve-section-title {
    font-family: var(--ve-font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.ve-kicker {
    color: var(--ve-accent);
    font-family: var(--ve-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ve-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.ve-grid > * {
    min-width: 0;
}

.ve-grid img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ve-container a:focus-visible {
    outline: 2px solid var(--ve-accent);
    outline-offset: 4px;
}

@media (min-width: 768px) {
    :root {
        --ve-spacing: 24px;
    }

    .ve-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ve-section-title {
        font-size: 28px;
    }
}

@media (min-width: 1100px) {
    .ve-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ve-section {
        margin-block: 40px;
    }

    .ve-section-title {
        font-size: 32px;
    }
}

/* Vossische Editorial - Tag and Column Archives */

.ve-archive-description {
    max-width: 760px;
    color: var(--ve-muted);
    font-size: 17px;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 20px;
}

.ve-archive-image {
    width: 100%;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--ve-border);
}

.ve-archive-image img {
    display: block;
    width: 100%;
}

@media (max-width: 767px) {
    .ve-archive-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .ve-archive-image {
        margin-bottom: 20px;
    }
}

/* Vossische Editorial - Author Directory */

.ve-authors-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-block: 32px;
}

.ve-author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    background: var(--ve-surface);
    border-top: 2px solid var(--ve-accent);
    border-bottom: 1px solid var(--ve-border);
}

.ve-author-image {
    display: block;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.ve-author-image img,
.ve-author-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ve-background);
    border: 1px solid var(--ve-border);
}

.ve-author-details {
    flex: 1;
    min-width: 0;
}

.ve-author-name {
    font-family: var(--ve-font-heading);
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.ve-author-bio {
    color: var(--ve-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.ve-author-more {
    color: var(--ve-accent);
    font-size: 12px;
    font-weight: 600;
}

.ve-author-more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .ve-authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ve-authors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ve-author-card {
        padding: 16px;
        gap: 14px;
    }

    .ve-author-image {
        width: 72px;
        height: 72px;
    }

    .ve-author-name {
        font-size: 19px;
    }
}

/* Vossische Editorial - Article Typography */

.post-body.prose {
    font-size: 19px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.post-body.prose p {
    margin-block: 0 1.25em;
}

.post-body.prose h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.65em;
}

.post-body.prose h3 {
    font-size: 23px;
    line-height: 1.35;
    margin-top: 1.5em;
}

.post-body.prose img {
    max-width: 100%;
    height: auto;
}

.post-body.prose blockquote {
    border-left: 3px solid var(--ve-accent);
    padding-left: 20px;
}

@media (max-width: 767px) {
    .post-body.prose {
        font-size: 18px;
        line-height: 1.65;
    }

    .post-body.prose h2 {
        font-size: 24px;
    }

    .post-body.prose h3 {
        font-size: 21px;
    }

    .post-body.prose blockquote {
        padding-left: 14px;
    }
}

/* Vossische Editorial - Original Image Format */

:root {
    --post-card-image-aspect-ratio: 16/9;
}

.post-card-image img,
.post-card-img,
.ve-home .post-card-img {
    object-fit: contain;
    object-position: center;
}

.post-card-image {
    background: var(--ve-background);
}

article.post > div > figure > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* === VOSSISCHE VIP OFFER === */

.ve-vip-offer {
    max-width: 720px;
    margin: 32px auto 48px;
    padding: 40px 28px;
    background: #191919;
    border: 1px solid #d0ad79;
    border-radius: 6px;
    text-align: center;
    color: #f1f1ef;
}

.ve-vip-label {
    color: #d0ad79;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ve-vip-offer h2 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.ve-vip-price {
    color: #d0ad79;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin: 16px 0;
}

.ve-vip-renewal {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ve-vip-button {
    display: block;
    max-width: 360px;
    margin: 26px auto 16px;
    padding: 16px 24px;
    background: #d0ad79;
    color: #111111 !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ve-vip-button:hover {
    background: #e5c99d;
}

.ve-vip-terms {
    font-size: 13px;
    color: #b8b8b8;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .ve-vip-offer {
        margin: 20px 12px 32px;
        padding: 28px 18px;
    }

    .ve-vip-label {
        letter-spacing: 1px;
    }

    .ve-vip-button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* === VOSSISCHE VIP PAYWALL === */

.gh-post-upgrade-cta:has(.ve-vip-paywall) {
    margin: 36px 0;
    padding: 0;
}

.gh-post-upgrade-cta-content:has(.ve-vip-paywall) {
    background-color: #191919 !important;
    border: 1px solid #d0ad79;
    border-radius: 6px;
    padding: 36px 24px;
    color: #f1f1ef;
    text-align: center;
}

.gh-post-upgrade-cta-content:has(.ve-vip-paywall) h2 {
    color: #f1f1ef;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.3;
    margin-bottom: 24px;
}

.ve-vip-paywall {
    width: 100%;
    max-width: 520px;
    margin: 24px auto;
    text-align: center;
}

.ve-vip-paywall p {
    line-height: 1.5;
}

.gh-post-upgrade-cta-content:has(.ve-vip-paywall)
a[data-portal="signin"] {
    color: #d0ad79 !important;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .gh-post-upgrade-cta-content:has(.ve-vip-paywall) {
        padding: 24px 16px;
    }

    .ve-vip-paywall .ve-vip-button {
        font-size: 16px;
        padding: 14px 12px;
    }
}

/* === MOBILE ARTICLE EXPERIENCE === */

@media (max-width: 767px) {

    body.post-template article.post {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.post-template article.post > div:first-child {
        width: 100%;
        max-width: 740px;
        padding-top: 16px !important;
        box-sizing: border-box;
    }

    body.post-template article.post h1 {
        font-size: clamp(27px, 7vw, 34px) !important;
        line-height: 1.18;
        letter-spacing: -0.025em;
        overflow-wrap: break-word;
        margin-bottom: 8px;
    }

    body.post-template article.post h1 + p {
        font-size: 17px;
        line-height: 1.5;
        margin-top: 12px;
    }

    body.post-template article.post figure {
        max-width: 100%;
        margin-inline: 0;
    }

    body.post-template article.post figure img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    body.post-template .post-body.prose {
        font-size: 18px;
        line-height: 1.7;
        overflow-wrap: break-word;
    }

    body.post-template .post-body.prose p {
        margin-bottom: 1.15em;
    }

    body.post-template .post-body.prose h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    body.post-template .post-body.prose h3 {
        font-size: 21px;
        line-height: 1.3;
    }

    body.post-template .post-body.prose table,
    body.post-template .post-body.prose pre {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    body.post-template .post-body.prose iframe {
        max-width: 100%;
    }

    .gh-post-upgrade-cta {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .gh-post-upgrade-cta-content:has(.ve-vip-paywall) {
        padding: 24px 16px !important;
        box-sizing: border-box;
    }

    .ve-vip-paywall .ve-vip-price {
        font-size: 54px;
        line-height: 1.1;
    }

    .ve-vip-paywall .ve-vip-renewal {
        font-size: 16px;
    }

    .ve-vip-paywall .ve-vip-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px 10px;
        font-size: 16px;
        line-height: 1.4;
    }

    .ve-vip-paywall .ve-vip-terms {
        font-size: 12px;
        line-height: 1.5;
    }
}


/* === VOSSISCHE MEMBERSHIP BUTTONS === */

a.ve-vip-button,
a.sign-up-button,
.auth-body button[type="submit"],
[data-tier-container] button[data-portal],
.gh-post-upgrade-cta a.gh-btn,
a.kg-btn-accent {
    background: #d0ad79 !important;
    color: #111111 !important;
    border: 1px solid #d0ad79 !important;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}

a.ve-vip-button:hover,
a.sign-up-button:hover,
.auth-body button[type="submit"]:hover,
[data-tier-container] button[data-portal]:hover,
.gh-post-upgrade-cta a.gh-btn:hover,
a.kg-btn-accent:hover {
    background: #e5c99d !important;
    color: #111111 !important;
    border-color: #e5c99d !important;
}

a.sign-up-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    height: auto;
    padding: 7px 12px;
    white-space: nowrap;
}

@media (max-width: 767px) {

    a.sign-up-button {
        font-size: 11px;
        padding: 6px 8px;
    }

    .auth-body button[type="submit"],
    [data-tier-container] button[data-portal] {
        min-height: 48px;
        width: 100%;
    }
}


/* === VOSSISCHE AUTHOR PROFILES === */

.ve-author-header {
    width: 100%;
    margin-bottom: 36px;
}

.ve-author-cover {
    width: 100%;
    overflow: hidden;
    border: 1px solid #363636;
    border-radius: 4px;
    background: #111111;
}

.ve-author-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ve-author-details {
    padding: 28px 0;
    border-bottom: 1px solid #d0ad79;
}

.ve-author-label {
    color: #d0ad79;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ve-author-name {
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ve-text);
    margin-bottom: 16px;
}

.ve-author-bio {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ve-text);
    max-width: 850px;
}

@media (max-width: 767px) {

    .ve-author-header {
        margin-bottom: 24px;
    }

    .ve-author-details {
        padding: 20px 0;
    }

    .ve-author-name {
        font-size: 28px;
    }

    .ve-author-bio {
        font-size: 16px;
        line-height: 1.6;
    }

    .ve-author-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}


/* === PORTRAIT-FREE AUTHOR DESIGN === */

.ve-author-card-cover {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 4px;
}

.ve-author-card-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
}

.ve-article-author-bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ve-text);
    overflow-wrap: break-word;
}

.ve-author-card {
    min-width: 0;
}

