/* gt-editorial.css */

.gt-editorial-section {
    padding: 140px 0;
    background-color: var(--paper);
    color: var(--ink);
}

.gt-editorial__header-inner {
    max-width: 900px;
    margin: 0 auto 90px;
    text-align: center;
}

.gt-editorial__eyebrow {
    margin-bottom: 24px;
}

.gt-editorial__title {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 28px;
    color: var(--ink);
}

.gt-editorial__subtitle {
    font-family: var(--sans);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.5;
    color: var(--muted);
    font-weight: 300;
    margin: 0 auto;
    max-width: 760px;
}

.gt-editorial__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 90px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.gt-editorial__sidebar {
    position: sticky;
    top: 140px;
}

.gt-editorial__author-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gt-editorial__portrait {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--ivory);
}

.gt-editorial__portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) sepia(20%) contrast(1.05);
}

.gt-editorial__author-info {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.gt-editorial__author-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 4px;
    color: var(--ink);
}

.gt-editorial__author-role {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gt-editorial__body {
    max-width: 680px;
}

.gt-editorial__opening {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 70px;
}

.gt-editorial__opening p {
    margin: 0;
}

.gt-editorial__chapter {
    margin-bottom: 70px;
}

.gt-editorial__chapter-heading {
    font-family: var(--sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 28px;
    font-weight: 600;
}

.gt-editorial__chapter-text {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink);
}

.gt-editorial__chapter-text p {
    margin: 0 0 26px;
}

.gt-editorial__chapter-text p:last-child {
    margin-bottom: 0;
}

.gt-editorial__quote {
    margin: 50px 0;
    padding: 0;
    border: none;
    position: relative;
}

.gt-editorial__quote p {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.35;
    color: var(--ink);
    font-style: italic;
    margin: 0;
    padding-left: 36px;
    border-left: 2px solid var(--gold);
}

.gt-editorial__chapter-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    margin: 22px 0 0;
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

.gt-editorial__chapter-sources-label {
    font-weight: 600;
    color: var(--ink);
}

.gt-editorial__chapter-sources-separator {
    color: rgba(46,39,31,0.3);
}

.gt-editorial__chapter-source-link {
    color: var(--muted);
    text-decoration-line: underline;
    text-decoration-color: rgba(46,39,31,0.3);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.gt-editorial__chapter-source-link:hover,
.gt-editorial__chapter-source-link:focus-visible {
    color: var(--gold-dark);
    text-decoration-color: currentColor;
}

.gt-editorial__closing {
    margin-top: 100px;
    padding-top: 70px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.gt-editorial__closing-statement {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 20px;
}

.gt-editorial__closing-invitation {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    font-weight: 600;
}

.gt-editorial__sources {
    margin-top: 90px;
    padding: 50px;
    background-color: var(--ivory);
    border: 1px solid var(--line);
}

.gt-editorial__sources-title {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 24px;
    font-weight: 600;
}

.gt-editorial__sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-editorial__sources-list li {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.5;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(46,39,31,0.06);
}

.gt-editorial__sources-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gt-editorial__source-inst {
    color: var(--ink);
    font-weight: 500;
}

.gt-editorial__source-sep {
    margin: 0 6px;
    color: rgba(46,39,31,0.3);
}

.gt-editorial__source-link {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.gt-editorial__source-link:hover {
    color: var(--ink);
}

/* Tablet */
@media (max-width: 980px) {
    .gt-editorial-section {
        padding: 110px 0;
    }

    .gt-editorial__layout {
        grid-template-columns: 200px 1fr;
        gap: 60px;
    }
    
    .gt-editorial__quote p {
        font-size: 26px;
        padding-left: 28px;
    }

    .gt-editorial__closing {
        margin-top: 80px;
        padding-top: 60px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gt-editorial-section {
        padding: 80px 0;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .gt-editorial__header.container,
    .gt-editorial__content.container {
        box-sizing: border-box;
        width: 100vw;
        max-width: 100vw;
        margin-right: 0;
        margin-left: 0;
        padding-right: 15px;
        padding-left: 15px;
    }

    .gt-editorial__header-inner {
        max-width: 100%;
        margin-bottom: 60px;
        text-align: left;
    }

    .gt-editorial__title {
        max-width: 100%;
        font-size: clamp(38px, 11vw, 46px);
        overflow-wrap: anywhere;
    }

    .gt-editorial__subtitle {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-wrap: anywhere;
    }

    .gt-editorial__layout {
        grid-template-columns: 1fr;
        gap: 60px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .gt-editorial__sidebar {
        position: static;
        order: -1;
        min-width: 0;
    }

    .gt-editorial__author-card {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 34px;
    }

    .gt-editorial__portrait {
        width: 90px;
        flex-shrink: 0;
        aspect-ratio: 3/4;
    }
    
    .gt-editorial__author-info {
        border-top: none;
        padding-top: 0;
        min-width: 0;
    }

    .gt-editorial__author-role {
        overflow-wrap: anywhere;
    }

    .gt-editorial__body,
    .gt-editorial__chapter,
    .gt-editorial__chapter-text,
    .gt-editorial__opening,
    .gt-editorial__quote,
    .gt-editorial__closing,
    .gt-editorial__sources {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    
    .gt-editorial__opening {
        font-size: 20px;
        margin-bottom: 50px;
    }

    .gt-editorial__chapter-text {
        font-size: 16px;
    }

    .gt-editorial__quote p {
        font-size: 22px;
        padding-left: 24px;
    }

    .gt-editorial__closing {
        margin-top: 70px;
        padding-top: 50px;
        text-align: left;
    }
    
    .gt-editorial__closing-statement {
        font-size: 22px;
    }

    .gt-editorial__sources {
        margin-top: 70px;
        padding: 30px 24px;
    }
}

@media (max-width: 600px) {
    .gt-editorial-section {
        overflow-x: visible;
    }

    .gt-editorial__header.container,
    .gt-editorial__content.container {
        padding-inline: clamp(12px, 3.5vw, 15px);
    }

    .gt-editorial__title {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        font-size: clamp(1.72rem, 7.5vw, 2.6rem);
        line-height: 1.02;
        letter-spacing: -0.015em;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .gt-editorial__chapter {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    .gt-editorial__subtitle,
    .gt-editorial__author-role,
    .gt-editorial__body,
    .gt-editorial__chapter,
    .gt-editorial__chapter-text,
    .gt-editorial__opening,
    .gt-editorial__quote,
    .gt-editorial__closing,
    .gt-editorial__sources {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .gt-editorial__chapter-source-link,
    .gt-editorial__source-link {
        overflow-wrap: break-word;
        word-break: normal;
    }
}
