/* =========================================================
   THE LAST KISS — EDITORIAL DESIGN
   Behind the Book
   ========================================================= */

.tlk-editorial-index {
    --editorial-navy: #14243b;
    --editorial-blue: #246fc8;
    --editorial-muted: #626973;
    --editorial-rule: #dcdfe4;

    background: #fff;
    color: var(--editorial-navy);

    padding: clamp(3rem, 7vw, 6rem) 0;
}

.tlk-editorial-inner {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
}

/* Introduction */

.tlk-editorial-intro {
    max-width: 820px;
    margin: 0 auto clamp(3rem, 5vw, 4.5rem);
    text-align: center;
}

.tlk-editorial-intro h1 {
    margin: 0 0 1rem;
    color: var(--editorial-navy);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.tlk-editorial-intro .tlk-editorial-lead {
    margin: 0 0 1rem;
    color: var(--editorial-navy);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.5;
    font-weight: 500;
}

.tlk-editorial-intro .tlk-editorial-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--editorial-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Three-column editorial menu */

.tlk-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--editorial-rule);
    border-bottom: 1px solid var(--editorial-rule);
}

/* Menu items */

.tlk-editorial-grid .tlk-editorial-item,
.tlk-editorial-grid .tlk-editorial-item:visited {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: clamp(1.5rem, 2.6vw, 2.25rem);

    border-inline-start: 1px solid var(--editorial-rule);

    color: var(--editorial-navy) !important;
    text-decoration: none !important;
    text-align: start;

    transition: background 180ms ease;
}

.tlk-editorial-grid .tlk-editorial-item:first-child {
    border-inline-start: none;
}

.tlk-editorial-grid .tlk-editorial-item:hover {
    background: #f5f7fa;
}

.tlk-editorial-grid .tlk-editorial-item:focus-visible {
    outline: 2px solid var(--editorial-blue);
    outline-offset: -3px;
}

/* Section numbers */

.tlk-editorial-number {
    display: block;
    margin-bottom: 1.3rem;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--editorial-blue);
}

/* Titles and descriptions */

.tlk-editorial-item h2 {
    margin: 0 0 0.5rem !important;

    color: var(--editorial-navy);
    font-size: clamp(1.7rem, 2.7vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 550;
}

.tlk-editorial-item .tlk-editorial-subtitle {
    margin: 0 0 1.4rem;

    color: var(--editorial-blue);
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

.tlk-editorial-item .tlk-editorial-summary {
    margin: 0 0 1.5rem;
    min-height: 5.5em;

    color: var(--editorial-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* Subject preview */

.tlk-editorial-item .tlk-editorial-topics {
    display: block !important;
    list-style: none !important;
    width: 100%;
    margin: 0 0 2rem;
    padding: 0 !important;

    border-top: 1px solid var(--editorial-rule);

    font-size: 0.9rem;
    line-height: 1.5;
}

.tlk-editorial-item .tlk-editorial-topics li {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0.75rem 0 !important;

    border-bottom: 1px solid var(--editorial-rule);

    color: var(--editorial-navy);
    text-align: start;
}

.tlk-editorial-topics li::before,
.tlk-editorial-topics li::after {
    content: none !important;
    display: none !important;
}

/* Explore link */

.tlk-editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    margin-top: auto;

    color: var(--editorial-blue);
    font-size: 0.95rem;
    font-weight: 650;
}

.tlk-editorial-link span {
    transition: transform 180ms ease;
}

.tlk-editorial-item:hover .tlk-editorial-link span {
    transform: translateX(4px);
}

/* Persian */

html[dir="rtl"] .tlk-editorial-link span {
    transform: rotate(180deg);
}

html[dir="rtl"] .tlk-editorial-item:hover
.tlk-editorial-link span {
    transform: translateX(-4px) rotate(180deg);
}

/* Mobile and tablet */

@media (max-width: 800px) {

    .tlk-editorial-inner {
        width: calc(100% - 2rem);
    }

    .tlk-editorial-grid {
        grid-template-columns: 1fr;
    }

    .tlk-editorial-grid .tlk-editorial-item {
        border-inline-start: none;
        border-bottom: 1px solid var(--editorial-rule);
        padding: 2rem 1rem;
    }

    .tlk-editorial-grid .tlk-editorial-item:last-child {
        border-bottom: none;
    }

    .tlk-editorial-item .tlk-editorial-summary {
        min-height: 0;
        max-width: 600px;
    }

    .tlk-editorial-number {
        margin-bottom: 0.8rem;
    }

    .tlk-editorial-item h2 {
        font-size: 2rem;
    }

    .tlk-editorial-item .tlk-editorial-topics {
        margin-bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlk-editorial-item,
    .tlk-editorial-link span {
        transition: none;
    }
}


/* =========================================================
   EDITORIAL — THE PEOPLE
   ========================================================= */

.modular-text.tlk-editorial-people {
    --people-navy: #14243b;
    --people-blue: #246fc8;
    --people-muted: #626973;
    --people-rule: #dcdfe4;

    background: #fff !important;
    color: var(--people-navy);

    padding: clamp(3rem, 6vw, 5rem) 0 !important;
}

.modular-text.tlk-editorial-people > .container {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 3rem)) !important;
    max-width: none !important;
    margin-inline: auto;
    padding: 0 !important;
}

.tlk-editorial-people .column {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
}

/* Main section heading */

.tlk-editorial-people .column > h1 {
    margin: 0 0 2.5rem !important;

    color: var(--people-navy) !important;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

/* Individual contributor headings */

.tlk-editorial-people .column > h2,
.tlk-editorial-people .column > h2:first-of-type {
    border-top: 1px solid var(--people-rule);

    margin: 2.25rem 0 0.5rem !important;
    padding: 2.25rem 0 0 !important;

    color: var(--people-navy) !important;

    font-size: clamp(1.7rem, 2.7vw, 2.5rem);
    font-weight: 550;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Contributor roles */

.tlk-editorial-people .column > p.tlk-person-role {
    margin: 0 0 1.5rem !important;

    color: var(--people-blue) !important;

    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Biographies */

.tlk-editorial-people .column > p {
    max-width: 900px !important;

    margin: 0 0 1rem !important;

    color: var(--people-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Biography and website links */

.tlk-editorial-people .column > p a {
    color: var(--people-blue) !important;
    font-weight: 600;
    text-underline-offset: 4px;
}

/* Replace old dividers with consistent heading rules */

.tlk-editorial-people .column > hr {
    display: none !important;
}

/* Press and subsequent content */

.tlk-editorial-people .column > h3 {
    border-top: 1px solid var(--people-rule);

    margin-top: 2.5rem !important;
    padding-top: 2rem;

    color: var(--people-navy) !important;
}

/* Mobile */

@media (max-width: 800px) {

    .modular-text.tlk-editorial-people > .container {
        width: calc(100% - 2rem) !important;
    }

    .tlk-editorial-people .column > h1 {
        margin-bottom: 1.8rem !important;
    }

    .tlk-editorial-people .column > h2 {
        margin-top: 1.75rem !important;
        padding-top: 1.75rem !important;
    }
}


/* =========================================================
   EDITORIAL ARTICLE
   Translation, Issues and Poetry
   ========================================================= */

.tlk-editorial-article {
    --article-navy: #14243b;
    --article-blue: #246fc8;
    --article-muted: #626973;
    --article-rule: #dcdfe4;

    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0;

    color: var(--article-navy);
}

/* Article introduction */

.tlk-article-header {
    padding-inline: 0;
    max-width: none;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);

    border-bottom: 1px solid var(--article-rule);
}

.tlk-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;

    margin-bottom: 2.5rem;

    font-size: 0.85rem;
    font-weight: 600;
    color: var(--article-blue) !important;
    text-decoration: none !important;
}

.tlk-article-back:hover {
    text-decoration: underline !important;
}

.tlk-article-header h1 {
    margin: 0 0 0.65rem !important;

    color: var(--article-navy) !important;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.tlk-article-header .tlk-article-subtitle {
    margin: 0 0 2rem !important;

    color: var(--article-blue) !important;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    line-height: 1.4;
    font-weight: 500;
}

.tlk-article-header .tlk-article-introduction {
    max-width: none;

    margin: 0 !important;
    color: var(--article-muted);

    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.75;
}

/* Main reading area */

.tlk-article-copy {
    max-width: none;
    margin-inline: auto;

    color: var(--article-navy);
}

.tlk-article-copy > p {
    max-width: none !important;

    margin: 0 0 1.35rem !important;

    font-size: 1.05rem;
    line-height: 1.85;
    color: #424953;
}

/* Chapter headings */

.tlk-article-copy > h2,
.tlk-article-copy > h2:first-of-type {
    border-top: 1px solid var(--article-rule);

    margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem !important;
    padding-top: clamp(2rem, 4vw, 3rem);

    color: var(--article-navy) !important;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.tlk-article-copy > h2:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0 !important;
}

/* Subsections */

.tlk-article-copy > h3 {
    margin: 2.5rem 0 1rem !important;

    color: var(--article-navy) !important;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
}

/* Editorial quotations */

.tlk-article-copy blockquote {
    box-sizing: border-box;
    max-width: none !important;

    margin: clamp(2.5rem, 5vw, 3.8rem) 0 !important;
    padding: 1.6rem 0 1.6rem 1.8rem !important;
    padding-inline-start: 1.8rem !important;
    padding-inline-end: 0 !important;

    border: 0 !important;
    border-inline-start: 3px solid var(--article-blue) !important;

    background: transparent !important;
    box-shadow: none !important;
}

.tlk-article-copy blockquote p {
    max-width: none !important;
    margin: 0 0 1.15rem !important;

    color: var(--article-navy) !important;

    font-size: clamp(1.4rem, 2.7vw, 2rem);
    line-height: 1.5;
    font-weight: 400;
    font-style: normal;
}

.tlk-article-copy blockquote p:last-child {
    margin-bottom: 0 !important;

    color: var(--article-blue) !important;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Photographs and videos — for later additions */

.tlk-editorial-article figure {
    margin: 2.5rem 0;
}

.tlk-editorial-article figure img,
.tlk-editorial-article figure video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tlk-editorial-article figcaption {
    margin-top: 0.75rem;

    color: var(--article-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Wider media and text arrangements */

.tlk-article-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);

    margin: 3rem 0;
}

.tlk-article-split figure {
    margin: 0;
}

/* Related editorial subjects */

.tlk-article-related {
    max-width: none;
    margin: clamp(4rem, 8vw, 7rem) auto 0;
    padding-top: 2.5rem;

    border-top: 1px solid var(--article-rule);
}

.tlk-article-related h2 {
    color: var(--article-navy) !important;
    font-size: 1.7rem;
    font-weight: 500;
    margin: 0 0 1.5rem !important;
}

.tlk-article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tlk-article-related-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.4rem 0;

    border-top: 1px solid var(--article-rule);
    border-bottom: 1px solid var(--article-rule);

    color: var(--article-navy) !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
}

.tlk-article-related-grid a:hover {
    color: var(--article-blue) !important;
}

/* Persian reading direction */

html[dir="rtl"] .tlk-article-back span,
html[dir="rtl"] .tlk-article-related-grid a span:last-child {
    transform: rotate(180deg);
}

/* Mobile */

@media (max-width: 800px) {

    .tlk-editorial-article {
        padding: 2rem 0 3rem;
    }

    .tlk-article-header h1 {
        font-size: 3rem;
    }

    .tlk-article-back {
        margin-bottom: 1.75rem;
    }

    .tlk-article-copy > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .tlk-article-copy blockquote {
        padding-inline-start: 1.15rem !important;
    }

    .tlk-article-split,
    .tlk-article-related-grid {
        grid-template-columns: 1fr;
    }
}


/* Editorial article — numbered process stages */

.tlk-article-copy > .tlk-stage-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.tlk-stage-heading .tlk-stage-number {
    display: block;

    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.12em;

    color: var(--article-blue);
}

